Another odd issue.

Les. I have a feeling this is being caused by that macro I’m using. See my notes below. I noticed this yesterday but also noticed that the pierce height set in the macro and the cut height were the same. Would that cause any odd behavior?

I’m going to try a G00 to pierce height in the macro and see it that makes any difference.


N0000 (Filename: X-MOTOR-MOUNT.tap)
N0010 (Post processor: TruCutCNC - M1101.scpost)
N0020 (Date: 07/11/2010)
N0030 G20 (Units: Inches)
N0040 G53 G90 G40 M7 M1100
N0050 F1
N0060 (Part: X-MOTOR-MOUNT)
N0070 (Operation: Drill, HOLES, T8: 3/16 Steel, 50A, 0 in Deep)
N0080 M06 T8 (3/16 Steel, 50A)
N0090 G00 Z0.3750
N0100 G00 X2.3645 Y2.3654
N0110 (Operation: Reference Torch)
N0120 M1101


M1101 Macro Inserts the following code

F15
G31 Z-1
G92 Z & offset (Offset is set within mach)
G01 Z & pierceHeight (Pierce hieght is set within mach)

Here is the problem. Mach seems to be ignoring this G04. The torch references, the torch on relay makes contact, torch never lights, then then moves to line 170 and continues. Everything from here on out is normal.


N0130 M03
N0140 G04 P0.5
N0150 G01 X2.3645 Y2.3654 Z0.0800 F30
N0160 M05


N0170 G00 Z0.3750
N0180 G00 X0.5086 Y2.3655
N0190 (Operation: Reference Torch)
N0200 M1101
N0210 M03
N0220 G04 P0.5
N0230 G01 X0.5086 Y2.3655 Z0.0800 F30
N0240 M05
N0250 G00 Z0.3750
N0260 G00 Y0.5096
N0270 (Operation: Reference Torch)
N0280 M1101
N0290 M03
N0300 G04 P0.5
N0310 G01 X0.5086 Y0.5096 Z0.0800 F30
N0320 M05

I think the first thing I would try is to manually edit the G-code and replace the macro call with the equivalent code. If that works you know it is the macro call that is the problem.

It may be a coincidence that Mach is skipping the same number of lines that the macro generates but it may be worth adding four lines of comments after the macro call.