API
DEZCP
111
D
P
Bit Devices
X
M
Y
K
S1
*
S2
*
S
*
D
*
Operands:
DOperands occupy three continuous points
Please refer to the specification of each model series
for applicable range of the device.
:The lower limit of a binary floating poiont number of a zone comparison. S
S
Explanation
1
The upper limit of a binary floating point number of a zone comparison. D:
Comparison result,.three continuous points are occupied.
:Binary floating point number comparison value. Compare S to the S
S
1
floating point number lower limit and to the S
limit. Show the comparison result at D.
If the source operands of S
change those constants to binary floating point numbers to make comparison.
When the binary floaring point number lower limit S
floating point number upper limit S
point number lower limit S
When assgined device is M0, then M10~M12 are automatically occupied.
Example
When X0 = On, DCMP execute a command, One of M10 ~ M12 will be On. But
when X0 = Off, DECMP doen't execute any command, M10 ~ M12 remains the
same status as before X0 = Off.
Use the RST or ZRST command to clean the results
X0
Word Devices
H
KnX KnY KnM
T
*
*
*
*
1
DEZCP
M0
When (D1D0) > (D21D20) , M0 = On
M1
When (D1D0)
M2
When (D21, D20) > (D11D10), M2= On
Chapter 16 PLC Function C2000 Series
Floating Point Zone Compare
16-bit command (5 STEPS)
C
D
-
*
*
32-bit command
*
DEZCP
*
Flag signal: none
binary floating point number upper
2
or S
are assigned constants K or H, a command will
1
2
Then a command uses the binary floating
2.
as upper/lower limit to make comparison.
D0
D10
D20
≤
≤
(D21D20)
16-72
-
-
DEZCPP
is bigger than the binary
1
M0
(D11D10), M1= On
-
:
2
binary
1