Chapter 16 PLC Function ApplicationsMH300
ECMP
Compare binary floating point numbers
-
-
DECMP
Continuous
execution type
DECMPP
Flag signal: none
*
*
*
*
*
*
*
*
*
The operand D occupies three consecutive points.
Refer to the
function specifications table for each device in series for the scope
of device usage.
1
: Binary floating point number 1. S
2
: Binary floating point number 2. D: Results
of comparison, occupies three consecutive points.
Compares binary floating point number 1 with binary floating point number 2, and
stores the result of comparison (>, =, <) in D.
If the source operand S
1
or S
2
designates a constant K or H, the command
converts the constant to a binary floating point number for the purpose of
comparison.
When the designated device is M10, it automatically occupies M10–M12.
When X0=ON, the DECMP command executes, and one of M10–M12 is ON.
When X0=OFF, the DECMP command does not execute, and M10–M12 remains
in the X0=OFF state.
For ≥, ≤, or ≠ comparison, use series and parallel connections for M10–M12.
Use the RST or ZRST command to clear the result.