End Main Routine Program

End Main Routine Program: END

 

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

END

S

-

-

-

-

-

-

-

-

-

-

-

-

-

1

-

-

-

 

 

 

 

Functions

Used to end main routine program.

When the END instruction is enabled, PLC goes back to 0 Step after operating the execution of the PEND instruction (Timer, Counter, Check, and etc.) and execute the operation again.

 

 

 

Example – A program using the JMP instruction

When M01 is ON, it will jump to Step 8 and execute the operation after the JME 1 step.

Notice how Y30 and Y31 are OFF due to the JMP instruction even though M10 and M11 are ON.

 

 

 

 Y30 and Y31 will be ON when M01 gets OFF and deactivates the JMP instruction.

 Notice how Y30 and Y31 are ON and have the value of 1 in the memory monitor.