Using Timers Within Programs - Emerson EZMotion User Manual

Table of Contents

Advertisement

Figure 115:
Timer.#.TimerInput
The Timer Input event is level sensitive (not edge only) and is used to define when the Timer starts counting against the Preset
(along with the Timer Type). See the various timing diagrams in Figures 2 through 10 to see how the Timer Input affects the Timer
Output.
Timer.#.TimerReset
The Timer Reset event is used to reset the ElapsedTime to zero and deactivate the TimerOutput and TimerActive. Level On and
Level Off timer types do not utilize the reset, as they reset automatically based on the state of the Input.
The Reset is a self-clearing function meaning that the reset occurs on the rising edge of the Reset input, and internally the reset is
set off. Therefore a timer can immediately begin counting again even if the user holds the Reset input ON. Additionally, when
resetting a timer in user program, the user must only set the Reset ON, and the controller will automatically set it off. There is no
reason for the user to force the Reset OFF within the program.
Output Events / Destinations
The following signals are available in user programs and as Sources on the Assignments view.
Timer.#.TimerOutput
The Timer Output state is controlled by the Timer Input, the Timer Type, and the other configuration settings of the Timer object. See
the various timing diagrams in Figures 2 through 10 to see how Timer Output functions.
The Timer Output can be assigned to multiple Destinations on the Assignments view just as any other Output Event.
Timer.#.TimerActive
The TimerActive event is used as an indicator that the Timer is actively counting (i.e. In the case of an OFF Timer, the Active event
would not activate until the Input turns OFF.).
In the case of Cumulative timers, the Active does not remain on even though the Elapsed Time may be non-zero, if the timer is not
currently counting.
When a timer reaches the user defined Preset time, the Output activates, and the Active event turns OFF.
See the timing diagrams for each of the Timer Types for examples of how TimerActive behaves.
8.5.6

Using Timers within Programs

Timers can be used within user programs without the need for assignments. Following are some examples of using Timer functions
within a program.
To start a Timer in a program, you must do the following:
Timer.#.Input = ON
The user must also turn the Input off as necessary to control the timer:
Timer.#.Input = OFF
To use the output of a Timer within a program:
Wait For Timer.#.Output = ON (or = OFF)
To change the value of a Timer Preset in a program:
Timer.#.Preset = 12.345 'Seconds
To check if a timer is running:
If (Timer.#.Active = ON) Then
Some code
.
.
Endif
To wait for a Timer to start running:
108
Timer Enable with Level On Timer
www.controltechniques.com
EZMotion User/Programming Guide
Revision: A8

Advertisement

Table of Contents
loading

Table of Contents