And Operations - Mitsubishi MELSEC System Q Manual

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

Advertisement

An Introduction to Programming
4.7.4

AND operations

Instruction
AND
ANI
An AND operation is logically the same as a
serial connection of two or more switches in
an electrical circuit. Current will only flow if all
the switches are closed. If one or more of the
switches are open no current flows – the AND
condition is false.
Note that the programming software uses the same icons and function keys for the AND and
ANI instructions as for the LD and LDI instructions. When you program in Ladder Diagram for-
mat the software automatically assigns the correct instructions on the basis of the insertion
position.
When you program in Instruction List format remember that you can't use the AND and ANI
instructions at the beginning of circuit (a program line in ladder diagram format)! Circuits must
begin with an LD or LDI instruction (see Chapter 4.7.1).
Example of an AND instruction
Ladder Diagram
In the example output Y10 is only switched on when inputs X0 and X1 are both on:
MELSEC System Q Beginners Manual
Function
Logical AND (AND operation with poll for
signal state "1" or ON)
Logical AND NOT (AND operation with
poll for signal state "0" or OFF)
AND instruction
ON
(1)
X0
OFF
(0)
ON
(1)
X1
OFF
(0)
ON
(1)
Y10
(0)
OFF
The Basic Instruction Set
Ladder Diagram
IEC Instruction List
MELSEC Instruction List
LD
X0
AND
X1
OUT
Y10
IEC Instruction List
LD
X0
AND
X1
ST
Y10
t
AND
ANDN
4 – 17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents