Chapter 16 PLC Function ApplicationsC2000
16-43
Command Function
ANI
Connect contact b in series
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
The ANI command is used to create a series connection to contact b; its function is to first read
current status of the designated series contact and logical operation results before contact in
order to perform "AND" operation; saves results in cumulative register.
Ladder diagram:
X0
X1
Y1
Command code: Description:
LD X1
Load Contact a of X1
ANI X0
Create series connection
to contact b of X0
OUT Y1
Drive Y1 coil
Command Function
OR
Connect contact a in parallel
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
The OR command is used to establish a parallel connection to contact a; its function is to first
read current status of the designated series contact and logical operation results before
contact in order to perform "OR" operation; saves results in cumulative register.
Ladder diagram:
X0
X1
Y1
Command code: Description:
LD X0
Load Contact a of X0
OR X1
Create series connection
to contact a of X1
OUT Y1
Drive Y1 coil
Command Function
ORI
Connect contact b in parallel
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
The ORI command is used to establish a parallel connection to contact a; its function is to first
read current status of the designated series contact and logical operation results before
contact in order to perform "OR" operation; saves results in cumulative register.
Ladder diagram:
X0
X1
Y1
Command code: Description:
LD X0
Load Contact a of X0
ORI X1
Create series connection
to contact b of X1
OUT Y1
Drive Y1 coil
Command Function
ANB
Series circuit block
Operand N/A
NB performs an "AND" operation on the previously saved logic results and the current
cumulative register content.
Ladder diagram:
X1
X3
Y1
X0
X2
ANB
Block A
Block B
Command code: Description:
LD X0
Load Contact a of X0
ORI X2
Establish parallel
connection to contact b of
X2
LDI X1
Load Contact b of X1
OR X3
Establish parallel
connection to contact a of
X3
ANB
Series circuit block
OUT Y1
Drive Y1 coil