friolator
Full Member
Mega V 19"
Posts: 138
Machine: Other
|
Post by friolator on Aug 23, 2018 21:19:06 GMT
I'm set up to run my first test with the M3, but it stopped with an Error 20: (error:20) Unsupported or invalid g-code command found in block. It doesn't really indicate which line of the gcode this is, but looking at the console in UGS, my guess is it's the G2 near the bottom of this block: %
(plexi-etch-circle)
(T1 D=6.35 CR=0 - ZMIN=-1.97 - flat end mill)
G90 G94
G17
G21
(2D Pocket3)
M9
T1 M6
S16000 M3
G0 Z10
M8
G0 X-28.068 Y-26.005
Z15
Z5
G1 Z3.135 F2000
X-28.077 Y-25.977 Z2.943
X-28.104 Y-25.895 Z2.769
X-28.141 Y-25.765 Z2.629
X-28.18 Y-25.598 Z2.536
X-28.212 Y-25.41 Z2.5
G2 X-22.236 Y-24.59 Z2.169 I2.988 J0.41 I say this because this is the console output, and the error seems to happen 4 lines after the X-28.104 Y-25.895 Z2.769 command: >>> X-28.104Y-25.895Z2.769
ok
ok
ok
ok
(error:20) Unsupported or invalid g-code command found in block.(error:20) Unsupported or invalid g-code command found in block. The model is a simple 50mm circle, with a smaller, deeper circle in the middle. I've homed the machine, and set G90 X0 Y0 Z0 after getting the bit just above the work surface. I then raised the Z up 5mm before turning the router on: G90 G0 Z5. The router moves into position make the first cut, then the error comes up and it sits there. The model was made in Fusion 360, and the G Code was generated there as well. gcode file attached for reference. Any ideas what's going on? Attachments:plexi-etch-circle.nc (2.68 KB)
|
|
|
Post by Derek the Admin on Aug 23, 2018 21:43:10 GMT
T1 M6 is the most likely cause. You can go to the settings in UGS as well and add T1 M6 or just M6 to the regular expression remover to get it to ignore it in the future. You can also just delete it from the g code.
|
|
friolator
Full Member
Mega V 19"
Posts: 138
Machine: Other
|
Post by friolator on Aug 23, 2018 21:44:35 GMT
Thanks - I'll try that now. Is there a way to make fusion 360 not generate that in the first place? I'm happy to edit the code, but if I can set up a template in Fusion I'd rather not have to think about that every time!
|
|
friolator
Full Member
Mega V 19"
Posts: 138
Machine: Other
|
Post by friolator on Aug 23, 2018 21:50:14 GMT
That did it. Thanks!
|
|
|
Post by Bruce on Aug 24, 2018 14:33:27 GMT
T1 M6 is a automated tool change command which you most likely will never use. I would set UGS to ignore the command. There should be a way to tell Fusion 360 to not use tool change commands because I don't have that issue. But I can't remember how I did it. I know in ArtCAM I have it create a separate file for each tool I use.
|
|
|
Post by Derek the Admin on Aug 24, 2018 16:32:05 GMT
In Fusion the Grbl post processor that comes with Fusion writes tool changes by default. This includes the initial tool (often the only tool).
I'm 95% sure I remember that there is a field in the post processor configuration file that can be edited to stop it from writing changes, but calamity awaits the person who ventures there and starts editing without a comfort with what is happening with each edit.
In the settings of UGS there is a way to add M6 (the tool change command) to the regular expression remover though so it just ignores it.
|
|
|
Post by fyddler on Aug 24, 2018 17:47:17 GMT
I'm having the same problem with my v-carve post processor. I havnt tested it yet, but I did narrow it down to the T1M6 line.
|
|
|
Post by aquanub on Aug 27, 2018 0:12:23 GMT
I noticed this today as well. However if I OK out of it, and press play again... it resumes as intended.
|
|
|
Post by James@fireaxe on Sept 2, 2018 16:10:57 GMT
When I Post process in Fusion, it opens the Bracket G Code editor. I like this because allows me to view the G Code prior to loading in to UGS. I got the same error when I first started. I manually delete the T1 M6 code with Brackets, and check the other settings.
|
|