Or Operations - Mitsubishi MELSEC System Q Manual

Hide thumbs Also See for MELSEC System Q:
Table of Contents

Advertisement

The Basic Instruction Set
Example of an ANI instruction
Ladder Diagram
In the example output Y10 is only switched on when input X0 is on and input X1 is off:
4.7.5

OR operations

Instruction
OR
ORI
An OR operation is logically the same as the
parallel connection of multiple switches in an
electrical circuit. As soon as any of the
switches is closed current will flow. Current will
only stop flowing when all the switches are
open.
4 – 18
ANI instruction
ON
(1)
X0
OFF
(0)
ON
(1)
X1
OFF
(0)
ON
(1)
Y10
(0)
OFF
Function
Logical OR (OR operation with poll for
signal state "1" or ON)
Logical OR NOT (OR operation with poll
for signal state "0" or OFF)
An Introduction to Programming
MELSEC Instruction List
LD
X0
ANI
X1
OUT
Y10
IEC Instruction List
LD
X0
ANDN
X1
ST
Y10
t
Ladder Diagram
IEC Instruction List
MITSUBISHI ELECTRIC
OR
ORN

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents