Chapter 16 PLC Function ApplicationsMS300 (High Speed Model)
16-35
16-6-2 Detailed explanation of basic commands
Command Function
LD
Load contact A
Operand
X0~X17 Y0~Y17 M0~M799 T0~159 C0~C79 D0~D399
-
The LD command is used for contact A starting at the left busbar or contact A starting
at a contact circuit block; its function is to save current content and save the acquired
contact status in the cumulative register.
Ladder diagram:
X0
X1
Y1
Command code: Description:
LD X0
Load Contact A of X0
AND X1
Create series
connection to contact A
of X1
OUT Y1 Drive Y1 coil
Command Function
LDI
Load contact B
Operand
X0~X17 Y0~Y17 M0~M799 T0~159 C0~C79 D0~D399
-
The LDI command is used for contact B starting at the left busbar or contact B starting
at a contact circuit block; its function is to save current content and save the acquired
contact status in the cumulative register.
Ladder diagram:
X0
X1
Y1
Command code: Description:
LDI X0
Load Contact B of X0
AND X1
Create series
connection to contact A
of X1
OUT Y1 Drive Y1 coil
Command Function
AND
Connect contact A in series
Operand
X0~X17 Y0~Y17 M0~M799 T0~159 C0~C79 D0~D399
-
The AND command is used to create a series connection to contact A; first reads
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:
X1
X0
Y1
Command code: Description:
LDI X1 Load Contact B of X1
AND X0
Create series
connection to contact A
of X0
OUT Y1 Drive Y1 coil