Posted 23 Sep 2019 Hi, I'm pretty new to allen Bradley and wanted to know if there was a function that could help me out. I have a rotation sensor which feeds back to the PLC via a digital input, once every half second or second once machine is up to speed - I want to record the off time of this DI (how long it is off between pulses, essentially how long it takes for drum to rotate once). Is there some way to record this time and use this value for compare logic? any help would be greatly appreciated. PLC: Micrologix 1400 series B RSLogix 500 version 11.00.00 (CPR 9) Share this post Link to post Share on other sites
Posted 23 Sep 2019 You could use the bit (not bit), a timer, and some logic to store the time elapsed value from the timer 1 person likes this Share this post Link to post Share on other sites
Posted 23 Sep 2019 (edited) Is there a way of getting elapsed time from timer in Allen Bradley - I am used to Tia portal and using the ET function of timer block, is there anything similar I can use here? EDIT: I have written a short bit of logic here will this work or will the unlatch zero the ACC value before its written to F register? Edited 23 Sep 2019 by Ryandevlin17 Share this post Link to post Share on other sites
Posted 23 Sep 2019 You could also use the RTO instruction. Run the timer while the input is off. When the input turns on, grab the timer accumulator to do your math and then RES the timer. 1 person likes this Share this post Link to post Share on other sites
Posted 23 Sep 2019 Thanks very much both of you for your help I will try using the RTO as opposed to TON Share this post Link to post Share on other sites