And And Andn (And Not); Or And Orn (Or Not) - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

7: B
I
ASIC
NSTRUCTIONS
AND
and ANDN (And Not)
The AND instruction is used for programming a NO contact in series. The ANDN instruction is used for programming a
NC contact in series. The AND or ANDN instruction is entered after the first set of contacts.
Ladder Diagram
I0
I1
Q0
I0
I1
Q1
When both inputs I0 and I1 are on, output Q0 is on. When either input I0 or I1 is off, output Q0 is off.
When input I0 is on and input I1 is off, output Q1 is on. When either input I0 is off or input I1 is on, output Q1 is off.
Valid Operands
Instruction
I
AND
0-307
ANDN
The valid operand range depends on the CPU module type. For details, see pages 6-1 and 6-2.
OR
and ORN (Or Not)
The OR instruction is used for programming a NO contact in parallel. The ORN instruction is used for programming a NC
contact in parallel. The OR or ORN instruction is entered after the first set of contacts.
Ladder Diagram
I0
Q0
I1
I0
Q1
I1
When either input I0 or I1 is on, output Q0 is on. When both inputs I0 and I1 are off, output Q0 is off.
When either input I0 is on or input I1 is off, output Q1 is on. When input I0 is off and input I1 is on, output Q1 is off.
Valid Operands
Instruction
I
OR
0-307
ORN
The valid operand range depends on the CPU module type. For details, see pages 6-1 and 6-2.
7-4
Program List
Instruction
LOD
AND
OUT
LOD
ANDN
OUT
Q
M
0-1277
0-307
0-99
8000-8157
Program List
Instruction
LOD
OR
OUT
LOD
ORN
OUT
Q
M
0-1277
0-307
0-99
8000-8157
« FC4A M
Data
I0
I1
Q0
I0
I1
Q1
T
C
R
0-99
0-127
Data
I0
I1
Q0
I0
I1
Q1
T
C
R
0-99
0-127
S
U
'
M
ICRO
MART
SER
S
ANUAL
Timing Chart
ON
I0
OFF
ON
I1
OFF
ON
Q0
OFF
ON
Q1
OFF
Timing Chart
ON
I0
OFF
ON
I1
OFF
ON
Q0
OFF
ON
Q1
OFF
»

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents