7i85s and muxed input encoders
20 Aug 2013 15:02 #37870
by casetero
7i85s and muxed input encoders was created by casetero
Hi there,
I´m using a 5i25 + 7i85s combo card. Untill now all worked nice with 2 stepgen´s and two encoders. But when i try to connect a third axis ( one more stepper and one more encoder) the problems start.
While running linuxcnc i type in a terminal "dmesg" and it just shows 2 inputs for encoders, it shows this:
3657.823974] hm2: loading Mesa HostMot2 driver version 0.15
[ 3657.827882] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 3657.827930] hm2_pci 0000:02:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 3657.827935] hm2_pci: discovered 5i25 at 0000:02:02.0
[ 3657.828558] hm2/hm2_5i25.0: Smart Serial Firmware Version 38
[ 3657.885903] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 3657.885908] hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort
[ 3657.885912] hm2/hm2_5i25.0: IO Pin 001 (P3-14): IOPort
[ 3657.885915] hm2/hm2_5i25.0: IO Pin 002 (P3-02): IOPort
[ 3657.885919] hm2/hm2_5i25.0: IO Pin 003 (P3-15): IOPort
[ 3657.885924] hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Step (Output)
[ 3657.885933] hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Direction (Output)
[ 3657.885937] hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #1, pin Step (Output)
[ 3657.885942] hm2/hm2_5i25.0: IO Pin 007 (P3-17): StepGen #1, pin Direction (Output)
[ 3657.885946] hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #0, pin Step (Output)
[ 3657.885950] hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #0, pin Direction (Output)
[ 3657.885955] hm2/hm2_5i25.0: IO Pin 010 (P3-07): Muxed Encoder Select #0, pin Mux Select 0 (Output)
[ 3657.885960] hm2/hm2_5i25.0: IO Pin 011 (P3-08): Muxed Encoder #0, pin Muxed A (Input)
[ 3657.885964] hm2/hm2_5i25.0: IO Pin 012 (P3-09): Muxed Encoder #0, pin Muxed B (Input)
[ 3657.885969] hm2/hm2_5i25.0: IO Pin 013 (P3-10): Muxed Encoder #0, pin Muxed Index (Input)
[ 3657.885973] hm2/hm2_5i25.0: IO Pin 014 (P3-11): Muxed Encoder #1, pin Muxed A (Input)
[ 3657.885977] hm2/hm2_5i25.0: IO Pin 015 (P3-12): Muxed Encoder #1, pin Muxed B (Input)
[ 3657.885982] hm2/hm2_5i25.0: IO Pin 016 (P3-13): Muxed Encoder #1, pin Muxed Index (Input)
[ 3657.885986] hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
[ 3657.885989] hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
[ 3657.885993] hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
[ 3657.885996] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[ 3657.886000] hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
[ 3657.886003] hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
[ 3657.886007] hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
[ 3657.886010] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[ 3657.886014] hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
[ 3657.886017] hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
[ 3657.886021] hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
[ 3657.886028] hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
[ 3657.886033] hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
[ 3657.886036] hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
[ 3657.886040] hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
[ 3657.886043] hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
[ 3657.886047] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
This is shown with 3 stepgens and 3 encoders.
The problem is that the system works nice with 2 axis ( X , Y ), but when i connect the third axis ( Z ), Z doesnt work and Y doesnt work too ( Y with 2 axis works). Sorry but my english is horrible.
I think the problem is due to the muxed inputs for the encoders. It works fine with 2 encoders but not with 3.
The dmesg file shown before, is correct if i put at the hal file that im working with 3 encoders??
Thank you very much.
I´m using a 5i25 + 7i85s combo card. Untill now all worked nice with 2 stepgen´s and two encoders. But when i try to connect a third axis ( one more stepper and one more encoder) the problems start.
While running linuxcnc i type in a terminal "dmesg" and it just shows 2 inputs for encoders, it shows this:
3657.823974] hm2: loading Mesa HostMot2 driver version 0.15
[ 3657.827882] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 3657.827930] hm2_pci 0000:02:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 3657.827935] hm2_pci: discovered 5i25 at 0000:02:02.0
[ 3657.828558] hm2/hm2_5i25.0: Smart Serial Firmware Version 38
[ 3657.885903] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 3657.885908] hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort
[ 3657.885912] hm2/hm2_5i25.0: IO Pin 001 (P3-14): IOPort
[ 3657.885915] hm2/hm2_5i25.0: IO Pin 002 (P3-02): IOPort
[ 3657.885919] hm2/hm2_5i25.0: IO Pin 003 (P3-15): IOPort
[ 3657.885924] hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Step (Output)
[ 3657.885933] hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Direction (Output)
[ 3657.885937] hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #1, pin Step (Output)
[ 3657.885942] hm2/hm2_5i25.0: IO Pin 007 (P3-17): StepGen #1, pin Direction (Output)
[ 3657.885946] hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #0, pin Step (Output)
[ 3657.885950] hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #0, pin Direction (Output)
[ 3657.885955] hm2/hm2_5i25.0: IO Pin 010 (P3-07): Muxed Encoder Select #0, pin Mux Select 0 (Output)
[ 3657.885960] hm2/hm2_5i25.0: IO Pin 011 (P3-08): Muxed Encoder #0, pin Muxed A (Input)
[ 3657.885964] hm2/hm2_5i25.0: IO Pin 012 (P3-09): Muxed Encoder #0, pin Muxed B (Input)
[ 3657.885969] hm2/hm2_5i25.0: IO Pin 013 (P3-10): Muxed Encoder #0, pin Muxed Index (Input)
[ 3657.885973] hm2/hm2_5i25.0: IO Pin 014 (P3-11): Muxed Encoder #1, pin Muxed A (Input)
[ 3657.885977] hm2/hm2_5i25.0: IO Pin 015 (P3-12): Muxed Encoder #1, pin Muxed B (Input)
[ 3657.885982] hm2/hm2_5i25.0: IO Pin 016 (P3-13): Muxed Encoder #1, pin Muxed Index (Input)
[ 3657.885986] hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
[ 3657.885989] hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
[ 3657.885993] hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
[ 3657.885996] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[ 3657.886000] hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
[ 3657.886003] hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
[ 3657.886007] hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
[ 3657.886010] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[ 3657.886014] hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
[ 3657.886017] hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
[ 3657.886021] hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
[ 3657.886028] hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
[ 3657.886033] hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
[ 3657.886036] hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
[ 3657.886040] hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
[ 3657.886043] hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
[ 3657.886047] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
This is shown with 3 stepgens and 3 encoders.
The problem is that the system works nice with 2 axis ( X , Y ), but when i connect the third axis ( Z ), Z doesnt work and Y doesnt work too ( Y with 2 axis works). Sorry but my english is horrible.
I think the problem is due to the muxed inputs for the encoders. It works fine with 2 encoders but not with 3.
The dmesg file shown before, is correct if i put at the hal file that im working with 3 encoders??
Thank you very much.
Please Log in or Create an account to join the conversation.
20 Aug 2013 17:10 #37879
by andypugh
Replied by andypugh on topic 7i85s and muxed input encoders
What is your new "loadrt hm2_pci" line?
it is possible that you need to have 4 encoders, not 3 as the are muxed.
it is possible that you need to have 4 encoders, not 3 as the are muxed.
Please Log in or Create an account to join the conversation.
21 Aug 2013 05:56 #37910
by PCW
Replied by PCW on topic 7i85s and muxed input encoders
Just to make sure there was not a driver issue,
I just checked a 5I25 /7I85S (7I85sx2 configuration),
and I dont see a problem with odd encoder numbers.
Tried 1,2,3,4 encoders enabled on the config line and all worked
as expected on at least two LinuxCNC versions (2.51 and 2.6.0-pre)
This might be a pncconf bug or maybe hardware/wiring
I just checked a 5I25 /7I85S (7I85sx2 configuration),
and I dont see a problem with odd encoder numbers.
Tried 1,2,3,4 encoders enabled on the config line and all worked
as expected on at least two LinuxCNC versions (2.51 and 2.6.0-pre)
This might be a pncconf bug or maybe hardware/wiring
Please Log in or Create an account to join the conversation.
21 Aug 2013 18:01 #37922
by casetero
Replied by casetero on topic 7i85s and muxed input encoders
Thank you both,
It was a HAL code plus wiring problem. It works fine now with 3 encodes. I thought that should be the 3 inputs for encoders at the gpio of the 5i25 card.
Working with muxed inputs, there wont be any problem working with the 3 axis moving at the same time, will be??
Thanks and regards!!
It was a HAL code plus wiring problem. It works fine now with 3 encodes. I thought that should be the 3 inputs for encoders at the gpio of the 5i25 card.
Working with muxed inputs, there wont be any problem working with the 3 axis moving at the same time, will be??
Thanks and regards!!
Please Log in or Create an account to join the conversation.
22 Aug 2013 18:51 - 22 Aug 2013 18:55 #37962
by PCW
Replied by PCW on topic 7i85s and muxed input encoders
No, there's no problem with interference between multiple muxed encoders
(we have customers using configurations with up to 48 (muxed) encoders)
(we have customers using configurations with up to 48 (muxed) encoders)
Last edit: 22 Aug 2013 18:55 by PCW.
Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
05 Apr 2021 18:47 #204934
by HalaszAttila
Replied by HalaszAttila on topic 7i85s and muxed input encoders
Hello,
one more question about MESA 7i85S.
My configuration is:
5i25 + 7i76 (conn: P3) + 7i84 + 7i85S (conn: P2).
In to FPGA is flashed: 5i25_7i76_7i85s.bit
hm2_pci config=" num_encoders=5 num_pwmgens=1 num_stepgens=5 sserial_port_0=000000"
with this hm2_pci the Linuxcnc config is starts without error, and i can use the 7i85S-s encoder inputs, all 4 works.
My question is how to configure STEP/DIR outputs on 7i85S?
If i incrase the number of stepgens (num_stepgens = 9 => 7i76 (5pcs) + 7i85S (4pcs)) then i have the next error message:
insmod for hm2_pci failed, returned -1
Thanks.
one more question about MESA 7i85S.
My configuration is:
5i25 + 7i76 (conn: P3) + 7i84 + 7i85S (conn: P2).
In to FPGA is flashed: 5i25_7i76_7i85s.bit
hm2_pci config=" num_encoders=5 num_pwmgens=1 num_stepgens=5 sserial_port_0=000000"
with this hm2_pci the Linuxcnc config is starts without error, and i can use the 7i85S-s encoder inputs, all 4 works.
My question is how to configure STEP/DIR outputs on 7i85S?
If i incrase the number of stepgens (num_stepgens = 9 => 7i76 (5pcs) + 7i85S (4pcs)) then i have the next error message:
insmod for hm2_pci failed, returned -1
Thanks.
Please Log in or Create an account to join the conversation.
05 Apr 2021 19:16 #204938
by PCW
Replied by PCW on topic 7i85s and muxed input encoders
What does
sudo mesaflash --device 5i25 --readhmid
report?
sudo mesaflash --device 5i25 --readhmid
report?
Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
05 Apr 2021 19:38 #204944
by HalaszAttila
Replied by HalaszAttila on topic 7i85s and muxed input encoders
Attached the result.
The 5i25 card is about 6-7 years old. If it matters.
The 7i85S is new.
The 5i25 card is about 6-7 years old. If it matters.
The 7i85S is new.
Please Log in or Create an account to join the conversation.
05 Apr 2021 19:45 #204945
by PCW
Replied by PCW on topic 7i85s and muxed input encoders
OK that looks right
What is the full error message?
What is the full error message?
Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
05 Apr 2021 19:51 #204946
by HalaszAttila
Replied by HalaszAttila on topic 7i85s and muxed input encoders
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.095 seconds