Hi all,
I have been scratching my head now on the best and easiest way of calculating the speed of a rising and falling analog input using the compact Logix and the 1769 IF8 input card.
The scenario:
I have a value which starts at 0 and rises to 39.8 meters this gives me my analog input 0m = 4mA and 39.8m = 20mA.
I want to display the real time speed of that changing analog signal which can range from 1m/min to 10m/min.
At the faster speeds the display is pretty stable, I am taking samples every 3 seconds then loading the values into FIFO stack and pulling out the average and it works fine but at the 1m/min speed, the change of the float value is minimal and I lose resolution and the display is not accurate or stable. I have tried FIFO averaging etc to try and iron it all out but to no avail.
Any help would be appreciated gratefully I can post my program when I get to work if anyone needs a look.
Thanks in advance
I have been scratching my head now on the best and easiest way of calculating the speed of a rising and falling analog input using the compact Logix and the 1769 IF8 input card.
The scenario:
I have a value which starts at 0 and rises to 39.8 meters this gives me my analog input 0m = 4mA and 39.8m = 20mA.
I want to display the real time speed of that changing analog signal which can range from 1m/min to 10m/min.
At the faster speeds the display is pretty stable, I am taking samples every 3 seconds then loading the values into FIFO stack and pulling out the average and it works fine but at the 1m/min speed, the change of the float value is minimal and I lose resolution and the display is not accurate or stable. I have tried FIFO averaging etc to try and iron it all out but to no avail.
Any help would be appreciated gratefully I can post my program when I get to work if anyone needs a look.
Thanks in advance