1
General Mach Discussion / reference all home - probblem adding to stock button code
« on: August 08, 2015, 09:26:03 PM »
I'm a Mach3 beginner. I have a small CNC router I built a year or so ago. My machine is a fixed gantry and my home switches are located in such a way that my table homes to the rear of the machine (min Y) when I execute reference all home. After that, I almost always move the table back to the front of the machine (max Y) to deal with work pieces. That works fine but I wanted to automate that move back to the front after I reference home.
I went to Operator, Edit Button Script and changed the "reference all home" code as follows:
It sort of works. But it executes the move to 14.7 first, then does the reference all home. Is there a way I can get that command to happen after the reference all home?
Thanks,
Scott
I went to Operator, Edit Button Script and changed the "reference all home" code as follows:
Code: [Select]
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)
Code"G0 Y14.7"
It sort of works. But it executes the move to 14.7 first, then does the reference all home. Is there a way I can get that command to happen after the reference all home?
Thanks,
Scott