Programming options
5.3 Powerful and easy-to-use instruction set
Easy Book
Manual, 05/2009, A5E02486774-01
63
Timers
You use the timer instructions to create programmed time delays:
●
TP: The pulse timer generates a pulse with a preset width time.
●
TON: The on-delay timer output Q is set to ON after a preset time delay.
●
TOF: The off-delay timer output Q is reset to OFF after a preset time delay.
●
TONR: The on-delay retentive timer output is set to ON after a preset time delay. Elapsed
time is accumulated over multiple timing periods until the R input is used to reset the
elapsed time.
●
RT: Reset a timer by clearing the time data stored in the specified timer instance data
block.
TP, TON, and TOF timers
have the same input and
output parameters.
The TONR timer has
the additional reset
input parameter R.
The RT instruction resets
the timer data for the
specified timer.
"Timer name"
----[ RT ]----
Each timer uses a structure stored in a data block to maintain timer data. You assign the
data block when the timer instruction is placed in the editor. When you place timer
instructions in a function block, you can select the multi-instance data block option, the timer
structure names can be different with separate data structures, but the timer data is
contained in a single data block and does not require a separate data block for each timer.
This reduces the processing time and data storage necessary for handling the timers. There
is no interaction between the timer data structures in the shared multi-instance data block.
TP timer
Pulse timing
diagram
,1
4
(7
37
37
37
37