2181
G-Code, CAD, and CAM discussions / Re: Variables
« on: March 02, 2007, 03:41:41 AM »
Hi Lew,
you can do it like this :-
O0001
#1=-9.95 (z depth)
#2= -10.95 (width)
G21 G40 G00 G90 G17
G00 X0 Y0 Z25.
S1000 M3
Z1.
G01 Z#1 F50.
G01 X#2
Y#2
X0
Y0
G00 Z1.
Z1.
G01 Z#2
ETC.....
M30
You can do in line calculations too.
X[[#2*2]+#1]
Graham.
you can do it like this :-
O0001
#1=-9.95 (z depth)
#2= -10.95 (width)
G21 G40 G00 G90 G17
G00 X0 Y0 Z25.
S1000 M3
Z1.
G01 Z#1 F50.
G01 X#2
Y#2
X0
Y0
G00 Z1.
Z1.
G01 Z#2
ETC.....
M30
You can do in line calculations too.
X[[#2*2]+#1]
Graham.