41
Mach4 General Discussion / Can't seem to get PWM output
« Last post by jcizek on December 31, 2025, 07:02:37 PM »Hello all,
I am trying to convert from a simple spindle on/off relay to full control with speed. I have choosen Port 2 Pin 4 as my PWM port, and Port 2 pin 5 as my DIR port. The DIR works fine and is switching the CNC4PC C41 board appropriately. But I cannot get Mach4 to send PWM at all. I am using an Ethernet Smoothstepper and have followed all of their instructions, and double checked that against the Mach4 instructions for PWM spindle, and that also jives with the CNC4PC published instructions. I have an oscilloscope on the PWM line to monitor it. I do have pins 2-9 on port 2 set as output, have set all appropriate settings in both the ESS spindle config, output pins, pins config menus as well as the spindle menu in Mach4 under general config.
I know the pin works ok as when I switch it back and forth from active high to active low in PINS Config, I see the Oscope trace move from 0 to 5 volts and back. But regardless, I cannot get ANY PWM out.
Would anyone have any suggestions on where I might look to see my error?
Thanks
James
I am trying to convert from a simple spindle on/off relay to full control with speed. I have choosen Port 2 Pin 4 as my PWM port, and Port 2 pin 5 as my DIR port. The DIR works fine and is switching the CNC4PC C41 board appropriately. But I cannot get Mach4 to send PWM at all. I am using an Ethernet Smoothstepper and have followed all of their instructions, and double checked that against the Mach4 instructions for PWM spindle, and that also jives with the CNC4PC published instructions. I have an oscilloscope on the PWM line to monitor it. I do have pins 2-9 on port 2 set as output, have set all appropriate settings in both the ESS spindle config, output pins, pins config menus as well as the spindle menu in Mach4 under general config.
I know the pin works ok as when I switch it back and forth from active high to active low in PINS Config, I see the Oscope trace move from 0 to 5 volts and back. But regardless, I cannot get ANY PWM out.
Would anyone have any suggestions on where I might look to see my error?
Thanks
James

Recent Posts