TIA Portal V18 Timer Tutorial | TP, TON, TOFF, TONR Explained with Simulation

 

Introduction
Timers are an essential part of PLC programming, allowing automation engineers to control operations based on time delays. In this tutorial, we will explore four types of timers in TIA Portal V18:

  • TP (Pulse Timer)

  • TON (On-Delay Timer)

  • TOFF (Off-Delay Timer)

  • TONR (Retentive On-Delay Timer)

By the end of this guide, you will understand how each timer works, how to implement them in Siemens S7-1200 PLC, and how to simulate the logic in TIA Portal.


Step 1: Creating a New Project in TIA Portal

  1. Open TIA Portal V18 and click on ‘Create New Project’.

  2. Enter a project name and click ‘Create’.

  3. Add a new device by selecting Siemens S7-1200 PLC.

  4. Click ‘Add’ to proceed.


Step 2: Adding Timers in Different Networks

Network 1: TP (Pulse Timer)



  • Drag a TP Timer from the instructions tab.

  • Use a Normally Open (NO) button (I0.0) as input.

  • Set the time delay to T#10S.

  • Assign an output coil (Q0.0).

Working: When the button is pressed, the output will remain ON for exactly 10 seconds, then turn OFF automatically.

Network 2: TON (On-Delay Timer)



  • Add a TON Timer in a new network.

  • Use NO button (I0.1) as input.

  • Set delay time to T#10S.

  • Assign output Q0.1.

Working: The output turns ON only after 10 seconds of continuous button press.

Network 3: TOFF (Off-Delay Timer)



  • Add a TOFF Timer in Network 3.

  • Use I0.2 as input and Q0.2 as output.

  • Set the delay to T#10S.

Working: When the input turns OFF, the output remains ON for an additional 10 seconds before switching OFF.

Network 4: TONR (Retentive On-Delay Timer)



  • Add a TONR Timer in Network 4.

  • Use I0.3 as input and Q0.3 as output.

  • Set the delay to T#10S.

Working: The accumulated time is retained even if the input is turned OFF, and the output activates only after reaching 10 seconds.


Step 3: Compiling & Downloading the Program

  1. Click ‘Compile’ to check for errors.

  2. If there are no errors, click ‘Download to Device’.

  3. Select your PLC and click ‘Load’.

  4. Put the PLC in ‘Run’ mode to execute the logic.


Step 4: Simulation & Testing of Timers

Now, we will simulate and observe how each timer functions:

  • TP Timer: Turns ON for 10 seconds when triggered.

  • TON Timer: Turns ON only after 10 seconds of holding the button.

  • TOFF Timer: Keeps output ON for 10 seconds after input is OFF.

  • TONR Timer: Retains the accumulated time until reset manually.


Conclusion

Timers play a crucial role in industrial automation, helping to manage delays, sequences, and timing functions in a PLC program. In this tutorial, we covered TP, TON, TOFF, and TONR timers with a 10-second delay for each.

📌 Subscribe to Easy Electra for more automation tutorials!

#TIAPortal #PLCProgramming #SiemensPLC #Timers #TIA_Portal_V18

Post a Comment

Post a Comment (0)

Previous Post Next Post