Delta DVP-ES3 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions S b15 b0 b7 b8 b15 b0 b7 b8 D ABCDEF12345 +1 S +1 D +2 S +3 S +3 D +2 D +4 S Seventh character +5 S Example When M0 is ON, the instruction retrieves the six characters starting from the character in D100, and stores them in D10. 6 D0 b15 b0 b7 b8 b15 b0 b7 b8 D10 D11 D12 Sixth character D13 Additional remarks 6_ 1. If the operand S is not a string ($) but a device with a string, the string in S can be up to 256 characters(16#00 ending character included). If the string in S does not end with 16#00, SM0 is ON, and the error code in SR0 is 16#200E. 2. If n is less than 0, it is processed as 0.

If n is greater than the length of the string in S , it is processed as the length of the string is S . 3. If D is not sufficient to contain n characters, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 6-663 16#42(B) 16#41(A) 16#44(D) 16#43(C) 16#46(F) 16#45(E) 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#00 16#35(5) 16#42(B) 16#41(A) 16#44(D) 16#43(C) 16#46(F) 16#45(E) 16#00 16#31(1) D100 D101 D102 16#42(B) 16#41(A) 16#44(D) 16#43(C) 16#46(F) 16#45(E) D103 D104 16#48(H) 16#47(G) 16#00 16#42(B) 16#41(A) 16#44(D) 16#43(C) 16#46(F) 16#45(E) 16#00