Machsupport Forum

Mach Discussion => Mach4 General Discussion => Mach4 Plugins => Topic started by: Dave3891 on February 02, 2018, 01:17:17 PM

Title: Mach4 Galil Question
Post by: Dave3891 on February 02, 2018, 01:17:17 PM
Is it possible to have a script read both encoder positions when running an axis in dual loop mode on a Galil controller?
What I want to do is use the linear encoder for the position feedback as per the Galil plugin manual, but I also want to have a script running in the background comparing the linear encoder to the rotary encoder.
This way the machine can stop if the difference between the two encoders is too high (linear encoder error)

My machine currently runs this way with its old software, but I want to keep this error checking if I switch to Mach4.


Any help would be appreciated.


Title: Re: Mach4 Galil Question
Post by: smurph on November 06, 2018, 03:46:59 AM
There is no need to have Mach do anything higher up the chain.  You can set "off on error" on the Galil and do it totally on the Galil.  The error will be seen as a following error.

Steve