84
4
4 Instructions4.3.1 Contact Comparison
Contact
comparison
LDZ>
Enabled when absolute value > comparative state
contact |S1 – S2| > |S3|
These instructions use three
operands: S1, S2, and S3.
The result of subtracting
S2 from S1 is compared
with the absolute value in
S3. The comparison result
determines whether to set a
contact to ON or OFF. These
instructions contain 16 or 32
bits and do not support pulse
operation.
LDZ>=
Enabled when absolute value >= comparative state
contact |S1 – S2| ≥ |S3|
LDZ<
Enabled when absolute value < comparative state
contact |S1 – S2| < |S3|
LDZ<=
Enabled when absolute value <= comparative state
contact |S1 – S2| ≤ |S3|
LDZ=
Enabled when absolute value = comparative state
contact |S1 – S2| = |S3|
LDZ<>
Enabled when absolute value <> comparative state
contact |S1 – S2| ≠ |S3|
ANDZ>
Enabled when absolute value > comparative AND state
contact |S1 – S2| > |S3|
ANDZ>=
Enabled when absolute value >= comparative AND
state contact |S1 – S2| ≥ |S3|
ANDZ<
Enabled when absolute value < comparative AND state
contact |S1 – S2| < |S3|
ANDZ<=
Enabled when absolute value <= comparative AND
state contact |S1 – S2| ≤ |S3|
ANDZ=
Enabled when absolute value = comparative AND state
contact |S1 – S2| = |S3|
ANDZ<>
Enabled when absolute value <> comparative AND
state contact |S1 – S2| ≠ |S3|
ORZ>
Enabled when absolute value > comparative OR state
contact |S1 – S2| > |S3|
ORZ>=
Enabled when absolute value >= comparative OR state
contact |S1 – S2| ≥ |S3|
ORZ<
Enabled when absolute value < comparative OR state
contact |S1 – S2| < |S3|
ORZ<=
Enabled when absolute value <= comparative OR state
contact |S1 – S2| ≤ |S3|
ORZ=
Enabled when absolute value = comparative OR state
contact |S1 – S2| = |S3|
ORZ<>
Enabled when absolute value <> comparative OR state
contact |S1 – S2| ≠ |S3|
LD
☼
: Contact comparison
◆
Overview
The LD☼ instruction compares two operands and outputs the comparison result as a logical state. The
variables in comparison are processed as signed numbers.
LD
☼
S1 S2
Contact data
comparison
Applicable model:
H3U
S1 Comparand 1 Data source to be compared or data variable unit 1
16-bit instruction
(5 steps)
LD=: Continuous
execution
32-bit instruction
(9 steps)
LDD=:
Continuous
execution
S2 Comparand 2 Data source to be compared or data variable unit 2
Note: The
☼
comparison operator can be =, >, <, <>, >=, or <=.