761
G-Code, CAD, and CAM discussions / Re: reset home with G code
« on: July 07, 2008, 01:13:59 AM »
Hi, Sam
If I understand, Your code finishes X## Y## Z## and you want to Zero the DRO's at there current position with G-code or M-code. ?
The attached Macro, M2500.M1S will do this for you.
You need to put it in your Macro folder for the Profile your loaded at startup. Example: C:\Mach3Mill\Macros\Mach3Mill.
Add the M2500 in as below, In your G-code file.
N255 X2.0380 Y1.1590
N260 G0 Z1.0000
M2500
M30
%
It can be changed as needed, It's just some DoOEMButton,s 1010, 1009, 1008, z,y,x, Same as Pushing the Zero X,Y,Z, Buttons.
Let Us Now, Chip
If I understand, Your code finishes X## Y## Z## and you want to Zero the DRO's at there current position with G-code or M-code. ?
The attached Macro, M2500.M1S will do this for you.
You need to put it in your Macro folder for the Profile your loaded at startup. Example: C:\Mach3Mill\Macros\Mach3Mill.
Add the M2500 in as below, In your G-code file.
N255 X2.0380 Y1.1590
N260 G0 Z1.0000
M2500
M30
%
It can be changed as needed, It's just some DoOEMButton,s 1010, 1009, 1008, z,y,x, Same as Pushing the Zero X,Y,Z, Buttons.
Let Us Now, Chip