I’ve failed to get to the bottom of this so far. The setup is a 2.2kW water cooled spindle with a HuanYang vfd, and Mach4 with an Ethernet Smoothstepper and an MB3 breakout board.
Using MBI, if I run M3 Sxxxx I don’t get the commanded spindle speed. At lower speeds, the spindle runs slightly faster than it should, and at the higher speeds it is slower, eg
6000rpm, 121Hz, gives me 7400
9000rpm, 152Hz, 9000
12,000rpm, 181Hz, 10800
15,000, 214, 12750
18,000, 250, 14,900
21,000, 283Hz, 16,800
24,000, 318 Hz, 19,200
The actual frequency delivered clearly corresponds to the resulting rpm of the spindle, and this is borne out with checks I’ve done so far. I disconnected the analogue output (two wires) from the breakout board and meter to check the analogue output, which shows a perfect proportional output from 0 to 10volts at all speeds ie m3 s6000 gives 2.5v, s12000 gives 5v, etc.
I also connected a benchtop power supply to the vfd analogue input, and again checking with various voltages from 0 to 10v gives the correct frequency and spindle speed, right up to the 400Hz maximum which should be 24,000rpm.
So, the ESS/MB3 is working correctly when tested, and so is the VFD. Mach4 also seems to be delivering the correct information to the ESS. But when it is connected up it doesn’t.
i have the vfd set to 400Hz Max, and 120Hz minimum. I have trawled the Internet for the correct parameters and I’m pretty confident that I have them correct. There are some settings in Mach4 which I’m not altogether sure about – the spindle is set up in the ESS confit as PWM, frequency 50Hz. There is no sensor fitted to it so PID is not relevant. The min and max speeds in the Mach4 config dialog is set to zero and 24,000.
Two possibles that occur to me – first there is a setting somewhere in Mach4 or in the vfd parameters that I’ve missed, or secondly there is some sort of electrical noise that is disrupting the analogue output of the ESS.