CAL TP_Timer_1(S := Timer_Start, Q => Timer_State)
IF RE(Timer_start) THEN
START_PL7_TP (TP_Timer_1) ;
END_IF ;
IF FE(Timer_Start) THEN
DOWN_PL7_TP (TP_Timer_1) ;
END_IF ;
Timer_State := TP_Timer_1.Q ;
Parameter
|
Type
|
Comment
|
---|---|---|
IN
|
"Activation" input, on rising edge, starts the timer.
|
Parameter
|
Type
|
Comment
|
---|---|---|
Q
|
"Timer" output, setting at 1 of this depends on the timer state.
|
Parameter
|
Type
|
Comment
|
---|---|---|
ET
|
Current value of the timer that runs down over time. This value can be read and tested but not written by the program.
|
|
PT
|
This value, which is between 0 and 9999, is known as the timer preset value. It can be written, read and tested by the program. Its default setting is 9999. The delay created by the timer is equal to PT x TB.
|
|
TB
|
Timer time base. Possible values:
The lower the time base, the greater the timer accuracy.
When the program is executed, the value of the time base (TB defined in offline mode) is rounded down to the nearest multiple of 2 (between 1 and 8).
|
![]() |
UNEXPECTED BEHAVIOR AFTER WARM RESTART
Do no modify the time base (TB) in online mode, this would cause an unexpected behavior of the application on warm restart.
Failure to follow these instructions can result in injury or equipment damage.
|