Use override to modify laser power

More
27 Aug 2025 18:42 #334001 by pinterluca
Use override to modify laser power was created 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. 
Attachments:

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
27 Aug 2025 22:59 #334013 by tommylight
Replied by tommylight on topic Use override to modify laser power
What type of laser and what speeds will it be working at?

Please Log in or Create an account to join the conversation.

More
28 Aug 2025 13:28 #334038 by PCW
Replied by PCW on topic Use override to modify laser power
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 or Create an account to join the conversation.

More
28 Aug 2025 14:08 #334044 by andypugh
Replied by andypugh on topic Use override to modify laser power

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 or Create an account to join the conversation.

More
28 Aug 2025 15:27 #334052 by pinterluca
Replied by pinterluca on topic Use override to modify laser power
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 or Create an account to join the conversation.

More
29 Aug 2025 18:01 #334097 by pinterluca
Replied by pinterluca on topic Use override to modify laser power
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 or Create an account to join the conversation.

More
29 Aug 2025 19:15 #334104 by andypugh
Replied by andypugh on topic Use override to modify laser power
Welcome to the wonderful world of LinuxCNC HAL :-)

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.074 seconds
Powered by Kunena Forum