
4.LADDER LANGUAGE B-63983EN/02
- 262 -
Control conditions
(a) Specify the data size. (BYT)
BYT = 0: Process data (input value and comparison value) is
BCD two digits long.
BYT = 1: Process data (input value and comparison value) is
BCD four digits long.
(b) Execution command (ACT)
ACT = 0: The COMP instruction is not executed. W1 does not
alter.
ACT = 1: The COMP instruction is executed and the result is
output to W1.
Parameters
(a) Specification of input data format
0: Specifies input data with a constant.
1: Specifies input data with an address
Not specify input data directly, but specify an address storing
input data.
(b) Input data
The input data can be specified as either a constant or the address
storing it. The selection is made by a parameter of format
specification.
(c) Comparison data address
Specifies the address storing the comparison data.
(d) Comparison result output
W1 = 0: Input data > Comparison data
W1 = 1: Input data ≤ Comparison data