-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Correct Laser/Spindle issues #17661
Correct Laser/Spindle issues #17661
Conversation
7b92348
to
37176ed
Compare
Looks like I have this commit already in my local but the laser is occasionally not turning off. It doesn't seem to matter what I do with the S0/G0/M5 commands the laser will still stay on for a few of the first movements and then work like normal. The same will happen at various times through the etch but I'm having issue defining exactly where. Fire pin is tied to 5V with a 10K resistor. The minimum I can manage to get to reproduce it is: ; LightBurn 0.9.11
; Marlin device profile, absolute coords
G21
G90
; Scan @ 80 mm/sec, 15% power
M106 S0
G0 X181.39 Y40.4 F4800
G91
G1 X-0.03 F4800 I S38.3
M5 I
G0 X-7.13 Y-0.1 F4800
G1 X0.16 F4800 I S38.3
G0 X6.93 F4800
G1 X0.11 F4800 I S38.3
G0 X6.94 F4800
G1 X0.16 F4800 I S38.3
G0 X0.13 Y-0.1
G1 X-0.31 I S38.3
G0 X-6.88 F4800
G1 X-0.19 F4800 I S38.3
G0 X-6.87 F4800
G1 X-0.32 F4800 I S38.3
M5 I
G1 X-0.13 Y-0.1 I S0
G90
M5 I
G90
; return to user-defined finish pos
G0 X0 Y0 F12000 |
No, I don't mind it. I was experiencing a similar thing before where the laser doesn't turn off for the first couple cuts, but it's all working now. First off G0 and G1 don't take the |
OMG I love you! This is broken right now in the main bugfix branch though, so heads up. Is there something I should tell them as to when to include the I or not? |
I'll add a note to the documentation |
31c3595
to
eb97cd1
Compare
eb97cd1
to
bdc6eac
Compare
|
Tested. With |
c14a48f
to
edfccc7
Compare
Corrected some unit conversions, and maybe even all of them. |
0d21faa
to
5fa7f05
Compare
5fa7f05
to
8d586d3
Compare
Tested, same exact issues. I didn't mention before but power beyond min and max range are not corrected to min/max. And effective power range (where the laser actual power output is affected) appears to be between 0 and 25 via the LCD. There were a couple obvious mistakes. The main cause here I believe is that there is a confusion between Unit power, Display power and what is set for min, max and startup power in config_adv. I think I am close with my local patch. |
c4d426d
to
da31ff4
Compare
cpower = power set in config_adv ie SPEED_POWER_MAX | for spindle it is in RPM, for laser it is in percent. upower = unit power = set by CUTTER_POWER_UNIT in PWM, percent or RPM power_to_range will take any value and puts it within the min and max power range. In Relative mode, M3 S0 will not turn off the spndle/laser except if unit power is in RPM. Menu power = laser/spindle control via LCD menu. Note: The dial can set the laser/spindle in the off state. Whe the laser is on, it can adjust the power, and turn off the power when dialed to zero.
'cpower' = power set in config_adv ie In Todos/Notes:
|
I'll have to pull latest and merge later. It's interesting that I'm running mine on an LPC1768 at 50kHz, was on the RAMPS as well and had no issue with power scale. I did on the LPC prior to adding a level shift. Here's some of my videos of your code running(thought last time I had to update something to have it build lol) - This is a Mega2560(Ramps) Raster(LPC required): |
Added |
I don't know if this is the right place to report this.
|
I have the following issue but i can't be sure if it is Marlin related or from my machine/configuration. Thank you. |
It should be |
When using non PWM pin with just on/off, laser/spindle
setPower
usesSPEED_POWER_STARTUP
instead ofSPEED_POWER_MIN
.Changed
inline_enabled
call toinline_ocr_power
toinline_power
.Fixed an issue that I had created in the other PR: laser wasn't turning off between moves. Solution: relocated
translate_power
back over tospindle_laser.cpp
fromspindle_laser.h
.