Chapter 16 PLC Function Applications│CP2000
16-44
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 b; 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 previous 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
Command Function
ORB
Parallel circuit block
Operand N/A
ORB performs an "OR" operation on the previous saved logic results and the current
cumulative register content.
Ladder diagram:
X1
X3
Y1
X0
X2
ORB
Block A
Block B
Command code: Description:
LD X0 Load Contact a of X0
ANI X1
Establish parallel
connection to contact b
of X1
LDI X2 Load Contact b of X2
AND X3
Establish parallel
connection to contact a
of X3
ORB
Parallel circuit block
OUT Y1 Drive Y1 coil