Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Tony Bullard on December 06, 2020, 07:56:27 AM

Title: Mach4 Lathe Home with limit and encoder index
Post by: Tony Bullard on December 06, 2020, 07:56:27 AM
I have encoders with index pulse on the lead screws and X and Z limit switches. I would like to home on the limit switches then move off to the first index pulse using a probing call, mc.mcCntlGcodeExecute(inst, "G31.3 X-.5000 f2"), near the end of the refAllHome function.

There is no Probe, Probe1 or Probe2 Signals under the Control Configuration Input Signals. There is Digitizing, and Probe3 through Probe9. The G31 doesn’t work even in the MDI with a probe signal from a push button for test and a LED assigned Input Signal = probe3. The LED lights but the motion doesn’t stop until G31.3 finishes. At that point the X, Z and A probe # variables are updated.

Any help with this would be appreciated. Also is the a different or better way to do this?
Thanks
Title: Re: Mach4 Lathe Home with limit and encoder index
Post by: KatzYaakov on December 07, 2020, 12:26:00 AM
in pokeys you not do nothing to use the Z index ,just wiring as diagram ,and define the homing cycle with z index
i believe other hardware also have it ,but i'm not familiar with there plug in
Title: Re: Mach4 Lathe Home with limit and encoder index
Post by: Tony Bullard on December 07, 2020, 07:29:51 AM
Thank you. I have Pokeys57ECNC on my Hurco Mill and their plugin works beautifully with home with index. The lathe I'm trying to set up for my son in law uses a PMDX 424 motion controller and SmartBob plugin which I don't believe supports this function.

Will your Mach4 Lathe support any G31 functions in the MDI?
Is anybody using G31 functions in Mach4 Lathe?
Thanks,
Title: Re: Mach4 Lathe Home with limit and encoder index
Post by: Tony Bullard on December 07, 2020, 09:05:07 AM
I found out the SmartBob plugin only supports one probe, probe 0 and it has to be an input signal to the PMDX motion controller.
Title: Re: Mach4 Lathe Home with limit and encoder index
Post by: KatzYaakov on December 07, 2020, 11:10:04 AM
yes ,sure we use G31 in tool length measure cycle
its work perfect
in pokeys its extra input ,not standard input
and yes its limit only one input ,but this i think not so important
if you want you can put some switch parallel on same input ,in any case you check always one by one