Better Timers for A-B

Join Date
Apr 2002
Location
Just a bit northeast of nowhere
Posts
1,117
Actually, it's time tracking I'm interested in...

My usual manner is as follows:

1. Track seconds with an RTO up to 60 (seconds)
2. Strobe a Counter with RTO/DN (Minutes)
3. Reset RTO with RTO/DN (Reset Seconds)
4. If CTR/DN is set, Reset CTR and RTO (Overflow)

Then I monitor the CTR.ACC to see my elapsed minutes :)

The thing is, this seems inelegant to me. If Micrologix timers could be set for more than 32000, I could just count seconds and divide by 60, but this is close to 8 hours, and we sometimes run ten or twelve.

Anybody know a better way?
 
There is a cheap and dirty method you can use if you are running an STI file. Put some simple logic to add the STI time base to a floating point register every scan while your 'timer' is enabled. For example, if your STI = 10msec, add 0.01 to your floating point register that will correspond to your accumulator. Perform an GEQ evaluation to control your 'done' bit.

If you want to work with minutes instead of seconds, then take your time base value and divide by 60 i.e. 10ms = .000166666 minutes. Add this value each scan.
 

Similar Topics

Good Afternoon , It seems like we always have problems with using Type J Thermocouples with our slip rings . Would using a RTD at 10...
Replies
6
Views
1,622
I am beginner in B&R Automation Studio and TIA Portal. Have an experience in electrical part of PLC cabinets. Now its time to get a new skills...
Replies
8
Views
1,632
Bla Bla Bla, why doesn't it work, l need help and l don't understand PLC's. Or better they understand everything, but can't understand +1 -1 = 6...
Replies
22
Views
5,960
I rarely need to add a network card to the drives we install... very rarely. But my sales-guy said he needs to quote a network-connected ACH580...
Replies
6
Views
2,555
I'm currently on a research project where I can send tag read & write requests to both SLC as well as CLX controllers. Presently, there's no...
Replies
8
Views
2,388
Back
Top Bottom