Fnc 14 - Cml / Complement - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents