Hello all!
I have an issue that I cannot set the spindle speed using Mach4. If I set the VFD to set the speed using it's control panel I can change the speed with no issues. If I leave this setting on the VFD I can turn the spindle on and off in Mach4 and adjust the spindle speed with the VFD potentiometer.
The problem is when I try to set the spindle speed with Mach4. I cannot get the configuration correct so I can output 0-10V across Pin17 (PWM).
In Mach Output Signals I have Spindle On set to PoKeys_*********XX PE Relay 1. This works for turning on and off the spindle.
I also have Spindle Fwd set to PoKeys_*********X Pin 17(out). This does not work.
In the Pokeys57CNC Plugin configuration Miscellaneous Tab I have Enable PWM Outputs checked, PWM frequency set to 20000, Enable Pin 17, Spindle output to Pin 17 and Set to 0 when OFF checked.
I have a NOWFOREVER VFD and the Relay 1 output connected to X1 and Com. This works to turn the spindle on and off.
I have GNDi and Pin 17 from the Pokeys57CNC connected to AIN1 and Com on the VFD.
As far as I know by looking at the NOWFOREVER VFD manual this is correct. Additionally I have set the VFD setting to accept the signal to AIN1 for setting spindle speed.
However if I probe GNDi and Pin 17 on the Pokeys57CNC board it is always flat at 0V even when setting the speed.
Now an interesting point is if I use the Pokeys V4.4.5 Configuration Software and go to the Peripherals -> PWM Outputs Tab and manually set the output on Pin 17 (PWM 5) I get the proper voltage output across Pin 17 and GNDi on the Pokeys57CNC board.
So I know I dancing very close around the solution however I can't figure out how to get it to work.
Can anyone give me a clue on what I am missing?
Thank you.