228
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
9.5
FNC 14 – CML / Complement
Outline
This instruction inverts data in units of bit, and then transfers (copies) the inverted data.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (CML and CMLP)
Each bit of a device specified as
is inverted (from 0 to 1 or from 1 to 0), and then transferred to
.
• When a constant (K) is specified as
, it is automatically converted into binary.
• This operation is useful when a logically inverted output is required as an output from a PLC.
Operand Type
Description
Data Type
Data to be inverted or word device number storing data
16- or 32-bit binary
Word device number storing inverted data
16- or 32-bit binary
Oper-
and
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS
T
C
D
R U
\G
V
Z Modify K
H
E
"
"
P
3
3
3
3
3 3 3 3
3
3 3
3
3 3
3
3
3
3 3 3 3
3
3 3
3
DCML
DCMLP
Mnemonic
Operation Condition
P
FNC 14
CML
D
16-bit Instruction
5 steps
CML
CMLP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
9 steps
Continuous
Operation
Pulse (Single)
Operation
S
D
S
D
S
D
S
FNC 14
CML
→
Sign bit (0: Positive, 1: Negative)
0
1
0
1
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
0
0
1
0
1
Inverted data is transferred.
When command contact turns ON
b15
b14
b13
b12
b11
b11
b9
b8
b7
b6
n5
b4
b3
b2
b1
b0
S
D
Command
input
S
D
S
D