98
D320 PLC User's Manual
Comparison Instruction Details
Instruction
Mnemonic
Comparing the Value
Range
=
<>
Bit
>
>=
■
Word
<=
<
A = B (A is equal to B)
A <> B (A is not equal to B)
A > B (A is greater than B)
A >= B (A is greater than or equal to B)
A <= B (A is less than or equal to B)
A < B (A is less than B)
■
Double words
Ladder
A or B: Constant value 0 to 65,535 or a word address (R, L, M, K,
W, PV, SV, SR).
D is displayed when double words are input. When using GPC5 to
program, change the mode to double (Ctrl+T) and then enter the
comparison command.
Description
1. The comparison functions as a contact, whose On/Off state is determined by the result of the
comparison of A and B. If the comparison is true, the state is On.
2. Each comparison instruction can be used with the STR, AND, and OR instructions (GPC will
automatically use the correct instruction).
3. Double word comparison instructions can process up to 32 bits of data (0 to 4,294,295).
Example
Program Expression
Time Chart
A
= B
A
<= B
D X
<> Y
M51
= = K12
M51
<= K12
M51
<= 300
R007.0
R008.0
R0.4
(OUT)
R0.5
(OUT)
R0.6
(OUT)
R7.0
R8.0
M51
K12
R0.4
R0.5
R0.6
100
0
100
400
Summary of Contents for D320 PLC
Page 1: ...D320 PLC User s Manual...
Page 18: ...6 D320 PLC User s Manual...
Page 28: ...16 D320 PLC User s Manual...
Page 34: ...22 D320 PLC User s Manual...
Page 78: ...66 D320 PLC User s Manual...
Page 176: ...164 D320 PLC User s Manual...
Page 210: ...198 D320 PLC User s Manual...
Page 258: ...246 D320 PLC User s Manual...