Workpiece origin

Hi there,

I’ve been experimenting with the MillMage, and it’s really cool and fun to use. However, I have an issue with ensuring my CNC machine always returns to the workplace origin (bottom left) after completing a job. I’ve been using Fusion 360, which automatically returns to the origin once the job is done. However, I no longer want to rely on Fusion because it no longer meets my needs. MillMage is precisely what I’ve been looking for over the years. I need a few minor refinements, and I should be ready to go.

Could someone help me resolve this?

MillMage GCode:

G1 X153.047Y301.45
G0 Z30
M107
M5
G90;Restore absolute mode
M2

Fusion GCode:
G1 X35.915 Y200.951
G0 Z15
G0 Z30
G0 X0 Y0
%

Thank you for your time!

I’m only using MillMage to generate the GCode at this stage

I would create a Macros, once the task is finished you just press it and it goes to 0 of the machine (not the task).

1 Like

This would put my part under the gantry and behind the spindle.

Macro “Retract”:
$HZ
G0 X200 Y300

This moves Zaxis up and brings the table forward so I can get to the part.

1 Like

Ok then use it. I have my macros and the job done.

2 Likes

You can go into the Device Settings, custom gcode tab and find the Job End gcode:

By default it only sends M2. You can add the G0 X0 Y0 before or after the M2 as you prefer.

This will alleviate the need for a macro.

2 Likes

This is what you need