Page 1 of 1

Machine crashes if G30 is called twice

Posted: Thu Jan 04, 2024 8:24 pm
by MrBowtie
Hello,

I was writing a tool change macro when I ran into this bizarre behavior. The machine is a moving gantry router with twin motors, in this case axes X and B. Calling G30 positions the machine over the tool height detector correctly, but after it is in position, if it is called a second time, only the B axis rapids in the negative direction until the servo stalls out. I do not understand what could cause this behavior where it decouples the paired axes and moves only one. I have tested G30 in MDI with the same result, so it doesn't seem to be anything in the macro. After the servo faults out, it does resync to the correct position, not where it crashed and faulted.

Re: Machine crashes if G30 is called twice

Posted: Fri Jan 05, 2024 10:22 am
by Centroid_Tech2
Since the paired axis is labeled, it can be commanded separately.
Set your G30 return points for X and B axes to match.
G30.JPG