Use override to modify laser power

More
1 year 2 months ago #334001 by pinterluca
I'm installing a 20w laser on my CNC and I control the power of laser using the spindle pwm. The software LightBurn use M67 to control the laser power. I modify the HAL file to connect  analog-out-00 to the spindle PWM and set the scale. The laser is ok and the power change. Can i use the slide of spindle override to increse and reduce  the new laser signal ????  I'm not expert to configure linuxcnc. 

Attachment not found

Please Log in to join the conversation.

More
1 year 2 months ago #334013 by tommylight
What type of laser and what speeds will it be working at?

Please Log in to join the conversation.

More
1 year 2 months ago #334038 by PCW
Did you want the laser PWM controlled by both the feed rate and motion.analog-out-00?

If so you probably want to add a scale component to multiply the analog out setting by the feed rate.

Please Log in to join the conversation.

More
1 year 2 months ago #334044 by andypugh

I'm installing a 20w laser on my CNC and I control the power of laser using the spindle pwm. The software LightBurn use M67 to control the laser power. 
Which of these do you want to use? They aren't really compatible. 

You could use the spindle-override controls indirectly, using a HAL "scale" component to multiply the motion.analog-out.NN pin by halui.spindle.N.override.value
linuxcnc.org/docs/stable/html/man/man9/scale.9.html
linuxcnc.org/docs/stable/html/man/man1/h...l#Spindle%20Override

Please Log in to join the conversation.

More
1 year 2 months ago #334052 by pinterluca
thank you very much. I really wanted to multiply the two signals but I didn't know the commands. now I understand and I will try.

Please Log in to join the conversation.

More
1 year 2 months ago #334097 by pinterluca
The problem is solved. I add HALUI in my INI file and use a scale function. Now I can modify the laser power using the slide during the work. Thanks.

Please Log in to join the conversation.

More
1 year 2 months ago #334104 by andypugh
Welcome to the wonderful world of LinuxCNC HAL :-)

Please Log in to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum