Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Configuring and Usage of Cyclic Interrupts TIA Portal (OB 30+)
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC
  • Control Systems
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Configuring and Usage of Cyclic Interrupts TIA Portal (OB 30+)

Configuring and Usage of Cyclic Interrupts TIA Portal (OB 30+)

Learn how to do configuring and usage of cyclic interrupts (OB 30+) in Siemens Tia Portal PLC programming software.

Last updated: September 28, 2022 2:25 pm
Hussien Ghareb
PLC Tutorials
1 Comment
Share
5 Min Read
SHARE

Very critical and important tool that could really advance your code and make you really professional programmer is how to use and configure cyclic interrupts using TIA portal that is launched by siemens, it would help your code so much making it more reliable and more efficient.

Contents
How does the TIA Portal work?Organization Block (OB)InterruptsPriority of an interruptCyclic Interrupts (OB 30+)Cyclic Interrupts in TIA Portal

How does the TIA Portal work?

First of all, we should understand some basic concepts about TIA portal

Organization Block (OB)

The TIA portal software has different kinds of organization blocks, Each type of these blocks have its own

usage and application, all of them are optional (which means that you can use it or not) except one of them that contains the main program called Main OB (OB 1), our article will not explain the usage of all of them, we will just work with the cyclic OBs (OB 30+)

Interrupts

This word is not specialized for siemens, interrupts are some specified and Critical Routines that the programmer wants to be executed at a certain time and events.

So interrupts do not wait for the main program to finish its cycle then it will be executed, Absolutely Not once interrupts are occurred it stops the main OB at the breakpoint and execute its routine then the main OB resumes the program from the breakpoint again.

understand basic concepts about TIA portal

Priority of an interrupt

Very important note that you should be aware about it, is the priority of the interrupt that you are using.

Every interrupts in the TIA portal has a number called the priority that refers to the arrangement of that interrupt between the whole interrupts, assume that two interrupts occur at the same time.

The PLC will execute the higher one in priority at first then the Second interrupt(that has lower priority) then it will go back again to Main OB.

Interrupting the Cyclic Program in Siemens Tia Portal

Cyclic Interrupts (OB 30+)

The idea behind that interrupt, that you can configure one of them to be executed with certain cyclic times that is independent on the time of the scan cycle of your main program.

Cyclic interrupts in TIA portal generally have the priority of (30 : 38) that depends into the CPU that you have, Not all of them have the same cyclic interrupt, some CPUs have just (32 : 35) other CPUs may have another group of cycle interrupts, do not let that make you to be confused.

Application of Cyclic Interrupts

  1. Safety, in your project safety is first so during your process you may need some safety actions that should be checked periodically with certain times.

2. PID controllers, the time of the main scan cycle may affect at the accuracy of your PID actions, so you do not want to relate its actions with the time of the scan cycle, so you push your PID instructions into a cyclic interrupt to be executed periodically with certain cyclic times.

Example

One of the best PLC interview questions “How could you make a program that controls two alternative loads without using any timer” ……

Note that this example is used just for examine that you really can configure and use cyclic interrupts.

Cyclic Interrupts in TIA Portal

Steps:

First of all, select your desired CPU from “configure a new device”

1.   Select add new block

Configuring and Usage of Cyclic Interrupts TIA Portal (OB 30+)

2.   Select add new organization block

Select add new organization block in Tia Portal

3. Then select any interrupt of them, then press OK

Select any interrupt in Tia Portal

4.   After you select the desired one it will be shown under your program blocks

Select the program blocks in Tia Portal

5.   Then select your CPU properties to configure the execution time

select your CPU properties to configure the execution time

6. Then write your program as shown in the next Figure.

Cyclic Interrupts in TIA Portal

Finally, you will never get 100% of understanding till you try something by your self so please try to make it on your TIA and feel free to send me back to discuss that.

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Configuration of Siemens VFD
  • Problem on PLC, HMI, VFD
  • PID in Siemens TIA Portal
  • Choose Right Fuse for a Panel
  • What is Energy Monitoring System?
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

Heating and Mixing of Products using PLC Example Tutorial
OPC in Old PLC Systems
PLC Program for Entry and Exit Control of Car Parking
What is NOR Flash Memory in PLC?
Download Allen Bradley RSLogix PLC Software
PLC Programming Example for Motor Forward and Reverse Control
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Archimedes says:
    March 21, 2021 at 6:36 pm

    One question. How can i program a motor to run CW and CCW with one button and a stop between the two directions. All with one button, meaning one press of the button CW motor, one more press of the button stop the motor, one more press the button CCW of the motor and stop after one more press of the button….

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
208kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC Example on Manufacturing Line Assembly
Count the Number of Cartons in a Storage Area PLC Logic
Coil Type Timers in Siemens PLC Programming
How to Delay a Sensor Signal in PLC?
PLC Crane Movement Control with Limit Switches
Tia Portal – OB20 Time Delay Interrupt Organization Block
How to import GSD files into the TIA Portal? – Siemens PLC
PLC Pump Control: 10 seconds ON & 20 seconds OFF

Keep Learning

PLC Memory Mapping

PLC Memory Mapping and I/O addressing

Siemens micro memory card

Micro Memory Card (MMC) in Siemens PLC

Allen Bradley PLC Interview Questions & Answers

Allen Bradley PLC Interview Questions and Answers

Functional Block Diagram PLC Example for Traffic Light System

Functional Block Diagram PLC Example for Traffic Light System

How CPU Execute Program in Siemens PLC?

How CPU Execute Program in Siemens PLC?

SCADA

Top 100+ SCADA Questions

Difference Between PNP and NPN Sensors

Difference Between PNP and NPN Sensors

Alarm prioritization

What is Alarm Prioritization? – Types of Alarms

Learn More

Robotic Instrumentation Objective Questions

Robotic Instrumentation Objective Questions

Alarm Trip for 24v DC Loop

Advantages & Disadvantages of Synchronous Motors

Thermal Protection Relay Testing and Commissioning

Testing of Thermal Protection Relay for Motors

Does Really a Safety Barrier is Important

Does Really a Safety Barrier is Important? – PLC DCS Systems

Atomic Absorption Spectroscopy Questions & Answers

Atomic Absorption Spectroscopy Questions & Answers

Process Control Terms

143 Process Control Terms and Glossary – Questions Answers

Instrumentation documents

Instrumentation documents

Intelligent Motor Control Center

What is an Intelligent Motor Control Center? – IMCC

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?