Description
Original instructions
Description of the function
The PL7_TON function block is a timer of the TON type (rise-delay time).
The additional parameters EN and ENO can be configured.
NOTE: you cannot instantiate or modify the PL7_TON function in online mode. This means you must be in offline mode and therefore you must transfer the project in the PLC.
NOTE: If you create more than 255 instances of PL7_TON the application cannot be transfered in the PLC.
FBD representation
Representation:
LD representation
Representation:
IL representation
Representation:
LD Timer_Start
CAL TON_Timer_1(S := TON_Timer_1, Q => Timer_State)
ST representation
Representation:
IF RE(Timer_start) THEN
   START_PL7_TON (TON_Timer_1) ;
END_IF ;

IF FE(Timer_Start) THEN
   DOWN_PL7_TON (TON_Timer_1) ;
END_IF ;

Timer_State := TON_Timer_1.Q ;
Description of parameters
The following table describes the input parameters:
Parameter
Type
Comment
S
"Activation" input, on rising edge, starts the timer.
The following table describes the output parameters:
Parameter
Type
Comment
Q
"Timer" output, setting at 1 of this depends on the timer state.
Description of variables
The following table describes the public variables:
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:
  • TB = 8: 1 mn (default value),
  • TB = 4: 1 s,
  • TB = 2: 100 ms,
  • TB = 1: 10 ms.
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).
CAUTION
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.