- Posts: 13
- Thank you received: 0
PCW wrote:
russell wrote: Hi,
I'm in the process of moving my lathe over from MachineKit on a BBB to LinuxCNC on a RPI 4 with a Mesa 7c80, I've had to use master to get the INMUX support for the inputs but I'm now stuck setting up the spindle enables and direction outputs. I've got the motor drivers direction and enable inputs connected up to the Spindle Enable and Spindle Direction terminals on TB5 but I can't see anyway of triggering them from HAL - am I missing something?
Regards
Russlel
Yeah missing a better manual...
The spindle analog enable is part of the PWM hardware so enabled when
the PWMGen is enabled
The Optocoupler ENA (or forward) output is controlled by GPIO 20
The Optocoupler DIR (or reverse) output is controlled by GPIO 21
These are both active low so you would want to set both the is_output parameter
on both GPIO bits and set invert_output parameter on the enable pin
(and possibly on the dir pin depending on how the drive direction works)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.