First time doing CAM. What are these gcode errors and how to fix?

First time doing CAM. What are these gcode errors and how to fix?

gamblegarage
Explorer Explorer
2,236 Views
7 Replies
Message 1 of 8

First time doing CAM. What are these gcode errors and how to fix?

gamblegarage
Explorer
Explorer

I can run the cam side of the software with no errors. I export the gcode and open it in my flashcut software and get a variety of errors

To eliminate a lot of these, how can I set fusion to do no M commands on the gcode? I was told it's tool changes and turning features on/off which is way above what I can do at this moment so I'd like to just work on the very basics

 

 

If i have to manually delete the M codes to fix, on line 12 gcode "S10000 M3", would I delete the M3 only or the entire line?

 

Line 13 has an H0 code and also has an error. What does this mean?

 

And finally the error in blue, what does that mean and how do I fix it?

 

Loading program...

Error code 10009 on line 6:
The M-Code is not defined

Error code 10009 on line 8:
The M-Code is not defined

Error code 10009 on line 9:
The M-Code is not defined

Error code 10009 on line 11:
The M-Code is not defined

Error code 10027 on line 13:
Unable to parse the line

Error code 10009 on line 14:
The M-Code is not defined

Error code 1332 on line 31:
The vector to the center defines
an invalid arc. The arc cannot
be drawn from the beginning point
to the ending point with the
center as specified.

------------------------------------
Program Load Stopped
Errors: 7
Warnings: 0

 

 

here is the first 31 lines of gcode

: (PGM, NAME="1001")
; T2 D=0.25 CR=0 - ZMIN=-0.005 - FLAT END MILL
: G90 G40 G94
G17
G70
M26
; FACE2
M9
M26
:T2 M6
M26
S10000 M3
H0
M9
G0 X1.2524 Y1.6571
Z0.45
Z0.2
G1 Z0.02 F4
Y1.6568 Z0.0161
Y1.6559 Z0.0123
X1.2523 Y1.6544 Z0.0087
X1.2522 Y1.6524 Z0.0053
X1.2521 Y1.6498 Z0.0023
X1.252 Y1.6468 Z-0.0002
X1.2518 Y1.6435 Z-0.0023
X1.2517 Y1.6399 Z-0.0038
X1.2515 Y1.6361 Z-0.0047
X1.2514 Y1.6322 Z-0.005
X1.2454 Y1.4948
X1.1122 Y-1.5964 F14.6
G17 G2 X0.9801 Y-1.5907 I1.0462 J-1.5936

any help is appreciated

Thanks

0 Likes
2,237 Views
7 Replies
Replies (7)
Message 2 of 8

gamblegarage
Explorer
Explorer

My second op is just drilling two holes and I get these errors in flashcut software. no errors in fusion

 

Loading program...

Error code 10009 on line 6:
The M-Code is not defined

Error code 10009 on line 8:
The M-Code is not defined

Error code 10009 on line 9:
The M-Code is not defined

Error code 10009 on line 11:
The M-Code is not defined

Error code 10027 on line 13:
Unable to parse the line

Error code 10009 on line 14:
The M-Code is not defined

Error code 10020 on line 19:
The specified axis is not in use

Error code 10020 on line 20:
The specified axis is not in use

Error code 10009 on line 23:
The M-Code is not defined

Error code 10009 on line 24:
The M-Code is not defined

------------------------------------
Program Load Completed
Errors: 10
Warnings: 0

 

 

: (PGM, NAME="1001")
; T2 D=0.25 CR=0 - ZMIN=-0.355 - FLAT END MILL
: G90 G40 G94
G17
G70
M26
; DRILL1
M9
M26
:T2 M6
M26
S10000 M3
H0
M9
G0 X0.5292 Y-0.4771
Z0.6
G17
G0 Z0.2
G98 G81 X0.5292 Y-0.4771 Z0.55 R0.195 W0.2 F4
X-0.5339 Y0.4668 W0.2
G80
Z0.6
M9
M26
G0 X0 Y0
M30
M2

0 Likes
Message 3 of 8

gamblegarage
Explorer
Explorer

And the last portion of the part

Loading program...

Error code 10009 on line 6:
The M-Code is not defined

Error code 10009 on line 8:
The M-Code is not defined

Error code 10009 on line 9:
The M-Code is not defined

Error code 10009 on line 11:
The M-Code is not defined

Error code 10027 on line 13:
Unable to parse the line

Error code 10009 on line 14:
The M-Code is not defined

Error code 1332 on line 31:
The vector to the center defines
an invalid arc. The arc cannot
be drawn from the beginning point
to the ending point with the
center as specified.

 

 

: (PGM, NAME="1001")
; T2 D=0.25 CR=0 - ZMIN=-0.265 - FLAT END MILL
: G90 G40 G94
G17
G70
M26
; 2D CONTOUR2
M9
M26
:T2 M6
M26
S10000 M3
H0
M9
G0 X-1.1162 Y0.3514
Z0.395
Z0.2
G1 Z0.0694 F4
Z-0.005
X-1.1159 Y0.3515 Z-0.0089
X-1.115 Y0.3516 Z-0.0127
X-1.1135 Y0.3518 Z-0.0163
X-1.1115 Y0.3521 Z-0.0197
X-1.109 Y0.3525 Z-0.0227
X-1.106 Y0.3529 Z-0.0252
X-1.1027 Y0.3534 Z-0.0273
X-1.0991 Y0.354 Z-0.0288
X-1.0954 Y0.3545 Z-0.0297
X-1.0915 Y0.3551 Z-0.03
X-1.0668 Y0.3588
G17 G3 X-1.0457 Y0.3872

0 Likes
Message 4 of 8

ovisopa
Collaborator
Collaborator

Did you used a Post Processor made for your machine ?I think if you have used the correct one there shouldn't be any G-Code posted to the file, that your machine does not recognize ... 

 

chosing post processor.jpg

 

 

 

 

0 Likes
Message 5 of 8

HughesTooling
Consultant
Consultant

Like @ovisopa asks are you using the correct post processor? The arc errors look like they could be down to a mismatch between the post and your machine where one is using absolute arc centres and the other is incremental. The drill op with the W axis call looks like you've using tool orientation, you should only use this if you have a 4\5 axis machine. If you only have a 3 axis machine can you export your f3d file and attach to this thread as you might not be setting up your ops and setups correctly.

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 6 of 8

gamblegarage
Explorer
Explorer

I had no idea I had to do that until after posting this. So thank you, I got that part all figured out.

My only other issue is now I get 2 errors.

 

 

How can I prevent fusion from spitting out any M codes? 

 

 

 

Error code 10009 on line 10:
The M-Code is not defined

Error code 1404 on line 13:
An operation that depends on
machine zero being set was
attempted. Machine zero has not
yet been set.

 

%
(1001)
(T2 D=0.25 CR=0 - ZMIN=-0.315 - flat end mill)
N10 G90 G94
N15 G17
N20 G20
N25 G28 G91 Z0
N30 G90
(Face2)
N35 M9
N40 M6 T2
N45 S10000 M3
N50 G54

 

 

Error code 1404 on line 1004:
An operation that depends on
machine zero being set was
attempted. Machine zero has not
yet been set.

 

N5025 G28 G91 Z0

0 Likes
Message 7 of 8

HughesTooling
Consultant
Consultant
I'd recommend you home your machine or you'll be back complaining of tool crashes. If you have limit switches let the machine go through it's homing sequence, if you don't have limit switches you'll need to figure out how to zero your machine home manually at a safe point. This will fix the G28 error you see.

For the G54 error you need to choose the G54 offset on your machine and zero at the same origin point you've set in Fusion.

So normally G53 is you machine home\origin set when you home the machine then change to G54 offset and zero at the origin on your job.

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 8 of 8

daniel_lyall
Mentor
Mentor

@gamblegarage What version of flashcut are you useing.

 

Mark he's a total newbee He's been posting on facebook as well, He was for a start useing the wrong post I got that sorted with a Vid i think.


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes