Chapter 16 PLC Function ApplicationsC2000-HS
16-79
API
EZCP
Comparison of binary floating point number range
111
D P
Bit device Word device
16-bit command
- - - -
32-bit command (17 STEP)
DEZCP Continuous
execution type
DEZCP
P
Pulse
execution type
Flag signal: none
X Y M K H KnX KnY KnM T C D
S1 * * *
S2 * * *
S * * *
D * *
Notes on operand usage:
The operand D occupies three consecutive points
Please refer to the function specifications table for each device in
series for the scope of device usage
S
1
: Lower limit of binary floating point number in range comparison. S
2
: Upper
limit of binary floating point number in range comparison. S: Comparison of
binary floating point numerical values. D: Results of comparison, occupies 3
consecutive points.
Comparison of binary floating point numerical value S with binary floating point
number lower limit value S
1
and binary floating point number upper limit value S
2
;
the results of comparison are expressed in D.
If the source operand S
1
or S
2
designates a constant K or H, the command will
transform the constant to a binary floating-point number for the purpose of
comparison.
When the lower limit binary floating point number S
1
is greater than the upper
limit binary floating point number S
2
, a command will be issued to perform
comparison with the upper and lower limits using the binary floating point number
lower limit value S
1
.
When the designated device is M0, it will automatically occupy M0–M2.
When X0=On, the DEZCP command will be executed, and one of M0–M2 will be
On. When X0=Off, the EZCP command will not execute, and M0–M2 will
continue in the X0=Off state.
Please use the RST or ZRST command to clear the result.