And: and anb: and bar – KEYENCE Visual KV Series User Manual
Page 82

2.4 Instruction Details
3-58
2
Chapter 2 Instructions
AND: And
ANB: And Bar
Connects N.O. contact in series with
previous contact.
Connects N.C. contact in series with
previous contact.
AND
8
ANB
5
nnnn
nnnn
Example
Coding
To turn ON 0503, 0002 must be ON, 0003 OFF, and 0004 ON at the same time. The
AND and ANB instructions are used when two or more conditions (in this case,
0002: ON, 0003: OFF, 0004: ON) must be satisfied at the same time.
Description
•
As many contacts as desired can be connected in series provided these contacts
are used in the same program.
•
As OUT 0503 shown in the above example, when an AND or ANB instruction is
used immediately after an OUT instruction to connect the other relay via a
contact (0004 in the example), the AND or ANB can be used as many times as
desired, provided the program syntax is correct.
•
The following two circuits operate in the same manner, but the coding for these
circuits are different.
Coding
Coding
0000
0500
0002
0001
0004
0003
0501
0502
0503
Line No.
Instruction
Operand
0000
LD
0000
0001
AND
0001
0002
OUT
0500
0003
LD
0002
0004
ANB
0003
0005
OUT
0501
0006
OUT
0502
0007
AND
0004
0008
OUT
0503
0000
0001
0501
0500
Line No.
Instruction
Operand
0000
LD
0000
0001
OUT
0500
0002
AND
0001
0003
OUT
0501
Line No.
Instruction
Operand
0000
LD
0000
0001
MPS
0002
AND
0001
0003
OUT
0501
0004
MPP
0005
OUT
0500
0000
0001
0501
0500
:
:
AND / ANB
➮ "MPS instruction" (p. 3-103)
➮ "MPP instruction" (p. 3-103)
KVNKA Chap 02_4aP.p65
08.3.11, 11:57 AM
58