DVP-ES3 Series Programming Manual If the values in D50 and D51 are 20 and 4 respectively, the execution result is as follows. b15 b0 b7 b8 b15 b0 b7 b8 D1 D0 D20 D21 D3 D2 D23 D22 D4 After the instruction is executed D5 D6 D7 D10 D12 D11 D50 20 Number of characters which are replaced D51 4 Character which is replaced If the values in D50, D51, and D10 are 3, 4, and 16#00 respectively, the execution result is as follows. The three characters in D0-D7 starting from the fourth character are deleted.
b15 b0 b7 b8 b15 b0 b7 b8 D1 D0 D20 D21 D3 D2 After the instruction is executed D23 D22 D4 D5 D24 D25 D6 D7 _6 D10 00 16# D50 3 Number of characters which are replaced D51 4 Character which is replaced Additional remarks 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 S 2 does not end with 16#00, SM0 is ON, and the error code in SR0 is 16#200E. 3. If the value in S 3 S 4 the value in S 4 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 the string (16#00 the ending character included) in S1 after the replacement is larger than 256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 6-672 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#42(B) 16#41(A) 16#42(B) 16#41(A) 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#42(B) 16#41(A) Ignored 16#00 16#32(2) 16#31(1) 16#43(C) 16#33(3) 16#45(E) 16#44(D) 16#00 16#46(F) 16#44(D) 16#43(C) 16#45(F) 16#45(E) Ignored 16#00 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#42(B) 16#41(A) 16#42(B) 16#41(A) 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#42(B) 16#41(A) 16#00 16#32(2) 16#31(1) 16#41(A) 16#33(3) 16#31(1) 16#42(B) 16#33(3) 16#32(2) 16#41(A) 16#34(4) 16#00 16#42(B)