Machsupport Forum

Mach Discussion => Mach Screens => Screen designer tips and tutorials => Topic started by: rmcdonaldcnc on December 18, 2012, 09:53:57 PM

Title: Code to move to machine coords
Post by: rmcdonaldcnc on December 18, 2012, 09:53:57 PM
I'm modifying a screenset with a button for "Load Material".  I've got user dro's 1017, 1018 and 1019 for the load material position.
The code for the button is Code "G00 X" & getuserdro 1017 etc.  This sends the head to the program coordinates.  How can I get it to send it to machine coordinates?  I tried putting a G53 ahead of the code but this didn't seem to help.

Rich
Title: Re: Code to move to machine coords
Post by: ger21 on December 19, 2012, 07:07:26 AM
Code "G53 G0 X" & .........
Title: Re: Code to move to machine coords
Post by: rmcdonaldcnc on December 20, 2012, 04:04:58 PM
Thank's for the info.  After more research (RTFM) I found that the G53 code is non-modal and needs to be on the same line as the coordinates.

Rich