This is a router table build for a friend started last October and slow going through the winter months here in Michigan...But we have managed to get the machine moving well and the time has come to finalize by connecting the spindle...Here is where we are as of now...We can turn the spindle on and off, it starts and goes up to a fixed RPM, it can also be shutdown on command...We are able to turn it on and off using the gui buttons in axis as well as M3, M5 commands in MDI mode...The spindle is 2.2 KW Ugra (no encoder) and the VFD is a Delta EL...
What we are not able to do is control the RPM's of the spindle, and our best guess is that we are missing some simple commands or have not connected the correct pins in HAL to allow control...We are uncertain of what the variables are to drive PWM generator, the PWM generator to PID, and the PID to the 7i76e.0.0 output connection...It appears to us that we don't have proper signal connection somewhere...I have consolidated all that we have done into a spindle.hal file...
I am attaching the spindle.hal file and the .ini file...We would like for it to run via PWM, but as you can see by the kludged spindle.hal file there are probably syntax that has been added unnecessarily and probably is missing necessary syntax...
Any suggestions and help will be greatly appreciated...Thank you in advance