Is it possible to define which pins on a 7i92 an encoder uses?

More
21 Oct 2023 03:27 #283413 by trainwreck
Hello everybody, I picked up a cheap ebay MPG and went to wire it in to my system, but realized I don't have the ability to use the pins that encoder 0 exists on. I have attached my hal files, but a short summary below for convenience.

In my .hal file I updated my loadrt statement so that it does have 1 encoder, and mesaflash tells me that encoder 0 is on pins 30, 31, and 32, but those pins are on my G540 and already in use by my limit switches. Is there any way that I can reassign the encoder pins to something like pins 013 and 015 on the 7i75 board?

thanks for any help!
Attachments:

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

More
21 Oct 2023 06:09 #283425 by tommylight
7i75???
Probably not without flashing new firmware, not sure if there is something ready made for G540 and 7i77 or 7i85 as that should have encoders on the other header, but still the first encoder would remain on the main header sooooo....
Better wait for PCW to answer this before i give you headache ! :)

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

More
21 Oct 2023 14:27 #283445 by trainwreck
Is the 7i75 not a good card? It's been working well for me so far although I think I might end up regretting trying to save some money and not just buying the 7i76 from the get-go. I thought I would never need that much IO but here I am having nearly completely filled what I have available...

I'm fine with flashing firmware as long as I can get someone to walk me through how to compile it because I really don't want to brick my 7i92!

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

More
21 Oct 2023 21:27 #283457 by tommylight
Mesa boards are very, very good, all of them.
I never used 7i75 hence the question mark as i have no clue what it does.
If i can manage, i will have a look later and see if there is something ready for it.
Right now i have 4 of 7i92 in machines, plenty more on machines that are gone to shops being used every day, all day.

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

More
22 Oct 2023 00:40 #283470 by tommylight
From the Mesa website :
The 7I75 is a breakout card for Mesa's 25 pin I/O FPGA cards.
With protections and terminals, nice, i could have used some of those...
Well i can not see anything usable for you, all included firmwares have encoder 0 on P2, you would need it on P1.
You should wait a bit more ...

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

More
22 Oct 2023 14:00 #283502 by trainwreck
Thanks Tommy, I'll hang around for others to respond :)
The following user(s) said Thank You: tommylight

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

More
22 Oct 2023 19:44 #283529 by PCW
For a MPG, you would probably want a INM module, as this supports the
1x mode that gets you one count per detent

Do you have a 7I92 or 7I92T?

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

More
22 Oct 2023 21:02 #283536 by trainwreck
Thanks PCW!

I have the 7i92M (not T, this is a few years old). I don't mind getting a quad signal per detent, I have my hal set up to adjust the scaling by dividing by 4.

I don't know what INM is and google is failing me, could you explain?

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

More
22 Oct 2023 22:47 - 22 Oct 2023 22:48 #283540 by PCW
INM is the input module and it has up to 4 MPG encoders built in

Its described in the hostmot2 manual page

Also what firmware are you using currently?
 
Last edit: 22 Oct 2023 22:48 by PCW.

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

More
22 Oct 2023 23:02 - 22 Oct 2023 23:12 #283542 by trainwreck
I'm using the firmware you provided for me in this thread. I'll have a read through the man page.

EDIT: it's interesting that none of the writeups or documentation I could find (other than the man page for hostmot2 as mentioned) actually use the inm module, they always use the raw encoders from the mesa cards. Is there any particular reason for that other than people not being aware of the inm modules?
Last edit: 22 Oct 2023 23:12 by trainwreck.

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

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