316
6 BASIC INSTRUCTIONS
6.6 Data Transfer Instructions
Transferring n-bit data
BLKMOVB(P)
These instructions block transfer the bit data of (n) point(s) from the device specified by (s) to the bit data of (n) point(s) from
(d).
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
• These instructions block transfer the bit data of (n) point(s) from the device specified by (s) to the bit data of (n) point(s)
from the device specified by (d).
• Data can be transferred even when the device range of the transfer-source device and transfer-destination device is
overlapping.
Ladder diagram Structured text
ENO:=BLKMOVB(EN,s,n,d);
ENO:=BLKMOVBP(EN,s,n,d);
Operand Description Range Data type Data type (label)
(s) Head device for storing the transfer-source bit data Bit ANY_BOOL
(d) Head device for storing the transfer-destination bit data Bit ANY_BOOL
(n) Number of transfers 0 to 65535 16-bit unsigned binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s)
*1
(d)
*1
(n)
Error code
(SD0/SD8067)
Description
2820 The range of (n) point(s) of data starting from the device specified by (s) and (d) exceed the corresponding device range.
1 0 1
1 0 1
1
1
(n)
(n)
(s+n-1) (s+2) (s+1) (s)
(d+n-1) (d+2) (d+1) (d)