Hi, i am trying to use PID function of the AXBB-e board in my own software but i do something wrong.
The Stat->SpindleRPM; shows the corect value, when i use it only with relay control and external speed controler.
When i activate the PID control, and start the spindle with UC100.SetSpindleSpeed(10000); UC100.SpindleOn(true);
the spindle start to ramp up and passes the set speed until it reaches the spindle maximum speed, i hoked up the oscilloscope to the assigned pin and the PWM signal seems to increase up to 100% without stopping when the commanded speed is reached. (10% is the minimum PWM and 100% is the maximum setting sent to the board)
Another problem is that i don't know how to use this method in C#, so i can see what is trying the board to execute, and what it sees as the actual RPM.
unsafe public static extern int GetPIDData(out IntPtr CommandedRPM, out IntPtr MeasuredRPM, out IntPtr PIDOut);
Dan