1
G-Code, CAD, and CAM discussions / Re: Set Variable to Current Axis Position in G-Code
« on: March 13, 2016, 03:33:49 PM »
Thank you. I have created a macro M801 with the following.
Dim Yaxis As Integer
Yaxis = 801
SetVar (60,Yaxis)
In my G-Code I have a variable (#60) that represents the YLoc. At the time of the call to M801, will the #60 var will be updated with the current Y axis location? As I call M801 later in the program the #60 var will reflect the new location?
I appreciate the help with this.
Dim Yaxis As Integer
Yaxis = 801
SetVar (60,Yaxis)
In my G-Code I have a variable (#60) that represents the YLoc. At the time of the call to M801, will the #60 var will be updated with the current Y axis location? As I call M801 later in the program the #60 var will reflect the new location?
I appreciate the help with this.