Description
Original instructions
Description of the function
The PL7_3_TIMER function block is a timer used for converting the %Ti of PL7 which were themselves conversions of Ti of PL7_3.
The additional parameters EN and ENO can be configured.
NOTE: you cannot instantiate or modify the PL7_3_TIMER 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_3_TIMER the application cannot be transfered in the PLC.
FBD representation
Representation:
LD representation
Representation:
IL representation
Representation:
CAL PL7_3_Timer_1(E := Timer_Enable, C := Timer_Control, D => Timer_Done, R => Timer_Run)
ST representation
Representation:
IF Timer_Enable THEN
   IF Timer_Control THEN
      START_PL7_3_TIMER (PL7_3_Timer_1) ;
   ELSE
      STOP_PL7_3_TIMER (PL7_3_Timer_1) ;
   END_IF   
ELSE
  PRESET_PL7_3_TIMER (PL7_3_Timer_1) ;
END_IF ;

Timer_Done := PL7_3_Timer_1.D ;
Timer_Run := PL7_3_Timer_1.R ;
Description of parameters
The following table describes the input parameters:
Parameter
Type
Comment
E
"Enable" input, on state 0 reinitializes the timer.
C
"Control" input on state 0 freezes the progression of the timer.
The following table describes the output parameters:
Parameter
Type
Comment
D
"Timer run down" output, set at 1 if the current value is equal to 0.
R
"Timer running" output, set at 1 if the current value is between 0 and the preset value and the control input is at 1.
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 are:
  • 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.