Navigation:  Equipments (Devices) > CFW503 > Ladder > Timer >

TON

Timer On-Delay

Previous pageReturn to chapter overviewNext page

Timer block that, when energized, enables the output after a delay set by PT.

 

Ladder Representation

 

TON_block

 

Block Structure

 

Variable Type

Name

Data Type

Description

VAR_INPUT

IN

BOOL

Block enabling

PT

WORD UINT

DWORD1 UDINT1

Delay of output drive

TIMEBASE

WORD

Time base for PT and ET

VAR_OUTPUT

Q

BOOL

Block output

ET

WORD UINT

DWORD1 UDINT1

Counter elapsed time

VAR

TON_INST_0

TON

Instance of access to block structure

 

wpshelp_common_fig_note

NOTE!

1. In CFW300 and CFW100, the PT and ET field types can only be WORD or UINT.

2. Some devices allow you to configure user parameters, but these need to be configured for use in the fields PT and ET, where it is necessary to select a compatible data type as shown in table above. For more information refer to the corresponding topic;

3) The TIMEBASE field may vary depending on the device used.

 

 

Operation

 

While the IN input is FALSE, the Q output is FALSE and ET also receives the value zero.

On the edge positive transition in IN, counting is triggered and ET is incremented according to TIMEBASE. When ET equals PT, the Q output goes to state TRUE until IN revolutions to FALSE.

 

Compatibility

 

Device

Version

PLC300

1.50 or higher

SCA06

2.00 or higher

 

Block Flowchart

 

TON_flowchart

 

 

Operation Diagram

 hardwaretimerton_fig2

 

Example in Ladder

 

TON_example01

 

The above example shows the initial conditions of the block and of the routine variables.

 

TON_example02

 

When activated the IN input, counting is triggered. Since ET equals PT, the Q output is enabled.

 

TON_example03

 

Note that a change in PRESET variable is not forwarded to the PT field while the IN entry remains enabled.

 

TON_example04

 

Disabling the IN input, the value of PT is updated and the Q output is disabled. When activating it again, counting is triggered.

 

TON_example05

 

Disabling the IN input, the value of ET remains saved.

 

TON_example06

 

Enabling the IN input, the value of ET is reset and counting is triggered.

 

TON_example07

 

When ET reaches the value PT, the Q is output enabled and remains so while IN is at TRUE level.

 

Example in ST

 

 The example below displays the instructions for applying the example above in the ST language.

 

 

VAR

   PRESET : UINT := 15;

   ELAPSED : UDINT;

   TON_INST_0 : FB_TON;

END_VAR

 

TON_INST_0.IN := DI1;

TON_INST_0(PT:=PRESET, TIMEBASE:=2); // TIMEBASE according to

ELAPSED := TON_INST_0.ET;           // the device used

DO1 := TON_INST_0.Q;