Error message when sending gcode

Error message when sending gcode

Anonymous
Not applicable
3,324 Views
4 Replies
Message 1 of 5

Error message when sending gcode

Anonymous
Not applicable

ok
ok
>>> G3Y-1.863J3.012
(error:20) Unsupported or invalid g-code command found in block.(error:20) Unsupported or
invalid g-code command found in block.
(ALARM:1) Hard limit has been triggered. Machine position is likely lost due to sudden halt.
Re-homing is highly recommended.(ALARM:1) Hard limit has been triggered.
Machine position is likely lost due to sudden halt. Re-homing is highly recommended.
[MSG:Reset to continue]

 

I'm getting the above each time I run a file created in Fusion 360. It simulates OK, it posts the toolpath with no errors flagged, but when I come to send the code via UGS (Universal Gcode Sender) to my CNC if sets off the alarm. Other files (not Fusion 360) run with no problem.

 

I don't know if the >>>G3Y-1.863J3.012 is the error line and I've not tried editing gcode before....

 

Anyone come across this error type before?

 

Many thanks

Francis

 
0 Likes
3,325 Views
4 Replies
Replies (4)
Message 2 of 5

LibertyMachine
Mentor
Mentor

Is the Universal Gcode Sender the recommended post processor for your machine?

What is your machine?

 

Have you run any other Fusion CAM programs on your machine?

 

Can you ATTACH (not copy/paste) the offending g-code file in your next reply? What about a successful file? If the file extension is anything OTHER than .nc or .txt, you will need to rename it to those.


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks for the prompt reply Seth.

I've added a screen grabe of the code and an inset of the tool path. As you can see it is a very simple traverse across a piece of wood to create a flat surface. I'm a real newbee with Fusion 360 and G-code.

There are some 'J' references there in lines 24, 26, 28 and 30, which I think may be the problem. The book I have on basic Gcode, it doesn't show 'J' as part of the command structure listing: G, M, F, S, T & O.

GRBL-Pyr-Bri_Gcodetest.jpg

 

Cheers

Francis

0 Likes
Message 4 of 5

Anonymous
Not applicable

Finally got code to send. What I did was to design a simple item (square) in Cut2D and Fusion 360 and compare the first few lines of gcode from each. I then edited out lines from the Fusion 360 list to approximate the Cut2D code. Then run the edited code which worked.

Here's the code with the edited out lines shown with text underlined:

 

%

(1001)

(F360Test)

(T1  D=6 CR=0 - ZMIN=-2.49 - flat end mill)

G90 G94

G17

G21

G28 G91 Z0

G90

 

(Adaptive2)

M9

T1 M6

S5000 M3

G54

M8

G0 X-56.8 Y-54.74

Z9

Z4

Z-1.29

G1 Z-1.89 F1000

X-56.794 Y-54.737 Z-1.984

X-56.774 Y-54.728 Z-2.075

X-56.741 Y-54.714 Z-2.162

X-56.695 Y-54.694 Z-2.243

......

 

0 Likes
Message 5 of 5

graham.j.bland
Contributor
Contributor

There is an updated grbl.cps file available which says it will not send invalid (not implelented) commands to grbl. Try installing this in the personal post library. 

In post process -

Setup

Open Autodesk HSM Library

Download the new GRBL.cps file into C:\Users\xxxx\\AppData\Roaming\Autodesk\Fusion 360 CAM\Posts

Setup

Use Personal Post library ( this will be C:\Users\xxxx\\AppData\Roaming\Autodesk\Fusion 360 CAM\Posts

Also you will have to set Output M6 and Output Tool number in the property settings to No.

 

This is for Windows 7, locations may be different on other versions and as to Macs, you will have to work it out yourself.

Hope this helps.

0 Likes