Hello Guest it is March 28, 2024, 07:38:27 AM

Author Topic: getting brutal with arcs and sub routines...  (Read 3451 times)

0 Members and 1 Guest are viewing this topic.

getting brutal with arcs and sub routines...
« on: January 23, 2013, 06:38:23 AM »
this is fun. this is weird.

should i play a game of "spot the difference"?

right! i chopped up a wizard!

resulting in this...

___________________________


G0 G49 G40  G17 G80 G50 G90
M6 T1(TOOL DIA. 5)
G21 (mm)
M03 S300
G00 G64 A0.0
Y0.0 X0
G00 G43 H1  Z15
M98 P0001 Q5
X0
Z15
M5 M9
M30


O0001
(Start_pos = 10)
G00 G43 H5  Z15 G90
X0 Y0
G01 Z10 F500
G3 X-12.5 Y-12.5 Z-5 I0 J-12.5 F1000
G00 Z15
X0 Y0
G91 A72
G90
M99

_______________________


it is(was) a cut spline, modified for some bizarre reason. note my nasty insertion of a Z move in the g3 arc.(another brutalised wizard)

it makes quite a pretty pattern when " A axis rotation enabled" is selected from the config>toolpath box. im proud. its my first bit of g code ive put some thought into and im learning lots!

it started life as a 4 spline in the wizard. so i worked out the subroutines and q numbers, g90, g91, g64 and g43. im learning! :o

heres my weird bit of code. look close!
__________________________________


G0 G49 G40  G17 G80 G50 G90
M6 T1(TOOL DIA. 5)
G21 (mm)
M03 S300
G00 G64 A0.0
Y0.0 X0
G00 G43 H1  Z15
M98 P0001 Q5
X0
Z15
M5 M9
M30


O0001
(Start_pos = 10)
G00 G43 H5  Z15 G90
X0 Y0
G01 Z10 F500
G3 X-12.5 Y-12.5 Z-5 I0 J-12.5 F1000
G00 Z15
X0 Y0
A0
G91 A72
G90
M99

______________________


the difference comes from firstly, trying to add some "A" rotation as well as the "Z" move in the arc.
that didnt work at first. it resulted in a strange knot.

so return the "A" to zero . knot remains. :-\ a different knot, mind you.

stuffed around with various combinations of - and + figures, knots knots knots.... pretty but not as pretty as i want!

removed my "A" rotation from the arc move  :'(

the knots remain. wtf?

the addition of a simple "A0" has seemingly made the g91 call void... instead of indexing around by 72 degrees, the subsequent moves are all on top of each other.

i havent actually tried the code on a mcahine yet....maybe its just mach3's  display having a hissy fit and the a axis is really rotating?

me thinks not.


see what i want to do? cut an XY arc with some Z in it too, combined with a bit of spin on the A axis... i just want it to return the A to zero afterwards, index, and repeat routine! grrrrr! not make knots!


ha ha. 2nd paragraph of gcode summary G02/03  >:D


its in my blood to be difficult...


its a shame theres only one "axis of rotation" you can select in the config.toolpath box... i like watching gears/splines running. spherical faced spiral gears anyone?
« Last Edit: January 23, 2013, 06:42:51 AM by HeadSmess »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: getting brutal with arcs and sub routines...
« Reply #1 on: January 23, 2013, 03:03:40 PM »
You need to look at Gearotic motion.  IF you are into gears (;-)

(;-) TP
Re: getting brutal with arcs and sub routines...
« Reply #2 on: January 24, 2013, 01:30:36 AM »
ive looked at that, and it has absolutely nothing to do with what im attempting. except for the initial indexing subroutine... i can cut gears already. and have. easy peasy :) hob the M1 cus i have a hob, anything else i flycut....

watch "cutting impeller with 5 axis" on youtube. think that movement minus the fifth axis.

looks easy. obviously isnt.

once i get my head around this "A0" syndrome, im laughing :D

i believe the CAM that can work it out for me will be a tad on the pricey side :(

and is nowhere near as satisfying :D


to look at it from another angle.... imagine im trying to modify the "gear wizard" to do spiral/helicals (or even hypoid bevels to get really complex...)... so no arc, but the 4th has to rotate as the X is cutting... then it must return to zero, and index for next tooth. its this bit im having trouble with. returning to zero and indexing( around a FULL circle!)

maybe i should try it without the G3 arc and work from there...
« Last Edit: January 24, 2013, 01:41:28 AM by HeadSmess »
Re: getting brutal with arcs and sub routines...
« Reply #3 on: January 24, 2013, 05:48:25 AM »
ah hah! got it!

G0 G49 G40  G17 G80 G50 G90
M6 T1(TOOL DIA. 5)
G21 (mm)
M03 S300
G00 G64 A0.0
Y0.0 X0
G00 G43 H1  Z15
M98 P0001 Q6
X0
Z15
M5 M9
M30


O0001
(Start_pos = 10)
G01 Z5 F600
G91 X-25 Y-5 Z-5 A60 F600
G00 G90 Z15
X-0 Y-0
M99



and lets see now... with an arc...

G0 G49 G40  G17 G80 G50 G90
M6 T1(TOOL DIA. 5)
G21 (mm)
M03 S300
G00 G64 A0.0
Y0.0 X0
G00 G43 H1  Z15
M98 P0001 Q6
X0
Z15
M5 M9
M30


O0001
(Start_pos = 10)
G01 Z5 F600
G91 G3 X-12.5 Y-12.5 Z-5 A60 I0 J-12.5 F200
G00 G90 Z15
X-0 Y-0
M99

how pretty...

sussed!


time to hack up some plastic! (for starters)
Re: getting brutal with arcs and sub routines...
« Reply #4 on: January 24, 2013, 05:57:43 AM »
G0 G49 G40  G17 G80 G50 G90
M6 T1(TOOL DIA. 5)
G21 (mm)
M03 S300
G00 G64 A0.0
Y0.0 X0
G00 G43 H1  Z15
M98 P0001 Q12
X0
Z15
M5 M9
M30


O0001
(Start_pos = 10)
G01 Z5 F600
G91 G3 X-12.5 Y-12.5 Z-5 A60 I0 J-12.5 F200
G00 A-30
G90 Z15
X-0 Y-0
M99



getting even fancier now :D
Re: getting brutal with arcs and sub routines...
« Reply #5 on: January 24, 2013, 11:51:09 PM »
last but not least.

multi pass at 1mm DOC to 5mm total.
 im thinking, for backlash sake, that i should remove the A0 from between the M98's.... just practising now :)

now ive worked this out, it really gets down to working out actual geometry. offsets. speed and feed... this must be the easy part!
_________________________________________________

G0 G49 G40  G17 G80 G50 G90
M6 T1(TOOL DIA. 5)
G21 (mm)
M03 S300
G00 G64 A0.0
Y0.0 X0
G00 G43 H1  Z20
M98 P0001 Q6
A0
M98 P0002 Q6
A0
M98 P0003 Q6
A0
M98 P0004 Q6
A0
M98 P0005 Q6
A0
M98 P0006 Q6
Z15
X0
M5 M9
M30


O0001
(Start_pos = 10)
G01 Z15 F600
G91 G3 X-12.5 Y-12.5 Z-15 A45 I0 J-12.5 F600
G00 A15
G90 Z20
X-0 Y-0
M99


O0002
(Start_pos = 10)
G01 Z14 F600
G91 G3 X-12.5 Y-12.5 Z-15 A45 I0 J-12.5 F600
G00 A15
G90 Z20
X-0 Y-0
M99


O0003
(Start_pos = 10)
G01 Z13 F600
G91 G3 X-12.5 Y-12.5 Z-15 A45 I0 J-12.5 F600
G00 A15
G90 Z20
X-0 Y-0
M99



O0004
(Start_pos = 10)
G01 Z12 F600
G91 G3 X-12.5 Y-12.5 Z-15 A45 I0 J-12.5 F600
G00 A15
G90 Z20
X-0 Y-0
M99


O0005
(Start_pos = 10)
G01 Z11 F600
G91 G3 X-12.5 Y-12.5 Z-15 A45 I0 J-12.5 F600
G00 A15
G90 Z20
X-0 Y-0
M99

O0006
(Start_pos = 10)
G01 Z10 F600
G91 G3 X-12.5 Y-12.5 Z-15 A45 I0 J-12.5 F600
G00 A15
G90 Z20
X-0 Y-0
M99

______________________________________


resulting in this (rotation in X-axis)


« Last Edit: January 24, 2013, 11:54:34 PM by HeadSmess »