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
Smoothieware support #94
Comments
Smoothieware is similar to Grbl, I think that is not difficult to add Smoothieware support to the cnc software. I will get a 4XC SmoothieBoard for protocol testing some other time. |
I wonder if @arthurwolf could help out here with a board to help you test. If not, and given your location, you could check out the MKS SBase, which is compatible with Smoothieware and ships from China. If it's an issue, let me know and I'll order one for you. |
Hey ! Smoothie is very similar to grbl if you use the CNC build, and add in config : I can give you a discount, or send you a broken board ( that will still be able to communicate ) if you want. Cheers :) |
Thank you for your information. I will make a purchase for the SmoothieBoard (or MKS SBase v1.3 from China) and then start to work out. |
Just tried to connect to Smoothieware as suggested by @arthurwolf, with the firmware compiled with CNC=1 which puts it in Grbl-compatible mode. The output seems more compatible with what cnc expects, but there's still some problems.
One issue is that the Axes widget never unlocks itself even after the homing command, which homes the machine correctly. But the unlock button, which sends |
Thank you for the information. Just received my SmoothieBoard, I will give it a try in the next few days. |
Thanks for the help. After some more testing, the board does send the response to |
The command execution will be blocked by a readiness check until it received a Grbl startup line https://github.com/cheton/cnc/blob/v1.8.5/src/app/controllers/Grbl/GrblController.js#L233-L252 this.grbl.on('startup', (res) => {
this.emitAll('serialport:read', res.raw);
if (!this.ready) {
// View Grbl settings
this.feeder.feed({ line: '$$' });
// View startup blocks
this.feeder.feed({ line: '$N' });
if (!this.feeder.isPending()) {
this.feeder.next();
}
}
this.ready = true;
this.queryResponse.status = false;
this.queryResponse.parserstate = false;
this.queryResponse.parserstateEnd = false;
}); I can add a piece of code to detect Smoothie that can work with current Grbl controller. The full support for Smoothieware, including a Smoothie widget, might be available in the 1.9.0 release. |
Added preliminary support for Smoothieware in the 1.8.6 release. Stability is not guaranteed, but it's worth a try! |
Awesome, will do some testing and let you know. |
Hi @arthurwolf, I found an issue while trying to stop streaming a G-code program to Smoothie, the status report (?) may report unusual work position with uncertain offsets. The steps to reproduce: After taking several tries, I found that Smoothieware lost its work position in status report, but this never happen in Grbl. May I know if I made something wrong while trying to recover an alarm state? |
Hey.
As far as I know, once Smoothie goes into Alarm state, it's not expected to
do anything right, and should be fully reset before being used again
@wolfmanjm might have more details.
Cheers.
…On Mon, Dec 5, 2016 at 3:11 PM, Cheton Wu ***@***.***> wrote:
Hi @arthurwolf <https://github.com/arthurwolf>,
I found an issue while trying to stop streaming a G-code program to
Smoothie, the status report (?) may report unusual work position with
uncertain offsets.
The steps to reproduce:
Step 1. Streaming a G-code program to Smoothie
Step 2. Send ! and ctrl-x to feed hold and reset
Step 3. Send $X to unlock an Alarm state
Step 4. Run step 1 again
After taking several tries, I found that Smoothieware lost its work
position in status report, but this never happen in Grbl.
May I know if I made something wrong while trying to recover an alarm
state?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#94 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAGpFUlKRsUVtSqboMFqertdhFLTwtcWks5rFBudgaJpZM4K6FpQ>
.
--
Courage et bonne humeur.
|
$X or M999 will reset from Alarm mode, but if positioning is lost then you also need to home after $X.. with $H. It is impossible to guarantee that position is not lost after an abrupt abort. Even Grbl does not guarantee that. |
I used to pause and resume a G-code program immediately using Here are my steps to abort a G-code program against a hold:
|
Been testing the new Smoothie support with a laser cutter today and I can report that it works. There seemed to be some problems pausing the job, sometimes it worked but most of the time the job just continued until I pressed the stop button. I will do some more checking tomorrow. |
Hi @tritao, I'm still fine tuning the workflow for pausing / resuming / stopping a job (commit e2abb57), I will publish a new release once I confirmed a correct usage. Regarding your question, I got some responses here: LaserWeb/deprecated-LaserWeb3@ab3ffa6#commitcomment-20137765 There is a difference between Grbl and Smoothie, both ! and M600 cannot pause a job immediately in Smoothie, the pause (!) will take effect until the planner queue is finished. |
FYI I am removing the ! and ~ from smoothie, as it does not really do anything. You can continue to send them but they will be ignored. The control-X will continue to work as immediate abort. |
@wolfmanjm Thank you very much for your detailed explanation. I will list it as a known issue in FAQ, and remove |
Note. Both |
Yes just did that, so you can continue to send ! so when/if it is ever implemented it will just work :) right now it'll just be ignored. |
Sure! Thank you for your guidance. I just upgraded the firmware to the latest build version edge-fecb4cc, I will do more tests with this version. |
Added in v1.9.0-alpha |
Thanks ! |
@tritao, @arthurwolf, @wolfmanjm Thank you so much for making it happen. |
Thank you so much for all the work to get smoothie supported ! I asked the smoothie community to test this so we can find any problem that potentially exists. |
Hey, first of all thanks for your work on this nice piece of software.
Do you have any plans on adding support for Smoothieware to the software?
The text was updated successfully, but these errors were encountered: