8 Applied Instructions (Move and Compare)
8.4 SMOV / Shift Move
145
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied Instructions
(Program Flow)
8
Applied Instructions
(Move and
Compare)
9
Applied Instructions
(Arithmetic and
Logical Operation)
10
Applied Instructions
(Rotation and
Shift Operation)
Program examples
The data on three-digit digital switches are composed, and stored as binary data to D2.
(X020 to X027)2-digit BCD
D 2(Binary)
(X000 to X003)1-digit BCD
D 1(Binary)
Data on three digital switches connected
to non-consecutive input terminals are
composed.
PLC
X003 to X000 X027 to X020
81 81
81
657
10
2
10
1
10
0
1-digit BCD data of D1 is
transferred to the 3rd digit
(BCD data) of D2, and
automatically converted
into binary data.
BIN
EN
s
ENO
d
BIN
EN
s
ENO
d
M8000
SMOV
EN
s
m1
ENO
d
m2
n
D1 D2
K1
K1
K3
D2
D1
K2X020
K1X000
[Structured ladder/FBD]
[ ST ]
BIN(M8000, K2X020, D2);
BIN(M8000, K1X000, D1);
SMOV(M8000, D1, K1, K1, K3, D2);