7 Applied Instructions
7.22 Data Comparison
692
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
7.22.3 OR=, OR>, OR<, OR<>, OR<=, OR>=
Outline
These instructions compare numeric values, and set a contact to ON when the condition agrees.
1. Format and operation, execution form
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder ST
OR= 16 bits Continuous OR=(EN,s1,s2);
OR> 16 bits Continuous OR>(EN,s1,s2);
OR< 16 bits Continuous OR<(EN,s1,s2);
OR<> 16 bits Continuous OR<>(EN,s1,s2);
OR<= 16 bits Continuous OR<=(EN,s1,s2);
OR>= 16 bits Continuous OR>=(EN,s1,s2);
ORD= 32 bits Continuous ORD=(EN,s1,s2);
OR=
EN
s1
s2
ENO
OR>
EN
s1
s2
ENO
OR<
EN
s1
s2
ENO
OR<>
EN
s1
s2
ENO
OR<=
EN
s1
s2
ENO
OR>=
EN
s1
s2
ENO
ORD=
EN
s1
s2
ENO