Example of an ORB instruction
In this example output Y17 is switched on if input X00 is “1” and input X01 is “0”, or if relay M2 is
“0” and relay M10 is “1”.
MELSEC System Q Beginners Manual 4 – 21
An Introduction to Programming The Basic Instruction Set
LD X0
ANI X1
LD M2
AND M10
ORB
OUT Y17
MELSEC Instruction List
Ladder Diagram
ORB instruction
1
st
serial connection (AND operation)
2
nd
serial connection (AND operation)
ORB instruction connecting both AND operations
LD X0
ANDN X1
OR(
M2
AND M10
)
ST Y17
IEC Instruction List
1
st
serial connection (AND operation)
2
nd
serial connection (AND operation)
ORB instruction connecting both AND operations