181
Outline Compares one 16-bit data with another.
Program example
■ Operands
■ Explanation of example
• Compares decimal constant K100 with the contents of data register DT0 when trigger X0 turns ON.
The compared result is stored in special internal relays R900A, R900B, and R900C.
When DT0 > K100, R900A turns ON and internal relay R0 turns ON.
When DT0 = K100, R900B turns ON and internal relay R1 turns ON.
When DT0 < K100, R900C turns ON and internal relay R2 turns ON.
In this program example, the comparison will be performed only when X0 turns ON.
6-3. Description of High-level Instructions
S1
S2
16-bit equivalent constant or 16-bit area to be compared
16-bit equivalent constant or 16-bit area to be compared
Ladder Diagram
Boolean Non-ladder
Address Instruction