Page 1 sur 3

laser does not work

Posté : 13 avr. 2021 15:31
par franmoreno
hi, is there something wrong with the settings? I can't get the laser to work. regards

Re: laser does not work

Posté : 13 avr. 2021 16:59
par franmoreno
someone could tell me if these parameters are ok please ...

Re: laser does not work

Posté : 13 avr. 2021 17:30
par HTheatre
I do not use any laser on my RS-CNC32, but at least I see one bad value for one parameter I think.

Here is what I see when I interrogate GRBL :
$0=6
$1=255
$2=0
$3=31
$4=0
$5=1
$6=0
$10=3
$11=0.010
$12=0.002
$13=0
$20=0
$21=1
$22=1
$23=3
$24=100.000
$25=500.000
$26=250
$27=2.000
$30=24000
$31=4000
$32=0
$100=60.000
$101=60.000
$102=400.000
$110=2500.000
$111=2500.000
$112=500.000
$120=80.000
$121=80.000
$122=50.000
$130=540.000
$131=570.000
$132=80.000
In my opinion, $1 has to be set to 255. But this does normally not affect the laser.
In your config, the laser mode is actived ($32=1, in mine this mode is desactived (no laser) $32=0)
In your config, MAX_SPINDLE_RPM is set to 100 ($30=100). This value also corresponds to the 100% intensity for the laser. So sending M4 + S100 to GRBL sould normally power on the laser and raise it up at its higher intensity. Do not care about the value I have for $30. I control the RPM speed of my spindle using the PWM signal coming from the 32bits GRBL board.
In your config, MIN_SPINDLE_RPM is set to 0 ($31=0). This value also corresponds to the 0% intensity for the laser. So sending M4 + S0 to GRBL sould normally power on the laser at its lower intensity. Do not care about the value I have for $31. I control the RPM speed of my spindle using the PWM signal coming from the 32bits GRBL board.
So these paramaters seem to be OK for a laser use. But remember you usually have to invert the PWM signal to make laser working. Unfortunately, the setup of this parameter can't be see in console mode. You have to check it directly in the firmware of the STM-32, before to compile it. More information about this in the assembly manual of the RS-CNC32, submanual dedicated to the STM-32 programming.

See ya,

Re: laser does not work

Posté : 13 avr. 2021 23:07
par RoMaker
Hi !

The $30 value should be the same as in your software that generates the G-code (S-max).
That could be 100 or 1000 or 255... As you want

Image

Re: laser does not work

Posté : 13 avr. 2021 23:55
par HTheatre
RoMaker a écrit : 13 avr. 2021 23:07 The $30 value should be the same as in your software that generates the G-code (S-max).
That could be 100 or 1000 or 255... As you want
¡Aaaaaa sí, esto no me lo recordaba!

Re: laser does not work

Posté : 14 avr. 2021 11:50
par franmoreno
if i reverse the yellow pwm wire to 5v would there be a problem? it's the only way the laser turns on

Re: laser does not work

Posté : 14 avr. 2021 16:40
par franmoreno
this is the way i can use the laser by changing the pin to 5v. Is the noise on the X axis due to the drivers or is it necessary to give power? I'm sorry to cause so much trouble




Re: laser does not work

Posté : 14 avr. 2021 17:38
par RoMaker
With your way, the laser seems to be always at 100%

You have to wire like on the tutorial diagram

The command to control the laser is M4 S**** (**** is the value between the minimum and maximum you put in $30). Stop the laser is M5 Command

Check if you have a common GND between the RS-CNC power supply and laser power supply.

Did you try to engrave a picture like on the tutorial with "laser GRBL" just to test it ?

Re: laser does not work

Posté : 14 avr. 2021 17:46
par franmoreno
Thanks for your answer, I will look at the wiring, the same is the error there is, yes I followed the steps in the tutorial but when the laser did not turn on, I changed the yellow cable to 5v

Re: laser does not work

Posté : 14 avr. 2021 18:53
par RoMaker
Do you have the link of your laser module to see specifications ?