50
4
4 Instructions4.1.1 Contact Instructions
LD, LDI, LDP, LDF, AND, ANI, ANDP, ANDF, OR, ORI, ORP, ORF, and INV
LD Loading of NO contacts
Operand types: S, X, Y, M, T, and C
Number of steps: 1 step
LDI Loading of NC contacts
LDP Use of rising edge pulse
LDF Use of falling edge pulse
Instruction Operand
LD
LDI
LDP
LDF
X0–X377 Y0–Y377
M0–M7679
M8000–M8511
S0–S4095 SM0–SM1023 T0–T511 C0–C255
√ √ √ √ √ √ √
The LD, LDI, LDP, and LDF instructions are used by the contacts starting from the left-hand bus.
Use the LD and LDI instructions to store the current ow statuses of contacts A and B and store the
acquired contact status in a cumulative cache.
Use the LDP instruction to acquire the rising edge of a contact signal. If rising edge jump is scanned in a signal,
the contact is active, but it becomes inactive during the next scan operation.
Use the LDF instruction to acquire the falling edge of a contact signal. If falling edge jump is scanned in a signal,
the contact is active, but it becomes inactive during the next scan operation.
(Y1
)
X1
(
M0)
X0
LD X1
LDI X0
(Y3)
(M3)
X2
X4
LDP X2
LDF X4
AND
Serial connection of NO
contacts
Operand types: S, X, Y, M, T, and C
Number of steps: 1 step
ANI Serial connection of NC contacts
ANDP
Serial connection for AND rising
pulse detection
Number of steps: 3 steps
ANDF
Serial connection for AND falling
pulse (F) detection
Instruction Operand
AND
ANI
ANDP
ANDF
LDF
X0–X377 Y0–Y377
M0–M7679
M8000–M8511
S0–S4095 SM0–SM1023 T0–T511 C0–C255
√ √ √ √ √ √ √
Use the AND, ANI, ANDP, and ANDF instructions to perform a status operation on serial contacts. These
instructions read the status of the designated serial contact and perform an AND operation on the contact
status and the contact's logical operation result. The AND result is stored in the cumulative cache.
Use the AND and ANI instructions to acquire the statuses of contacts A and B for an AND operation.
Use the ANDP instruction to acquire the rising edge jump status of a contact for an AND operation.
Use the ANDF instruction to acquire the falling edge jump status of a contact for an AND operation.