AH500 Programming Manual
6-480
b15
b0
b7 b8
0016#
S1
16#41(A)
16#42(B)
43(C)16# 44(D)16#
46(F)16#
45(E)16#
47(G)16#
48(H)16#
4A(J)16#
49(I)16#
4B(K)16#
b15
b0
b7 b8
D
+1
D
+2
D
16#45(E) 46(F)16#
47(G)16# 48(H)16#
49(I)16#
Fifth character
4A(J)16#
+1
S1
+2
S1
+3
S1
+4
S1
+5 S1
0016#
4B(K)16#
Example:
b15
b0
b7 b8
0016#
16#31(1) 16#32(2)
33(3)16# 34(4)16#
16#36(6)
35(5)16#
37(7)16#
b15
b0
b7 b8
D0
D1
16#33(3) 34(4)16#
35(5)16# 36(6)16#
0016#
3
4
D2
D10
D11
D12
D13
D20
D21
Additional remark:
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 value in S
2
is less than or equal to 0, or if the value in S
2
+1 is less than -1, SM0 is ON,
and the error code in SR0 is 16#2003.
3. If the value in S
2
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 S
2
+1 is larger than the number of characters which can be retrieved from the
string in S
1
, SM0 is ON, and the error code in SR0 is 16#2003.
5. If the operand S
2
used during the execution of the 16-bit instruction is declared in ISPSoft, the
data type will be ARRAY [2] of WORD/INT.