BLDC and fanuc redcap parameter problems?

More
01 Dec 2015 22:18 - 01 Dec 2015 22:20 #66186 by gmouer
post in error
Last edit: 01 Dec 2015 22:20 by gmouer.

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 00:55 #66190 by andypugh

Thinking further, I believe I had better make the cfg=fqihHT


You can't have "f" and "h" at the same time.

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 21:10 - 02 Dec 2015 21:10 #66226 by gmouer

Thinking further, I believe I had better make the cfg=fqihHT


You can't have "f" and "h" at the same time.


Yea, figured that out quick last night, it threw a BLDC error message in Linuxcnc. The h had no place being in there, a dumb mistake.

I changed to fiqHT and experimented after making some HAL connections for the pins I thought necessary in HAL. As far as I could tell the motor seemed to behave the same as in straight code conversion (fHT) I could not notice any homing operation take place when I cycled the init pin.

Next I tried qiHT and that did seem to go through a homing process with the init pin. The motor ran afterwards although poorly. I experimented with encoder offsets which made a difference in running but nothing even close to useable. I tried encoder offsets in a range from 50-3000 and have no idea if that range is even close to appropriate. Encoder offset of 100 seemed about the best, although very poor.

I will go play more tonight. I am lost why homing with the gray code and then using the encoder did not seem to play. (fqiHTT) I also notice that there is only one hall pattern choice, so homing and running would have to be with the same pattern by necessity. Still, homing with the gray code seemed to be non functional.

The encoder is a fanuc pulse coder, 3000 count. Does the bldc encoder count parameter get set to 3000 or 6000 allowing for quadrature. Just another item I am unclear on.
Last edit: 02 Dec 2015 21:10 by gmouer.

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 21:21 #66228 by andypugh

I changed to fiqHT and experimented after making some HAL connections for the pins I thought necessary in HAL. As far as I could tell the motor seemed to behave the same as in straight code conversion (fHT) I could not notice any homing operation take place when I cycled the init pin.


In that mode it won't init. It will run on the fanuc-to-hall commutation until it sees the encoder index, then it should switch to sinusoidal commutation.

Which pins dis you connect?

It might help to halscope the bldc state pins.

Next I tried qiHT and that did seem to go through a homing process with the init pin. The motor ran afterwards although poorly. .


Is your "poles" setting right?

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 21:27 - 02 Dec 2015 21:29 #66229 by gmouer

I changed to fiqHT and experimented after making some HAL connections for the pins I thought necessary in HAL. As far as I could tell the motor seemed to behave the same as in straight code conversion (fHT) I could not notice any homing operation take place when I cycled the init pin.


In that mode it won't init. It will run on the fanuc-to-hall commutation until it sees the encoder index, then it should switch to sinusoidal commutation.

Which pins dis you connect?

It might help to halscope the bldc state pins.

Next I tried qiHT and that did seem to go through a homing process with the init pin. The motor ran afterwards although poorly. .


Is your "poles" setting right?


Not in shop now, but going from memory on hal connections , encoder index enable, rawcounts, set pole parameter to 8 and encoder parameter to 6000, thats what I remember right now, will check later when I get into shop.

Didn't know that it wouldn't go through init/homing using the fanuc gray code. Switching to sinusoidal isn't going to play, the AMC drive is trapezoidal input only.

I did set pole count to 8
Last edit: 02 Dec 2015 21:29 by gmouer.

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 21:29 #66230 by andypugh

In that mode it won't init. It will run on the fanuc-to-hall commutation until it sees the encoder index, then it should switch to sinusoidal commutation.


Ah, ok, didn't know that. Sinusoidal commutation isn't going to play with the AMC drive which accepts trapezoidal only.


Well, when I said "Sinusoidal" I meant "Using the encoder". The output should still be Hall-pattern in "H" mode.

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 21:34 - 02 Dec 2015 21:42 #66231 by gmouer

In that mode it won't init. It will run on the fanuc-to-hall commutation until it sees the encoder index, then it should switch to sinusoidal commutation.


Ah, ok, didn't know that. Sinusoidal commutation isn't going to play with the AMC drive which accepts trapezoidal only.


Well, when I said "Sinusoidal" I meant "Using the encoder". The output should still be Hall-pattern in "H" mode.


Ok I got ya. Encoder offset seemed to have no effect in that mode. That is why I thought it kept on running in code coversion mode and didn't switch over when the index when hit. I will retest more later.

I am going now to get my hal file and post it in just a few minutes.
Last edit: 02 Dec 2015 21:42 by gmouer.

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 21:43 #66232 by andypugh

In that mode it won't init. It will run on the fanuc-to-hall commutation until it sees the encoder index, then it should switch to sinusoidal commutation.


Ah, ok, didn't know that. Sinusoidal commutation isn't going to play with the AMC drive which accepts trapezoidal only.


Well, when I said "Sinusoidal" I meant "Using the encoder". The output should still be Hall-pattern in "H" mode.


Ok I got ya. Encoder offset seemed to have no effect in that mode. That is why I thought it kept on running in code coversion mode and didn't switch over when the index what hit. .


Quite possible, that is why I suggested watching the out_type parameter to see what is happening:

github.com/jepler/linuxcnc-mirror/blob/m...nents/bldc.comp#L501

It should start at 0x10 then change to 0x0C then 0x02.

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 21:54 #66234 by gmouer
Ok, here is the hal file I used for tests. I have a mesa 7i77 and 5i25 along with the parport breakout board. The encoder is connected through the 7i77 encoder0 inputs.
Attachments:

Please Log in or Create an account to join the conversation.

More
02 Dec 2015 21:56 #66235 by gmouer

In that mode it won't init. It will run on the fanuc-to-hall commutation until it sees the encoder index, then it should switch to sinusoidal commutation.


Ah, ok, didn't know that. Sinusoidal commutation isn't going to play with the AMC drive which accepts trapezoidal only.


Well, when I said "Sinusoidal" I meant "Using the encoder". The output should still be Hall-pattern in "H" mode.


Ok I got ya. Encoder offset seemed to have no effect in that mode. That is why I thought it kept on running in code coversion mode and didn't switch over when the index what hit. .


Quite possible, that is why I suggested watching the out_type parameter to see what is happening:

github.com/jepler/linuxcnc-mirror/blob/m...nents/bldc.comp#L501

It should start at 0x10 then change to 0x0C then 0x02.


Great ! I will check that for sure during tonights tests.

Please Log in or Create an account to join the conversation.

Time to create page: 0.135 seconds
Powered by Kunena Forum