Delta DVP-ES3 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions Additional remarks 1. If the value of the first word in S is an ending character (16#00), the value is processed as 0 (16#30). 2. If the value of the first digit in S is 16#20 (blank) or 16#2B (+) or 16#2D (-) and the second digit is 16#00, the value in S is processed as 0 (16#30). 3. Even if the first digit of binary-coded decimal value in S is 0, it is converted into the ASCII code 0 (16#30). 4. The value of the first digit in S only supports ASCII codes, 16#30–16#39 (0–9), 16#200 (blank), 16#2D (negative sign), 16#2B (positive sign), 16#00 (ending character).

If the value of the first digit in S is not ASCII code, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 5. Except the first digit, if the value of other digits in S are not ASCII codes, 16#30–16#39 or 16#00, the value in S is processed as 16#00. 6. If the value in S exceeds the device range, SM0 is ON, and the error code in SR0 is 16#2003. The instruction is not executed. 7. For 16-bit instructions, if you declare the operand S in ISPSoft, the data type is ARRAY [3] of WORD/INT. 8. For 32-bit instructions, if you declare the operand S in ISPSoft, the data type is ARRAY [6] of WORD/INT. 6_ 6-639