Using variable for G1 X,Y position
-
Hello,
I am writing a program where I want to use variables as X and Y coordinates in a G1 move command.
var loopCounter = 0 ; values are machine position from camera calibration var t1X = 0 var t1Y = 0 G1 X{t1X} Y{t1Y} F1000; Move to camera calib position G1 X{t1X-7.95} Y{t1Y-47.9} F1000; move to secondary position
I am getting error "unknown value 't1X"
What is the correct way to declare and set a variable to a decimal number?
-
@RockB Probably something like
; values are machine position from camera calibration var t1X = 0 var t1Y = 0 G1 X{var.t1X} Y{var.t1Y} F1000; Move to camera calib position G1 X{var.t1X-7.95} Y{var.t1Y-47.9} F1000; move to secondary position