TheWaterboy
Lifetime Supporting Member + Moderator
Disclaimer: This might be simple - about to have my first grandkid any day now so I'm up late with my daughter and VERY sleepy during the day so my brain is lagging way behind its usual substandard.
Working with a PLC-5. Trying to calc Duty percentage of a pump. Looking for short cycling, not looking for a runtime.
The math is easy: duty% = [Running time] / [cycle time]
Haven't had to do this particular thing before and it caught me that this isn't dead simple, but again, substandard brain.
I haven't tried an OSR yet, I will while I wait for an easier answer, but how else can you time a single bit from true transition to true transition to get the entire cycle time?
Working with a PLC-5. Trying to calc Duty percentage of a pump. Looking for short cycling, not looking for a runtime.
The math is easy: duty% = [Running time] / [cycle time]
Haven't had to do this particular thing before and it caught me that this isn't dead simple, but again, substandard brain.
I haven't tried an OSR yet, I will while I wait for an easier answer, but how else can you time a single bit from true transition to true transition to get the entire cycle time?