Hello all,
I having trouble to find a way to automaticly add a number for offset G55 and hope someone can help me. Bellow is the sample of codes.
N1 G49 G80 G40 G90 G00
N2 G21
N3 G10 X0 Y0 Z-442 P1 L2
N4 G10 Z75 P1 L1
N5 G54
N6 T2 M6
N7 G0 X19.311 Y71.415 S18000 M3
N8 G43 Z71.88 H2
N9 G1 G94 Z61.88 F8000.
N10 X17.189 Y73.537
N11 X8.393 Y82.332 F2000.
N12 X19.311 Y71.416
N13 X17.189 Y73.537 Z59.63
N14 X8.393 Y82.332
N15 X19.311 Y71.416
N16 X21.432 Y69.295 F8000.
N17 Z150
N18 M5
N19 M30
N1 G49 G80 G40 G90 G00
N2 G21
N3 G10 X243 Y-21.45 Z-382 P2 L2
N4 G10 Z66 P2 L1
N5 G55
N6 T2 M6
N7 G0 X19.311 Y71.415 S18000 M3
N8 G43 Z71.88 H2
N9 G1 G94 Z61.88 F8000.
N10 X17.189 Y73.537
N11 X8.393 Y82.332 F2000.
N12 X19.311 Y71.416
N13 X17.189 Y73.537 Z59.63
N14 X8.393 Y82.332
N15 X19.311 Y71.416
N16 X21.432 Y69.295 F8000.
N17 Z150
N18 M5
N19 M30
I'm using two spindles in 3 axis machine. G54 is the offset of the first spindle (X0 Y0) and G55 is the offset of the second spindle (X243 Y-21.45).
I want in gcode both offsets (G54 and G55) set to zero and then, if I add any number to that line instead of zero (for X andY) mach3 will automatically add 243 for X and -24.45.
Regards,
Peter