Chapter 16 PLC Function ApplicationsC2000-HS
16-44
Command Function
ORB
Parallel circuit block
Operand N/A
ORB performs an "OR" operation on the previously 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
Command Function
MPS
Save to stack
Operand N/A
Save current content of cumulative register to the stack. (Add one to stack pointer)
Command Function
MRD
Read stack (pointer does not change)
Operand N/A
Reads stack content and saves to cumulative register. (Stack pointer does not
change)
Command Function
MPP
Read stack
Operand N/A
Retrieves result of previously-save logical operation from the stack, and saves to
cumulative register. (Subtract one from stack pointer)
Ladder diagram:
X0
Y1
X1
M0
X2
Y2
END
MPP
MRD
MPS
Command code: Description:
LD X0
Load Contact a of X0
MPS
Save to stack
AND X1
Create series
connection to contact a
of X1
OUT Y1
Drive Y1 coil
MRD
Read stack (pointer
does not change)
AND X2
Create series
connection to contact a
of X2
OUT M0
Drive M0 coil
MPP
Read stack
OUT Y2
Drive Y2 coil
END
Program conclusion