DVP-ES3 Series Programming Manual 3. If the value in S 2 is larger than the number of characters which can be deleted in the string in S 1 , the instruction deletes the characters in S 1 starting from the character indicated by the value in S 3 to the last character in S 1 , and stores 16#00 in D . S1 b15 b0 b7 b8 +1 S1 b15 b0 b7 b8 D +2 S1 +3 S1 After the instruction is executed +1 D +4 S1 +5 S1 Larger than the number of characters which can be deleted in the string in S1 S3 S2 10 3 4. If the value in S 2 is equal to 0, the instruction is not executed. Example When M0 is ON, the data in D0–D3 is “1234567”.
When the $DEL instruction executes, it deletes the characters in D0–D3 starting from the character indicated by the value in D11. The number of characters to delete is indicated by the value in D10, and the instruction stores the result in D20–D23. _6 If the values in D10 and D11 are 3 and 4 respectively, the execution result is as follows. b15 b0 b7 b8 D1 D0 b15 b0 b7 b8 D20 D2 D22 D21 D3 After the instruction is executed D10 3 D11 4 If the values in D10 and D11 are 5 and 4 respectively, the execution result is as follows. Note that the number of characters to delete exceeds the range, the instruction deletes the characters in D0–D3 starting from the fourth character to the last character.
6-674 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#30(0) 16#39(9) Ignored 16#00 16#32(2) 16#31(1) 16#0000 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#36(6) 16#35(5) 16#00 16#37(7) 16#32(2) 16#31(1) 16#37(7) 16#33(3) 16#00