GCode for rotary axis
Posted: Wed Mar 17, 2021 12:01 am
Hello,
For a rotary axis setup in degrees with a radius (no inverse time mode) can I do gcode that looks like this:
G20
G40
G17 (arc in X Y plane)
G90
G00 X6.000 Y3.00 B90
G03 X7.000 Y4.000 I0.000 J1.000 F50.0 B0 (it's this line that I'm not sure about)
Where B is the rotary axis setup in degrees?
I'm modifying a post processor to put moves in for a pseudo slave axis (the rotary axis in question). The axis does not move the machine or the material, that's why I say it is a pseudo slave. The axis moves guide wheels about the cutting wire, so it is always normal to the cutting direction. This is easy to do for non arc G01 moves, as I just rotate the axis for the angle of vector of the XY. But for arc moves I need the axis to track the arc. I'm just not sure if the G03 line above would result in coordinated movement of the XY and B axis, so that in the above case the B axis would reach 0 degrees at the same time the arc finishes at 7, 4.
Thanks
Greg
on edit, here's a youtube video of a commercial saw that has the feature I'm trying to emulate.
https://youtu.be/n_sBuiirbR4
the axis in question is labeled C1 and C2. It's the one that rotates about the wire.
For a rotary axis setup in degrees with a radius (no inverse time mode) can I do gcode that looks like this:
G20
G40
G17 (arc in X Y plane)
G90
G00 X6.000 Y3.00 B90
G03 X7.000 Y4.000 I0.000 J1.000 F50.0 B0 (it's this line that I'm not sure about)
Where B is the rotary axis setup in degrees?
I'm modifying a post processor to put moves in for a pseudo slave axis (the rotary axis in question). The axis does not move the machine or the material, that's why I say it is a pseudo slave. The axis moves guide wheels about the cutting wire, so it is always normal to the cutting direction. This is easy to do for non arc G01 moves, as I just rotate the axis for the angle of vector of the XY. But for arc moves I need the axis to track the arc. I'm just not sure if the G03 line above would result in coordinated movement of the XY and B axis, so that in the above case the B axis would reach 0 degrees at the same time the arc finishes at 7, 4.
Thanks
Greg
on edit, here's a youtube video of a commercial saw that has the feature I'm trying to emulate.
https://youtu.be/n_sBuiirbR4
the axis in question is labeled C1 and C2. It's the one that rotates about the wire.