grbl / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
5.61k stars 3.08k forks source link

G Code causing z axis to alarm hard limit. #1289

Open Preston4 opened 7 years ago

Preston4 commented 7 years ago

I am brand new to this whole CNC environment but am setting up my school CNC router. We are using the hx8410. I am using fusion 360 to export g code. when I try to send the code to the CNC, it says invalid command: and lists a few lines. It specifically says: Skipped Command #1 Skipped Command #2 Skipped Command #3 Skipped Command #9 Skipped Command #6952

error: Unsupported command

Z5 Z2.976 G1Z2.5F1000

the g code that exports start with : % (TEST 3) (T2 D=3.175 CR=0 - ZMIN=-20 - flat end mill) G90 G94 G17 G21 G28 G91 Z0 G90

(2D Adaptive2) M9 T2 M6 S10000 M3 G54 M9 G0 X36.503 Y-36.369 Z15 Z5 Z2.818 G1 Z2.5 F762 G3 X38.497 Y-38.631 Z2.335 I0.997 J-1.131

If anyone could help, it would be massively appreciated.

X3msnake commented 7 years ago

What post processor are you using?

No dia segunda-feira, 25 de setembro de 2017, Preston4 < notifications@github.com> escreveu:

I am brand new to this whole CNC environment but am setting up my school CNC router. We are using the hx8410. I am using fusion 360 to export g code. when I try to send the code to the CNC, it says invalid command: and lists a few lines. It specifically says: Skipped Command #1 https://github.com/grbl/grbl/issues/1 Skipped Command #2 https://github.com/grbl/grbl/issues/2 Skipped Command #3 https://github.com/grbl/grbl/issues/3 Skipped Command #9 https://github.com/grbl/grbl/issues/9 Skipped Command #6952

error: Unsupported command

Z5 Z2.976 G1Z2.5F1000

the g code that exports start with : % (TEST 3) (T2 D=3.175 CR=0 - ZMIN=-20 - flat end mill) G90 G94 G17 G21 G28 G91 Z0 G90

(2D Adaptive2) M9 T2 M6 S10000 M3 G54 M9 G0 X36.503 Y-36.369 Z15 Z5 Z2.818 G1 Z2.5 F762 G3 X38.497 Y-38.631 Z2.335 I0.997 J-1.131

If anyone could help, it would be massively appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-kkpU5wvjVFbt-WpFgK-ZHLz87iaks5smCXWgaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

Preston4 commented 7 years ago

I'm just using the built-in post processor in fusion 360. I don't know what its called.

X3msnake commented 7 years ago

You must use the correct post processor you can try the one that ships with fusion but it must say grbl or shapeoko

No dia segunda-feira, 25 de setembro de 2017, Preston4 < notifications@github.com> escreveu:

I'm just using the built-in post processor in fusion 360. I don't know what its called.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289#issuecomment-332031380, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-n8FXGOb8OuajQ-_ZbcVRQlr6dTQks5smCgrgaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

Preston4 commented 7 years ago

screenshot 76

in the post process, it says I can use generic grbl

X3msnake commented 7 years ago

what sender are you using?

2017-09-25 23:36 GMT+01:00 Preston4 notifications@github.com:

[image: screenshot 76] https://user-images.githubusercontent.com/32280770/30834244-4d7abbbc-a220-11e7-93e2-80830d1f4eb4.png

in the post process, it says I can use generic grbl

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289#issuecomment-332033621, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-jwl07QA-uPTHZXQYHAVehxNUzMgks5smCrrgaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

Preston4 commented 7 years ago

universal g code sender

X3msnake commented 7 years ago

what is the problem?

the skipped comands ate the % and the (commented text) so no fault here

when does the unsupported command appears and what dos it have to do with the hard limit that you post on the title?

2017-09-25 23:47 GMT+01:00 Preston4 notifications@github.com:

universal g code sender

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289#issuecomment-332035724, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-ijXvXxM9sJHUNHapsVdFHlWYU6Gks5smC2PgaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

Preston4 commented 7 years ago

I think the wrong command is the z5 and stuff like that when I send the file, the z-axis goes all the way to the top and nothing happens

X3msnake commented 7 years ago

can you control the machine manually within UGS ?

have you set the zero point on the part you want to machine and done a reset of the xyz?

2017-09-26 0:22 GMT+01:00 Preston4 notifications@github.com:

I think the wrong command is the z5 and stuff like that when I send the file, the z-axis goes all the way to the top and nothing happens

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289#issuecomment-332041323, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-rhTB3P5WR6YBYZvS--F_oWQOp2rks5smDW0gaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

Preston4 commented 7 years ago

I can control the machine fine and can set zeros, I just can't use cut the shape I want.

X3msnake commented 7 years ago

Try the Carbide 3D (grbl) post processor on the dropdown list

2017-09-26 0:30 GMT+01:00 Preston4 notifications@github.com:

I can control the machine fine and can set zeros, I just can't use cut the shape I want.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289#issuecomment-332042595, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-mQ4NYdiHQf6lojef5S5B209ehCYks5smDeFgaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

X3msnake commented 7 years ago

also try manually removing from file

G28 G91 Z0

save and run the code again

2017-09-26 0:38 GMT+01:00 Vinicius Silva x3msnake@gmail.com:

Try the Carbide 3D (grbl) post processor on the dropdown list

2017-09-26 0:30 GMT+01:00 Preston4 notifications@github.com:

I can control the machine fine and can set zeros, I just can't use cut the shape I want.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289#issuecomment-332042595, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-mQ4NYdiHQf6lojef5S5B209ehCYks5smDeFgaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

-- Com os melhores cumprimentos, Vinicius Silva

Preston4 commented 7 years ago

I'm sorry, but where do I find the carbide 3d?

X3msnake commented 7 years ago

try the second test first

2017-09-26 0:51 GMT+01:00 Preston4 notifications@github.com:

I'm sorry, but where do I find the carbide 3d?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289#issuecomment-332045763, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-jbdFtu4DfEpmLrAOhrsWfEObxuSks5smDx1gaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

Preston4 commented 7 years ago

I'm not by the CNC right now, but ill work on it tomorrow, thank you very much.

X3msnake commented 7 years ago

if the removing G28 works

set the properties of GRBL post processor like this useG28 > NO

[image: Imagem intercalada 2]

What is probably happening is that the machine is trying to go to machine zero (g28) and hitting the endstops

2017-09-26 1:01 GMT+01:00 Vinicius Silva x3msnake@gmail.com:

try the second test first

2017-09-26 0:51 GMT+01:00 Preston4 notifications@github.com:

I'm sorry, but where do I find the carbide 3d?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grbl/grbl/issues/1289#issuecomment-332045763, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-jbdFtu4DfEpmLrAOhrsWfEObxuSks5smDx1gaJpZM4Pjai- .

-- Com os melhores cumprimentos, Vinicius Silva

-- Com os melhores cumprimentos, Vinicius Silva

langwadt commented 7 years ago

or rebuild grbl to set zero after pull-off from the switches

X3msnake commented 7 years ago

@langwadt - Please correct me if i'm wrong, but won't that mean it will write to the flash memory every time it does a homing sequence? And if so won't this mean one will be burning out life cycles out of that flash memory? Or am I missing something here?

langwadt commented 7 years ago

@X3msnake if you are homing in the normal direction HOMING_FORCE_SET_ORIGIN should do

Preston4 commented 7 years ago

Ok so I got the code working and everything was going ok, till the maschine reached its hard limit, and kept going and made a terrible noise. The motors got so hot it hurt to touch them. I am unable to home the maschine, as it is past its limits. Any ideas?

vMeph commented 7 years ago

Machine should stop if hits the switches if doesnt, and dont homes most like is not enable in the grbl configs