Chapter 16 PLC Function ApplicationsC2000-HS
16-78
API
ECMP
Comparison of binary floating point numbers
110
D P
Bit device Word device
16-bit command
- - - -
32-bit command (13 STEP)
DECMP Continuous
execution type
DECMP
P
Pulse
execution type
Flag signal: none
X Y M K H KnX KnY KnM T C D
S1 * * *
S2 * * *
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
: Comparison of binary floating point numbers value 1. S
2
: Comparison of
binary floating point numbers value 2. D: Results of comparison, occupies 3
consecutive points.
When binary floating point number 1 is compared with comparative binary
floating point number 2, the result of comparison (>, =, <) will be 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 designated device is M10, it will automatically occupy M10–M12.
When X0=On, the DECMP command executes, and one of M10–M12 will be On.
When X0=Off, the DECMP command will not execute, and M10–M12 will remain
in the X0=Off state.
If results in the form of ≥, ≤, or ≠ are needed, they can be obtained by series and
parallel connection of M10–M12.
Please use the RST or ZRST command to clear the result.