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

"Check Size Power" & "Tool Test Power" values are too High #614

Open
friiidge2 opened this issue Oct 27, 2020 · 3 comments
Open

"Check Size Power" & "Tool Test Power" values are too High #614

friiidge2 opened this issue Oct 27, 2020 · 3 comments

Comments

@friiidge2
Copy link

These 2 Functions do not allow to insert a floating point number under 1.
With 15W Laser If i use 1 as "Check Size Power" or "Tool Test Power", the Laser burn the wood

Is it possible enable the use of floating point number

Regards

@cprezzi
Copy link
Member

cprezzi commented Oct 27, 2020

This sounds like a problem with your firmware configuration. On GRBL the default PWM range is 0-1000, which means 1 is 0.1%.
What firmware are you using?

@friiidge
Copy link

Hello,

You're right, i want to introduce 0.1% as value.
But LaserWeb4 do not authorize the value. When you save it, it automaticaly come back to 1
1%

My firmware is GRBL 1.1H with Following settings
$30 = 1000

But your calculation is false :-)
1% of 1000 = 10 (PWM and not 1 PWM)

for this reason my Laser burn material.
I have to reduce $30 = 100
In this case, with a settings of 1% in "Check Size Power" & "Tool Test Power" I can use a real value of 1 PWM
Then i have to change the $30 =1000

Do you think possible to authorize floating point numbers for these 2 values?

@cprezzi
Copy link
Member

cprezzi commented Dec 1, 2020

On Arduino Uno or Nano, the real PWM values are only 8 bit (0-255). Because of memory and speed limition, grbl internally operates with integer value, not floating point. S values are scaled according to $30. With $30=1000, 1% equals to 10, which is scaled (divided by 1000 and multiplied by 255) to a PWM value of 2 or 3 (depending on rounding). Such a value should not deliver enough power to burn anything. If it does, you have a problem with your laser (probably not a TTL PWM compatible laser driver).

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

3 participants