8i20 setup current limits etc.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
22 Nov 2022 09:08 #257309
by M4MazakUser
8i20 setup current limits etc. was created by M4MazakUser
So, i have my 8i20 card doing its reference thing ("iq") I'm not getting a lot of response from shifting the start angle, the encoders "z" isn't set to phase zero. It works once referenced but doesn't have as much force as it should. I have tried setting the max and min limit as below.
setp hm2_5i23.0.8i20.0.2.current-minlim -7.5
All this does is makes the motor roll in one direction and the pid tune dosent seem to do anything. (It does without the min/max current setp statements) just seems to not be putting out full current.
setp hm2_5i23.0.8i20.0.2.current-minlim -7.5
All this does is makes the motor roll in one direction and the pid tune dosent seem to do anything. (It does without the min/max current setp statements) just seems to not be putting out full current.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17945
- Thank you received: 4814
22 Nov 2022 14:40 #257336
by PCW
Replied by PCW on topic 8i20 setup current limits etc.
maxlim and minlim should have the same absolute value
If you want full current you should set maxlim to 30 and minlim to -30
If you want full current you should set maxlim to 30 and minlim to -30
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
23 Nov 2022 11:25 #257451
by M4MazakUser
Replied by M4MazakUser on topic 8i20 setup current limits etc.
The motor is rated at 8.4a, shorthand be enough? Or should it be 30 ?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19464
- Thank you received: 6529
23 Nov 2022 12:18 #257459
by tommylight
Replied by tommylight on topic 8i20 setup current limits etc.
Is that continous or peak current?
If continous, then drive can be set much higher, but i would stay in the 15A range untill everything is working properly, then decide if it needs to be higher.
If continous, then drive can be set much higher, but i would stay in the 15A range untill everything is working properly, then decide if it needs to be higher.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17945
- Thank you received: 4814
23 Nov 2022 15:33 #257481
by PCW
Replied by PCW on topic 8i20 setup current limits etc.
Yes. peak current can be 3 to 6 x the continuous current.
You should set the current limit to the drives peak current.
You should set the current limit to the drives peak current.
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
24 Nov 2022 03:17 #257539
by M4MazakUser
Replied by M4MazakUser on topic 8i20 setup current limits etc.
Okay, so the problem im realising now is that my encoder "z" signal isn't set to the motor zero point. ( I read somewhere that you need to apply a dc voltage to u, with v and w connected to the other polarity. To get the motor zero point). There doesn't seem to be any offset available to correct this. Is there?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23162
- Thank you received: 4860
25 Nov 2022 00:09 #257584
by andypugh
Replied by andypugh on topic 8i20 setup current limits etc.
Are you using the bldc component? If you are, that has a parameter bldc.N.encoder-offset s32 rw [if personality & 0x0A] (default: 0)The offset, in encoder counts, between the motor electrical zero and the encoder zero modulo the number of counts per electrical revolutionOkay, so the problem im realising now is that my encoder "z" signal isn't set to the motor zero point. ( I read somewhere that you need to apply a dc voltage to u, with v and w connected to the other polarity. To get the motor zero point). There doesn't seem to be any offset available to correct this. Is there?
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
25 Nov 2022 00:22 #257585
by M4MazakUser
Replied by M4MazakUser on topic 8i20 setup current limits etc.
Yeah I've been using this.
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
25 Nov 2022 00:26 #257586
by M4MazakUser
Replied by M4MazakUser on topic 8i20 setup current limits etc.
I measured 781 counts from encoder zero this morning. Its an 8 pole motor so should the value be 269?
Subtract 512 for previous pole, etc
Should lead angle be 45deg?
Bldc scale for a 1024 encoder I've set to 4096?
It moves .4mm ish currently then stops until ferror of 20mm (set to 20 for testing)
Cant find anything to cause this.
Subtract 512 for previous pole, etc
Should lead angle be 45deg?
Bldc scale for a 1024 encoder I've set to 4096?
It moves .4mm ish currently then stops until ferror of 20mm (set to 20 for testing)
Cant find anything to cause this.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23162
- Thank you received: 4860
25 Nov 2022 10:54 #257604
by andypugh
I tried to use science and maths setting up one of my axes (which had an offset) and gave up.
In the end I tweaked the value until the motor (unloaded) ran at equal speed in both directions for a fixed current command.
For an 8i20 it should be zero, the 8i20 expects to the sent the _rotor_ angle and handles the phase angle offset internally.
Replied by andypugh on topic 8i20 setup current limits etc.
I measured 781 counts from encoder zero this morning. Its an 8 pole motor so should the value be 269?
Subtract 512 for previous pole, etc
I tried to use science and maths setting up one of my axes (which had an offset) and gave up.
In the end I tweaked the value until the motor (unloaded) ran at equal speed in both directions for a fixed current command.
Should lead angle be 45deg?
For an 8i20 it should be zero, the 8i20 expects to the sent the _rotor_ angle and handles the phase angle offset internally.
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds