Martin,
I'm not sure I follow.
The code for an arc is G2 or G3. Are there others? If so, I can't see them in the write-ups I have looked at. I confess I have explicitly excluded all canned cycles from my conversion (G12, G13, G73, G80-89) on the grounds that different programs & machines seem to interpret them slightly differently.
Straight lines seem to be G0 & G1, they will pass through the Arcs to Lines program unaffected.
In the 'readme' with each program I do explicitly state what it converts. The converted code listing for the arcs to lines program is:
(Comment)
F[Feed Rate]
G0 + A, B, C, X, Y, Z qualifiers
G1 + A, B, C, X, Y, Z, F, G53 qualifiers
G2 + A, B, C, I, J, K, X, Y, Z, F, G53 qualifiers. Up to 360 degrees per arc.
G3 + A, B, C, I, J, K, X, Y, Z, F, G53 qualifiers. Up to 360 degrees per arc.
G4 + P qualifier
G17-19
G20, but converts all the new file to mm.
G21
G40
G41 + D, P qualifiers
G42 + D, P qualifiers
G43 + H qualifier
G44 + H qualifier
G49
G50
G51 + A, B, C, X, Y, Z qualifiers
G52 + A, B, C, X, Y, Z qualifiers
G54 – 58
G59 + P qualifier
G61
G64
G68 + A, B, R, I qualifiers
G69
G70, but converts all the new file to mm.
G71
G90
G90.1
G91
G91.1
G92
G93
G94
G98 + R qualifier
G99 + R qualifier
M0 – 9
M30
M47
M48
M49
M60
N[Line No]
O[Label]
P[Time]
R[Distance]
S[Spindle Speed]
T[Tool No]
That covers every code (and a few extra) I have seen in the output I have encountered from CamBam and the Mach3 macros – with the exception of the canned cycles already mentioned. If I have missed anything significant, please let me know, I'd appreciate it.
Regards,
Richard.