Hi
I need to count up a digital input into a PLC and generate rpm
I will generate a one shot from the DI and use the oneshot to add 1 to a DINT, and reset it after 1 minute. The issue is a average rpm over time...... I assume i need a FIFO style instruction and move the counts into that and maybe average the last 3 or 4 to get a average
Any beter ideas welcome... i was thinking of counting over a lower time base and multiplying up ie every 20 seconds and multiply by 3 to get minutes value
I need to count up a digital input into a PLC and generate rpm
I will generate a one shot from the DI and use the oneshot to add 1 to a DINT, and reset it after 1 minute. The issue is a average rpm over time...... I assume i need a FIFO style instruction and move the counts into that and maybe average the last 3 or 4 to get a average
Any beter ideas welcome... i was thinking of counting over a lower time base and multiplying up ie every 20 seconds and multiply by 3 to get minutes value