Posted by John Haine on 27/09/2021 17:50:11:
I'm still not quite getting this. CNC systems usually have circular/conical interpolation so you can ask it to move in a circle or helix and the controller directly generates the XYZ moves to do this without going through a g-code step
In fact this IS the Gcode step – It is the Gcode that tells the controller to do the interpolation, and the controller does all the math to create the cartesian moves and steps for the steppers/servos.
so the huge overhead of g-code interpretation is not required.
Not sure what you mean here – there is 'huge' overhead right here, but it is in the crunching capability of the controller – it has to do all the math after interpreting the Gcode or command.
Is what you are asking for in effect a generic interpolation mode, where for example it could move to follow a suitably defined curve without going through g-code? —-NO
Difficult for me to explain – I lack the correct terms and the appropriate math insight!
The Gcode G02 X Y I J allows the mill to generate in interpolated ARC in the XY plane.This will cat an arc in the material at the appropriate position.
If that Gcode is preceded by G17, the ARC is in the XY plane, by G18, the arc will lie in the XZ plane, etc.
Similarly G02 X Z I K generates an interpolated arc on a lathe in XZ plane, but that arc is an XZ move, such as an arc on the end of a shaft in the chuck.
If you use a rotary axis in the mill, and constrain the Y axis (as in a lathe) , the lost Y axis has to be wrapped around the A axis and you would have to use a Gcode along these lines
G02 X A(angle) I J – this is then POLAR interpolated from Y to A to generated that curve. If you machine does not have that interpolater mode it will not work. J is for XY plane
Polar interpolation on the lathe is similar, but 'not quite' –
For example here is the basic code to mill a 40mmx40mm square on the end of a shaft:
G12.1
G42 G0 X60. Z-5. C0. F.(feedrate) # this line is the initial; position of X and Z ( and C = Y )
G01 X40.
C20.
X-40.
C-20.
X40.
C0.
G40 X60.
G13.1
G0 Z10. M05
The C axis is not given in angles or arcs – you treat it like a Y axis, cartesian position.
So read that file with Y instead of C, for a milling machine and it is basic XY move from corner to corner.
But the G12.1 Polar mode causes the controller to convert the 'Y' position to a set of cordianted C axis and X moves…
Joe
Edited By Joseph Noci 1 on 27/09/2021 21:42:25
Edited By Joseph Noci 1 on 27/09/2021 21:42:50