CODESYS cyclic interrupt block equivalent

Pandiani

Lifetime Supporting Member
Join Date
Apr 2005
Location
Tz
Posts
718
Hello to all,

I know there are a few people here very experienced with Codesys. I wonder does Codesys have something similar to OB35 in STEP7?

Cyclic interrupt blocks in STEP 7 are used when time specific calculations had to be performed, for example in case of using PID controllers. OB35 is by default 100 ms execution cycle (which can be changed in HWConfig), but there are other cyclic blocks of course. OB1 is not suitable for time sensitive calculations and updates.

Now, does Codesys have something similar and how in general PID controllers or any other similar time sensitive calculations are handled?

Thank you!
 
As Lare mentioned, you can run a program on a task that has a defined cycle time. You can also give priorities to tasks so something like a fast PID would be run on a task with a high priority.

But, many hardware suppliers that support CoDeSys have their own libraries that support PID (and other) types of controllers. They may have instructions to use them in a task with a specific cycle or they may take a cycle time parameter and look at the free running clock in the hardware and deal with it that way. Of course, the task should update at least as frequently as you want the controller to update.

There is also an open source library called Oscat (http://www.oscat.de/de/). This library includes several controllers. You can download the source files to see how they achieve different controls.

I haven't done any fast controllers so I haven't worried much about this but I have looked at it and there seem to be a lot of options to do things.
 
Thank you very much for the replies.
I'll investigate options. Oscat looks very interesting.
 

Similar Topics

Hello, I am using a Hitachi Micro EHV+ for a small project, and I wanted to have a Web visu, done with Codesys V3.5 SP13 Patch 2. I test the...
Replies
6
Views
294
Hello, I have a requirement to manage the text alignment dynamically. So, for example: 1. English Texts should be displayed from Left in...
Replies
0
Views
90
Hello, I am new to Codesys, and am trying to learn about it for a project we're developing. I've got a couple questions, but first a little...
Replies
1
Views
154
Hi everyone, as this is my first experience with Rockwell Software i would like to know what's the best way to make Enumerations?
Replies
10
Views
507
I am trying to get Codesys to work with a couple of Moxa ioLogik E1200 series DIO devices (E1210 and E1211). I am able to write to the E1211 DOs...
Replies
2
Views
172
Back
Top Bottom