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

WinCNC doesn't like M3 Sxxx on the same line #35

Closed
pjz opened this issue Apr 20, 2018 · 8 comments
Closed

WinCNC doesn't like M3 Sxxx on the same line #35

pjz opened this issue Apr 20, 2018 · 8 comments

Comments

@pjz
Copy link

pjz commented Apr 20, 2018

I've adapted Kiri:Moto's g-code output as much as possible, but it seems to always send (for instance):

M3 S18000

Which WinCNC finds unacceptable, griping about 'multiple commands'. Any way to get Kiri:Moto to put them on separate lines instead?

@stewartoallen
Copy link
Contributor

To be clear, WinCNC expects:

M3
S18000

in the gcode on separate lines? have you hand edited the gcode to do this and it works?

@pjz
Copy link
Author

pjz commented Apr 21, 2018

Yes and yes.

@stewartoallen
Copy link
Contributor

I see on p.135 of the manual (http://www.wincnc.net/webfiles/CNC%20Windows/Manuals/WinManual_3.0r3.pdf) that M3 is actually a macro expansion and not a native WinCNC command. If you are not using variable spindle speeds, then the easiest thing to do is to set all spindle speeds to 0 (zero) and add spindle on/off in your gcode pre/post. That way the M3/M4 commands will not be inserted into the gcode.

@pjz
Copy link
Author

pjz commented Apr 21, 2018

If I do that, how do I set the spindle speed at all? I don't adjust it during a job, but it is of course tool- and job- (well, material-) dependent.

@stewartoallen
Copy link
Contributor

I admit it's not terribly convenient, but under Device->GCode->Header add the lines at the end of the header.

@pjz
Copy link
Author

pjz commented Apr 21, 2018

Could there not just be a 'spindle start' template that defaults to 'M3 S{speed}' so I can change the space to a newline in my wincnc definition?

@stewartoallen
Copy link
Contributor

yes, that's totally reasonable. there would also need to be a "spindle stop" template.

@pjz
Copy link
Author

pjz commented Apr 21, 2018

!!! Dude, you rock!!!

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

No branches or pull requests

2 participants