621
General Mach Discussion / Help Please with PWM Spindle Motor Speed
« on: November 16, 2014, 07:05:27 PM »
Ok, here are a couple of ideas. First, let's assume that the controller wants to receive a PWM signal at its input at a frequency between 1 and 10 kHz, which is what the spec says. If this is correct then the controller just uses that to switch the supply to the motor on and off with the varying mark/space ratio that Mach puts out, which should vary the motor speed in the expected way. You have set the PWM base frequency to 2500 Hz which is in the range suggested. Unfortunately the way that Mach works is that the mark/space ratio is derived from the kernel speed. Supposing that the kernel speed is set to 25 kHz which is suggested in the manual, there are only 10 discrete pulse lengths of a 2.5 kHz signal that Mach can generate. You would not therefore expect to see a very smoothly varying speed. One way to check this would be to set the PWM base frequency to something very low, like say 2 Hz. If the controller works in the way we are assuming, you will find that the motor runs very unevenly, as it will be starting and stopping twice a second. IF the controller works in this way then it isn't really compatible with Mach.
So could I suggest that you try this test and report what you find. Depending, we can think again about what to do.
Sent from my iPad using Tapatalk
So could I suggest that you try this test and report what you find. Depending, we can think again about what to do.
Sent from my iPad using Tapatalk