about AB's timer

/sigh.

The first question that should be asked, is, are you using a 'Classic' AB PLC (PLC-5, SLC-500, MicroLogix) or a Logix Platform PLC (Control/Compact/FlexLogix).

If you are using a classic processor, then you should create independent subroutines, each with a unique timer.

If you are using a Logix processor, you can pass a unique timer value as an input parameter to the subroutine call.

As with general computer programming, manipulating things beyond the scope of the DOCUMENTED underlying rules is a bad bad bad idea. A 'Kludge' that may work today on a particular firmware revision or CPU, may very well fail on another revision. Case in point: If software developers actually wrote software to Microsoft's published Window's NT (Or, in almost all cases, Windows 3.1) API, all of those programs would function perfectly in every later version, even Vista. Programs that fail under Win 2k, or Win XP, or Win 2k3, or Win Vista, fail because developers take undocumented shortcuts.
 
Instead of passing the timer, pass a pointer to the timer and use indirect addressing.

If you are using a CLX processor, then use object oriented programming and create a UDT. The UDT will contain a timer. Then create 14 tags of the the UDT type and pass those to the subroutine.
 

Similar Topics

I have some logic that I have written within a 5380 series controller that tracks the time an event is started, while the event is running an RTO...
Replies
2
Views
94
Hi all, I have a simple question that I have overcomplicated and gotten stuck on. I have a variable, we can call it "light" that I need to stay...
Replies
4
Views
323
Question to anyone with ideas about my thoughts on upgrading a very vintage timer, which is being used to switch between 2 5hp domestic water...
Replies
14
Views
441
why my timer only executes once here? After first time i use it, ET stays at 0ms all the time. It is in FB
Replies
5
Views
319
Good morning guys, I'm searching for a Timer relay which accomplishes the "flasher" condition in the photo attached, however, I need the ability...
Replies
2
Views
560
Back
Top Bottom