Mitsubishi Electric MELSEC FX3U Programming Manual page 257

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 (DCMP and DCMPP)
The comparison value [
other. According to the result (smaller, equal or larger), either one among
• The source data [
• Comparison is executed algebraically. Example: −125400 < 22466
Command
input
FNC 10
DCMP
D
D
+1
D
+2
Even if the command input turns OFF and DCMP instruction is not executed,
the status just before the command input turns OFF from ON.
Caution
1. Number of occupied devices
From the device specified as
Program examples
1. When comparing the current value of a counter
X000
M 0
M 1
M 2
If it is necessary to clear the comparison result when the instruction is not executed, add the following
contents under the above program.
1) RST instruction
X000
2) ZRST instruction
X000
+1,
] and the comparison source [
S
S
1
1
+1,
] [
S
S
S
1
1
2
S
S
1
2
Turns ON in the case of
" [
+1,
]
>
[ S
S
S
1
1
2
Turns ON in the case of
" [
+1,
]
[ S
=
S
S
1
1
2
Turns ON in the case of
" [
<
+1,
]
[ S
S
S
1
1
2
, three devices are occupied. Make sure not to use those devices in another control.
D
S
S
1
2
FNC 10
K100
C 20
CMP
Turns ON in the case of
"K100 > C20 (Current value)" .
Turns ON in the case of
"K100 = C20 (Current value)" .
Turns ON in the case of
"K100 < C20 (Current value)" .
RST
M0
RST
M1
RST
M2
FNC 40
M0
M2
ZRST
9 Move and Compare – FNC 10 to FNC 19
S
2
+1,
] are handled as binary values.
S
2
Command
input
D
+1,
S
S
2
2
+1,
] ".
S
2
D
+1,
] ".
S
2
+1,
D
] ".
+1,
S
2
+2,
D
D
X000
M 0
C20
M0
M1
M2
M0 to M2 are reset.
9.1 FNC 10 – CMP / Compare
+1,
] are compared with each
S
2
,
+1 and
+2 turns ON.
D
D
D
50
49
+1,
S
1
48
Latched
Latched
,
+1 and
+2 latch
D
D
D
101
100
99
Latched
Latched
Latched
in the
in the
in the
ON
ON
ON
status.
status.
status.
1
2
51
S
1
3
4
Latched
5
6
7
8
9
10
255

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents