Skip to content

Commit 28af242

Browse files
authored
Update ADDING_A_MESA_CARD.md
add a little more detail on GPIO logic numbering
1 parent 2a5bbed commit 28af242

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/emc/usr_intf/pncconf/ADDING_A_MESA_CARD.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ The remainder of the data structure consists of list entries specifying the indi
4444

4545
Allocation of the order of I/O pins to connectors is done at the Mesa hardware level and in our case the Mesa manual for the `7i93` specifies `CONECTOR P2 I/O 0..23` and `CONNECTOR P1 I/O 24..47`.
4646

47-
If logical number < 100 => GPIO can be changed to GPIOO or GPIOD at the start of linuxcnc, load time if you prefer (run time)
47+
If logical number < 100 => GPIO can be changed to GPIOO or GPIOD at the start of linuxcnc, load time if you prefer (or run time)
4848
If logical number > 100 => GPIO can NOT be changed to GPIOO or GPIOD at the start of linuxcnc, load time (always input or always output)
4949
Value of number or number-100 corresponds with HAL Pin of Hostmot2 component
50-
The number 0 or 100 can be repeated only for GPIO and the numbering is done automatically.
50+
The number 0 or 100 currentky only has meaning for GPIO, SSR, INM and OUTM components.
51+
With GPIO the numbering uses the position in the firmware, starting with the first found GPIO as 0.
52+
SSR encodes the logical number within the 1xx number. ie 100 = zero component, 101 the #1 component etc.
5153

5254
The data structure from the code is replicated below. Using the data above, you should be able to decode this information:
5355

0 commit comments

Comments
 (0)