Mesa 7i39+5i20

More
25 Oct 2010 19:53 #4855 by BigJohnT
Replied by BigJohnT on topic Re:Mesa 7i39+5i20
I noticed when I used the backspace key to erase it the last period (of the 4) disappeared with the first keystroke and the next keystroke took out two periods then the third one took out the last one. Sounds like Excel when it tries to correct your entry into a cell and make it a date...

John

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

More
25 Oct 2010 20:31 - 25 Oct 2010 20:40 #4856 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
I also lost all my text, so I re-write it:

Motor: Nanotec NEMA23 BLDC with Hall sensors
Attached encoder AVAGO HEDS-5540 with 1000 pulses/rot and Index

Sinusiodal commutation is preffered as the torque is smoother.
Initialisation phase with half turn movement seems acceptable.
Is it really BLAC driving with bldc_sinus driver?

I guess you are using 7i43 AnyI/O card.
I use 5i20. Is it OK to replace text [7i43] with text [5i20] in the .hal file?

Should I take care of .PIN files?
Is the pinout of 5i20 asigned automatically?
Last edit: 25 Oct 2010 20:40 by nikos.chalikias.

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

More
25 Oct 2010 20:53 #4858 by andypugh
Replied by andypugh on topic Re:Mesa 7i39+5i20
You will need to change
hm2_7i43 to hm2_pci in the "loadrt" line.
Elsewhere it will be just a case of swapping 7i43 for 5i20.

Start emc from the command line and see what happens with no motors connected.
dmesg will be useful, it tells you the pin assignments on the 5i20 card.
However, the pinout is designed to let you plug a 50-way header directly between the 5i20 and one or more 7i39s so the pinout is the same on any board, and only matters if you want to break-out unused pins for GPIO. (which you should be able to do with a second connector on the same ribbon cable)

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

More
26 Oct 2010 08:23 - 26 Oct 2010 09:02 #4863 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
I used the attached 5i20.ini and bldc_sine.hal files


dmesg output is here

File Attachment:

File Name: dmesg_output.txt
File Size:33 KB


:( from the below part of dmesg output, I can see that SVST8_4.BIT is loaded insteadsvtp4_7i39.bit
Probably is default driver for hm2_pci
First PWM OUT should be to PINS 19,43 of P2 connector, using different names.
5i20.ini and bldc_sine.hal seem correct (..to me) and they are in the right place. ...attached in next 2 messages
I can not find where SVST8_4.BIT and svtp4_7i39.bit are located. I guess they are to root somewhere...
Can you understand what is wrong?
[ 2397.847996] hm2: loading Mesa HostMot2 driver version 0.15
[ 2397.851143] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.6
[ 2397.851181] hm2_pci: discovered 5i20 at 0000:03:02.0
[ 2397.851313]  hm2_5i20.0: firmware: requesting hm2/5i20/SVST8_4.BIT
[ 2397.994706] hm2/hm2_5i20.0: 72 I/O Pins used:
.....
[ 2397.994738] hm2/hm2_5i20.0:     IO Pin 006 (P2-13): PWMGen #1, pin Out0 (PWM or Up) (Output)
[ 2397.994742] hm2/hm2_5i20.0:     IO Pin 007 (P2-15): PWMGen #0, pin Out0 (PWM or Up) (Output)
[ 2397.994746] hm2/hm2_5i20.0:     IO Pin 008 (P2-17): PWMGen #1, pin Out1 (Dir or Down) (Output)
[ 2397.994750] hm2/hm2_5i20.0:     IO Pin 009 (P2-19): PWMGen #0, pin Out1 (Dir 
+
Attachments:
Last edit: 26 Oct 2010 09:02 by nikos.chalikias.

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

More
26 Oct 2010 08:30 #4864 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
5i20.ini attached

File Attachment:

File Name: 5i20.ini
File Size:4 KB
Attachments:

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

More
26 Oct 2010 08:31 #4865 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
bldc_sine.hal attached

File Attachment:

File Name: bldc_sine-...2349.hal
File Size:1 KB
Attachments:

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

More
26 Oct 2010 09:54 #4867 by andypugh
Replied by andypugh on topic Re:Mesa 7i39+5i20
There are two ways to pass a configuration string to the hm2_7i43 or hm2_pci driver. Most of the example configs have the string in the INI file and the hal file reads it from there. My config file is a hand-built one and I don't tend to bother with reading _anything_ from the INI file into the hal file. You probably need to decide which way you want to go, and be consistent.
Settings only get transferred from INI to HAL by use of the [STANZA](setting) format. There is no other linkage between them other than that EMC2 reads the INI file to get the names of the HAL files it needs to run at startup.

b]nikos.chalikias wrote:[/b]

Probably is default driver for hm2_pci

I don't think there is a default firmware, but I could be wrong.

First PWM OUT should be to PINS 19,43 of P2 connector, using different names.
5i20.ini and bldc_sine.hal seem correct (..to me) and they are in the right place. ...attached in next 2 messages
I can not find where SVST8_4.BIT and svtp4_7i39.bit are located. I guess they are to root somewhere...

It does seem that the wrong .BIT file is being loaded into the driver. This is the reason that the pin names (and functions) on the connector are wrong.

You can see what actual BIT files you have available in /lib/firmware/hm2/
You need to choose one which is in the lib/firmware/5i20 directory and has a name which includes "tp", possibly tpen6_6.pin

My hal files were set up to use experimental bit files. I don't know what files (if any) are in the current firmware collection.
You might need to get a firmware update (sudo apt-get update hostmot2-firmware ) or direct download from emergent.unpy.net/01267622561

I do notice that the hal file name specified in your INI file is not the same as the name of the file you have posted. Those definitely need to match.

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

More
26 Oct 2010 10:20 #4868 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
I found TPEN6_6.BIN inside /lib/firmware/hm2/5i20
Is this a BLDC driver?
Should I used it instead svtp4_7i39.bit
is it sinus or hall commutation?

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

More
26 Oct 2010 11:17 #4869 by andypugh
Replied by andypugh on topic Re:Mesa 7i39+5i20
Yes, that is the right driver. It supports 6 encoders and 6 3-phase PWM generators.
You should definitely use it instead of svtp4_7i49.bit as I think that svtp4_7i30.bit only exists on about 2 hard-drives in the world, and yours is not one of them.

The distinction between Hall and Sinusoidal commutation depends only on the HAL component used (bld3_hall3 or bldc_sine). The Hostmot2 driver simply takes 3 three-phase amplitudes and converts them to phase-locked PWM values on the connector pins.

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

More
26 Oct 2010 12:00 - 26 Oct 2010 12:38 #4871 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
:) TPEN6_6.BIN is loaded.

from dmseg output

File Attachment:

File Name: dmesg_output2.txt
File Size:6 KB

seems that 5i20 is configured to drive BLDC driver-card.
but
pin-out does not match to 7i39!
It needs an extra interface board, just to match the 5i20-7i39 pins :(
all pwm signals are to P2 , all encoders to P4.

I found that TPEN6_6.XML controls the pin-out.
I could edit this file and place the pins in the right places. Is this OK to do?
Are there any rules to follow in the editing of this XML?
but
Why are the pins put in this order? Is there a good reason? The person who made all this development, must had something in mind!
What was that?
Attachments:
Last edit: 26 Oct 2010 12:38 by nikos.chalikias.

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

Moderators: PCWjmelson
Time to create page: 0.104 seconds
Powered by Kunena Forum