FX Series Programmable Controlers Applied Instructions 5
5-136
5.10.2 EZCP (FNC 111)
Operation:
The operation is the same as the ECMP instruction
except that a single data value (S
3)iscomparedto
a data range (S
1 -S2).
S
3 is less than S1 and S2 - bit device D is ON
S
3 is between S1 and S2 - bit device D+1 is ON
S
3 is greater than S2 - bit device D+2 is ON
Mnemonic Function
Operands
Program steps
S
1 S2 S3 D
EZCP
FNC 111
(Floating
Point Zone
Compare)
Compares a float
range with a float
value - results of
<, = and > are
given
K, H - integer value automatically
converted to floating point
D - must be in floating point format
(32 bits).
Note: S
1
must be less than S2
Y, M , S
Note: 3
consecutive
devices are
used.
DEZCP,
DEZCPP:
13 steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
DEZCP
M8000
M50
M51
M52
D50 D60
D100
M50
[ S
1
] [ S
2
] [ S
3
]
[ D ]
D100 < D50,D60
D100 £ D50 £ D60
D100 > D50,D60