Fnc 14 - Cml / Complement - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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
P
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
Mnemonic
16-bit Instruction
CML
5 steps
CMLP
Data to be inverted or word device number storing data
Word device number storing inverted data
Digit Specification
/FX
3U
3UC
is inverted (from 0 to 1 or from 1 to 0), and then transferred to
S
S
, it is automatically converted into binary.
S
D
S
b13
b12
b11
b11
0
1
0
1
0
1
0
1
0
1
Inverted data is transferred.
9 Move and Compare – FNC 10 to FNC 19
Operation Condition
32-bit Instruction
Continuous
9 steps
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
V
PLCs.
D
b9
b8
b7
b6
n5
1
0
0
0
1
When command contact turns ON
0
1
1
1
0
9.5 FNC 14 – CML / Complement
Mnemonic
Operation Condition
DCML
Continuous
Operation
DCMLP
Pulse (Single)
Operation
Data Type
16- or 32-bit binary
16- or 32-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z Modify K H
E
" "
D
b4
b3
b2
b1
b0
1
1
0
1
0
0
0
1
0
1
1
2
3
4
Pointer
P
5
6
.
7
8
9
10
253

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents