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

bCNC used with Grbl laser mode - use m4 instead of m3 #627

Closed
W-E opened this issue Aug 2, 2017 · 11 comments
Closed

bCNC used with Grbl laser mode - use m4 instead of m3 #627

W-E opened this issue Aug 2, 2017 · 11 comments

Comments

@W-E
Copy link

W-E commented Aug 2, 2017

Grbl now (v1.1) has a very nice feature in the laser mode:
If you turn on the laser with "m3", it runs at the power specified by the Sxxx command
BUT if you turn on the laser by issuing an "m4", the laser power is adapted to the movement speed. This is great as othwerwise in and near corners, where the laser head moves slower, the laser tends to over-burn.

Therefore a feature request: Make a selection checkbox for laser mode "constant power" or "adaptive power" which then generates M3 or M4.
Ideally it even re-generates when you change this checkbox while an existing G-code file is already loaded.

I now hardcoded the "m4" in line 970 in "CNC.py" but an option checkbox would be much nicer, of course.
Sadly I can only write some C and Perl but no Python (yet... )

@vlachoudis
Copy link
Owner

Done. I've add it in the Config as laser adaptive power

@W-E
Copy link
Author

W-E commented Aug 3, 2017

vlachoudis,

Very cool, it's a new Option ! Great, thank you. Very quick.
I think I will help a bit with localisation. This can be done without Python knowledge...
Wolfgang

@Giochia
Copy link

Giochia commented Aug 3, 2017

Hi, why was my previous request not looked upon ? It is somehow on the same line of this.

Here is the data: "#552 Open Giochia opened this issue on 29 Mar · 6 comments" and the description was " it would be useful to have no Z movement when the bCNC is in LASER mode. This would save time in having to edit long lines of code when passing from mechanical Spindle to Laser use, with the identical Gcode item.
Alternatively, if movement is not easily removable, it could be sufficient to turn off Laser during "Z" axis movements, so that the Laser beam does not insist in the same spot, creating a hole, while Z is moving."

@W-E
Copy link
Author

W-E commented Aug 3, 2017 via email

@vlachoudis
Copy link
Owner

@Giochia this was something very easy to be implemented, what what you've asked in #552 I cannot say that I fully understood. Moreover, what I've thought I understood it is more complicated, than the present request.

@Giochia
Copy link

Giochia commented Aug 3, 2017 via email

@vlachoudis
Copy link
Owner

Ok I see, you want an option to remove as a filter all Z movements. Is not complicated but not as straight forward like the m3/m4 implementation. It will require to go through the gcode and strip out any Z motion, and clean empty lines.

@W-E
Copy link
Author

W-E commented Aug 4, 2017 via email

@vlachoudis
Copy link
Owner

@W-E when you set the lasercutter mode, bCNC should not generate any Z movement for any generated gcode by bCNC. However it wont alter any existing/loaded g-code that contains Z-movements.

I am trying also to keep to minimum the changes it does to an existing/loaded gcode, for the moment is only on the autoleveling, tool changes and canned cycles to support extra features that are not existing in grbl.
So as I see it the best way is to create a filter, in the "Editor" to remove all Z movements from a loaded gcode.

@Giochia
Copy link

Giochia commented Aug 4, 2017 via email

@fbonin5491
Copy link

fbonin5491 commented Aug 21, 2023

when you use "replace all" in a text editor , its nor so long.for example replace all Z 3.0 with M5 and Z -xx with M3 or M4

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

4 participants