Lenze DDS Function library PLCToolBox Bedienungsanleitung Seite 14

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 26
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 13
Function library LenzePLCToolBox.lib
Functions/function blocks
2.6 L_TBConvCharToByte
2−6
L
LenzePLCToolBox.lib EN 1.5
2.6 L_TBConvCharToByte
BYTE L_TBConvCharToByte (strInput)
This function returns the appropriate ASCII code for a character (string with character length "1").
L_TBConvCharToByte
strInput
Character
'A' 65
ASCII code (byte)
Transfer parameters
Identifiers Data type Info/possible settings
strInput String(1) Character for which the ASCII code is to be returned.
Return value: Byte
Value Meaning
0 ... 255 ASCII code of strInput
Example
Calling the function in ST:
strCharacter := ’A’;
byASCIIcode := L_TBConvCharToByte(strCharacter);
(* byASCIIcode = 65 *)
Seitenansicht 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 25 26

Kommentare zu diesen Handbüchern

Keine Kommentare