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