Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: meshacnc1 on December 01, 2018, 11:33:04 AM

Title: JogOn - Question/Problem - Macros
Post by: meshacnc1 on December 01, 2018, 11:33:04 AM
I was hoping to add a custom switch that would stop a JogOn() within a give M code. I have made the macro as per the documentation but have found that JogOn(2,0), does not move the machine in the Z axis in the positive direction when place inside a M call.

Am I going about this in the right way?
Do I need to something extra to allow this function?

Thank you
Title: Re: JogOn - Question/Problem - Macros
Post by: TPS on December 01, 2018, 11:44:44 AM
hello meshacnc1,

pls describe what you realy want to do.
sometimes there is more than one way to rome.
Title: Re: JogOn - Question/Problem - Macros
Post by: meshacnc1 on December 01, 2018, 12:07:37 PM
Thank you TPS. I want to create a probe that finds the top of an object. Then skims the top of said object until it falls off (releasing the switch), this would start at the same point and run twice in both directions. I could then calculate the center and set it to zero. I have created a probe that allows the the switch to release when the object it is riding on top of drops in initial probed height.

Hope that kind of makes sense.

Thank you
Title: Re: JogOn - Question/Problem - Macros
Post by: TPS on December 01, 2018, 12:13:16 PM
ok,
we are on the probe/touch probe road.

in this case a macro, or a brain is to slow to do this.

G31 is your friend, try to read/learn a bit more about G31 (i realy do not want to patronize you),
but i think that is the functionalty you are looking for.

Tom

Title: Re: JogOn - Question/Problem - Macros
Post by: meshacnc1 on December 01, 2018, 01:23:01 PM
Yup that looks like it will work for what I want. Thank you