139
5-11 END: END(001)
(001)
END
Ladder Symbol
Description END(001) is required as the last instruction in any program, including all action
and transition programs. No instruction written after END(001) will be executed.
The END(001) instruction indicates the end of the relevant program for that
cycle. For SFC and ladder programming, it indicates the end of the relevant ac-
tion or transition program. For ladder programming alone, it indicates the end of
the entire program.
If there is no END(001) in a program, no instructions will be executed and the
error message “NO END INST” will appear.
Flags END(001) turns OFF the ER, CY, GR, EQ, LE, and N Flags.
5-12 NO OPERATION: NOP(000)
(000)
NOP
Ladder Symbol
NOP(000) is not generally required in programming. When NOP(000) is found in
a program, nothing is executed and the program execution moves to the next
instruction. When memory is cleared prior to programming, NOP(000) is written
at all addresses.
NOP(000) can only be used with mnemonic display, and not with ladder pro-
grams.
Example NOP(000) can be inserted in a program at the position where an instruction is to
be inserted later. Then when the instruction is inserted there will be no gap in the
addresses.
Flags There are no flags affected by NOP(000).
5-13 Timer and Counter Instructions
Timers The timer instructions in this section are used to create timers. Most timers re-
quire a timer number and a set value (SV). Timer numbers run from T0000
through T0511 in the CV500 or CVM1-CPU01-EV2 and from T0000 through
T1023 in the CV1000, CV2000, CVM1-CPU11-EV2 or CVM1-CPU21-EV2, and
are used to access timer PVs and Completion Flags in memory areas set aside
specifically for this purpose.
TIML(121) and MTIM(122) do not require timer numbers. The PVs and Comple-
tion Flags for these timers are contained in addresses specified by the user
when inputting the instructions.
Any one timer number cannot be defined twice, i.e., once it has been used in any
of the timer instructions it cannot be used again unless the two timers are never
active simultaneously. If two timers share a single timer number, but are not used
simultaneously, a duplication error will be generated when the program is
checked, but the timers will operate normally. Once defined, a timer number can
be used as many times as required as an operand in other instructions to access
the present value and Completion Flag of the timer.
Description
Precautions
Timer and Counter Instructions Section 5-13