Spark-Concepts / xPro-V5

xPro-V5 CNC Motion Control System Documentation and User Information
42 stars 20 forks source link

Laser mode no pwm signal #107

Closed Nastyfast44 closed 2 years ago

Nastyfast44 commented 2 years ago

I am trying to activate the laser using m3 commands. I am able to activate it with $spindle/type=pwm. I send command m3s24000 and the laser turns on at what I expect is full power, as my max spindle speed is 24000. The issue occurs when I change to $spindle/type=laser with $32 1. It’s states that laser_output_pin not defined. I send m3s24000 and I do not detect any voltage from pwm pin. Laser will not fire.

I’m using pwm firmware with a neje a40640 laser module. I am also using ugs to send commands.

Spark-Concepts commented 2 years ago

You will need to use $pindle/type=PWM; on the xProV5's default firmware there is not a physical GPIO assigned to the "laser" $spindle/type

Note: the $spindle/type sets which GPIO is currently active as well as if the signal is discrete(ON/OFF), analog(PWM), or RS485

Regardless PWM and Laser Spindle Types are functionally the exact same.

Nastyfast44 commented 2 years ago

I got it to work. Thank you. I realized the newest firmware worked for both pwm and rs485. Switched and everything seems to be working as it should now. Thank you