Easy one. Move in machine coordinates
-
Im new obvs. Have been using duet wifi for a CNC mill for about 6 months. I haven't written many macros.
I decided i wanted to write a macro to probe the bed in a single location as a means to calculate the tool offset after a manual tool change.
But im stuck at the starting blocks. Can you move with the machine coordinates and how?
In my head i thought id do something like this..
G90
G1 X100 Y0 F500But that moves from the work coordinates system rather than from the origin or home location. Either would work for me.
Any pointers would be fab.
-
see
https://duet3d.dozuki.com/Wiki/Gcode#Section_G54_to_G59_3_Select_coordinate_system
https://duet3d.dozuki.com/Wiki/Gcode#Section_G10_Set_workplace_coordinate_offset_or_tool_offset(i.e. if you change to G55 before setting the offset G54 will still be machine coordinates, or the other way around as well)
-
I see. So if i was to call G53 X0 Y0 F500 that would move the X and Y to the origin (just for example) then call G54 to switch back to WCS1?
-
I was looking for G53, but completely blanked out when it said absolute.
But yes,
I believe you are correct (test with caution:)ref under: -
@bonjipoo said in Easy one. Move in machine coordinates:
I see. So if i was to call G53 X0 Y0 F500 that would move the X and Y to the origin (just for example) then call G54 to switch back to WCS1?
No, the command would be:
G53 G1 X0 Y0 F500
or you can use G0 instead of G1.
-
@dc42 Thank you for clarifying this. Its a silly simple thing but i couldn't find the answer anywhere.