Machine crashes if G30 is called twice
Posted: Thu Jan 04, 2024 8:24 pm
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.
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.