grblHAL-teensy-4.x
grblHAL-teensy-4.x copied to clipboard
Aux Relay Outputs?
Does anyone know if there is any standard mapping for the use of the Aux 0, 1, & 2 relay outputs in GRBL on the breakout board?
http://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m62-m65 I use theese to control one of the aux pins. Had to modify the postprocessor for fusion 360 so that it triggers it. I use it to turn on/off the vacuum independently of the spindle.
For anyone finding this, I found based on the above:
M64 P0 = Aux 0 M65 P0 =Aux 0 off
M64 P1 = Aux 1 M65 P1 =Aux 1 off
M64 P2 = Aux 2 M65 P2 =Aux 2 off
I'm guessing M62PX and M63 PX Spindle On/Off and Vac On/Off, but I didn't get +5V out of them, though I haven't spent much time with the board yet.
Spindle (and Vac) are controlled by M3 (on, forward), M4 (on, reverse) and M5 (off).
FWIW, M7 turns Mist on, M8 turns Flood on and M9 turns them both off.
The LinuxCNC GCode manual describes M62-M65 behavior. Relevant section. [Edit: I saw that raenji-sk already posted this.]
Thanks for the response! I got my board this weekend, and I did notice those turned on, but wasn't sure if you could separate them to use the M62's or not. Looking forward to more testing with the board!
For anyone finding this, I found based on the above:
M64 P0 = Aux 0 M65 P0 =Aux 0 off
M64 P1 = Aux 1 M65 P1 =Aux 1 off
M64 P2 = Aux 2 M65 P2 =Aux 2 off
I'm guessing M62PX and M63 PX Spindle On/Off and Vac On/Off, but I didn't get +5V out of them, though I haven't spent much time with the board yet.
Hello everyone, I tried M64 and M65, it doesn't look like it's doing anything. I'm using a custom grblHAL firmware, is there some config I need to define to enable it?
Thanks,
Where are you testing the voltage? At the screw terminals or the pin headers?
The pin headers should show +5V when turned on.
The screw terminals are open collector outputs so will not show a voltage. These essentially act like a switch. This describes it in more detail. By the way, you need to jumper the relay voltage selection header, as well.
For more info on using the open collector screw terminals, check here.
I was testing them on the pin headers. And it turns out that I didn't have the correct board selected. Thanks anyways!