13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>END PROGRAM END ENDNo operand• When end control "EN" = 1, this instruction is activated. Upon executing the END instruction and "EN" = 1, theprogram flow will immediately returns to the starting point (0000M) to restart the next scan – i.e. all theprograms after the END instruction will not be executed. When "EN" = 0, this instruction is ignored, andprograms after the END instruction will continue to be executed as the END instruction is not exist.• This instruction may be placed more than one point within a program, and its input (end control "EN") controlsthe end point of program execution. It is especially useful for debugging and for testing.• It’s not necessary to put any END instructions in the main program, CPU will automatic restart to start pointwhen reach the end of main program.0000MProgram 1Program 1Program executionX0=1X0=0X1=1X0ENProgram 2ENDORGENDX0Program 2X1ENENDORGENDX1X0=X1=0Program 3Program 37-47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!