Category: G&M Codes
Hello All, I am at a beginner level in linuxcnc and cnc programming.
I have to build a simple winding machine, as depicted in the attached image. (I wish to perform side by side winding of the mateial without any gaps or overlaps)
the X axis is supposed to control the layup slide back and forth.
the A axis is supposed to rotate at a constant speed in the same direction until multiple layers are wound.
here is a simple working example of the gcode i prepared.
g91
o100 repeat [5]
g1 x80 a3600 f360
g1 a720 f10000
g1 x-80 a3600 f360
g1 a720 f10000
o100 endrepeat
m2
*please note that this is just a representative code, which performs the desired motion for me.*
however, since the feedrate is calucated in a compound manner, giving priority to the x-axis, adjusting the rotational speed so as to have a side-by-side layup of material is difficult.
secondly, since the A axis isnt rotating conitnously, it generates a momentary pause (due to deaccelartion and re-accelartion when a line of code ends)
Q: I am looking to eliminate both of these problems, but i dont know how to make it possible in the gcode.
I wish that A axis would keep rotating indefinietly without any pause at a given certain feed rate. and the X axis to keep moving back and forth independently at a different given feedrate.
i can use a spindle setting instead of A axis, the example gcode for it looks something like this:
s100 m3
o100 repeat [5]
g91 g0 x80 f360
g91 g0 x-80 f360
o100 endrepeat
m2
However, i wish to know if this is possible to with X and A axis, what would the gcode look like.
Any help is much appreciated.