32.7.3.1 Explanation of the Accumulated ON Delay Timer (TONA) and Accumulated OFF Delay Timer (TOFA) Instructions

Timer variables used in TONA and TOFA instructions are structure variables. The following table lists the internal structures.

Timer Variable

Timer Variable

Variables Settings

Description

VariableName.TI

Bit Variable

Turns ON when the timer begins.

VariableName.Q

Bit Variable

Turns ON upon completion of the timer.

VariableName.R

Bit Variable

Resets the current value on the timer. Clear (0).

VariableName.PT

Integer Variable

The value set on the timer

VariableName.ET

Integer Variable

The current value on the timer

Double-click the timer instruction to display the following dialog box. Enter the preset time in this dialog box.

Enter the setup value and units.

For time-based settings, double-click the timer instruction to display the setup dialog box.

Time base

Description

PT value/ET value

milliseconds

Specify the time in units of 1 millisecond.

The PT value is specified and displayed in millisecond units.

The ET value is displayed in millisecond units.

Setting range = 0 to 214748364 x 1 millisecond

10 milliseconds

Specify the time in units of 10 milliseconds.

The PT value is set and displayed in units of 10 milliseconds.

The ET value is displayed in units of 10 milliseconds.

Setting range = 0 to 21474836 x 10 milliseconds

0.1 seconds

Specify the time in units of 0.1 s.

The PT value is specified and displayed in units of 0.1 seconds.

The ET value is displayed in units of 0.1 seconds.

Setting range = 0 to 2147483 x 100 milliseconds

seconds

Specify the time in units of 1 second.

The PT value is specified and displayed in units of 1 second.

The ET value is displayed in units of 1 second.

Setting range = 0 to 214748 x 1 second

 

Program Example

TONA

  1. When the Timer turns ON, the TONA instruction is triggered and the elapsed time .ET increases by the specified time-based units .
    The timer measurement bit .TI turns ON.
    The timer output bit .Q turns OFF.

  2. When the elapsed time .ET increases to equal the preset time .PT, the elapsed time .ET keeps the current value.
    The timer measurement bit .TI turns OFF.
    The timer output bit .Q turns ON and allows power to pass.

  3. When the TONA instruction turns OFF, the elapsed time .ET keeps the current value.
    The timer measurement bit .TI turns OFF.

  4. The TONA instruction acts like an accumulator and increases its value. As long as the R coil is not turned ON, the current value is not reset.
    Turn the R coil ON and the timer output bit .Q turns OFF.

TOFA

  1. When the timer turns OFF, because the TOFA instruction is triggered, the elapsed time .ET increases in the specified time-based units.
    The timer measurement bit .TI turns ON.
    The timer output bit .Q turns OFF.

  2. When the elapsed time .ET increases to equal the preset time .PT, the elapsed time .ET keeps the current value.
    The timer measurement bit .TI turns OFF.
    The timer output bit .Q turns ON and allows power to pass.

  3. When the TONA instruction turns OFF, the elapsed time .ET keeps the current value.
    The timer measurement bit .TI turns OFF.