1. PLC Concepts
1-7
Execution order of the sample program:
1 LD X0
2 OR M0
3 AND X1
4 LD X3
AND M1
ORB
5 LD Y1
AND X4
6 LD T0
AND M3
ORB
7 ANB
8 OUT Y1
TMR T0 K10
1.5.2 LD / LDI (Load NO contact / Load NC contact)
LD or LDI starts a row or block
AND block OR block
LD instruction LD instruction
1.5.3 LDP / LDF (Load Rising edge trigger/ Load Falling edge trigger)
Similar to LD instruction, LDP and LDF instructions only act at the rising edge or falling edge when
the contact is ON, as shown in the figure below.
X0
OFF
ON
OFF
Time
Rising-edge
X0
OFF
ON
OFF
Time
Falling-edge
1.5.4 AND / ANI (Connect NO contact in series / Connect NC contact in series)
AND (ANI) instruction connects a NO (NC) contact in series with another device or block.
AND instruction AND instruction
1.5.5 ANDP / ANDF (Connect Rising edge in series/ Connect Falling edge in series)
Similar to AND instruction, ANDP (ANDF) instruction connects rising (falling) edge triggers in series
with another device or block.