Delta Electronics — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions Symbol S : String to be cleared Explanation 1. This instruction clears the string in S . If the string in S does not end with 16#00, the instruction clears up to 255 characters. b15 b0 b7 b8 S S 0000 16# +1 S +2 S +1 S +2 S 0000 16# 0000 16# 6_ +3 S +3 S 0000 16# +4 S +5 S 0000 16# 0000 16# After the instruction is executed +4 S +5 S Example The instruction clears the string in D0 as illustrated below.

6-693 API Instruction code Operand Function 2118 $CLR P S Clearing a string Device X Y M S T C HC D FR SM SR E K 16# “$” F S     BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S    Pulse instruction 16-bit instruction 32-bit instruction AS AS - 16#31(1) 16#2D(-) 16#33(3) 16#32(2) 16#34(4) 16#35(5) 16#36(6) 16#2E(.) 16#38(8) 16#37(7) 16#00