6-113
$MOV(P)
1
2
3
4
4
6
7
8
6.4 Data Transfer Instructions
6.4.4 Character string transfers ($MOV(P))
(3) If the "00
H
" code is being stored at lower bytes of +n, "00
H
" will be stored at both the
higher bytes and the lower bytes of +n.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• There is no "00
H
" code stored between the device number designated by and the
relevant device. (Error code: 4101)
• The entire character string linked from the device number designated by to the final
device number of the relevant device cannot be stored. (Error code: 4101)
• The character string of exceeds 16383 characters. (Error code: 4101)
Program Example
(1) The character string data stored in D10 to D12 is transferred to D20 to D22 when X0 goes
ON.
[Ladder Mode] [List Mode]
[Operation]
(2) When X is turned ON, the character string "ABCD" is transferred to D20 and D21.
[Ladder Mode] [List Mode]
S
D
At the upper byte position,
"00
H" is automatically stored.
b15 b8
b7
b0
+1
+2
b15 b8
b7
b0
+1
+2
42
H
(B)41
H
(A)
43
H
(C)
00
H
44
H
(D)
45
H
(E)
42
H
(B)41
H
(A)
43
H
(C)
00
H
44
H
(D)
00
H
Upper byte is not transferred.
S
D
S
S
D
D
S
D
S
Step
Instruction
Device
b15 b8b7 b0
D21
D22
D20
b15 b8b7 b0
D11
D12
D10
4D
H
(M) 2A
H
( * )
45
H
(E)45
H
(E)
00
H
4D
H
(M) 2A
H
( * )
45
H
(E)45
H
(E)
00
H
Step
Instruction
Device