8 Applied Instructions (Move and Compare)
8.5 CML / Complement
148
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Program examples
1. When receiving an inverted input
The sequence program can be written by CML instruction.
2. When four bits are specified for a device with digit specification
X000
X001
X002
X003
X000
X001
X002
X003
CML
EN
s
ENO
d
M8000
K1X000
K1M0
RUN
monitor
M0
M1
M2
M3
M0
M1
M2
M3
[Structured ladder/FBD]
[ ST ]
CML(M8000, K1X000, K1M0);
Y017
Do not change.
0101010101010101
0 1 0 1
Y016 Y015 Y014 Y013 Y012 Y011 Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001 Y000
X000=ON
D 0
K1Y000
Y015 b14 b13 b12 b11 b11 b9 b8 b7 b6 n5 b4 b3 b2 b1 b0
d
s
CML
EN
s
ENO
d
X000
D0
K1Y000
(D 0) → (K1Y000)
[ ST ]
CML(X000, D0, K1Y000);
[Structured ladder/FBD]
sign bit (0=Positive number 1=Negative number)
Inverted data
is transferred.