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
  • Request
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
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
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
  • Request
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

PLC Programming Example with Pushbutton and Motor
Mail Box Automation: Programming with Schneider PLC
Emergency Stop Switch Spurious Trip
200+ Quiz on Electrical Meters, Measurement, and Troubleshooting
Basic PLC Ladder Programming Example
Sequential Operation of Output Bits using Two Push buttons
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
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Typical HMI Screen Design for Water Treatment Plant
PLC Program for Sequential Motor Control
PLC Trainer Demo Download
Electrical and Instrumentation – Automation Pre-engineering Documents
Electrical Earthing Calculations
Establishing a Modbus Driver for SCADA Indusoft Web Studio
Series Tanks Level Control using PLC Ladder Programming
Test and Process Modes in Siemens PLC

Keep Learning

Demo of a SCADA Software – Level Control System

Wet Contacts and Dry Contacts in PLC Systems

Wet Contacts and Dry Contacts in PLC Systems

Automatic Coffee Machine

Automatic Coffee Vending Machine – PLC Logic Programming

Pulse Timer Instruction in PLC Programming

Pulse Timer Instruction in PLC Programming

PLC Motor Control Ladder Logic

PLC Program for Star Delta Motor Starter

PLC automation timers and counters

Medium-Level PLC Exercise for Students in Automation

Latched and Momentary Operation of Motor PLC Program

Latched and Momentary Operation of Motor PLC Program

PLC Totalizer

PLC Program for Flow Totalizer

Learn More

Electrical Machines Questions and Answers

Synchronous Machines Excitation Quiz

Quiz on Electrical Drawings and Symbols

264 Quiz on Electrical Drawings and Symbols

Caliper Calibration

Setting Up for Success: Preparing for Caliper Calibration

Mass Spectrometer Questions and Answers

Quadrupole Mass Spectrometer

Chromatography Questions & Answers

Detection System of Liquid Chromatography Questions & Answers

Flow Measurement Multiple Choice Questions

Flow Measurement Multiple Choice Questions

Choked Flow of Control Valve

Choked Flow of Control Valves

Principle of ultrasonic testing

Ultrasonic Testing (UT) : Principle, Advantages, Disadvantages

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

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?