Example of an OR instruction
In the example output Y10 is switched on when either input X0 or input X1 is on:
Example of an ORI instruction
In the example output Y10 is switched on when either input X0 is on or input X1 is off:
MELSEC System Q Beginners Manual 4 – 19
An Introduction to Programming The Basic Instruction Set
LD X0
OR X1
OUT Y10
Ladder Diagram
OR instruction
MELSEC Instruction List
IEC Instruction List
LD X0
OR X1
ST Y10
Y10
X0
t
X1
OFF
ON
OFF
ON
(0)
(1)
(0)
(1)
OFF
ON
(0)
(1)
LD X0
ORI X1
OUT Y10
MELSEC Instruction List
Ladder Diagram
ORI instruction
IEC Instruction List
LD X0
ORN X1
ST Y10
Y10
X0
t
X1
OFF
ON
OFF
ON
(0)
(1)
(0)
(1)
OFF
ON
(0)
(1)