BLDC and fanuc redcap parameter problems?

More
29 Dec 2015 22:19 - 29 Dec 2015 22:22 #67469 by gmouer
Does not seem different with fanuc gray codes routed through inverted input. Motor runs identical also.
( I attached to the -not pin of C1-C8 in BLDC first try, same results, so I tried -not of the parport instead)

Hal file attached
Attachments:
Last edit: 29 Dec 2015 22:22 by gmouer.

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

More
29 Dec 2015 23:44 #67476 by andypugh

Does not seem different with fanuc gray codes routed through inverted input.


No, it seems surprisingly identical. There isn't even any indication that the Fanuc signals have changed sign. (on a falling edge of C8 all the other signals are exactly in the middle of a high phase, in both traces.

I attached to the -not pin of C1-C8 in BLDC first try, same results, so I tried -not of the parport instead)


If you tried bldc.0.C1-not and the system ran then I suspect you are not editing the active HAL file..
That should have been an immediate crash.

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

More
29 Dec 2015 23:51 #67478 by gmouer
So there the -not is not a valid pin for bldc C1-C8 then? It did not crash.

I will experiment right now. I will include a intentional syntax error in hal to prompt a intentional crash. That should verify I have the active hal file at least.

More results in a minute

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

More
30 Dec 2015 00:18 #67479 by gmouer
You were correct, it was not the active hall file !!! I configured the launcher wrong. I fixed that and confirmed I am working with the active hall file now. Sorry about that.

Using the -not option on the BLDC C1-8 pins does indeed cause a crash, so I reverted to using the -not on the parport input pins. The halscope hall signals now look proper for standard hall commutation !! The motor runs much faster but not very smooth. Now that I have a good commutation pattern, its time to try different hall sequence patterns for smoother running. Agree?

I seem to have also lost velocity control, acting like a run away condition. Went back and removed the -not pin change and fine speed control returned. Something strange there but the commutation pattern looks more like it.
Attachments:

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

More
30 Dec 2015 00:26 - 30 Dec 2015 01:10 #67480 by gmouer
addl info

Switched to pattern 25 which cured run away type condition and restored fine speed control. Of interest is that motor runs considerably smoother in one direction vs the other. In the smooth direction it is the best yet by far.

Need to try all the patterns.

Update: Pattern 17 is the winner, great torque both directions, velocity loop in drive maintaining speed under load changes, behaves the same in both directions of rotation, speeds up well. Only complaint is cogging sound is quite apparent but no doubt that is because of 16/3 problem yielding slightly imperfect commutation.

I believe this is probably as good as it will get using straight code conversion mode. Time to move on now to encoder derived commutation I believe.

Comments?
Last edit: 30 Dec 2015 01:10 by gmouer.

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

More
30 Dec 2015 01:07 #67483 by andypugh

Of interest is that motor runs considerably smoother in one direction vs the other. .


That is slightly strange.

Do the Hall patterns look similar in both directions?

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

More
30 Dec 2015 01:10 #67484 by gmouer

Of interest is that motor runs considerably smoother in one direction vs the other. .


That is slightly strange.

Do the Hall patterns look similar in both directions?


Check my edit of the post above, switching patterns cured that.

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

More
30 Dec 2015 01:16 #67486 by andypugh

Time to move on now to encoder derived commutation I believe.
Comments?


The only reason not to use the encoder is that as you are using the parallel port there is a good chance that you will lose counts, and then the commutation will fail and the motor will stall. or run backwards. Ot other bad things.

As the Gray-code is absolute it will always work equally badly.

Of course, losing encoder counts is a bad thing even if you are not using the encoder for commutation, but might be acceptable in a spindle motor.

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

More
30 Dec 2015 01:21 - 30 Dec 2015 23:49 #67487 by gmouer
I am running the encoder into linuxcnc through a mesa 5i25/7i77 combo so no speed problems there. The parport and the atom computer (2khz servo thread set) are the limiting factors. The parport only handles the fanuc code input and hall output signals to the drive.

I think as long as I keep the motor rpm's down at reasonable levels I should be ok for this bench test setup. After proven, suitable mesa hardware will handle the commutation chores.


Quitting for the night while I am winning. Thanks much Andy ! To be continued.
Last edit: 30 Dec 2015 23:49 by gmouer.

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

More
31 Dec 2015 00:43 - 31 Dec 2015 00:50 #67563 by gmouer
Started setting up a new ini and hal file for using the encoder for commutation. I have a few questions.

is mode fiqHT valid ? I think we discussed this before, should home using gray code conversion to hall signals then switch to encoder generated commutation. (see note at bottom of this post)

parameter bldc.0.scale my encoder is 3000 line, do I setp this for 6000 allowing for quadrature?

bldc.0.encoder-offset no idea where to start so I set it for zero with setp

I left bldc.0.output-pattern set at 17 which worked well in straight code conversion mode

bldc.0.pattern confuses me ! I assumed this would be the pattern output after the homing process but setting it throws a error in the mode fiqHT that I am testing. No such parameter

Lastly, I assume I have to pull the init pin true and release it once the motor is turning in code conversion mode?

I attached my prelim hal file in case you see anything wrong or missing.

Note: I tested this config quickly, it appears to remain running in code conversion mode, init-done does not change and nothing appears to happen toggling the init pin. Motor continues running exactly as it did in code conv mode.

Thanks!
Attachments:
Last edit: 31 Dec 2015 00:50 by gmouer.

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

Time to create page: 0.135 seconds
Powered by Kunena Forum