laser does not work

franmoreno
Messages : 34
Enregistré le : 20 janv. 2020 22:23

laser does not work

Message par franmoreno »

hi, is there something wrong with the settings? I can't get the laser to work. regards
Vous n’avez pas les permissions nécessaires pour voir les fichiers joints à ce message.
franmoreno
Messages : 34
Enregistré le : 20 janv. 2020 22:23

Re: laser does not work

Message par franmoreno »

someone could tell me if these parameters are ok please ...
Avatar du membre
HTheatre
Messages : 5910
Enregistré le : 31 mars 2019 08:21
Localisation : Rivesaltes

Re: laser does not work

Message 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,
Avatar du membre
RoMaker
Administrateur du site
Messages : 5063
Enregistré le : 02 janv. 2017 20:24
Localisation : Montpellier
Contact :

Re: laser does not work

Message 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
Avatar du membre
HTheatre
Messages : 5910
Enregistré le : 31 mars 2019 08:21
Localisation : Rivesaltes

Re: laser does not work

Message 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!
franmoreno
Messages : 34
Enregistré le : 20 janv. 2020 22:23

Re: laser does not work

Message 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
franmoreno
Messages : 34
Enregistré le : 20 janv. 2020 22:23

Re: laser does not work

Message 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



Avatar du membre
RoMaker
Administrateur du site
Messages : 5063
Enregistré le : 02 janv. 2017 20:24
Localisation : Montpellier
Contact :

Re: laser does not work

Message 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 ?
franmoreno
Messages : 34
Enregistré le : 20 janv. 2020 22:23

Re: laser does not work

Message 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
Avatar du membre
RoMaker
Administrateur du site
Messages : 5063
Enregistré le : 02 janv. 2017 20:24
Localisation : Montpellier
Contact :

Re: laser does not work

Message par RoMaker »

Do you have the link of your laser module to see specifications ?
Répondre