I've written an MC024-120 program for a quadrature encoder to track the feeding of a hose. Any ideas why the amount of error in one direction is different from the error in the opposite direction?
To test it, I've put together a prototype, fed out 20 feet of hose, and brought it back to the zero point. While testing, we noticed the measurement on Service Tool is short by half an inch while feeding out-- fairly acceptable. After retracting the hose back to the zero point, the Service Tool showed the hose was still sticking out by 6 inches!
Attached is my counting method on the programming side-- essentially adding QuadCount to the current total count, with a method of zeroing. To convert this count into a distance, I'm using a "Scale" function that references known values (# of pulses at 10 feet).
For hardware, the encoder is on an idler wheel that rides along the hose. The encoder reads 250 pulses per revolution, at approximately 5.125 inches per revolution. The hose can travel at anywhere between 0 and 3 ft/s using a motorized feed system.
Any ideas why the amount of error in one direction is different from the error in the opposite direction?