Delta AH500 — 6.21.2 Explanation of String Processing Instructions

AH500 Programming Manual D0 b15 b0 b7 b8 b15 b0 b7 b8 D100 D1 D101 D2 D3 D102 D103 D104 D10 D11 3 4 Number of characters which are retrieved from S1 After the instruction is executed Initial character in D which is replac ed b15 b0 b7 b8 D100 D101 D102 D103 D104 Additional remark: 1. If the string in S 1 does not end with 16#00, SM0 is ON, and the error code in SR0 is 16#200E. 2. If the string in D does not end with 16#00, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the value in S 2 is less than or equal to 0, or if the value in S 2 is larger than the length of the string in D , SM0 is ON, and the error code in SR0 is 16#2003. 4.

If the value in S 2 +1 is less than -1, or if the value in S 2 +1 is larger than the number of characters which can be retrieved from the string in S 1 , SM0 is ON, and the error code in SR0 is 16#2003. 5. If the operand S 2 used during the execution of the 16-bit instruction is declared in ISPSoft, the data type will be ARRAY [2] of WORD/INT. 6-484 16#42(B) 16#41(A) 16#44(D) 16#43(C) 16#46(F) 16#45(E) 16#00 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#36(6) 16#35(5) 16#38(8) 16#37(7) 16#00 16#32(2) 16#31(1) 16#42(B) 16#41(A) 16#44(D) 16#43(C) 16#38(8) 16#37(7) 16#00