Chapter 6 Applied Instructions b15 b0 b7 b8 b15 b0 b7 b8 +1 S1 S1 D +1 D +2 S1 +2 D +3 S1 +4 S1 Fifth character +5 S1 Example: b15 b0 b7 b8 b15 b0 b7 b8 D11 D10 D1 D0 D12 D2 D13 D20 3 D21 4 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 value in S 2 is less than or equal to 0, or if the value in S 2 +1 is less than -1, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the value in S 2 is larger than the length of the string in S 1 , SM0 is ON, and the error code in SR0 is 16#2003. 4.
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-481 16#42(B) 16#41(A) 16#44(D) 16#43(C) 16#46(F) 16#45(E) 16#48(H) 16#47(G) 16#4A(J) 16#49(I) 16#00 16#4B(K) 16#46(F) 16#45(E) 16#48(H) 16#47(G) 16#4A(J) 16#49(I) 16#00 16#4B(K) 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#36(6) 16#35(5) 16#00 16#37(7) 16#34(4) 16#33(3) 16#36(6) 16#35(5) 16#00