I acknowledge
the other 7C81 thread
that's currently ongoing, but I'm starting another one to keep from crossing the streams.
I currently have a quasi-functional (meaning I'm not getting errors when launching LinuxCNC) setup with my Pi talking to the 7C81, which is flashed with the provided "5abobx2d.bit" file proved from the product-page.
Code:
sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi --readhmid
provides provides a copy of what is found in "5abobx2d.pin".
Code:
. . .
Configuration pin-out:
IO Connections for P1+Serial
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
0 0 IOPort PWM 0 PWM (Out)
0 1 IOPort None
0 2 IOPort StepGen 0 Step/Table1 (Out)
0 3 IOPort None
0 4 IOPort StepGen 0 Dir/Table2 (Out)
0 5 IOPort None
0 6 IOPort StepGen 1 Step/Table1 (Out)
0 7 IOPort None
0 8 IOPort StepGen 1 Dir/Table2 (Out)
0 9 IOPort StepGen 2 Step/Table1 (Out)
0 10 IOPort StepGen 2 Dir/Table2 (Out)
0 11 IOPort StepGen 3 Step/Table1 (Out)
0 12 IOPort StepGen 3 Dir/Table2 (Out)
0 13 IOPort None
0 14 IOPort QCount 0 Quad-A (In)
0 15 IOPort QCount 0 Quad-B (In)
0 16 IOPort QCount 0 Quad-IDX (In)
0 17 IOPort SSerial 0 TXData0 (Out)
0 18 IOPort SSerial 0 TXData1 (Out)
. . .
That's well and good, except for the fact that it doesn't appear to be representative of the BOB I purchased:
Code:
# Summery of my BOB's LPT configuration
P1 PWM (spindle control)
P2 Output (spindle power relay)
P3 Output (coolent relay)
P5 Output (x axis direction)
P6 Stepgen (x axis step)
P7 Output (y axis direction)
P8 Stepgen (y axis step)
P9 Output (z axis direction)
P10 Stepgen (z axis step)
P11 Input (digital)
P12 Input (digital)
P13 Input (digital)
P14 Output (aux relay)
P15 Input (digital)
P16 Output (a axis direction)
P17 Stepgen (a axis step)
P18 GND
P19 GND
P20 GND
P21 GND
P22 GND
P23 GND
P24 GND
P25 GND
If I'm understanding correctly (and I admit that this may not be the case), the pins indicated by the BOB's documentation are the physical pins the BOB expects Mach3 (because it's marketed to Mach3 users) to have configured to provide the advertised functionality. Those pins are connected to the P1 header on the 7C81 via a commercially-available adapter cable. Is there a degree of abstraction in the "Hardware Abstraction Layer" that is expected to accommodate for this discrepancy, or am I in need of a custom *.bit file?
NB. If it's of any help, the BOB I purchased is:
www.amazon.com/dp/B07BFTRTBC