Chapter 6 Applied Instructions Symbol S 1 : String S 2 : Number of characters to be deleted S 3 : Characters in S 1 are deleted starting from the character indicated by the value in S 3 . D : Device where the execution result is stored 6_ Explanation 1. This instruction deletes the characters in S 1 starting from the character indicated by the value in S 3 . The number of characters that are deleted is indicated by the value in S 2 , and the instruction stores the result in D . 2. For example, the instruction deletes the four characters starting from the third character in the string “12 3456 7890” in S 1 , and stores the result “127890”in D .
b15 b0 b7 b8 b15 b0 b7 b8 +1 S1 S1 D +1 D +2 S1 +2 D +3 S1 +4 S1 After the instruction is executed +2 D +5 S1 S2 4 S3 3 6-673 API Instruction code Operand Function 2117 $DEL P S1, S2, S3, D Deleting the characters in a string Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 S3 D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 S3 D Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 - 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#38(8) 16#37(7) 16#30(0) 16#39(9) 16#0000