I am having a heck of a time getting Mach to output a PWM signal. Now I have managed to get this to work before...but that was on a different machine.
I have designed an Opto isolated PWM motor controller. and I designed a PWM signal generator. these are connected together with a switch so that a user can select Manual control (from the PWM sig generator) or from PC control (from the printer port).
With the Manual control signal generator everything works fine. I am using 400hz as my PWM signal. so everything works perfectly stand alone.
BUT... when i try and get the PC to output a PWM signal is where i run into problems. I have setup mach to output a PWM signal on say pin 6 and have set up 400hz as my base frequency and i have 20% set as the minimum PWM. I have the pulley ratio set to 1 as my spindle is direct drive. I have set 5000rpm as my min and 30,000 rpm as the max (changing these settings doesn't make any difference).
when I turn the spindle on in mach, nothing happens. but if i then press reset the spindle runs at the minimum speed i set up under the spindle control. IE if i set it for 20% that's what it runs at. pressing the speed up/down buttons just stops the spindle.
So im not sure whats going on...
When i was designing the ISO/motor controller I used a different PC and it worked GREAT! i could change speeds from within mach and everything! but i dont remember if i had something set up differently or whats going on...