Timer with switch-on delay
This is a user-defined function from a system function block. TON_FUN allows you to program a switch-on delay.
Input
timer ON
an internal timer is started for each rising edge detected at start
switch-on delay (PT = preset time)
16-bit value: 0–327.27s
32-bit value: 0–21,474,836.47s (32-bit value not available for FP3, FPC, FP5, FP10/10S)
resolution 10ms each
Input/output
Internal memory containing the internal values and states, which corresponds to the instance memory of the associated FB.
Output
signal output
set to TRUE if PT = ET
elapsed time
indicates the current value of the elapsed time
The value can be changed during counting operation by writing to the variable from the programming editor.
Q is set delayed with the time defined in PT. Resetting is without any delay.
If the input start is only set for the period of the delay time PT or even for a shorter period of time (t3 - t2 < PT), Q will not be set.