RSLogix 5000 - Reusing timers

All a timer really does is put a nice wrapper around a free-running clock delta. You can perform the function yourself. If you are a C guy this should look familiar.

The GSV instruction (Get system Variable) allows the user to get various pieces of system information from various objects in the system. One of the items is the value of the free-running clock, an array of two doubles with microsecond resolution. Use Class Name of WALLCLOCKTIME and Attribute Name of CurrentValue. Perform your own deltas on these time values and you can make your own timers.

I'm not saying it is necessarily a good idea but it is an alternative if you don't like creating timers.

Keith
 

Similar Topics

Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
156
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
577
First off, I'm a hobbyist-level programmer, and this program isn't controlling anything anything that could even remotely be considered "life...
Replies
18
Views
517
Hello all, I have a question in regards to RSlogix 5000. I am having issues with the program force closing when I try to make online edits. We...
Replies
0
Views
119
Back
Top Bottom