
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 "00H" code is being stored at lower bytes of +n, "00H" 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,
"00H" is automatically stored.
b15 b8b7 b0
+1
+2
b15 b8b7 b0
+1
+2
42H(B)41H(A)
43H(C)
00H
44H(D)
45H(E)
42H(B)41H(A)
43H(C)
00H
44H(D)
00H
Upper byte is not transferred.
SD
S
S
D
D
S
D
S
Step Instruction Device
b15 b8b7 b0
D21
D22
D20
b15 b8b7 b0
D11
D12
D10 4DH(M)2AH( * )
45H(E)45H(E)
00H
4DH(M)2AH( * )
45H(E)45H(E)
00H
Step Instruction Device