AH 5 00 Pr ogr am m ing Ma n ua l
Example 3:
Suppose S is the string "1". Since the number of characters contained in the string is less than 4, the
string is regarded as "1000". When the PLC runs, the value in D20 is 16#1000.
Example 4:
Suppose S is the string "0001". Since the number of characters contained in the string is less than 8,
the string is regarded as "00010000". When the PLC runs, the value in
(D21, D20) is 16#10000.
Additional remark:
1.
If the ASCII code in S is not within the range between 16#30 and 16#39, the instruction is not
executed, SM0 is ON, and the error code in SR0 is 16#2003.
2.
If S is a string and the number of characters contained in the string exceeds the range, the
instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003.
3.
If the operand S used during the execution of the 16-bit instruction is declared in ISPSoft, the
data type will be ARRAY [2] of WORD/INT.
4.
If the operand S used during the execution of the 32-bit instruction is declared in ISPSoft, the
data type will be ARRAY [4] of WORD/INT.
6 - 4 5 6