229
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.5 FNC 14 – CML / Complement
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
2. 32-bit operation (DCML and DCMLP)
Each bit of devices specified as [
+1,
] is inverted (from 0 to 1 or from 1 to 0), and then transferred
to [
+1,
].
• When a constant (K) is specified as [
+1,
], it is automatically converted into binary.
• This operation is useful when a logically inverted output is required as an output from a PLC.
Program examples
1. When receiving an inverted input
The sequence program shown below can be written by CML instruction.
2. When four bits are specified for a device with digit specification
S
S
D
D
S
S
FNC 14
DCML
→
+1,
+1,
0
1
0
1
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
0
1
0
1
b31
b30
b29
b28
b27
b26
b25
to
b7
b6
n5
b4
b3
b2
b1
b0
Sign bit (0: Positive, 1: Negative)
Inverted data is transferred.
When command contact turns ON
S
D
S
S
D
D
S
D
Command
input
FNC 14
CML
K1X000
K1M0
X000
X001
X002
X003
M 0
M 1
M 2
M 3
X000
X001
X002
X003
M 0
M 1
M 2
M 3
M8000
RUN monitor
Y017
Do not change.
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Y016 Y015 Y014 Y013 Y012 Y011 Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001 Y000
Inverted data is
transferred.
X000 = ON
D 0
K1Y000
Y015 b14
b13
b12
b11
b11
b9
b8
b7
b6
n5
b4
b3
b2
b1
b0
Sign bit (0: Positive, 1: Negative)
S
D
X000
FNC 14
CML
D 0
K1Y000
(D 0)
→
(K1Y000)
S
D
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......