What's new
What's new

Haas Mini run 4th axis at constant speed during program

philmeik

Aluminum
Joined
May 3, 2010
Location
Colorado
Hello all I am trying to run a 4th axis on a Haas mini mill and it is working fine if I wanted to run it in a traditional way, angular increments. However we are using this to preshape aspheric lenses for diamond turning. Currently all of our shaping equipment can only generate spheres so I plan to use the mill to program and aspheric curve and cut the blank while the 4th axis constantly rotates and simply running a 2D path. I am hoping there is a good way to do this within Gcode that I am unaware of or in Mcode if need me. It is much simpler and more accurate to generate these curves in a 2d path than trying to import step files with a complex surface on them.

Otherwise, I imagine Haas systems are not open enough but hooking up to a seperate controller entirely is a possibility if I can get the enough info about the wiring.
 
Best option I can think of so far is adding a custom Mcode to every line and changing the angular increment per line in the mcode to, in a way, set the rotation speed.

This will be 95% of what we use this axis for and I would like to keep is as simple as possible for operators to create new programs themselves. Also considering selling the 4th axis and buying a worm gearbox and a simple motor to replace it at this point. My hope was that I could command M3 H4 F50 for example(M3(Spindle on) H4(Motor drive 4) F50(50RPM) but it seems there is no motor select command in M3.
 
Ya, you might want to buy that gearbox.

The rotary is controlled by G code commands for it as the "A" axis. Example starting at A0. and going to A360. will get you one revolution. But, you can't just tell it to keep going. There is also a limit of how many rotations you can do before it needs to "rewind." I believe it is 9,999 degrees or just over 27 full rotations.

In most application that is just fine, but in yours that probably will not work.
 
Not sure if it would help, but stopping at "A0." and then going to a G00 G92 G28 A0. will reset it without a move I believe and you can start again.
 
My manual for the 4th axis also claims 9,999 degrees. However it'll go 154,000 degrees. Easy to check. MDI: G0 A154000.
If it even starts it'll do it.
As far as the tool path, I've done this a few times. My CAM wanted to post many many steps for a simple path. I just found the curve and posted it out and then added the A axis rotational moves. It was a single curve so I'm not sure it'll work easily with your aspheric curve (I had to google it lol)
 
Yeah the gearbox is getting more and more tempting, if only the purchase approval process wasn't so daunting around here.

I was worried about the angular limits being an issue and indeed when the program is done it has to rewind fully. This program is currently just about 3,000 degrees though so this is manageable. I tried the "G00 G92 G28 A0" manually to unwind and that worked so I will add that to the end of the program and hopefully I can go to 154,000 like Chris said and then get around unwinding. This should work for now I suppose. It is definitely frustrating that this is not more readily achievable though.
 
quck rotary G28

Unwind Your Haas Rotary Back to Zero Quickly – Haas Automation Tip of the Day - YouTube
check to see if setting 108 is on for quck rotary G28.











Yeah the gearbox is getting more and more tempting, if only the purchase approval process wasn't so daunting around here.

I was worried about the angular limits being an issue and indeed when the program is done it has to rewind fully. This program is currently just about 3,000 degrees though so this is manageable. I tried the "G00 G92 G28 A0" manually to unwind and that worked so I will add that to the end of the program and hopefully I can go to 154,000 like Chris said and then get around unwinding. This should work for now I suppose. It is definitely frustrating that this is not more readily achievable though.
 
If the blanks aren't too big, you could hold the blank in the spindle, put a turning tool in the vise
and turn your shape that way.
 
I worked with pre shaping lenses for 8 years up till this summer. We had a glass aspheric lens that was being quoted and this was an idea of how to run it. But didn't end up doing that job, but regardless every lens we made which was a lot, was done with 3d tool paths and simple to complex work holding. The main thing is to leave material on all surfaces and diamond turn it to final size. This way you can make soft jaws or glue or vacuum chucks to hold the parts prior to diamond turning.

And if you need to make mods to lens shape such as adding a flange or whatever to hold it in mill then giver as the time it takes to diamond turn off a small lip or flange or whatever is miniscule compared to having to buy and setup a rotary.

Sent from my SM-A500W using Tapatalk
 
You can easily make the rotary turn as a lathe headstock.

I have a TM3 with a rotary.

1) Set the rotary parameters to do a 360 rollover. As in, the angle only shows between 0 and 360 degrees.
2) alter your post processor to linearize arcs. so that it makes a series of small lines, no G2's or G3's.
3) alter your post processor to post G90 at the beginning of each line of feed motion AND
4) AND alter your post processor to APPEND a G91A360.0 at the END of each line of feed motion

example


T1M6
G28G91Z0
G0G90G54X1.Y3.A0S1500M3
G43H1Z1.M8
G1Z0F50.
G90X1.1Y2.8F1.G91A360.
G90X1.2Y2.7G91A360.
G90X1.3Y2.65G91A360.
.
BLAH
BLAH
BLAH
.
.
G0G90Z1.M5
M9
G28G91Z0
M30

I use this quite often when I'm making long slender pieces of aluminum shaft. works like a charm.
Note however the actual g1 feed rate is pretty slow....figure if you want 0.005 per rev time 60rpm-ish
you're looking at F0.3 ipm.

I had Haas come in and set the 0 to 360 for me, too busy myself...

Let us know how you make out..
 
You can easily make the rotary turn as a lathe headstock.

I have a TM3 with a rotary.

1) Set the rotary parameters to do a 360 rollover. As in, the angle only shows between 0 and 360 degrees.
2) alter your post processor to linearize arcs. so that it makes a series of small lines, no G2's or G3's.
3) alter your post processor to post G90 at the beginning of each line of feed motion AND
4) AND alter your post processor to APPEND a G91A360.0 at the END of each line of feed motion

example


T1M6
G28G91Z0
G0G90G54X1.Y3.A0S1500M3
G43H1Z1.M8
G1Z0F50.
G90X1.1Y2.8F1.G91A360.
G90X1.2Y2.7G91A360.
G90X1.3Y2.65G91A360.
.
BLAH
BLAH
BLAH
.
.
G0G90Z1.M5
M9
G28G91Z0
M30

I use this quite often when I'm making long slender pieces of aluminum shaft. works like a charm.
Note however the actual g1 feed rate is pretty slow....figure if you want 0.005 per rev time 60rpm-ish
you're looking at F0.3 ipm.

I had Haas come in and set the 0 to 360 for me, too busy myself...

Let us know how you make out..


Utter bullshit. Not on a Haas.

1. You can't have G90 and G91 on the same block. You'll get an alarm, multiple codes

2. There is no 360° rollover on Haas control.
 








 
Back
Top