-

TP / TP_S, TP_LTIME

Type Function block

TP is available as standard (non-safety-related) and safety-related type (TP_S). For the safety-related type, the safety-related data types (SAFE*) are expected at the formal parameters. There is no safety-related type for LTIME.
Description Generates a pulse with a configurable pulse duration.

  • 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.
Parameters Inputs

IN

PT

Outputs

Q

ET
Timing Diagram Timing diagram