Mnemonic
Series connection- A contact
AND
X0~X17
Operand
The AND command is used in the series connection of A contact. The function of the
command is to readout the status of present specific series connection contacts first,
and then to perform the "AND" calculation with the logic calculation result before the
contacts, thereafter, saving the result into the accumulative register.
Ladder diagram:
Example
X1
Mnemonic
Series connection- B contact
ANI
X0~X17
Operand
The ANI command is used in the series connection of B contact. The function of the
command is to readout the status of present specific series connection contacts first,
and then to perform the "AND" calculation with the logic calculation result before the
contacts, thereafter, saving the result into the accumulative register.
Ladder diagram:
X1
Example
Mnemonic
Parallel connection- A contact
OR
X0~X17
Operand
The OR command is used in the parallel connection of A contact. The function of the
command is to readout the status of present specific series connection contacts, and
then to perform the "OR" calculations with the logic calculation result before the
contacts, thereafter, saving the result into the accumulative register.
Y0~Y17
X0
Y1
Y0~Y17
M0~M799
X0
Y1
Y0~Y17
16-38
Chapter 16 PLC Function |C2000 Series
Function
M0~M799
T0~159
Command code: Operation:
LDI
AND
OUT
Function
T0~159
C0~C79
Command code:
LD
X1
ANI
X0
OUT
Y1
Function
M0~M799
T0~159
C0~C79
D0~D399
-
Load contact B of
X1
X1
Connect to contact
X0
A of X0 in series
Y1
Drive Y1 coil
D0~D399
-
Operation:
Load contact A of
X1
Connect to contact
B of X0 in series
Drive Y1 coil
C0~C79
D0~D399
-