Invalid g-code command found in block

I am very new to this, and I am trying to get my system started for the first time. I am using fire control, sheetcam and torch height control.

On Fire Control I am getting:

The following error happened at line 20:

Unsupported or invalid g-code command found in block.

What settings do I need to change on sheetcam?

Thanks, here is my code:

(v1.6-sc)
G90 G94
G17
G20 (Units: Inches)
H0
G0 X5.1395 Y6.0641

G92 Z0.
G38.2 Z-5.0 F100.0
G38.4 Z0.5 F20.0
G92 Z0.0
G0 Z0.02 (IHS Backlash)
G92 Z0.0
G0 Z0.08 (Pierce Height)
M3
G4 P0.4
G1 Z0.02 F100.0 (Cut Height)
H1
G1 F110.0
M63P4 (THC Inhibited, AD2)
G3 X5.049 Y6.0641 I-0.0453 J-0.0453
G3 X5.0216 Y5.998 I0.0661 J-0.0661
G3 X5.115 Y5.9046 I0.0934 J0.0
G3 X5.2085 Y5.998 I0.0 J0.0934
G3 X5.115 Y6.0915 I-0.0934 J0.0
G3 X5.049 Y6.0641 I0.0 J-0.0934
M62P4 (+++THC Allowed, AD2+++)
H0
M5
G0 Z1.0
G0 X6.9511 Y5.9736

G92 Z0.
G38.2 Z-5.0 F100.0
G38.4 Z0.5 F20.0
G92 Z0.0
G0 Z0.02 (IHS Backlash)
G92 Z0.0
G0 Z0.08 (Pierce Height)
M3
G4 P0.4
G1 Z0.02 F100.0 (Cut Height)
H1
G1 F110.0
M63P4 (THC Inhibited, AD2)
G3 X6.9511 Y6.0641 I-0.0453 J0.0453
G3 X6.885 Y6.0915 I-0.0661 J-0.0661
G3 X6.7916 Y5.998 I0.0 J-0.0934
G3 X6.885 Y5.9046 I0.0934 J0.0
G3 X6.9785 Y5.998 I0.0 J0.0934
G3 X6.9511 Y6.0641 I-0.0934 J0.0
M62P4 (+++THC Allowed, AD2+++)
H0
M5
G0 Z1.0
G0 X7.2558 Y6.3228

G92 Z0.
G38.2 Z-5.0 F100.0
G38.4 Z0.5 F20.0
G92 Z0.0
G0 Z0.02 (IHS Backlash)
G92 Z0.0
G0 Z0.08 (Pierce Height)
M3
G4 P0.4
G1 Z0.02 F100.0 (Cut Height)
H1
G1 F110.0
M63P4 (THC Inhibited, AD2)
G3 X7.1953 Y6.2555 I0.0034 J-0.0639
M62P4 (+++THC Allowed, AD2+++)
G1 X7.2084 Y6.0089
G1 Y6.008
G1 X7.208 Y5.9959
M63P4 (THC Inhibited, AD2)
G1 X7.1992 Y5.746 F77.0
G2 X7.1887 Y5.7359 I-0.0105 J0.0004
G1 X6.9387 Y5.7358
M62P4 (+++THC Allowed, AD2+++)
G1 X5.0652 Y5.7347 F110.0
M63P4 (THC Inhibited, AD2)
G1 X4.8152 Y5.7346 F77.0
G2 X4.8047 Y5.7446 I-0.0 J0.0105
G1 X4.7919 Y5.9942
M62P4 (+++THC Allowed, AD2+++)
G1 X4.7916 Y5.9999 F110.0
G1 Y6.001
G1 Y6.0017
M63P4 (THC Inhibited, AD2)
G1 X4.8034 Y6.2514 F77.0
G2 X4.8139 Y6.2615 I0.0105 J-0.0005
G1 X5.0639 Y6.2619
M62P4 (+++THC Allowed, AD2+++)
G1 X7.1848 Y6.2654 F110.0
H0
M5
G0 Z1.0
M5 M30
(PS110)

You have a THC plugin or add-on that you do not need. The stock SheetCAM POST provides the THC activation and deactivation points required.

Thank you very much, but I don’t know what the means. Are you saying I have some kind of THC set on sheetcam that I need to turn off?

Or is the “THC plugin or add-on” in fire control?

You have some path rule or code snippet in Sheetcam that is adding commands to turn on and off the torch height controller. The commands that it is adding are not commands that Firecontrol recognizes and they are not necessary.

2 Likes

Thank you very much. With that information I was able to find another thread with the same problem, and I was able to resolve the issue. I had a “path rule” I did not need. Here is a link to other tread if someone else has this issue. THC Program Question

2 Likes