51
4
4 Instructions 4.1.1 Contact Instructions
(Y0)
X1 X2
(M1)
AND X2
ANI X0
X0
(Y4)
ANDP X1
(Y7)
ANDF X2
X1
X2
OR
Parallel connection of NO
contacts
Operand types: S, X, Y, M, T, and C
Number of steps: 1 step
ORI
Parallel connection of NC
contacts
ORP
Parallel connection for OR rising
pulse detection
Number of steps: 3 steps
ORF
Parallel connection for OR falling
pulse (F) detection
Instruction Operand
OR
ORI
ORP
ORF
X0–X377 Y0–Y377
M0–M7679
M8000–M8511
S0–S4095 SM0–SM1023 T0–T511 C0–C255
√ √ √ √ √ √ √
Use the OR and ORI instructions to perform a status operation on parallel contacts. These instructions read
the status of the designated parallel contact and perform an OR operation on the contact status and the
contact's logical operation result. The OR result is stored in the cumulative cache.
Use the OR and ORI instructions to acquire the statuses of contacts A and B for an OR operation.
Use the ORP instruction to acquire the rising edge jump status of a contact for an OR operation.
Use the ORF instruction to acquire the falling edge jump status of a contact for an OR operation.
(
Y0)
X2
(M
1)
OR X2
ORI X
0
X0
(Y5)
ORP X2
X2
(Y
7)
ORF X4
X4
INV Operation result inversion
Number of steps: 1 step
Instruction Operand
INV None
The INV instruction performs phase inversion of the logical operation result prior to this instruction. The
result is stored in the cumulative cache. After the INV instruction is executed, the ow status switches from
ON to OFF, or vice versa.