Category: Basic Configuration
Hi all. I am trying to figure out the last step of configuring my machine. For background, I am using a Raspberry Pi 4b with the current LinuxCNC image from the downloads section. The RPi is connected to a Byte2Bot parallel hat which is in turn connected to a parallel port breakout board. I have managed to figure out all of the step, direction, and limit switch stuff and now have a machine that moves, homes, etc.
The final thing I want to do is define an input to LinuxCNC to stop motion if one of my closed loop stepper motors throws a fault. Essentially like hitting the E-stop. The stepper drivers each have a fault output pin and all of these fault outputs from the drives are wired to parallel port pin 10 of the BOB. This should be GPIO 25 (GPIO connector pin 22). For everything else I have done I have used templates and just been able to change pin numbers. I believe the hal entries would look something like this:
net driver-fault <= hal_gpio.GPIO25-in
net driver-fault => iocontrol.0.emc-enable-in
I believe this would result in a stepper driver fault essentially tripping the emergency stop. I don't have a way to test this right at the moment and was wondering if someone could take a look and see if my thinking is correct?
Thanks,
John B