-

TON / TON_S, TON_LTIME

Type Function block

TON is available as standard (non-safety-related) and safety-related type (TON_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 on. When the IN input switches from FALSE to TRUE, the Q output is set to TRUE after the delay time has elapsed. If the IN input is FALSE, Q will be FALSE and the output ET will be 0.

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