M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.4 Data Transfer Instructions
Processing will be performed without error even in cases where the range for the devices storing the character string data
to be transferred ((S) to (S+n)) overlaps with the range of the devices which will store the character string data after it has
been transferred ((D) to (D+n)). The following occurs when the character string that had been stored from (D10) to (D13) is
transferred to (D11) to (D14).
b15
b8b7
b0
D10
32H(2)
31H(1)
D11
33H(3)
34H(4)
D12
36H(6)
35H(5)
D13
00H
D14
If the NULL code "00H" is stored at the lower bytes of (S+n), the NULL code "00H" will be stored at both the upper bytes
and the lower bytes of (D+n).
b15
b8b7
b0
S
42H(B)
41H(A)
S+1
44H(D)
43H(C)
S+2
00H
45H(E)
b15
Upper byte is not
transferred.
When 2-byte data such as Japanese characters (Kanji) is designated by (S), the data is converted to shift JIS code. If the
$MOV instruction is executed, the upper bytes and lower bytes are stored in (D) in the opposite order.
For the operation when the character string enclosed in double quotes is specified by (S), refer to "6.3.5 Character String
Data".
Operation errors
In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- The NULL code "00H" does not exist in the relevant device range starting from the device number designated by (S).
(Error code: 82)
- There are not enough points from the device number designated by (D) to the last device number of the relevant device
to store the designated character string. (Error code: 82)
- The character string of S is longer than 255 characters. (Error code: 82)
b15
b8b7
b0
...Character string
D10
32H(2)
31H(1)
before transfer
remains.
D11
32H(2)
31H(1)
D12
34H(4)
33H(3)
D13
36H(6) 35H(5)
00H
D14
b15
b8b7
b0
42H(B)
41H(A)
D
D+1
44H(D)
43H(C)
00H
00H
D+2
At the upper byte position,
"00H" is automatically
stored.
249
IB-1501667-B