Controllogix - simple question about periodic tasks

Join Date
Aug 2007
Location
Belo Horizonte
Posts
8
Hi everyone,


Suppose I have a periodic task to trigger some communications, and in this task I have a pointer that iterates for each communication trigger (which goes to it's respective MSG).
The iteration is a simple addition to the pointer number, then the routines with the MSG's are called, then the next and after the last one I move zero to the pointer.


Question is: In a periodic task, the pointer will only iterate once each time the task is called?
For example, my periodic task runs each 100ms. I have a pointer to cycle through 12 msg blocks. Can I assume the task will execute one iteration per 100ms, which will give me a span time of 1200ms between a message A is executed, then the other ones, and finally message A is executed again?


Or if the total running time of the task is, for example 10ms, it will cycle many times until it's 100ms window finishes?
 
If this is a low priority task then use timers in a continuous task to call the printer. Otherwise the periodic task has priority over the continuous task off the bat.

There is a doc that explains the basic concepts of what each type of task represents.
Basic concept below
Continous - lowest
Periodiic - next
Interrupt - next
Motion - highest.

There is a 1 to 10 value that gives you priority within each type.
 
In a periodic task it will run through the code one time for each period. If you want to have it trigger each message on every scan, then we need to rethink how the logic executes and how the pointer increments.

OG

EDIT: The periodic rate is how often the task will execute. Not how long it will execute. Assuming no other tasks, if it takes 10ms to run the task one time, then after it executes it will return to the continuous task and resume scanning. 90ms later it will generate the periodic interrupt again. For multiple tasks, priorities are selected from 1-15 with 1 being the highest priority. So a periodic priority of 1 is higher priority than an EVENT task with a priority of 2. The continuous task has no priority (think 16).
 
Last edited:

Similar Topics

I know I posted a question about communicating with a Zebra printer with ControlLogix or CompactLogix. I did see some conversations concerning...
Replies
7
Views
5,195
Thought this would be a built in instruction but can only find SWAPB that only works on one word at a time.
Replies
5
Views
2,426
Why does the controllogix redundancy modules use a single mode fiber vs multimode fiber?
Replies
1
Views
86
Hello, I have two 16 point input cards and 1 16 point output card showing module faulted on my IO tree in Logix Designer. The fault code is...
Replies
7
Views
216
Hello, My associate and I are trying to sync up two ControlLogix racks (7-slot chassis) with identical modules. We are able to see the secondary...
Replies
4
Views
198
Back
Top Bottom