7C81 - It appears that I have the wrong BOB, what now?

More
3 years 4 months ago #273898 by MrRekt
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

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

More
3 years 4 months ago #273916 by tommylight
What does P4 do? It is missing on that list.
The BOB pinout seems very non standard, the usuall is pins 2-9 are always step/dir for XYZA.

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

More
3 years 4 months ago - 3 years 4 months ago #273934 by MrRekt
Code:
# Summery of my BOB's LPT configuration P1 PWM (spindle control) P2 Output (spindle relay) P3 Output (coolant relay) P4 Output (motor control) P5 Output (motor control) P6 Output (motor control) P7 Output (motor control) P8 Output (motor control) P9 Output (motor control) P10 Input (digital) P11 Input (digital) P12 Input (digital) P13 Input (digital) P14 Output (aux relay) P15 Input (digital) P16 Output (motor control) P17 Output (motor control) P18 GND P19 GND P20 GND P21 GND P22 GND P23 GND P24 GND P25 GND

It appears I made an error in my opening post regarding P4, P10, and P14, which should be corrected above.

The provided pinout table:


The provided pinout photo:


You may notice some discrepancies in these two images.

It appears that P14 may actually be the 3rd relay? P4 is listed in the photo as both a relay and a "shaft output" but the jumpers in the middle of the board have a note (look for the yellow arrow) calling it P14. Additionally, the "standby signals" for each of the relays account for P2, P3, and P14.

This leads me to think that - in spite of the table calling P4 a relay - it's likely intended to be used to drive a motor --- P4-9, 16, and 17 are labeled as "shaft output ports" in the photo...
Last edit: 3 years 4 months ago by MrRekt. Reason: Added 2nd image. Fixing tons of errors introduced by the WYSIWYG.

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

More
3 years 4 months ago - 3 years 4 months ago #273939 by PCW
It looks like the 5ABOB configuration would work if you use the P4 output for X axis step
bur would disable use of the relays (except if one is connected to P14)

You can get a better pinout listing if you update mesaflash

Here's a config that will allow you to use 2 relays
(or all 3 if you can actually use pin 14 for a relay)
This basically just moves stepgen 0 to 4,5 so
pins 2,3 are available for relays

 

File Attachment:

File Name: 7c81_c5abobx2d.zip
File Size:110.26 KB

 
Last edit: 3 years 4 months ago by PCW.
The following user(s) said Thank You: MrRekt

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

More
3 years 4 months ago - 3 years 4 months ago #273949 by MrRekt

Here's a config that will allow you to use 2 relays
(or all 3 if you can actually use pin 14 for a relay)

Thank you!

Here's the pinout for P1 and P2, if anyone else happens to find themselves with the same bob:
Code:
Configuration pin-out: IO Connections for P1+Serial -> 7C81_0 Pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir P1-01/DB25-01 0 IOPort PWM 0 PWM (Out) P1-02/DB25-14 1 IOPort None P1-03/DB25-02 2 IOPort StepGen 4 Step/Table1 (Out) P1-04/DB25-15 3 IOPort None P1-05/DB25-03 4 IOPort StepGen 4 Dir/Table2 (Out) P1-06/DB25-16 5 IOPort StepGen 3 Step/Table1 (Out) P1-07/DB25-04 6 IOPort StepGen 0 Step/Table1 (Out) P1-08/DB25-17 7 IOPort StepGen 3 Dir/Table2 (Out) P1-09/DB25-05 8 IOPort StepGen 0 Dir/Table2 (Out) P1-11/DB25-06 9 IOPort StepGen 1 Step/Table1 (Out) P1-13/DB25-07 10 IOPort StepGen 1 Dir/Table2 (Out) P1-15/DB25-08 11 IOPort StepGen 2 Step/Table1 (Out) P1-17/DB25-09 12 IOPort StepGen 2 Dir/Table2 (Out) P1-19/DB25-10 13 IOPort None P1-21/DB25-11 14 IOPort QCount 0 Quad-A (In) P1-23/DB25-12 15 IOPort QCount 0 Quad-B (In) P1-25/DB25-13 16 IOPort QCount 0 Quad-IDX (In)
- and P7 is left open for IO

One more pinout related question before I get myself lost in the HAL file -
Does this type of ribbon-cable provide the necessary DCI26-to-DB25 wiring?:
image missing https://www.welectron.com/media/image/product/12337/lg/mesa-electronics-db25m-idc26-cable-for-anything-i-o-extension-boards.jpg
I'm not familiar with the numbering convention for standard headers...
Last edit: 3 years 4 months ago by MrRekt. Reason: image tags

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

More
3 years 4 months ago #273953 by PCW
Yes, that cable is correct (as long as HDR pin1 --> DB25 pin1).

Note that you need to disable stepgen 4 to get access to the relays
on DB25 pins 2,3: num_stepgens=4 or num_stepgens=3 if you only need 3 axis.
The following user(s) said Thank You: MrRekt

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

Moderators: PCW, jmelson
Time to create page: 1.494 seconds
Powered by Kunena Forum