Kaiyi — 6.21.2 Explanation of String Processing Instructions

AH500 Programming Manual 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: Supp ing is less than 8, the string is regarded as “00010000”. When the PLC runs, the value in (D21, D20) is 16#10000. ose S is the string “0001”. Since the number of characters contained in the str Additional remark: 1. If the AS execute CII code in S is not within the range between 16#30 and 16#39, the instruction is not d, 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 exec uted, 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-461