I have an X35 and added a row of .25 holes in my spoilboard in X and Y for alignment dowels. I use the following MDI command after homing to set my zero:
G01 x4.033 y4.04
Then set as my offset. I am wondering if I could make a gcode file that I can run that will move my X and Y to that location and then set zero. It saves a few key clicks. I did search the forum, and found some great stuff on the topic, but I do not know much about the gcode stuff and thought it would be okay to post my question. Thanks!
Thanks for the quick reply. So would I just copy those lines to a file and save as gcode and run it as a toolpath after a homing sequence? My goal is to not have to manually enter into the MDI (if that is possible)
G90 ; Set Absolute distance mode
G20 ; Set Imperial units mode
G92.1 ; Delete any previous offset
G0 X4.033 Y4.04 ; Rapid move X and Y
G92 X0 Y0 ; Set X and Y zero here
This assumes you already homed the machine. To add a home command, this would be prepending G53 G0 X0 Y0 (and possibly add Z0 if you want).
I am in the land of imperial measurements… so not metric. Would I just delete the G21 line, or is there a different G command for us freaks that never switched to a measurement system that makes sense?
I assumed imperial in my first attempt, but then I was unsure because 4.033 and 4.04 inches seemed much to me, and changed it to millimeter. You really want it moved over four inches?
Yup, for me, that 4"in and 4"up is a very comfortable spot for my projects that are not very large. I do a lot of epoxy inlay work and that seems to be my sweet spot for cleaning up the chips and brushing out debris. Thanks for the assist!