Hello Guest it is May 19, 2019, 02:58:29 AM

Author Topic: ROTARY INDEX ON LATHE - GCODE  (Read 2518 times)

0 Members and 1 Guest are viewing this topic.

Offline RICH

*
  • *
  •  7,329 7,329
    • View Profile
ROTARY INDEX ON LATHE - GCODE
« on: January 01, 2010, 08:38:18 PM »
I decided to try a few things with the rotary indexer on the lathe.
The axis is set up as linear ( 12.6449"=360 degrees) since I can
relate to a 90 deg turn of the A in 1" of Z and also confirm rotations
using the index band around the chuck.
The picture shows four simple scroll cuts and one band cut on the cylinder. My coding is below.

This is a new journey for me. Indexing for drilling is easy since the
table can be set up as rotary. And text will be done using Wrapper.

SO.....all you rotary table folks......

Is there an easier way to code the spirals?

What are good options to consider?

Could you use the Function Cfgs > Formula such that the A moves can be coded in degrees?


N10 (1TEST OF 90 DEGREE WRAP)
N20 G00 Z.035
N30 G00 X-0.01
N35 G91
N40 G01 A3.1612 Z-1.0 F5
N50 G00 X0.020 F60
N60 G00 Z1.0
N70 G00 X-.020
N80 G01 A3.1612 Z-1.0 F5
N90 G00 X0.020 F60
N100 G00 Z1.0
N110 G00 X-.020
N120 G01 A3.1612 Z-1.0 F5
N130 G00 X0.020 F60
N140 G00 Z1.0
N150 G00 X-.020
N160 G01 A3.1612 Z-1.0 F5
N170 G00 X0.020 F60
N180 G00 Z-.1
N190 G01 A12.6449 X-.019 F5
N190 G01 A13.6449 X-.001 F60
N200 G00 A-1.0 X.020
N210 G00 Z1.1
N220 M30

Thanks for anything that will shorten the learning curve,

RICH

Offline Chip

*
  • *
  •  2,057 2,057
  • Gainesville Florida USA
    • View Profile
Re: ROTARY INDEX ON LATHE - GCODE
« Reply #1 on: January 02, 2010, 03:23:24 AM »
Hi, Rich

Just how much copper pipe do you have left, It's to late to think on your question tonight.  :D

looks nice, Chip  ::)

Edit: OK hears some code to look at.  ???

m98 p11 l11; P sets file O11,O12 I set for 11 teath, Setting A dia.set to 0.5
G90
G80 G40 G91.1

m30

o11;-----------------------------11 tooth Ang. Gear
g91
g01 z-.0 f50
g01 z-.05
g01 x-.5 y0 z0 a32.727272 f50; A axis 11 equal spaces 360 turn
g01 z-.05
g01 x.5 y0 z0 a-32.727272 f50
g01 z.1
g00 a32.727272
m99
%

o12;-----------------------------11 tooth Strt. Gear
g91
g01 z-.0 f59
g01 z-.05 f59
g01 x-.5 y0 z0  
g01 z-.05 f59
g00 x.5 y0 z0
g01 z.1 f50
g00 a32.727272; A axis 11 equal spaces 360 turn
m99
%

Chip  >:D
« Last Edit: January 02, 2010, 03:51:02 AM by Chip »

Offline RICH

*
  • *
  •  7,329 7,329
    • View Profile
Re: ROTARY INDEX ON LATHE - GCODE
« Reply #2 on: January 02, 2010, 09:59:36 AM »
Chip,
Still have a few pieces of tubing with no scribe lines on them, then it's time to reclaim the scribed ones, heck then good for another year. Too bad as someone won't be getting a copper chime set.  ;D  >:D

Thanks for the code. I went back and started reading all the posts for a  rotary table.
Note too much on practical application there, but there are some good comments that were made.
Typical journey as you need to go thru all the configuration stuff and sort out what applies to the rotary table and
the trade offs on use.
RICH