Mesa 7i39+5i20

More
26 Oct 2010 12:53 #4874 by andypugh
Replied by andypugh on topic Re:Mesa 7i39+5i20
nikos.chalikias wrote:

pin-out does not match to 7i39!

You appear to be correct, which is somewhat unfortunate.

I could edit this file and place the pins in the right places

It won't help, as you need to re-compile the firmware to change the pin allocations, and that requires software tools that you won't have.

I have sent a query to the developers list about the matter. It is also possible that Mesa have the correct firmware but it has not made it into the EMC2 repository yet.

In either case, it probably makes sense to wait for a software solution (which I expect to take no more than a day or two) than to make a breakout board.

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

More
26 Oct 2010 14:52 #4877 by PCW
Replied by PCW on topic Re:Mesa 7i39+5i20
Yes, there is no 5i20 three phase PWM config that matches the 7I39 (it would have a 7I39 in its name)
I'll build one sometime today when I get a chance.

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

More
26 Oct 2010 19:46 #4884 by PCW
Replied by PCW on topic Re:Mesa 7i39+5i20
filebin.ca/oscqdm has bit and .pin files for a 5I20 supporting up to 3 7I39s

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

More
27 Oct 2010 06:08 - 27 Oct 2010 09:31 #4889 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
I had a short eye on svtp6_7i39.pin

As appear on Mesa7i39 ---> As appear on svtp6_7i39.pin

A
pins 1,3,5 and 25,27,29 ENCODER LINES ---> ENCODER

B
pins 7,9,11 and 31,33,35 HALL LINES ----> NO-FUNCTION

C
pins 13,15 and 37,39 SENSE LINES ----> NO-FUNCTION, TPPWM, NO-FUNCTION, TPPWM

D
pins 17 and 41 ENABLE LINES
> TPPMW, TPPMW

E
pins 19,21,23 and 43,45,47 PWM LINES
> ALL TPPWM

A and E appear correct
B. no HALL lines?
C. 13,37 SENSE not used? 15,39 SENSE replaced by PWM?
D. ENABLE inputs replaced by PWM?
Last edit: 27 Oct 2010 09:31 by nikos.chalikias.

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

More
27 Oct 2010 11:09 #4892 by andypugh
Replied by andypugh on topic Re:Mesa 7i39+5i20
nikos.chalikias wrote:

A Pins 1,3,5 and 25,27,29 ENCODER LINES ---> ENCODER

As expected

B pins 7,9,11 and 31,33,35 HALL LINES ----> NO-FUNCTION

Any pin with no special function becomes a GPIO (general purpose input / output) line. That means that you can read the values from the Hall sensor in HAL if you want to, or you can not bother if you are not using Hall sensors. The 7i39 has on-board Hall sensor inputs which are conditioned to suit the 5i20 inputs.

C pins 13,15 and 37,39 SENSE LINES ----> NO-FUNCTION, TPPWM, NO-FUNCTION, TPPWM

Pins 13 and 37 are SenseA for the two drivers, I am not sure what they do. 15 and 39 are fault status from the 7i39 SenseB output, and disable the PWM generator if the 7i39 detects a fault.

D pins 17 and 41 ENABLE LINES


> TPPMW, TPPMW

The Enable line from the 5i20 to the 7i39. The HAL file should connect this to Axis.N.amp-enable, you should be able to see this link in the HAL files I published.

E pins 19,21,23 and 43,45,47 PWM LINES


> ALL TPPWM

And these are the three PWM outputs which actually drive the motors.

A and E appear correct
B. no HALL lines?
C. 13,37 SENSE not used? 15,39 SENSE replaced by PWM?
D. ENABLE inputs replaced by PWM?


I think you are failing to read the "Pin Func" column of the PIN file. Everything looks right to me. If you specify 3 x 3ppwm and 3 x encoder in the config string then you will find that all of P2 and half of P3 are dedicated to 7i39 functions, and half of P3 and all of P4 are GPIO pins. (you can either ignore the GPIO pins on P3 or split the ribbon cable in half, with one half going to a 7i39 50-way plug and the other to other hardware.)

It all looks good to me.

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

More
27 Oct 2010 12:10 #4896 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
Thanks again for help.

I will configure for 2 7i39 cards ( 4 motors)
and I will use the 3d 50pin connector for all the control l/O lines.

In final version I will go with 6 motors
And I will use second AnyI/O card for the control

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

More
10 Dec 2010 15:45 #5958 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
Hello,

After some busy time, I am back to complete the 5i20-7i39 setup

After having EMC2.5 installed, updated .ini and hal,
I connected one BLDC motor with encoder to axis-X
I had below:

- I could start EMC2.5 and from dmseg I could see that 5i20 pin-out was configured correct.
- After exit EMC2.5 I could not start again EMC2.5 or EMC2.4. Only possible after reboot.
- Encoder was working. If I move the motor by hand I could see the X value change.\
- Not possible to move X from manual-mode ---> ERROR
- Immediately after release of E-STOP(and before ENABLE), motor moves some degrees and then back exactly to initial position. Something like position-initialization, but at the wrong time!

Then I thought I should update .ini file, I changed:

MACHINE = HM2-bldc
LINEAR_UNITS = milimiters
DEFAULT_VELOCITY = 20
MAX_VELOCITY = 100
DEFAULT_ACCELERATION = 20
MAX_ACCELERATION = 30
[AXIS_0]
MAX_VELOCITY = 100
MAX_ACCELERATION = 30
DEADBAND = 1

Now:
- EMC2.5 does not start even after reboot!
- EMC2.4 does not start if EMC2.5 was tried to start

I think I have somehow, to unload EMC2.5 from memory...

Please Help

Nikos Chalikias

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

More
10 Dec 2010 15:57 #5959 by nikos.chalikias
Replied by nikos.chalikias on topic Re:Mesa 7i39+5i20
Additionally:
it is the EMC2.5 with BLDC configuration that does not start and blocks EMC2.4 to start
EMC2.5 with SERVO configuration is OK

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

More
10 Dec 2010 22:35 #5968 by PCW
Replied by PCW on topic Re:Mesa 7i39+5i20
I think this will need Andy Pughs help to figure out, though I'm pretty sure he has an update to the BLDC driver that addresses some of these issues.

The initial motor movement is expected (this is one method of rotor position determination )

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

More
12 Dec 2010 19:34 #5995 by andypugh
Replied by andypugh on topic Re:Mesa 7i39+5i20
Sorry for the delay, I have been on a yacht and internet-free for the last week.

Can you post the last dozen or so lines from dmesg after the failed launch? That should give some clues what the problem is.

It might be best to put both the INI and HAL files on www.pastebin.ca so we can try to reproduce the issue.

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

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