CHAR |
Top Previous Next |
This data type has got a size of one byte. It serves for saving ASCII-signs. In TrySim it is compatible for assigning to the type BYTE, that means always there where you can use a BYTE you can also use a CHAR and the other way round. If you want to export your program to STEP®7 you must not make use of this compatibility because it does not exist there.
Examples for the use of CHAR-types
L ‘T’ (First letter of TrySim) T #Word[3] (#Word is declared as ARRAY[1..5] of CHAR)
With the help of the operation L (Load) you can load up to 4 signs at the same time into the accu:
L ‘afGh’
But if you want to connect a CHAR-parameter of a FB/FC, the constant must not be longer than one sign.
ASCII-Table:
See also:
STEP®7 is a registered trademark of the Siemens AG. |