And Operations - Mitsubishi Electric FX2N Beginners Manual

Hide thumbs Also See for FX2N:
Table of Contents

Advertisement

An Introduction to Programming
3.4.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 3.4.1).
Example of an AND instruction
Ladder Diagram
X000
0
In the example output Y0 is only switched on when inputs X0 and X1 are both on:
FX 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
X001
Y000
ON
(1)
X0
OFF
(0)
ON
(1)
X1
OFF
(0)
ON
(1)
Y0
(0)
OFF
The Basic Instruction Set
Symbol
GX Works2 FX
Instruction List
0
LD
X000
1
AND
X001
2
OUT
Y000
t
F5
F6
3 – 9

Advertisement

Table of Contents
loading

Table of Contents