chopping up code... sorry art!

Feel free to talk about anything and everything in this board.
Post Reply
Headsmess
Old Timer
Posts: 9
Joined: Wed Jan 14, 2015 4:08 am

chopping up code... sorry art!

Post by Headsmess »

at some point i had a bit of a whinge about how using the slot saw "gear shaving" option tends to make way to many back and forth A axis moves for my liking...

last night i was bored, so started chopping up some code to do what i feel is more... accurate. (no backlash!)


conveniently, the same format allows me to cut spiral/helical gears. (probably by skipping several teeth at a time to prevent backlash issues again...) simply tilt the rotary table over and apply the relevant A move during the X feed. spirals!

so, just as an example, heres my abbreviated code. using sub routines. basically a mish mash of the gear cutting option from MACH3 and using relevant Y,Z, and A moves from gearotic. forgive me if i have sinned! its only a suggestion...

yeah, i only wrote half a tooth profile, couldnt be bothered doing another 8 subroutines... and i ignored the correct Y for zero points etc.

G0 G49 G40  G17 G80 G50 G90
M6 T1(TOOL DIA. 50)
G21 (mm)
M03 S300
G00 G64 A0.0
y0
g01 Y-3.145 f1000
a4.802
M98 P0001 Q25
a17.706
M98 P0002 Q25
a23.159
M98 P0003 Q25
a27.458
M98 P0004 Q25
a31.181
M98 P0005 Q25
a34.555
M98 P0006 Q25
a37.698
M98 P0007 Q25
a40.681
M98 P0008 Q25
X0
Y0.0
M5 M9
M30


O0001
g00 z0.208
g01 x0
x27.5
x0
G91 A-14.4
G90
M99

O0002
g00 z1.795
g01 x0
x27.5
x0
G91 A-14.4
G90
M99

O0003
g00 z2.466
g01 x0
x27.5
x0
G91 A-14.4
G90
M99

O0004
g00 z2.994
g01 x0
x27.5
x0
G91 A-14.4
G90
M99

O0005
g00 z3.452
g01 x0
x27.5
x0
G91 A-14.4
G90
M99

O0006
g00 z3.867
g01 x0
x27.5
x0
G91 A-14.4
G90
M99

O0007
g00 z4.254
g01 x0
x27.5
x0
G91 A-14.4
G90
M99

O0008
g00 z4.621
g01 x0
x27.5
x0
G91 A-14.4
G90
M99


also makes some great patterns if you change toolpath view from X to Y or Z :)


c'mon art, it would be great if you revised the g-code generator from gearotic to do the same thing. or something similar. then do something about shaving the elliptical gears the same way. the main reason i paid for gearotic, the elliptical gears, that i then cant cut by shaving!

notice...i dont even move the Y axis once other than the initial moves. no backlash issues here. full depth the whole way.

no backwards rotations of the A axis. no backlash issues again.

just back and forth with the X with subsequent increments on the A axis in the subroutines, with the required Z and A movement between subroutines.

and its about 100th the length of the original file.

i might tweak it and actually give it a go soon!

right. thats my feedback done for another year or three :)
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4591
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: chopping up code... sorry art!

Post by ArtF »

Hi:

  Pretty Good! You have a point, the GCode could be done much more efficiently than
its current tooth focus. Ive added the request to my list of things to consider. Ive been
looking at the cnc module lately as Im currently working on pocketing routines in Vexx
and considering a general recode of the GCode output modules.
  I cant promise when this may occur, Ive been a bit slow on updates lately as I
investigate certain code posabilities. I will say I dont see it for non circulars,
due to the way the tangenatal surface evolves over rotation, the varying pressure
angles make it near impossible to create a shaving GCode for them. 

  You idea is a good one though, to do it in one turn without the requisite reversals.
I will give that a higher priority than some other fixes and changes..

Art
Post Reply

Who is online

Users browsing this forum: No registered users and 65 guests