Setting up 5i25+7i85+8i20

More
8 years 8 months ago #105976 by stes
Replied by stes on topic Setting up 5i25+7i85+8i20
Thank you! Now it's spinning in sinusoidal mode. Do I write this code for every 3 axis, and How do I integrate it?

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

More
8 years 8 months ago #106716 by andypugh
Replied by andypugh on topic Setting up 5i25+7i85+8i20
Yes, you need a similar bit of code for each axis.

Then you need to use a PID component to close the position loop.
Take a look at the hostmot2 servo sample configs.

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

More
8 years 7 months ago #107822 by blazini36
Replied by blazini36 on topic Setting up 5i25+7i85+8i20
I was able to get my BLCD motor spinning with the post from andypugh in the first page on hall patterns 15 and 34. At any current above 0.5 it gets a a bit wonky. Is there any way to tune for trapezoidal commutation? My motor only has halls, no encoder. I have no idea which hall matches which phase but I assume trying the different hall patterns are pretty much working this out. My test file:
Code:
loadrt hostmot2 loadrt hm2_eth board_ip="10.10.10.10" config="firmware=hm2/7i76/7i76e.BIT num_encoders=1 sserial_port_0=00xxxx" loadrt threads name1=thread1 period1=1000000 loadrt bldc cfg=hT addf hm2_7i76e.0.read thread1 addf bldc.0 thread1 addf hm2_7i76e.0.write thread1 setp hm2_7i76e.0.watchdog.timeout_ns 5000000 net h1 hm2_7i76e.0.7i76.0.0.input-16 bldc.0.hall1 net h2 hm2_7i76e.0.7i76.0.0.input-17 bldc.0.hall2 net h3 hm2_7i76e.0.7i76.0.0.input-18 bldc.0.hall3 net ang bldc.0.rotor-angle hm2_7i76e.0.8i20.0.1.angle setp bldc.0.pattern 15 start

Just out of curiosity, has anyone tried to run an AC induction motor off an 8i20 and the BLDC component like a VFD? looks like cfg=n and the frequency pin might do it.

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

More
8 years 7 months ago #107827 by PCW
Replied by PCW on topic Setting up 5i25+7i85+8i20
I suspect It may be hard to get hall only commutation working well without either
interpolating the drive angle between hal edges or setting the 8I20s current loop gain
much lower (or ideally adding an encoder)

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

More
8 years 7 months ago #107831 by andypugh
Replied by andypugh on topic Setting up 5i25+7i85+8i20

blazini36 wrote: I was able to get my BLCD motor spinning with the post from andypugh in the first page on hall patterns 15 and 34. At any current above 0.5 it gets a a bit wonky.


Is this because it is spinning too fast? If the motor isn't under load (ie isn't connected to the machine) it is possible that things will work better then. (If it's a spindle, then this won't help)

You could try running the servo thread faster, if the machine can handle it,

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

More
8 years 7 months ago #107833 by PCW
Replied by PCW on topic Setting up 5i25+7i85+8i20
Yes, as a torque mode drive you need to have some kind of speed control implemented

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

Moderators: cmorley
Time to create page: 0.192 seconds
Powered by Kunena Forum