-

TOF / TOF_S, TOF_LTIME

Type Function block

TOF is available as standard (non-safety-related) and safety-related type (TOF_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 Provides a timer for delayed switching off. When the IN input switches from TRUE to FALSE, the Q output is reset to FALSE after the delay time has elapsed. If the IN input is TRUE, the output Q will be TRUE.

If IN changes from TRUE to FALSE, switching off is delayed for the duration of the time interval applied to the input PT. After PT has elapsed, Q is set to FALSE. The elapsed time interval is indicated at the output ET.
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