2031
General Mach Discussion / Re: Custom M-code for punching
« on: June 07, 2007, 03:57:00 AM »
Hi KTM,
G-Code dose not work like that, you can not get mach to split a move into 14 shorter moves, you can only do it long hand or use subs.
You can do this :-
O0001
#1=481.48
#2=273.08
#3=(#1-#2)/14
G00 G90 X#1 Y49.89
M98 P0002 L14 (RUN SUB 14 TIMES)
M30
O0002 (SUB)
M25 (PUNCH)
G00 G91 X-#3
G90
M99
Graham.
G-Code dose not work like that, you can not get mach to split a move into 14 shorter moves, you can only do it long hand or use subs.
You can do this :-
O0001
#1=481.48
#2=273.08
#3=(#1-#2)/14
G00 G90 X#1 Y49.89
M98 P0002 L14 (RUN SUB 14 TIMES)
M30
O0002 (SUB)
M25 (PUNCH)
G00 G91 X-#3
G90
M99
Graham.