How do the numbers in the "Num" column correlate to IO pins on the mesa 7i92?

More
11 Apr 2021 17:00 - 11 Apr 2021 17:01 #205653 by trainwreck
I'm very confused by the Num column. It seems that adding step generators somehow confuses the situation, because if you set all of encoders, pwm generators, and step generators to 0 in the configuration page the Num column makes perfect sense and each I/O tab increments as you would expect. As soon as you add any step generators though you get something like the image I have attached. Can someone explain to me how I know which dropdown connects to which pin on the mesa card?

(sorry for picture of screen, I don't have internet on my linuxcnc box so this was the easiest way)

I found this relatively recent forum post that shows the same thing I see and even mentions that the numbers don't actually directly relate to pins on the card, but doesn't explain how they arrived at the settings they have there.

Thanks in advance!
Attachments:
Last edit: 11 Apr 2021 17:01 by trainwreck.

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

More
11 Apr 2021 17:33 #205660 by tommylight
000-032 or more = pin numbers
0, 1, etc = stepgen or PWM or encoder numbers
Those are as seen by Mesa and LinuxCNC.

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

More
11 Apr 2021 17:53 - 11 Apr 2021 17:53 #205662 by trainwreck
Ok, that makes sense. So how do I know which actual pin stepgen 0 will be on? Having read through both the relevant .pin file and the 7i92 manual I don't see anything obvious that would show that relation.

Sorry if I'm being particularly dense here...
Last edit: 11 Apr 2021 17:53 by trainwreck.

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

More
11 Apr 2021 18:22 - 11 Apr 2021 18:23 #205670 by PCW
As an example:
IO Connections for P2
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1      0   IOPort       PWM              0        PWM             (Out)
14      1   IOPort       None           
 2      2   IOPort       StepGen          0        Step/Table1     (Out)
^^^^^^^^^^^^^^^^^^^^^^^^ This shows that Stepgen 0's Step pin is on DB25 pin2 and GPIO 2
15      3   IOPort       None           
 3      4   IOPort       StepGen          0        Dir/Table2      (Out)
^^^^^^^^^^^^^^^^^^^^^^^^ This shows that Steogen 0's Dir pin is on DB25 pin3 and GPIO 4
16      5   IOPort       StepGen          8        Step/Table1     (Out)
 4      6   IOPort       StepGen          1        Step/Table1     (Out)
17      7   IOPort       StepGen          8        Dir/Table2      (Out)
 5      8   IOPort       StepGen          1        Dir/Table2      (Out)
 6      9   IOPort       StepGen          2        Step/Table1     (Out)
 7     10   IOPort       StepGen          2        Dir/Table2      (Out)
 8     11   IOPort       StepGen          3        Step/Table1     (Out)
 9     12   IOPort       StepGen          3        Dir/Table2      (Out)
10     13   IOPort       None           
11     14   IOPort       QCount           0        Quad-A          (In)
12     15   IOPort       QCount           0        Quad-B          (In)
13     16   IOPort       QCount           0        Quad-IDX        (In)
Last edit: 11 Apr 2021 18:23 by PCW.

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

More
11 Apr 2021 18:44 #205671 by tommylight
In a terminal:
mesaflash --device 7i92 --addr 10.10.10.10 --readhmid
If you have it set for that IP range, or
mesaflash --device 7i92 --addr 192.168.1.121 --readhmid
for factory default.
That will list the pins and ports and also show what physical pin do they belong to as PCW described above.

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

More
11 Apr 2021 18:59 #205672 by trainwreck
Ok, I think I get it. To check my understanding, the Num column in pncconf is actually showing the "channel" listed in the .pin files for stepgens then?

Thanks a lot!

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

More
11 Apr 2021 19:16 #205673 by PCW
Well it either shows the channel or the GPIO pin
if no function (like stepgen,PWMgen etc) is assigned

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

Moderators: cmorley
Time to create page: 0.183 seconds
Powered by Kunena Forum