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

Enable M06 Command for another firmware #435

Closed
wants to merge 1 commit into from

Conversation

krupnfs
Copy link

@krupnfs krupnfs commented Feb 19, 2025

The FluidNC firmware allows you to use tool change commands. This add-on includes this option. The setting is located on the Tool Change form.

The FluidNC firmware allows you to use tool change commands. This add-on includes this option. The setting is located on the Tool Change form.
@krupnfs krupnfs marked this pull request as draft February 19, 2025 09:14
@krupnfs krupnfs marked this pull request as ready for review February 19, 2025 09:16
@svenhb
Copy link
Owner

svenhb commented Feb 19, 2025

So you need a pass through of the M6-command, without handling by GRBL-Plotter?
Unfortunatly you changed also a lot of other files, which are not needed to be changed for this task.
Perhaps you can deliver a screenshot of the changed setup-page?

@krupnfs
Copy link
Author

krupnfs commented Feb 19, 2025

Yes. At the moment I am in the process of testing a new motherboard for CNC, working on FluidNC, it supports tool change, moreover, it is possible to simultaneously connect a laser and a spindle, which will be controlled by different GPIO, I tried to test the tool change and encountered the fact that it does not work in GRBL Plotter. I made the appropriate adjustments to the code and added it. The commit also included several files that were automatically updated by Visual Studio.

Screenshot
image

@krupnfs
Copy link
Author

krupnfs commented Feb 19, 2025

The only thing I noticed, but haven't found the reason yet, is that my spindle operates in the S10000-S30000 range, and the laser in the S0-S255 range, and after changing the tool, the laser remains off when sending commands in this range.

image

@svenhb
Copy link
Owner

svenhb commented Feb 19, 2025

The only thing I noticed, but haven't found the reason yet, is that my spindle operates in the S10000-S30000 range, and the laser in the S0-S255 range, and after changing the tool, the laser remains off when sending commands in this range.

But this is a problem of FluidNC - right?
Perhaps you need a M5 before line 27, to initialize the laser.

@krupnfs
Copy link
Author

krupnfs commented Feb 19, 2025

No. If I manually send the command, it works fine. The problem only occurs when GCode is executed from a file.

@svenhb
Copy link
Owner

svenhb commented Feb 19, 2025

BTW: for laser and M3 you need a G1 move to activate the laser:
image

image

@krupnfs
Copy link
Author

krupnfs commented Feb 19, 2025

Oh, it's works, thank you very much!!!

@svenhb
Copy link
Owner

svenhb commented Feb 26, 2025

@svenhb svenhb closed this Feb 26, 2025
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.

2 participants