3. Instruction Set
API
Mnemonic Operands Function
SS2
SX2
15 BMOV P
Block Move
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
BMOV, BMOVP: 7 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S: Start of source devices D: Start of destination devices n: Number of data to be moved
Explanations:
1. The program copies a specified block of devices to another destination. Contents in n
registers starting from S will be moved to n registers starting from D. If n exceeds the actual
number of available source devices, only the devices that fall within the valid range will be
used
2. Range of n: 1 ~ 512.
Program example 1:
When X20 = ON, the contents in registers D0 ~ D3 will be moved to the 4 registers D20 ~ D23
X20
D20 K4
D0
D1
D2
D3
D20
D21
D22
D23
n=4
D0BMOV
Program example 2:
Assume the bit devices KnX, KnY, KnM and KnS are designated for moving, the number of digits
of S and D has to be the same, i.e. their n has to be the same.
M1000
K1M0 K1Y0
K3
M0
M1
M2
M3
M4
M5
M6
M7
M8
M9
M10
n=3
M11
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
Y10
Y11
Y12
Y13
BMOV