- Posts: 40
- Thank you received: 0
8i20 and bldc, upgrading 2.5 to 2.7
- johns00056
- Topic Author
- Offline
- Senior Member
-
Less
More
7 years 3 months ago #140364
by johns00056
8i20 and bldc, upgrading 2.5 to 2.7 was created by johns00056
My machine has been working great for four years.
I am putting together a ,new, complete replacement spare computer.
The computer and Mesa 5i25 are new. Everything else is unchanged.
I decided to take the opportunity to update from 2.5 ubuntu to 2.7 debian 9 stretch.
I had to change several things in the ini and hal files.
I got it so that linuxcnc will start without error but the servo motors have very little torque and I get a following error immediately when I try to move an axis. If i set the following error to a very large number, the axis will move but is extremely weak.
the 8i20.0.0 current will go up to about 4.3 when I turn the motor pulley by hand.(before it errors)
This is about 30 times higher amperage than what I observe when hooked up to the old computer.
the 8i20 bus-voltage looks good at 166 volts
I am putting together a ,new, complete replacement spare computer.
The computer and Mesa 5i25 are new. Everything else is unchanged.
I decided to take the opportunity to update from 2.5 ubuntu to 2.7 debian 9 stretch.
I had to change several things in the ini and hal files.
I got it so that linuxcnc will start without error but the servo motors have very little torque and I get a following error immediately when I try to move an axis. If i set the following error to a very large number, the axis will move but is extremely weak.
the 8i20.0.0 current will go up to about 4.3 when I turn the motor pulley by hand.(before it errors)
This is about 30 times higher amperage than what I observe when hooked up to the old computer.
the 8i20 bus-voltage looks good at 166 volts
Attachment not found
Attachment not found
Please Log in to join the conversation.
7 years 3 months ago #140365
by PCW
Replied by PCW on topic 8i20 and bldc, upgrading 2.5 to 2.7
There was a change in the way the driver scales the 8I20 current,
I believe between LinuxCNC 2.5 and 2.6 (in any case a fairly long time ago)
The current used to be scaled 0 to +- 1 for full scale current
Now (since 2.6) its scaled in Amps
I believe between LinuxCNC 2.5 and 2.6 (in any case a fairly long time ago)
The current used to be scaled 0 to +- 1 for full scale current
Now (since 2.6) its scaled in Amps
Please Log in to join the conversation.
- johns00056
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 0
7 years 3 months ago #140374
by johns00056
Replied by johns00056 on topic 8i20 and bldc, upgrading 2.5 to 2.7
PCW, thanks for the help.
By "the driver" do you mean- hostmot2, bldc, pid , or something else?
By "the driver" do you mean- hostmot2, bldc, pid , or something else?
Please Log in to join the conversation.
7 years 3 months ago #140389
by PCW
Replied by PCW on topic 8i20 and bldc, upgrading 2.5 to 2.7
LinuxCNCs HostMot2 driver
Please Log in to join the conversation.
7 years 3 months ago #140757
by andypugh
Replied by andypugh on topic 8i20 and bldc, upgrading 2.5 to 2.7
Is this working now?
Please Log in to join the conversation.
- johns00056
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 0
7 years 3 months ago #140796
by johns00056
Replied by johns00056 on topic 8i20 and bldc, upgrading 2.5 to 2.7
Andy, thanks for the interest. I got it running.
bldc is working fine, I did not change anything in it.
old computer- MAX_OUTPUT = 4.3 -This number is wrong because it is out of range. It should be 1. (I probably won't change it on the old computer)
new computer- MAX_OUTPUT = 15 -(amps) I changed this to 15 and it helped a little bit, but, the motors were still too weak.
OUTPUT_SCALE = 4.7 ---- This number is probably wrong on both the old and new computers but I am not going to change it. I have spent many days on this problem and the machine works well enough as it is.
I re-tuned the servo motors. (torque mode) I ended up multiplying the previous settings for P by 13 and D by 9.5 and adding some FF2.
old computer 2.5 ubuntu
P = 2500
I = 0
D = 15
FF0 = 0
FF1 = 0
FF2 = 0
new computer 2.7 debian 9 stretch
P = 32500
I = 0
D = 143
FF0 = 0
FF1 = 0
FF2 = 2
Now the motors are really strong, stronger than they have ever been.
The remaining problem is - often (about 25% of the time) when a motor is stationary it will start to hum or buzz a little bit. If I put my hand on the motor pulley ,the humming will stop ,and stay stopped
when I take my hand off.
The machine has been like this for five years. I usually push the e-stop button when the machine is not running to stop the buzzing.
I am concerned that the encoders will wear out or that the encoder couplings will loosen on the motor shaft , eventually.
I tried increasing the dead band , but that just increases the apparent backlash in the axis. If I push the motor pulley to one side of this backlash ,sometimes it will just continue to hum at that location.
If I reduce the P by a very large amount ,the humming will stop but,then the motors just seem too weak.
Maybe I am supposed to measure the motor torque to set the P , or something.
bldc is working fine, I did not change anything in it.
old computer- MAX_OUTPUT = 4.3 -This number is wrong because it is out of range. It should be 1. (I probably won't change it on the old computer)
new computer- MAX_OUTPUT = 15 -(amps) I changed this to 15 and it helped a little bit, but, the motors were still too weak.
OUTPUT_SCALE = 4.7 ---- This number is probably wrong on both the old and new computers but I am not going to change it. I have spent many days on this problem and the machine works well enough as it is.
I re-tuned the servo motors. (torque mode) I ended up multiplying the previous settings for P by 13 and D by 9.5 and adding some FF2.
old computer 2.5 ubuntu
P = 2500
I = 0
D = 15
FF0 = 0
FF1 = 0
FF2 = 0
new computer 2.7 debian 9 stretch
P = 32500
I = 0
D = 143
FF0 = 0
FF1 = 0
FF2 = 2
Now the motors are really strong, stronger than they have ever been.
The remaining problem is - often (about 25% of the time) when a motor is stationary it will start to hum or buzz a little bit. If I put my hand on the motor pulley ,the humming will stop ,and stay stopped
when I take my hand off.
The machine has been like this for five years. I usually push the e-stop button when the machine is not running to stop the buzzing.
I am concerned that the encoders will wear out or that the encoder couplings will loosen on the motor shaft , eventually.
I tried increasing the dead band , but that just increases the apparent backlash in the axis. If I push the motor pulley to one side of this backlash ,sometimes it will just continue to hum at that location.
If I reduce the P by a very large amount ,the humming will stop but,then the motors just seem too weak.
Maybe I am supposed to measure the motor torque to set the P , or something.
Please Log in to join the conversation.
7 years 3 months ago #140811
by andypugh
Replied by andypugh on topic 8i20 and bldc, upgrading 2.5 to 2.7
If the previous output was controlling a 0-1 scale and now it is controlling a 0-15A scale then you would need to multiply the gain by (about) 15 as you have found.
You could experiment with using more I and less P.
You could experiment with using more I and less P.
Please Log in to join the conversation.
- johns00056
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 0
7 years 3 months ago #140929
by johns00056
Replied by johns00056 on topic 8i20 and bldc, upgrading 2.5 to 2.7
Thanks for the good explanation of how the scale works. It makes more sense now.
I am still working on the tuning. I will try what you suggest.
I am still working on the tuning. I will try what you suggest.
Please Log in to join the conversation.
Time to create page: 0.104 seconds
