Fnc10 (Cmp): Comparison; Fnc11 (Zcp): Zone Comparison - Mitsubishi FX2N-10GM Hardware / Programming Manual

Melsec-f
Hide thumbs Also See for FX2N-10GM:
Table of Contents

Advertisement

FX Series Positioning Controllers
5.10.7

FNC10 (CMP): Comparison

FNC 10
CMP
COMPARE
Word
devices
Applicable
devices
and basic
format
X20
FNC 10
CMP
M 0
M 1
M 2
5.10.8

FNC11 (ZCP): Zone comparison

FNC 11
ZCP
ZONE
COMPARE
devices
Applicable
devices
and basic
format
X21
FNC 11
ZCP
M 10
M 11
M 12
Comparison
CMP
16-bit operation
7 steps
S1· S2·
K,H
KnX
KnY
Drive
input
FNC 10
S1·
CMP
Comparison
source
K100
D 10
M 0
K100>(D10)
SET
Y0
Y0=ON
K100=(D10)
SET
Y1
Y1=ON
K100<(D10)
SET
Y2
Y2=ON
Zone comparison
16-bit operation
9 steps
S1· S2·
Word
K,H
KnX
KnY
Drive
input
FNC 11
S1·
ZCP
Comparison
source 1
K100
K120
D 11
K100>(D11) if
SET
Y3
Y3=ON
K100≤(D11)≥K120 if
SET
Y4
Y4=ON
K120<(D11) if
SET
Y5
Y5=ON
32-bit operation
11 steps
KnM
D
V,Z
S2·
Comparison
Result
value
output
·
The present value of K100 and D10 are
compared algebraically. (For example, -10 < 2)
·
Three points are assigned for the result output.
This result output remains in the previous status
even when the drive contact (X20) is turned OFF
and the comparison instruction is not executed.
ZCP
32-bit operation
14 steps
KnM
D
V,Z
S2·
Comparison
Comparison
Result
source 2
source 3
output
·
The K100 is compared with the D11. The
M 10
K120 is also compared with the D11.
·
Three points are assigned for the result
output. This result output remains in the
previous status even when the drive contact
(X21) is turned OFF and the comparison
instruction is not executed.
Applicable models
Series name
[D]CMP
FX
FX
Bit
X
devices
The comparison source
S1·
compared, and
operates in
accordance with the comparison result.
occupies three points beginning with
the specified device.
Applicable models
Series name
FX
[D]ZCP
FX
Bit
X
devices
Two comparison sources are
compared algebraically to
S2·
must be larger than
occupies three points.
Program format 5
Remarks
-10GM
2N
-20GM
2N
Y
M
and
are
S2·
Remarks
-10GM
2N
-20GM
2N
Y
M
.
S1·
.
5-52

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx2n-20gm

Table of Contents