Delta AH500 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions Example 2: b15 b0 b7 b8 (D11,D10) D20 (D13,D12) Number of characters D21 D22 Number of decimal places D23 (D1,D0) D25 D24 Additional remark: 1. If the number of characters contained in the string in S exceeds the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If the sign code in S is not 16#20, 16#2B, 16#30 and 16#2D, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the decimal point in the string in S is not stored between the first character after the sign character and the last character, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 4.

If the binary number converted from the string in S exceeds the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 5. In the string in S , except for the sign code, the code representing the decimal point, and the code which can be ignored, i.e. 16#20 or 16#30, the other codes have to be within the range between 16#30 and 16#39. If the other codes are 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. 6. If the operand D 1 used during the execution of the 16-bit instruction is declared in ISPSoft, the data type will be ARRAY [2] of WORD/INT. 7.

If the operand D 1 used during the execution of the 32-bit instruction is declared in ISPSoft, the data type will be ARRAY [2] of DWORD/DINT. 6-467 16#31(1) 16#20( ) 16#33(3) 16#32(2) 16#35(5) 16#34(4) 16#36(6) 16#2E(.) 16#38(8) 16#37(7) 16#00 1 0 3 1234 5 678