181
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Sequence Control Instructions
3
END
END
Applicable Program Areas
Flags
There are no flags affected by this instruction.
Function
Precautions
• Always place END(001) at the end of each program. A programming error will occur if there is not an
END(001) instruction in the program.
Instruction Mnemonic Variations
Function
code
Function
END END --- 001 Indicates the end of a program.
Symbol
END
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage Not allowed Not allowed Not allowed Not allowed OK Not allowed
END(001) completes the execution of a
program for that cycle. No instructions written
after END(001) will be executed.
Execution proceeds to the program with the
next task number. When the program being
executed has the highest task number in the
program, END(001) marks the end of the
overall main program.
END(001)
I/O refreshing
Tas k 1
Tas k 2
Tas k n
Program Z
Program A
Program B
To the next task number
To the next task number
End of the main program