-

TP_R / TP_R_LTIME

TypeFunction block
DescriptionThe TP_R / TP_R_LTIME function blocks generate a pulse with a configurable pulse duration. They operate as retain timers, i.e., the elapsed time since start of the timer is retained internally when switching the controller off. After switching the controller on again and executing a warm start, the timer continues counting from the point at which it was stopped.

  • When the IN input switches from FALSE to TRUE, the Q output is set to TRUE and remains set until the delay time specified at the PT input has elapsed.
  • The Q output remains unchanged, if the IN input switches from TRUE to FALSE before the specified delay time has elapsed or if the input becomes TRUE for a second time before the delay time has elapsed.
  • The PT input specifies the time after which Q is switched from TRUE to FALSE.
  • The ET output indicates the already expired time.
Notes
  • The input IN and the output Q can be negated.

    Note: The negation of formal parameters is not supported in safety-related code (SNOLD).

  • Function blocks have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
ParametersInputs

IN

PT

Outputs

Q

ET
Timing Diagram Timing diagram
Algorithm Algorithm