Chapter 16 PLC Function ApplicationsMH300
Connect contact B in series
Operand
-
Use the ANI command to create a series connection to contact B; its function is to first
read the current status of the designated series contact and the
results before contact in order to perform “AND” operation; saves the results in
LD X1 Load Contact A of X1
ANI X0
Create a series
connection to contact B
of X0
OUT Y1 Drive Y1 coil
Connect contact A in parallel
Operand
-
Use the OR command to establish a parallel connection to contact A; its function is to
first read the current status of the designated series contact and the
results before contact in order to perform “OR” operation; saves the
results in
cumulative register.
LD X0 Load Contact A of X0
OR X1
Create a series
connection to contact A
of X1
OUT Y1 Drive Y1 coil
Connect contact B in parallel
Operand
-
Use the ORI command to establish a parallel connection to contact B; its function is to
first read the current status of the designated series contact and the
results before contact in order to perform “OR” operation; saves the
results in
cumulative register.
LD X0 Load Contact A of X0
ORI X1
Create a series
connection to contact B
of X1
OUT Y1 Drive Y1 coil