3. Instruction Set

3-69

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
Program example 3: The BMOV instruction will operate differently, automatically, to prevent errors when S and D coincide. 1. When S > D, the BMOV instruction is processed in the order 123.
X20
BMOV D20 D19 K3 D19
D20
D21
D20
D21
D22
2
1
3