rotary axis

More
05 Feb 2015 09:35 #55705 by krrice
rotary axis was created by krrice
Hi, I am trying to get a rotary axis going on my CNC, I am using CNCWrapper software. I generate rounding code, run it and it stops on line 20 but doesn't give a error and the a axis continues to turn. if I try to highlight line 21 and click run from here it does nothing. Here is the code I am trying to run.
(ROUNDING CREATED WITH CNCWRAPPER V3.5)
(2/4/2015 6:51:51 PM)
(BIDIRECTIONAL CUTS ALONG THE X AXIS)
(AXIS OF ROTATION WILL BE THE A AXIS)
(X START POSITION 0)
(X END POSITION 6)
(START DIAMETER  3.5)
(FINISH DIAMETER  3.375)
(DEPTH OF CUT 0.021)
(TOOL DIA = 0.25)

G00G17G90G40G49G80
T4M06
G00G43Z2.250H4
S10000M03
G94
G00X0.000
G00Z2.250
G01Z1.729F20
G01A360.0F15
G01X6.000A19200.000F15
G01A19560.000F15
G01Z1.708F20
G01A18840.000F15
G01X0.000A0.0F15
G01A-360.0F15
G01Z1.688F20
G01A360.0F15
G01X6.000A19200.000F15
G01A19560.000F15
G00Z2.250
M30

Please Log in or Create an account to join the conversation.

More
05 Feb 2015 15:50 - 05 Feb 2015 19:33 #55711 by ArcEye
Replied by ArcEye on topic rotary axis
Hi

Making all sorts of assumptions for lack of any info, (is it defined as a rotary axis for a start?), you have commanded a 360 degree rotary axis to go to 19200 degrees at a very slow feed rate.

If you waited long enough the move would finish.

You will get other extremely long waits later in the code.

I have no idea what you are trying to make, none of the Z moves are negative, so by convention none of them would produce a cut into the workpiece

regards

PS

If you look long enough at the semi-legible crap that CAM produces, you also notice that it has not set the units

G00G17G90G40G49G80


So if A were defined as linear and the config was metric by default, it could take an incredibly long time to complete the move on line 20 :laugh:
Last edit: 05 Feb 2015 19:33 by ArcEye.
The following user(s) said Thank You: krrice

Please Log in or Create an account to join the conversation.

More
07 Feb 2015 01:51 - 07 Feb 2015 01:54 #55755 by andypugh
Replied by andypugh on topic rotary axis
To elaborate on what Arceye said: If a move is combined linear and rotary then the fed rate is in linear units per minute.
If it is a pure rotary move then the move is in degrees per minute.
19560 degrees at 15 degrees per minute is most of a day :-)

You might expect to see the code use G93 "inverse time mode", but there is an explicit G94 instead.
Last edit: 07 Feb 2015 01:54 by andypugh.
The following user(s) said Thank You: krrice

Please Log in or Create an account to join the conversation.

More
07 Feb 2015 22:23 #55782 by krrice
Replied by krrice on topic rotary axis
Thanks that explains why it was going slow. I have read about inverse time mode, is it the only way to get this to work and can I just edit the code and replace the G94 with G93?

Please Log in or Create an account to join the conversation.

More
07 Feb 2015 22:41 #55784 by ArcEye
Replied by ArcEye on topic rotary axis

...........is it the only way to get this to work and can I just edit the code and replace the G94 with G93?


It will make it behave differently, but the main question is probably what is this code supposed to do?

It appears that at the beginning, the X axis moves 6", whilst the A axis rotates approx 60 times. This suggests a spiral cut along a 6" length, except that the Z axis is 1.729" above the workpiece throughout.
This can only work if you have touched off Z to the centreline of the workpiece, instead of the surface perhaps?
It is not the conventional way to do it certainly.

If you do use G93, just read the docs carefully and ensure that the value you use for F is one capable of being completed and that F is used on every line.
It is very easy to get confused and make a mess of it.

Whilst you are at it, add a G20 at the start and then at least it is clear the values are imperial.

regards

Please Log in or Create an account to join the conversation.

More
07 Feb 2015 22:50 #55785 by krrice
Replied by krrice on topic rotary axis
This code is for rounding the stock material. The z is touched off at the centerline and the units are imperial.

Please Log in or Create an account to join the conversation.

More
07 Feb 2015 23:08 #55786 by ArcEye
Replied by ArcEye on topic rotary axis

This code is for rounding the stock material. The z is touched off at the centerline and the units are imperial.


That makes sense, if you don't have a lathe.

You will just have to see how you get on with G93.

regards

Please Log in or Create an account to join the conversation.

More
09 Feb 2015 22:12 #55834 by krrice
Replied by krrice on topic rotary axis
Thank you to all that replied, I found a couple of errors on my part. First the feed rate is in degrees not (in/min) so the value I was entering was to low I ended up using 45000 for the feed rate. Second I redone my config file for the rotary axis and found I had not entered the correct value for (steps/degree) which was 4.7777. The software works fine for rounding and machining.

Please Log in or Create an account to join the conversation.

Time to create page: 0.151 seconds
Powered by Kunena Forum