Understanding Different types of Timer blocks used in a PLC ladder logic
- Graphical Representation of different Timer used in Siemens TIA Portal
- Different Timer Block of PLC Ladder Logic using in Siemens TIA Portal V16
- Declaration of Input and Output of different Timer PLC block
- Declaration of Input, Output and Others block of TOF Timer PLC block
- Declaration of Input, Output and Others block of TONR Timer PLC block
- Different Phases of PLC Ladder Logic of Timer Block Operation
- Simulation screenshots of Different Timer block
In this article we are going to see the different blocks of timer used in Siemens TIA Portal . The following graph show the different ON and OFF Condition of Timer Block.
The siemens TIA Portal Timers are:
- TP – Pulse Timer
- TON – ON Timer
- TOF – OFF Timer
- TONR – Time Accumulator
Graphical Representation of different Timer used in Siemens TIA Portal
Different Timer Block of PLC Ladder Logic using in Siemens TIA Portal V16
- TP – Pulse Timer
- TON – ON Timer
- TOF – OFF Timer
- TONR – Time Accumulator
Declaration of Input and Output of different Timer PLC block
Declaration of Input, Output and Others block of TP Timer PLC block
S. No | Operation | Input/ Output/ Others | Address of Each Block |
---|---|---|---|
1 | Input Switch for Timer | Input | %M0.0 |
2 | Input Switch for Associated Timer Coil | Input | %M0.1 |
3 | Pulse Timer Block | Timer (Pulse Timer) | %DB1 |
4 | Start pulse timer | Timer (Pulse Timer) | %DB1 |
5 | Input for Start Pulse Timer | Input | “IEC_Timer_0_DB”.Q |
6 | Output Load for Timer Block | Output | %Q0.1 |
7 | Output Load for Start Pulse Timer | Output | %Q0.1 |
Declaration of Input, Output and Others block of TON Timer PLC block
S. No | Operation | Input/ Output/ Others | Address of Each Block |
---|---|---|---|
1 | Input Switch for Timer | Input | %M0.0 |
2 | ON Timer Block | Timer (Pulse Timer) | %DB2 |
3 | ON Timer Associate Block | Timer (Pulse Timer) | %DB2 |
4 | Input for ON Timer | Input | “IEC_Timer_0_DB_1”.Q |
5 | Output Load for Timer Block | Output | %Q0.0 |
6 | Output Load for ON Timer | Output | %Q0.1 |
Declaration of Input, Output and Others block of TOF Timer PLC block
S. No | Operation | Input/ Output/ Others | Address of Each Block |
---|---|---|---|
1 | Input Switch for Timer | Input | %M0.1 |
2 | OFF Timer Block | Timer (Pulse Timer) | %DB2 |
3 | OFF Timer Associate Block | Timer (Pulse Timer) | %DB2 |
4 | Input for OFF Timer | Input | “IEC_Timer_0_DB_1”.Q |
5 | Output Load for Timer Block | Output | %Q0.2 |
6 | Output Load for OFF Timer | Output | %Q0.3 |
Declaration of Input, Output and Others block of TONR Timer PLC block
S. No | Operation | Input/ Output/ Others | Address of Each Block |
---|---|---|---|
1 | Input Switch for Timer | Input | %M0.2 |
2 | Time Accumulator Block | Timer (Pulse Timer) | %DB3 |
3 | Time Accumulator Associate Block | Timer (Pulse Timer) | %DB3 |
4 | Input for Time Accumulator | Input | “IEC_Timer_0_DB_2”.Q |
5 | Output Load for Timer Block | Output | %Q0.4 |
6 | Output Load for OFF Timer | Output | %Q0.5 |
Different Phases of PLC Ladder Logic of Timer Block Operation
The TIA Portal V16 software from Siemens is used to write the PLC program. According to the above statement, Different PLC timer Blocks are explained int the following Sections.
TP-Pulse Timer
- The pulse Timer will be triggered for every positive pulse. Once the Input switch %M0.0 is turned “ON”. The timer starts and run for the period of specified time and stops.
- During the timer is running the output %Q0.0 will be “ON”.
- The TP time output coil (Marked in red). It is associated coil of TP Time block. It can be used any number of times in a PLC Ladder Programming for switching “ON” the different Output. The below figure shows one example of such ladder programming.
- The %M0.1 is input for the TP time output coil (Since the Timer will not be connected directly to the Ladder).
- Some other Output %Q0.1 is connected to TP time output relay. Until the TP timer Block “ON” both outputs will be “ON”. Once the TP timer goes “OFF” after specified time, both the load goes “OFF”.
TON – ON Timer
- The ON Timer will be switched ON using Input Switch %M0.0. Once the Input switch %M0.0 is turned “ON”. The timer starts and run for the period of specified time and stops.
- During the timer is running the output %Q0.0 will be “OFF”.
- The TON time output coil (Marked in red). It is associated coil of TON Time block. It can be used any number of times in a PLC Ladder Programming for switching “ON” the different Output. The below figure shows one example of such ladder programming.
- The %M0.0 is input for the TON time output coil (Since the Timer will not be connected directly to the ladder).
- Some other output %Q0.1 is connected to TON time output relay. Until the TON timer Block “ON” both output will be “OFF”. Once the TON timer goes “OFF” after specified time, both the load goes “ON”.
TOF – OFF Timer
- The OFF Timer will be switched ON using Input Switch %M0.1. Once the Input switch %M0.1 is turned “ON”. The timer starts and run for the period of specified time and stops.
- During the timer is running the output %Q0.2 will be “ON”.
- The TOF time output coil (Marked in red). It is associated coil of TOF Time block. It can be used any number of times in a PLC Ladder Programming for switching “ON” the different Output. The below figure shows one example of such Ladder Programming.
- The %M0.1 is input for the TOF time output coil (Since the timer will not be connected directly to the Ladder).
- Some other Output %Q0.3 is connected to TOF time output relay. Until the TOF timer Block “ON” both output will be “ON”. Once the TON timer goes “OFF” after specified time, both the load goes “OFF”.
TONR – Timer Accumulator
- The TONR Timer will be switched ON using Input Switch %M0.2. Once the Input switch %M0.2 is turned “ON”. The timer starts and run for the period of specified time and stops.
- During the timer is running the output %Q0.4 will be “ON”.
- The TONR time output coil (Marked in red). It is associated coil of TONR Timer block. It can be used any number of times in a PLC Ladder Programming for switching “ON” the different Output. The below figure shows one example of such ladder programming. The TONR timer is similar to TP timer, but the difference is TONR can be switched on only once in PLC ladder programming. It can’t be “ON” even the input %M0.2 Switched “ON” once again.
- The %M0.2 is input for the TONR time output coil (Since the Timer will not be connected directly to the Ladder).
- Some other Output %Q0.5 is connected to TONR time output relay. Until the TONR timer Block “ON” both outputs will be “ON”. Once the TONR timer goes “OFF” after specified time, both the load goes “OFF”.
Following are the instructions for using the SIEMENS TIA site to program ladder logic. (Simulation).
Note: For a detailed explanation of how-to program ladder logic using Siemens TIA Portal, please refer above page.
Simulation screenshots of Different Timer block
TP – Pulse timer
- The simulation diagram below shows the status of the timer before the input %M0.0 is switched “ON”.
- Once the input %M0.0 is switched “ON” the Pulse Timer TP starts running to the specified time period (Say 5s) both the load %Q0.0 and %Q0.1 will be “ON”. After 5s both the load %Q0.0 and %Q0.1 goes “OFF”. Once again both the load %Q0.0 and %Q0.1 will be “ON” only if the TP Timer will be switched “ON”.
(Note: The TP Timer will be turned “OFF” after the specified time period. It will turn once again by triggering Positive Pulse)
TON – Pulse timer
- The simulation diagram below shows the status of the timer before the input %M0.0 is switched “ON”.
- Once the input %M0.0 is switched “ON” the TON timer start run to the specified time period (Say 5s) during the period both the load %Q0.0 and %Q0.1 will be “OFF”.
- After TON runs for 5s both the load %Q0.0 and %Q0.1 goes “ON” Continuously until the input switch is OFF.
TOF – Pulse timer
- The simulation diagram below shows the status of the timer before the input %M0.1 (Usually Normally Closed Coil) is switched “ON”. During the period the load %Q0.0 will be “ON”.
- Once the input %M0.1 is switched “ON” the TOF timer start run to the specified time period (Say 5s) during the period both the load %Q0.0 and %Q0.1 will be “ON”.
- After TOF runs for 5s both the load %Q0.0 and %Q0.1 goes “OFF” Continuously until the input switch is ON.
TONR – Pulse timer
- The simulation diagram below shows the status of the timer before the input %M0.2 is switched “ON”. During the period the load %Q0.4 and %Q0.5 both will be “OFF”.
- Once the input %M0.2 is switched “ON” the TONR timer start run to the specified time period(Say 5s) during the period both the load %Q0.4 and %Q0.5 will be “OFF”.After the specified time period i.e 5s is completed, the load will be goes to “ON” state. Shown in below figure
- But once again if the input switch %M0.2 is Switched “OFF” (Manually). The Load output %Q0.4 and %Q0.5 both loads retain its state it will “ON” continuously. The load accumulates the “ON” period continuously even after the absence of input. Shown in below figure
We were able to develop PLC ladder logic using the exercise mentioned above, and we were also able to simulate and test different types of timer blocks in the ladder logic.