Developments on my Home built 5C CNC Lathe - Polar interp. and Live tooling

More
2 years 10 months ago #287814 by spumco
The plot thickens...

According to @andypugh, the caxis.comp he provided to NoJo works like this:
Code:
I think that I forgot to mention that M100 and M101 are no longer used. If you start the spindle, it goes in to spindle mode. if you stop the spindle, it goes into C axis mode. This would be annoying with a 4-jaw chuck but it probably good with a 5C collet.

And the latest (I think) version he posted doesn't do anything with switchkins - i.e. it's doesn't trigger or have anything to do with polar interpolation.
forum.linuxcnc.org/10-advanced-configura...and?start=140#210682

NoJo's configuration posted above in this thread has a modified version that interacts with his gn_usekins.comp to trigger polar interpolation.

Can't quite figure it all out yet.  Need to do more reading...

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

More
2 years 10 months ago #288330 by NoJo
Sorry Chaps - been out of circulation for a while - Let me get my head around all this again and I will respond with the latest config I have and hopefully some useful answers. C Axis Mill/Turn is not a LinuxCNC forte and so there are some non-standard mods implemented to make the machine do what I want.
The following user(s) said Thank You: spumco

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

More
2 years 10 months ago #288337 by spumco
NoJo,

No rush, appreciate your time.  Slowly digesting all the files & forum discussions.

Thx,
R

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

More
2 years 10 months ago - 2 years 10 months ago #288345 by NoJo
Attached is a zip of all the comps/remaps/ini/hal, etc
C axis mode is entered with G12.1 - this zeroes the C axis as well. L-CNC would tally all revolutions made by the spindle in turn mode, and then on entry to C mode, would unwind all those turns to zero the C axis - not desirable. So look in Caxis.comp and refer comments in gn_userkins.comp for how this is done on my machine.
G13.1 exits C mode back to TURN mode.
G12.1 selects C mode - POLAR mode - no cartesian , but C axis effectively becomes Y axis of a mill, etc.
The ATC is included in the attached files.

This Gcode is an example of that used to do the hex head on the end on the shaft, in two depths, each 2mm deep (final 4mm) 
Code:
N5 % N10O100(PROGRAM NAME) N15 N20(CREATED 11/14/2021 18:29:45) N25 N30(#7 - END MILL D 8MM ) N35 N40 N45(CONTOUR - ROUGHING) N50 G98 G18 N55() N60(END MILL D 8MM) N65 M6 T07 G43 N70 G97 S2500 M3 $1    (start live tool spindle) N75 G0 X42. Z2. N80 G0 C0 N85 G12.1 N90 G1 X-0.147 C-28.999F1000 N95 Z-2. N100 X4.437 C-24.497F1252 N105 X-19.568 C-20.878 N110 X-26.331 C-18.95 N115 X-26.646 C-18.68 N120 X-45.945 C-1.966 N125 X-45.988 C1.927 N130 X-45.678 C2.198 N135 X-26.378 C18.912 N140 X-19.657 C20.877 N145 X-19.032 C20.878 N150 X19.568 N155 X26.331 C18.95 N160 X26.646 C18.68 N165 X45.946 C1.966 N170 X45.988 C-1.927 N175 X45.678 C-2.198 N180 X26.378 C-18.912 N185 X19.657 C-20.877 N190 X19.032 C-20.878 N195 X0. N200 X-5. C-23.378Z2. F1000 N205 M5 $1 N210 G0 G53 Z10  N215 G0 G53 X10 N220 G0 C0 N225 G13.1 N230 X42. N235 N240(CONTOUR - ROUGHING) N245 G97 S2500 M3 $1 N250 G0 C0 N255 G12.1 N260 G1 X54.558 C9.831Z2. F1000 N265 Z-4. N270 X48.804 C10.202F1252 N275 X45.236 C7.971 N280 X37.654 C2.979 N285 X37.042 C2.977 N290 X-10.951 N295 X-11.901 C-2.448 N300 X37.504 C-2.923 N305 X43.888 C-9.697 N310 X53.045 C-11.715 N315 Z2. F1000 N320 M5 $1 N325 G0 G53 Z10  N330 G0 G53 X10 N335 G0 C0 N340 G13.1 N345 X42. N350 M1 N355 M9 N360 M30 N365 % N370 Makes pretty things as in the picture attached..
Last edit: 2 years 10 months ago by NoJo.
The following user(s) said Thank You: besriworld, spumco

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

More
2 years 10 months ago #288369 by spumco
In your config, is there a way to enter C-axis mode without polar interpolation?

I'm thinking of simple radial/axial drilling where it'd be simple to just use cartesian coordinates.

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

More
2 years 10 months ago #288377 by NoJo
Not in the pure sense, no. However, when in C axis mode, the Gcode 'looks' cartesian - X = Xaxis, Y axis becomes C, and the cartesian to polar conversion is done in L_CNC - this gcode file is a simple square:
Code:
G8 G18  ; select XZ plane T1 M6   ; tool - 1 G01 X20 Z50 F800  ;  G0 C0  G12.1  ; C axis mode G01 X20 C20 F800  ; = X20 / Y20 - first corner of the square G01 X-20 C20 F800 ;2nd G01 X-20 C-20 F800 ;3rd G01 X20 C-20 F800 ;4th corner G01 X20 C20 F800 ; end at first corner G53 G01 Z0  F800  ; get z to safe place, then x , then return c to 0 G01 X0 F800 G0 C0 G13.1    ;switch to TURN mode M30 %

Tool offsets/cutter diameters, etc, you would have to take care of, as the above Gcode file puts the center of the tool on the X20/Y20 co-ord, ie, on the corner of the square, not offset by the cutter radius, if milling. A drill would have no diameter offset, but you may enter G43 Hxx for any length offsets, etc. if desired....
For axial drilling, perhaps simply move the drill to co-ord - G01 X20 C20 F(feedrate of the move- which will be a coordinated move, ie, Caxis and X axis), and at the end of the move, use Gcode to drill with the Z axis as normal.  I have not tried it, but you may be able to do a rapid (G00) to the X20C20 position, and then Zdrill, since you only want the drill at the X20C20 position and are not interested in how it gets there, ie, G01 coordinated move would 'mill' the contour ( a straight line) in the workpiece - this gets the tool to the end point, but wastes time.

My lathe has no radial drill/mill capability - the live tool axis is fixed in line with the lathe spindle axis, so have not even considered radial drilling/milling, but daresay it could be handled in the same way as proposed above - after G12.1, a G01 Cxx would move Caxis to that angle ( ie, no X axis move in the command is then only a Caxis rotation, no coordinated X/C move. That could line up the workpiece periphery at an angle that the radial drill will move along. If the radial drill is fitted to the X axis, then a G01 Xxx would move the drill into the workpiece - refinement needs more thought - radial peck drilling, etc - normally a Z axis motion - not sure of the drilling Godes works in X?

Been a while since I powered the little lathe on - 99% of my lathe work is on the manual lathes I have - The little CNC lathe was an exercise in design and build and turned out very nice indeed, but in my shop, it is a solution in search of a problem...

 
The following user(s) said Thank You: tommylight, besriworld, COFHAL, spumco

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

Time to create page: 0.118 seconds
Powered by Kunena Forum