User guide

GEL100340
tmr
Retriggerable monostable timer.
Timer is activated on every rising edge of input g in the following way:
1.
On the rising edge of input g the following operations are performed:
l
Reading activation time from input t.
l
Zero setting of internal variable
act
(output
act).
l
Set output o TRUE.
.
After t cycles are elapsed, from operations start, timer outputs are set in the following
way:
l
output o is set FALSE
l
output
act
stops on the last value reached
(t
value)
2.
if, while the timer is active, input g became FALSE, timer goes on work normaly
3.
if, while the timer is active a new rising edge on input g is checked, timer executes a new cycle
repeating the operations starting from point 1.
When the timer is active, output o is TRUE, output
act
indicates the number of milliseconds elapsed from
operations start. When output o is FALSE output
act
is not significant.
Input
t
is read only in the cycle in which the rising cycle of input g is checked. Therefore, if
input
t
changes
while timer is enabled, output o is TRUE, the new value is not considered. This value will be used in the next
activation timer.
All times are expressed in milliseconds. Therefore, if input
t
is set 8, output o becomes TRUE for 8
milliseconds and output
act
changes from 0 to 8.
Input ports
name
We
alternative type function
g
int
operations
start and timer enable
t int
number of cycles of timer activation
~0271
152