Chapter 6 Applied Instructions
6-491
If the values in D10 and D11 are 5 and 1 respectively, the execution result is as follows.
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#
b15
b0
b7 b8
5
1
16#36(6) 37(7)16#
0016#
D0
D11
D10
D21
D20
After the instruction
is executed
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 0, the value in S
3
is less than or equal to 0, or the value in S
3
is
larger than the length of the string in S
1
, SM0 is ON, and the error code in SR0 is 16#2003.