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

Water Fountain Control Logic – PLC Exercises and Solutions
PLC Pump Permissive Interlocks
PLC Digital Signals Wiring Techniques
Batch Mixing with PLC Ladder Logic Program
PLC Analog Input Card Resolution Effects on Accuracy
Positive and Negative Edges using Statement List Language
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

Car Wash Program using Functional Block Diagram (PLC)
Basics of Motion Controllers
Functional Block Diagram PLC Example for Traffic Light System
Auto and Manual Liquid Tank System: PLC Program Example
PLC Instruction List Program for Basic Instructions
How to Insert Block Calls in SCL Language?
Preventive Maintenance of Variable Frequency Drive (VFD)
While Do Statement in Structured Text PLC Program

Keep Learning

Does Really a Safety Barrier is Important

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

Motor Stop Interlock for Changing the Direction PLC Program

Motor Stop Interlock for Changing the Direction PLC Program

CPU Communication Ports in Siemens PLC

Types of CPU Communication Ports in Siemens PLC

How to Program Sequential Outputs in PLC

Timer-Based Sequential PLC Program with One Button

Network Switch

Network Switch Port Allocation Details

Counter Count Down Bit

Down Counter PLC Program

Intrinsic Safety Barriers

Intrinsically Safe Barriers Questions and Answers

Allen-Bradley PLC

#15 PLC Best Practices – Safe State when PLC Restarts

Learn More

Open Loop and Closed Loop System Questions

Open Loop and Closed Loop System Questions Answers

PLC Sizes and Applications

PLC Sizes and Applications

Instrumentation Control Systems

What is Instrumentation Control System ?

Sick Flow meters

Flare Ultrasonic Flow Meter – SOPAS Engineering Tool

Control System Basic Wiring Practice Animation

PLC Connection between Instrument, Junction Box, Marshalling & System Cabinet

Integral (Reset) Control Theory

Gas-chromatograph-Working-Principle

Gas chromatograph Working Animation

Design Counters in PLC Programming With a Move Instruction

Design Counters in PLC Programming With a Move Instruction

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?