I’m working on a problem where I need to calculate the pulses required per revolution of an 8.275” roll as if there were a Proximity sensor mounted on the roll. I felt I could do this by converting roll diameter into roll circumference then, convert FPM (feet per minute) to Inches Per minute. To then arrive at Pulses per minute. I feel my math is correct but I am unable to get correct counts.
In the example shown I set line speed for a slow rate 100FPM or 46 PPM. I am running this test on my laptop with RA RsEmulate my processor is showing a scan time of 120ms so I think the speed is fast enough to work properly. But I only pick up 42PPM. I put all code into one rung hoping for any speed advantage althouth I didn’t expect or see any change. My plan was to prove out my theory then use a Compute instruction to clean up the multiple calculations shown.
Any suggestions will be appreciated.
tried attaching PDF to show code hope it makes it.
Rich
In the example shown I set line speed for a slow rate 100FPM or 46 PPM. I am running this test on my laptop with RA RsEmulate my processor is showing a scan time of 120ms so I think the speed is fast enough to work properly. But I only pick up 42PPM. I put all code into one rung hoping for any speed advantage althouth I didn’t expect or see any change. My plan was to prove out my theory then use a Compute instruction to clean up the multiple calculations shown.
Any suggestions will be appreciated.
tried attaching PDF to show code hope it makes it.
Rich