Mitsubishi Electric MELSEC FX3U Programming Manual page 267

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
2. 32-bit operation (DCML and DCMLP)
Each bit of devices specified as [
to [
+1,
D
D
• 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
DCML
b31
1
S
Sign bit (0: Positive, 1: Negative)
0
D
Program examples
1. When receiving an inverted input
The sequence program shown below can be written by CML instruction.
X000
X001
X002
X003
2. When four bits are specified for a device with digit specification
X000
FNC 14
CML
Y015 b14
1
S
D 0
Sign bit (0: Positive, 1: Negative)
D
Y017
Y016 Y015 Y014 Y013 Y012 Y011 Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001 Y000
K1Y000
+1,
S
].
S
S
D
b30
b29
b28
b27
b26
0
1
0
1
0
1
0
1
0
1
M 0
M 1
M 2
M 3
M8000
FNC 14
CML
RUN monitor
S
D
(D 0) → (K1Y000)
D 0
K1Y000
b13
b12
b11
b11
0
1
0
1
0
Do not change.
9 Move and Compare – FNC 10 to FNC 19
] is inverted (from 0 to 1 or from 1 to 0), and then transferred
S
+1,
], it is automatically converted into binary.
S
S
+1,
S
D
+1,
b25
to
b7
b6
n5
1
0
0
1
When command contact turns ON
0
1
1
0
Inverted data is transferred.
X000
X001
X002
X003
K1X000
K1M0
b9
b8
b7
b6
n5
1
0
1
0
1
9.5 FNC 14 – CML / Complement
D
b4
b3
b2
b1
b0
1
1
0
1
0
0
0
1
0
1
M 0
M 1
M 2
M 3
b4
b3
b2
b1
b0
0
1
0
1
0
X000 = ON
0
1
0
1
Inverted data is
transferred.
1
2
3
4
5
6
7
8
9
10
265

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents