Mitsubishi FX3G Series Programming Manual page 242

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DCMP and DCMPP)
The comparison value [
According to the result (smaller, equal or larger), either
• The source data [
• Comparison is executed algebraically. Example: −125400 < 22466
Command
input
D
D
D
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
240
Series
S
+1,
S
] and the comparison source [
1
1
S
+1,
S
] [
S
1
1
2
FNC 10
S
S
1
2
DCMP
Turns ON in the case of
>
" [
+1,
]
[ S
S
S
1
1
Turns ON in the case of
+1
+1,
]
[ S
" [
S
S
=
1
1
Turns ON in the case of
+2
<
" [
+1,
]
[ S
S
S
1
1
D
, three devices are occupied. Make sure not to use those devices in another control.
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
S
2
,
+1 or
D
D
+1,
S
] are handled as binary values.
2
Command
input
D
+1,
S
2
+1,
] ".
S
2
2
D
+1,
] ".
S
2
2
+1,
D
] ".
+1,
S
2
2
+2,
D
D
X000
M 0
C20
M0
M1
M2
M0 to M2 are reset.
9 Move and Compare – FNC 10 to FNC 19
9.1 FNC 10 – CMP / Compare
+1,
S
] are compared with each other.
2
+2 turns ON.
D
50
49
S
S
48
2
Latched
Latched
,
+1 and
D
D
D
100
99
Latched
Latched
in the
in the
ON
ON
status.
status.
51
+1,
S
1
1
Latched
+2 latch
101
Latched
in the
ON
status.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents