7i76 not seen by linuxcnc

More
27 May 2022 20:18 #244027 by rfrey
Hello. I'm running a 5i25 and 7i76, but the 5i25 can't seem to see the 7i76. It has 24v field power and I'm supplying 5v power manually - both LEDs are lit. There is some communication happening because I can use PNCConf to control the steppers.

I can start linuxcnc and control steppers as long as my .hal file doesn't reference any 7i76 pins. Furthermore the 7i76 pins don't show up on halshow. I tried initializing everything through halcmd and got this output when I loaded the hm2_pci component:
halcmd: loadrt trivkins coordinates=XYZ
Note: Using POSIX realtime
halcmd: loadrt motmod servo_period_nsec=1000000 num_joints=3
halcmd: loadrt hostmot2
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_pci config="num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=00xxxx"
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:01:00.0
hm2/hm2_5i25.0: Low Level init 0.15
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
hm2/hm2_5i25.0: 34 I/O Pins used:
hm2/hm2_5i25.0:     IO Pin 000 (P3-01): StepGen #0, pin Direction (Output)
hm2/hm2_5i25.0:     IO Pin 001 (P3-14): StepGen #0, pin Step (Output)
hm2/hm2_5i25.0:     IO Pin 002 (P3-02): StepGen #1, pin Direction (Output)
hm2/hm2_5i25.0:     IO Pin 003 (P3-15): StepGen #1, pin Step (Output)
hm2/hm2_5i25.0:     IO Pin 004 (P3-03): StepGen #2, pin Direction (Output)
hm2/hm2_5i25.0:     IO Pin 005 (P3-16): StepGen #2, pin Step (Output)
hm2/hm2_5i25.0:     IO Pin 006 (P3-04): StepGen #3, pin Direction (Output)
hm2/hm2_5i25.0:     IO Pin 007 (P3-17): StepGen #3, pin Step (Output)
hm2/hm2_5i25.0:     IO Pin 008 (P3-05): StepGen #4, pin Direction (Output)
hm2/hm2_5i25.0:     IO Pin 009 (P3-06): StepGen #4, pin Step (Output)
hm2/hm2_5i25.0:     IO Pin 010 (P3-07): IOPort
hm2/hm2_5i25.0:     IO Pin 011 (P3-08): IOPort
hm2/hm2_5i25.0:     IO Pin 012 (P3-09): IOPort
hm2/hm2_5i25.0:     IO Pin 013 (P3-10): IOPort
hm2/hm2_5i25.0:     IO Pin 014 (P3-11): Encoder #0, pin Index (Input)
hm2/hm2_5i25.0:     IO Pin 015 (P3-12): Encoder #0, pin B (Input)
hm2/hm2_5i25.0:     IO Pin 016 (P3-13): Encoder #0, pin A (Input)
hm2/hm2_5i25.0:     IO Pin 017 (P2-01): IOPort
hm2/hm2_5i25.0:     IO Pin 018 (P2-14): IOPort
hm2/hm2_5i25.0:     IO Pin 019 (P2-02): IOPort
hm2/hm2_5i25.0:     IO Pin 020 (P2-15): IOPort
hm2/hm2_5i25.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_5i25.0:     IO Pin 022 (P2-16): IOPort
hm2/hm2_5i25.0:     IO Pin 023 (P2-04): IOPort
hm2/hm2_5i25.0:     IO Pin 024 (P2-17): IOPort
hm2/hm2_5i25.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_5i25.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_5i25.0:     IO Pin 027 (P2-07): IOPort
hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
hm2/hm2_5i25.0:     IO Pin 029 (P2-09): IOPort
hm2/hm2_5i25.0:     IO Pin 030 (P2-10): IOPort
hm2/hm2_5i25.0:     IO Pin 031 (P2-11): IOPort
hm2/hm2_5i25.0:     IO Pin 032 (P2-12): IOPort
hm2/hm2_5i25.0:     IO Pin 033 (P2-13): IOPort
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:01:00.0

There's no mention in the output of the 7i76, but maybe there's not supposed to be.

Any suggestions are greatly welcome!

 

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

More
27 May 2022 20:32 #244029 by PCW
Replied by PCW on topic 7i76 not seen by linuxcnc
Looks like the correct firmware.

I would make sure that the 5I25 is jumpered to NOT supply 5V to the 7I76
(5I25 W2 DOWN) and that the 7I76 is jumpered for external 5V power
(7I76 W2 RIGHT) and that 7I76 W1 and W3 are in the LEFT hand position

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

More
27 May 2022 21:44 - 27 May 2022 21:45 #244030 by rfrey
Replied by rfrey on topic 7i76 not seen by linuxcnc
Thanks Peter. Jumpers are correct - you helped me out with this before. If you recall, a power transistor on the 5i25 was burnt out which meant it couldn't supply 5v to the 7i76.

I suppose the 5i25 may be damaged in other ways by whatever caused the power transistor to go. Strange that it *almost* works. Maybe I should try another parallel cable (although this is the same one I was using before I started having problems.)
Last edit: 27 May 2022 21:45 by rfrey.

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

More
27 May 2022 23:57 - 28 May 2022 00:11 #244034 by robertspark
scratch that thought {just checked my board}
Last edit: 28 May 2022 00:11 by robertspark.

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

More
28 May 2022 13:47 #244057 by rfrey
Replied by rfrey on topic 7i76 not seen by linuxcnc
Should I expect the output from loading hmi_pci to indicate the 7i76, if everything is working correctly?

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

More
28 May 2022 14:17 #244058 by PCW
Replied by PCW on topic 7i76 not seen by linuxcnc
Yes, you should see a SSerial TX and RX pin on GPIO 10 and 11:

hm2/hm2_5i25.0: IO Pin 010 (P3-07): Smart Serial Interface #0, pin tx0 (Output)
hm2/hm2_5i25.0: IO Pin 011 (P3-08): Smart Serial Interface #0, pin rx0 (Input)

The fact that you don't have them means that for some reason, there is no communication
between the 5I25 and the 7I76 on those lines.

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

More
28 May 2022 16:32 #244063 by tommylight
P1 to P2 , or vice versa?

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

More
28 May 2022 17:56 #244068 by PCW
Replied by PCW on topic 7i76 not seen by linuxcnc
Well in this case 5I25 P3 (I/O0 .. 16) to the 7I76's P1
The following user(s) said Thank You: tommylight

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

More
29 May 2022 03:25 #244094 by rfrey
Replied by rfrey on topic 7i76 not seen by linuxcnc
I tried a new parallel cable, same result. I checked continuity between all pins on both the original cable and the new one, and all pins were connected.

I flashed the 5i25 with 5i25_7i76x2.bit, just to be sure - same result, no smart serial pins indicated.

Is this more likely to be a fault with the 5i25 or the 7i76? Both seem to be working to send the stepper commands, which are routed through the 7i76 TB2 bank to Gecko 203v drivers. I suppose those may be routed directly from the P1 to TB2 so don't indicate the 7i76 is working.

The 7i76 is new, the 5i25 is old. I'm happy to buy a new one of whatever, I'm just getting tired of firing the parts cannon at this thing. :)

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

More
29 May 2022 13:05 #244121 by robertspark
are you sure it's not the 7i76 that's not the problem.... I ask because the 5i25 is communicating with linuxcnc and setting up all its iOS..... indicating the 7i76 is not responding back to the 5i25.

.... dopy question... does the 7i76 have 5v power?..... sometimes best to stop and start at the beginning.

have you got anything else you can plug the 7i76 into to test? (it would need to be something from mesa with an IDC or lpt port on it

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

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