Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add option "nom6" to avoid emitting M6 on tool changes. #620

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

olawlor
Copy link
Contributor

@olawlor olawlor commented Feb 26, 2022

When combined with the existing "nog64" and "nog81", this allows GRBL
to cut the resulting gcode successfully.

@eyal0
Copy link
Contributor

eyal0 commented Feb 27, 2022

MY is the tool change code, right? How can removing M6 help you?

@olawlor
Copy link
Contributor Author

olawlor commented Feb 28, 2022

Currently, pcb2gcode emits an M6 gcode before cutting traces or drilling holes. The common no frills open-source GRBL firmware doesn't support M6 at all (issuing it literally locks up the firmware), but you do the tool changes by hand anyway, and there's an M0 (pause) right afterwards, so you can still change the cutter if the M6 is not there.

GRBL is the factory firmware on many entry-level CNC routers, including 3018 machines that are ideal for PCB milling. This change seems cleaner than manually removing M6 calls after running pcb2gcode.

@eyal0
Copy link
Contributor

eyal0 commented Mar 2, 2022

I also used a CNC with grbl installed. The bCNC that I ran on Linux was giving instructions to grbl and it intercepted the M6 and did a routine to change bits. I would hope that your software can also do that but maybe it cannot?

What is the program that you are using to send commands to GRBL?

@olawlor
Copy link
Contributor Author

olawlor commented Mar 3, 2022 via email

@coveralls
Copy link
Collaborator

coveralls commented Mar 26, 2022

Coverage Status

Coverage remained the same at 69.259% when pulling b5e4705 on olawlor:master into 14e0f17 on pcb2gcode:master.

@eyal0 eyal0 force-pushed the master branch 2 times, most recently from db4c9cc to cf4f700 Compare March 26, 2022 17:31
When combined with the existing "nog64" and "nog81", this allows GRBL
to cut the resulting gcode successfully.
@eyal0 eyal0 merged commit 3b9fe37 into pcb2gcode:master Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants