piaengr
07-17-2008, 10:19 AM
I have what is probably a basic CNC question with regards to code for a plasma machine. I am not an operator, but do nests for plasma cutting by using software that does all the work for me. But I would like to better understand the code that the software is spitting out to me, in particular the g-code for kerf compensation left. Suppose I have the partial CNC output below for a 6" square cut from steel.
I know for fact the G41 code is kerf compensation left. I understand the amount of compensation is dependent on the settings by the CNC operator. When the machine reads the code and gets to the G41 code, what actually happens? The coordinates for linear movement are 6" for each side of the square. However because of kerf compensation, the plasma should actually cut slightly larger so my finished part is 6". However the coordinates remain at 6" in each direction. I am thinking the theoretical cut line must remain the point of reference for the entire program, even though the plasma tip is no longer on this reference line. Otherwise the linear movement coordinates would be more than 6". Its the only way I can make sense of what is happening, but am looking for confirmation from someone who is knowledgable with this. I apologize for the long winded explanation. Hope sense can be made of it. I appreciate any input offered.
G00X3.0469Y2.9063
T21
G41
M07
G01X0.Y0.1875
G01X0.Y6.
G01X6.Y0.
G01X0.Y-6.
G01X-6.Y0.
G01X-0.0938Y0.
M08
G40
I know for fact the G41 code is kerf compensation left. I understand the amount of compensation is dependent on the settings by the CNC operator. When the machine reads the code and gets to the G41 code, what actually happens? The coordinates for linear movement are 6" for each side of the square. However because of kerf compensation, the plasma should actually cut slightly larger so my finished part is 6". However the coordinates remain at 6" in each direction. I am thinking the theoretical cut line must remain the point of reference for the entire program, even though the plasma tip is no longer on this reference line. Otherwise the linear movement coordinates would be more than 6". Its the only way I can make sense of what is happening, but am looking for confirmation from someone who is knowledgable with this. I apologize for the long winded explanation. Hope sense can be made of it. I appreciate any input offered.
G00X3.0469Y2.9063
T21
G41
M07
G01X0.Y0.1875
G01X0.Y6.
G01X6.Y0.
G01X0.Y-6.
G01X-6.Y0.
G01X-0.0938Y0.
M08
G40