grblHAL-teensy-4.x icon indicating copy to clipboard operation
grblHAL-teensy-4.x copied to clipboard

Aux Relay Outputs?

Open mlewus opened this issue 3 years ago • 7 comments

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?

mlewus avatar May 21 '21 19:05 mlewus

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.

raenji-sk avatar Jun 07 '21 15:06 raenji-sk

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.

ericspooner avatar Jul 12 '22 00:07 ericspooner

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.]

phil-barrett avatar Jul 12 '22 01:07 phil-barrett

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!

ericspooner avatar Jul 12 '22 19:07 ericspooner

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,

cuishuang413 avatar Jan 19 '24 23:01 cuishuang413

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.

phil-barrett avatar Jan 20 '24 01:01 phil-barrett

I was testing them on the pin headers. And it turns out that I didn't have the correct board selected. Thanks anyways!

cuishuang413 avatar Jan 20 '24 01:01 cuishuang413