- Posts: 19306
- Thank you received: 0
Custom GUI models
danimal300 wrote: So far, I set my low pass gain pretty low so that I would get a reasonably smooth signal from the encoder. Not as smooth as I would like it, but it is reasonable. Then I adjusted the maxoutput and set the PID values to zero. Using that I adjusted the proportional gain until the command signal was ball park for the output RPM. Then when I adjust the ID values, everything kinda gets screwy.
Try strating with P, I and D zero and adjust the FF0 to be as close as possible target speed at one intermediate speed.
Then adjust the I term so that it corrects the speed at other speeds.
I suspect that closed-loop speed control with one pulse per rev is always going to be difficult to tune.
I am concerned that you get "roughly" three pulses per rev. This is a computer and digital signalling, there shouldn't be anything rough anywhere.
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
Should .maxoutput and .scale be my 100% spindle rpm?
Would my manual speed adjust pot take the place of the offset value?
I am going to add some more magnets to the spindle to ballance everything out. I have not done it up to now because it will fubar my indicator, but having it on the controller screen is more valuable anyway. I just wanted to have it installed to verify the rpm vs the measured rpm.
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
The first thing I need to fix is this error, does anyone see where it could be coming from?
Edit: Almost forgot. Debian Wheezy linuxcnc 2.6.5 G540 controller
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
andypugh wrote: I am concerned that you get "roughly" three pulses per rev. This is a computer and digital signalling, there shouldn't be anything rough anywhere.
This is 99% of my problem, I am sure. I just do not see where the encoder input signal is being modified, other than the scaling factor for the number of pulses per revolution. Also the error appears to be non-linear, and the error changes with command rpm. The the 2.5 factor that I said earlier will put it spot on at 1200 RPM, but I am off by ~150 RPM at 400 and 2500.
I probably just need to sit down and really simplify the main and custom_postgui hal files, and slowly build it back up line by line. I was just hoping that there would be a more simple plug and play solution because closed loop spindle control is not exactly a rare thing for CNC machines.
Please Log in to join the conversation.
