Posted this in the Mach4 forum but maybe this is a better place:
"I am in the process of re-retrofitting a Jig grinding machine I did a long time ago. The machine is sort of a hybrid between the old control and Mach3. Mach3 controls the X,Y and U (wheel outfeed) Axis. The old control still handles the Z axis which is pneumatically driven with glass scale feedback. I would like to take control of the Z in Mach. This axis does not need to be precision controlled, I just need to be able to set and upper and lower limit so the Z axis will reciprocate between those limits. I have done something similar in LinuxCNC using a Moog hydraulic servo valve with glass scale feedback to control the position of a hydraulic cylinder, but I have not done this in Mach3 or Mach4.
I am thinking I should take control of the relays that operate the pneumatic solenoid and use a script to monitor the position of the axis. Once the position hits the upper or lower limit it would activate the relay to change direction. Does this sound feasible? Is there a better way to do this?"
I understand that Mach4 only monitors the signals at 10Hz. The axis moves at a max of 250ipm. Would there be a better way to set this up with the PMDX424?
Here is a pic of the current control: