Retrofit Gloria Europa 2/40 machining centre

More
18 Jun 2016 09:16 #76244 by backtime
Hi, i need some help, loading hm2 driver fail with this message on dmesg:

hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are available, not loading driver

I double check connection, i have 7i77 on 6i25 P3 connector and 7i76 on P2, i don't understand
why the driver found only two encoder.

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

More
18 Jun 2016 09:46 - 18 Jun 2016 10:05 #76248 by backtime
Loading driver with
loadrt hm2_pci config="num_encoders=2 num_pwmgens=0 num_stepgens=5 sserial_port_0=00000x"

result in this output:
[ 1744.138549] hm2: loading Mesa HostMot2 driver version 0.15
[ 1858.385448] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 1858.385470] hm2_pci: discovered 5i25 at 0000:02:00.0
[ 1858.385699] hm2/hm2_5i25.0: Smart Serial Firmware Version 43
[ 1858.387743] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 1858.387745] hm2/hm2_5i25.0:     IO Pin 000 (P3-01): StepGen #0, pin Direction (Output)
[ 1858.387747] hm2/hm2_5i25.0:     IO Pin 001 (P3-14): StepGen #0, pin Step (Output)
[ 1858.387749] hm2/hm2_5i25.0:     IO Pin 002 (P3-02): StepGen #1, pin Direction (Output)
[ 1858.387751] hm2/hm2_5i25.0:     IO Pin 003 (P3-15): StepGen #1, pin Step (Output)
[ 1858.387753] hm2/hm2_5i25.0:     IO Pin 004 (P3-03): StepGen #2, pin Direction (Output)
[ 1858.387754] hm2/hm2_5i25.0:     IO Pin 005 (P3-16): StepGen #2, pin Step (Output)
[ 1858.387756] hm2/hm2_5i25.0:     IO Pin 006 (P3-04): StepGen #3, pin Direction (Output)
[ 1858.387757] hm2/hm2_5i25.0:     IO Pin 007 (P3-17): StepGen #3, pin Step (Output)
[ 1858.387759] hm2/hm2_5i25.0:     IO Pin 008 (P3-05): StepGen #4, pin Direction (Output)
[ 1858.387761] hm2/hm2_5i25.0:     IO Pin 009 (P3-06): StepGen #4, pin Step (Output)
[ 1858.387762] hm2/hm2_5i25.0:     IO Pin 010 (P3-07): IOPort
[ 1858.387763] hm2/hm2_5i25.0:     IO Pin 011 (P3-08): IOPort
[ 1858.387765] hm2/hm2_5i25.0:     IO Pin 012 (P3-09): IOPort
[ 1858.387766] hm2/hm2_5i25.0:     IO Pin 013 (P3-10): IOPort
[ 1858.387768] hm2/hm2_5i25.0:     IO Pin 014 (P3-11): Encoder #0, pin Index (Input)
[ 1858.387769] hm2/hm2_5i25.0:     IO Pin 015 (P3-12): Encoder #0, pin B (Input)
[ 1858.387771] hm2/hm2_5i25.0:     IO Pin 016 (P3-13): Encoder #0, pin A (Input)
[ 1858.387772] hm2/hm2_5i25.0:     IO Pin 017 (P2-01): IOPort
[ 1858.387774] hm2/hm2_5i25.0:     IO Pin 018 (P2-14): IOPort
[ 1858.387775] hm2/hm2_5i25.0:     IO Pin 019 (P2-02): IOPort
[ 1858.387777] hm2/hm2_5i25.0:     IO Pin 020 (P2-15): IOPort
[ 1858.387778] hm2/hm2_5i25.0:     IO Pin 021 (P2-03): IOPort
[ 1858.387779] hm2/hm2_5i25.0:     IO Pin 022 (P2-16): IOPort
[ 1858.387781] hm2/hm2_5i25.0:     IO Pin 023 (P2-04): IOPort
[ 1858.387782] hm2/hm2_5i25.0:     IO Pin 024 (P2-17): IOPort
[ 1858.387783] hm2/hm2_5i25.0:     IO Pin 025 (P2-05): IOPort
[ 1858.387785] hm2/hm2_5i25.0:     IO Pin 026 (P2-06): IOPort
[ 1858.387786] hm2/hm2_5i25.0:     IO Pin 027 (P2-07): IOPort
[ 1858.387787] hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
[ 1858.387789] hm2/hm2_5i25.0:     IO Pin 029 (P2-09): IOPort
[ 1858.387790] hm2/hm2_5i25.0:     IO Pin 030 (P2-10): IOPort
[ 1858.387792] hm2/hm2_5i25.0:     IO Pin 031 (P2-11): Encoder #1, pin Index (Input)
[ 1858.387793] hm2/hm2_5i25.0:     IO Pin 032 (P2-12): Encoder #1, pin B (Input)
[ 1858.387795] hm2/hm2_5i25.0:     IO Pin 033 (P2-13): Encoder #1, pin A (Input)
[ 1858.387817] hm2/hm2_5i25.0: registered
[ 1858.387819] hm2_5i25.0: initialized AnyIO board at 0000:02:00.0

So the driver is loaded but something is wrong, i see stepgen signals on P3 connector (so the 6i25 back connector) but
i have the 7i77 connected to P3, and 7i76 to P2, stepgen signals should not be on P3 or i'm wrong?
Last edit: 18 Jun 2016 10:05 by backtime.

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

More
18 Jun 2016 10:31 #76251 by andypugh
Try adding a sserial_port_1 entry.

(Though it seems likely that the firmware you have is the 2x7i76 one)

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

More
18 Jun 2016 10:44 #76252 by backtime
Hi Andy, no luck adding a second serial

hm2/hm2_5i25.0: num_sserials references 2 instances, but only 1 are available, not loading driver

I agree that the firmware is for two 7i76 and not for 7i77/7i76 combination, there is a solution?
Should the card be pre programmed with correct firmware?

regards

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

More
18 Jun 2016 12:30 - 18 Jun 2016 12:31 #76257 by PCW
Yes, you must have correct firmware on the 5i25 card or things will not work

5i25_7i77_7i76.bit would be the proper firmware for a 7I77 on P3 and a 7I76 on P2

To update the firmware you first install mesaflash:
sudo apt-get install mesaflash

then fetch the firmware file from mesa (its in 5i25.zip, /configs/hostmot2/)

then install the new firmware:
sudo mesaflash --device 5i25 --write 5i25_7i77_7i76.bit

finally load the new firmware into the FPGA (this normally happens at power-up):
sudo mesaflash --device 5i25 --reload
Last edit: 18 Jun 2016 12:31 by PCW.

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

More
18 Jun 2016 15:08 #76263 by backtime
Mani thanks PCW, I see it is a very simple procedure.

I have another question, the two LEDs that indicate the presence of 5V remain off,
the two jumper on FPGA board and the jumper on the daughter card are set as specified in
the documentation.

6i25 W1 and W2 UP
7i77 W5 in the left position
7i76 W2 in the left position

Are there other things that i have to do to have 5V from FPGA board?

regards

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

More
18 Jun 2016 15:41 - 18 Jun 2016 15:45 #76264 by PCW
That should give you 5V at the daughter cards

possible issues:

1. Wrong cables (non iEEE1284 parallel cables may short out the 5V supply)
2. Excessive 5V load (shorted encoder wiring etc)
3. Bad 6I25 5V power supply ( or no host +12V)

I should note that in general its better to supply the 7I77 with external 5V as suggested in the manual
because the total power drain of the 7I77 plus encoders may cause too large a voltage drop in the cable
Last edit: 18 Jun 2016 15:45 by PCW.

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

More
18 Jun 2016 17:28 - 18 Jun 2016 17:30 #76268 by backtime
Cable on P3 is a 25 pin standard IEEE1284 cable, last pins are non shorted, anyway i'll try to check voltage on P3 and P2 connector without cable connected to see if 5V power came out from PCI card.

If settings are correct i should find 5V on 22 to 25 pin on P3 and on pin 18 20 22 24 26 on P2 correct?

For 7i77 i'll take your advice and supply card with external 5V.

Thanks for reply.
Last edit: 18 Jun 2016 17:30 by backtime.

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

More
21 Jun 2016 16:35 #76353 by backtime
Ok, now the board load the correct firmware, starting linuxcnc throw another error, it signal that pin
hm2_5i25.0.7i76.0.3.output-00 does not exist.

indeed the pin does not exist, checking halshow i find pin's names are in the form hm2_5i25.0.gpio.000, 001 and so on.

The actual hal configuration was made from pncconf wizard, the wizard generate different pin names,
i missing something during configuration?

Thank you.

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

More
21 Jun 2016 16:40 #76355 by andypugh

Ok, now the board load the correct firmware, starting linuxcnc throw another error, it signal that pin
hm2_5i25.0.7i76.0.3.output-00 does not exist.
indeed the pin does not exist, checking halshow i find pin's names are in the form hm2_5i25.0.gpio.000, 001 and so on.


The 5i25 GPIO pins are the pins on the actual DB25 connectors.

If the 7i77 is found then it will show up with the pin-names that pncconf uses.

What does your dmesg say? That should show active sserial channels for the 7i76 and 7i77.

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

Moderators: cncbasher
Time to create page: 0.129 seconds
Powered by Kunena Forum