A CNC controller will allow G2 and G3 circle motion output in the XY, the YZ and the ZX planes. Of the six available coordinate words (X, Y, Z, I, J and K) in the circle move only four will be output at a time based on which arc plane is used. On some controllers an error message will be reported if some words are output or when some words are missing. What can be done in Post Builder to either force or suppress words based on the arc plane?
Solution
When outputting a circular move in the XY plane, for example, the Z and K Words would be suppressed. The X, Y, I and J words, in contrast, would always be present so they would need to be forced. The word output needed for each plane would vary depending on which arc plane is being used. To resolve this add a Custom Command to the Circular Move event with the TCL code shown below.
global mom_pos_arc_plane
switch $mom_pos_arc_plane {
XY { MOM_suppress once Z K ; MOM_force once X Y I J }
YZ { MOM_suppress once X I ; MOM_force once Y Z J K }
ZX { MOM_suppress once Y J ; MOM_force once X Z I K }
}
Notes