■
Outline of operation
Compares signed data specified in [S1] with signed data specified in [S2].
Connects in serial as a contact connected when the comparison result is in the specified state
(such as =, <, or >).
■
Comparison result and operation
Relationship between [S1] and [S2] [S1] < [S2] [S1] = [S2] [S1] > [S2]
Comparison instruction AN= OFF ON OFF
AN<> ON OFF ON
AN> OFF OFF ON
AN>= OFF ON ON
AN< ON OFF OFF
AN<= ON ON OFF
(Note 1) ● "< >" represents "≠".
● ">=" represents "≥".
● "<=" represents "≤".
■
Operation Example
Program operation of "AN >=" in the ladder diagram
When external output X100 turns ON, the value of DT0 and K70 are compared, and if DT0 is
greater than K70, the external output Y130 turns ON.
70
DT0
40
10
X100
Y130
ON
OFF
ON
OFF
■
Precautions for use
● The "AN=", "AN<>", "AN>", "AN>=", "AN<" and "AN<=" instructions can be used in series.
● Since BCD data is assumed to be a negative value during comparison if the most significant
bit is 1, the comparison result may become incorrect. In such a case, use the BIN instruction
to convert the data into binary before comparison.
3.47 AN=, AN<>, AN>, AN>=, AN<, AN<= (Data Comparison: AND)
WUME-FP7CPUPGR-12 3-137