AH500 Programming Manual 
6-492 
API    Instruction code  Operand 
Function 
2118    $CLR  P 
S 
Clearing the string 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#
“$”  DF 
Pulse instruction
16-bit instruction (3 steps)
32-bit instruction 
AH500  AH500  - 
Symbol: 
S
:
String which is cleared  Word 
Explanation: 
1.  The string in S is cleared. 
 b15
 b0
 b7 b8
 0016#
 S
 +1
 S
 +2
 S
 +3
 S
 2D(-)16#
 16#31(1)
 32(2)16# 33(
3)16#
 34(4)16#
 35(5)16#
 2E(.)16#
 36(6)16#
 38(8)16#
 37(7)16#
 +4
 S
 +5 S
 000016#
 S
 +1
 S
 +2
 S
 +3
 S
 000016#
 +4
 S
 +5 S
 000016#
 000016#
 000016#
 000016#
 After the instruction 
 is executed
 
Example: 
The string in D0 is cleared, as illustrated below. 
 
 b15
 b0
 b7 b8
 0016#
 D1
 D2
 D3
16#31(1) 16#32(2)
 33(3)16# 34(4)16#
 36(6)16#
 35(5)16#
 37(7)16#
 D0
 000016#
 D1
 D2
 D3
 D0
 000016#
 000016#
 000016#
 After the instruction 
 is executed
 
Additional remark: 
1.  If the string in S does not end with 16#00, SM0 is ON, and the error code in SR0 is 16#200E.