Hello Guest it is July 18, 2025, 04:32:26 AM

Author Topic: M62_m63 Not working  (Read 8046 times)

0 Members and 1 Guest are viewing this topic.

M62_m63 Not working
« on: August 04, 2024, 03:28:17 PM »
I switched over to Mach4 so I could use a laser on my cnc, I have almost everything working but when I try to run a program using M62-3 I can't get a response.
When I trigger it in test mode it fires the laser with power control from the slider.
Using ESS V 285 Mach4 V4809
Gate output 20, Pwm Pin 16
Here's a snippet of the G code I'm using
T1
G17
G20
G64
m2003 (LASER_VECTOR_PWM_PERCENTAGE=0)
m2003 (LASER_VECTOR_FREQUENCY=5000)
m2003 (LASER_VECTOR_GATE_DELAY=0.5)
m2003 (LASER_VECTOR_GATE_DURATION=0.5)
m2004 (This will Enable the Vector Laser)
G0X0.0000Y0.0000
G0X0.3699Y0.8901
G0
M62 P20
G01X0.7449F30.0
M63 P20
G0Y0.8991
M62 P20
G01X0.3699F30.0
M63 P20
G0Y0.9081
M62 P20
G01X0.7449F30.0
M63 P20
I know it is calling the right Output with the P20 and I see on the BOB it is activating that output but there is no response from the Pwm pin.
I get the feeling I am missing something. Does anyone have any suggestions?
Re: M62_m63 Not working
« Reply #1 on: August 04, 2024, 08:18:15 PM »
I have not worked with the SmoothStepper's ability to control laser power level, but I do recall a quirk of the SmoothStepper configuration requirements when using PWM to control spindle speed. The SmoothStepper treats the spindle as an "axis" that must be configured and it does manage "acceleration" based on the value in the axis configuration of the SmoothStepper plugin. If the acceleration is defaulted to 1, then the acceleration is very slow and might not appear to ever get the PWM up high enough to provide laser power output. Try experimenting with a value such as 5000 for the acceleration parameter.
Steve Stallings
www.PMDX.com
Re: M62_m63 Not working
« Reply #2 on: August 04, 2024, 10:21:53 PM »
Thank you Steve, I’ll try that.

Offline Tweakie.CNC

*
  • *
  •  9,301 9,301
  • Super Kitty
Re: M62_m63 Not working
« Reply #3 on: August 05, 2024, 04:15:01 AM »
Its a long while since I used the ESS with a Laser but I think you need to set the PWM Duty Cycle to a value greater than zero.
Try changing the line in your GCode to... m2003 (LASER_VECTOR_PWM_PERCENTAGE=50)

Tweakie.
PEACE
Re: M62_m63 Not working
« Reply #4 on: August 05, 2024, 11:45:54 AM »
Thank you, thank you, Mr Tweakie and Steve, Problem solved.
I increased the frequency of the pwm signal and changed the spindle min and max.
It seems to work properly now.
Herman