Allen Bradley PLC-5 Alarming

Sorry for my late reply, just back from holiday :)

msinclair said:
Do you mean subtracting last scan time from an integer and doing my compares that way?

Thats what I mean, OR have a master timetick to update your timers.
The saving in memory comes from this:

AB timers use 3 words.
One word for the control bits .EN, .DN, .TT, and the definition of the timebase.
Two words for the .PRE and .ACC.

You must group the timers into similar types, each type must have the same setpoint (otherwise you will spend datawords for the setpoint).
You can do away with the control bits and the timebase. Alternatively, you can assign a few bits rather than a complete word for the control. You dont need to use memory fot the timebase.
If you time down to zero rather than up from zero, then .PRE and .ACC will be converted into one word.
When the timer must start, you load it with the setpoint. You update it by decrementing it (every scan, or when the timetick tells you to).
The timer is done then its value reaches zero.
In order to save code you should use indirect addressing and a for-next loop.
 

Similar Topics

Hello, I am new here. I am trying to find good places to sell some surplus items that I have that isnt through ebay. Does anyone have any sources...
Replies
6
Views
446
Hi good day Everyone, I have a cimplicity v10 project with 7 to 8k tags communicating with AB PLC through OPC and Rslinx classic. I have this...
Replies
3
Views
225
I am using Allen Bradley PLC 1756-L81E and EIP module 1756-EN2TR for Ethernet/IP communication. My communication works fine but in Get-Attribute...
Replies
2
Views
222
I have a network with 4 PLCs PLC1 is controllogix and PLCs 2-4 are compactlogix and they all need to communicate. The current way I have this...
Replies
8
Views
269
Hi Everyone, I am currently trying to communicate ControlLogix PLCs via EtherNet/IP with Delta V DCS. There is a VIM2 card configured for...
Replies
1
Views
290
Back
Top Bottom