Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
28 Applied Instructions (Data Comparison)
28.3 OR=, >, <, < >, <=, >= / Data Comparison
677
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
Function and operation explanation
These data comparison instructions are connected to other contacts in parallel.
The contents of the device specified by is compared with the contents of the device specified by in
binary format, and a contact becomes conductive (ON) or non-conductive (OFF) depending on the
comparison result.
Cautions
1) Negative values
When the most significant bit is "1" in the data stored in the device specified by or , it is
regarded as a negative value in comparison.
a) In the 16-bit operation: bit 15
b) In the 32-bit operation: bit 31
2) When using 32-bit counters (including 32-bit high speed counters)
Be sure to execute the 32-bit operation (such as ORD=, ORD> and ORD<) when comparing 32-bit
counters.
If a 32-bit counter is specified in the 16-bit operation (such as OR=, OR> and OR<), a program error or
operation error will occur.
3) Some restrictions to applicable devices
S1: The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S2: The FX
3U and FX3UC PLCs only are applicable.
4) The OR compare instruction is not available in ST.
Program examples
16-bit instruction 32-bit instruction ON condition OFF condition
OR= ORD=
=
OR> ORD>
>
OR< ORD<
<
OR<> OR<>
=
OR<= ORD<=
>
OR>= ORD>=
<
Y000
X001
M60
M30X002
When X001 turns ON or when the current value of
the counter C10 is "200", Y000 is driven.
When X002 and M30 turn ON or when the contents of
the data registers D101 and D100 are more than
"K100,000", M60 is driven.
OR=
EN
s1
s2
ENO
K200
ORD=
EN
s1
s2
ENO
C10
D100
K100000
[Structured ladder/FBD]