bdurbrow / grbl-Mega

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/gnea/grbl/wiki
MIT License
35 stars 8 forks source link

mcodes to switch pins on and off #39

Open Tonybeta01 opened 2 years ago

Tonybeta01 commented 2 years ago

Hi, id like to be able to associate 2 mcode numbers to switch a pin high and low, to control relays/solenoids ect, is this possible? ive done it in mach3. Regards Tony

Ams-Laser commented 2 years ago

im too looking for this option

Tonybeta01 commented 2 years ago

Can I use M42 to change a pin condition? also can I read a pin?

Tonybeta01 commented 2 years ago

as per this: https://marlinfw.org/docs/gcode/M042.html

is there a quick and easy way to find out which pins are free?

Saur0o0n commented 2 years ago

This should be easy enough :)

Tonybeta01 commented 2 years ago

so M42 is not supported , thats a shame

Ams-Laser commented 2 years ago

Heelo, how hard would it be to pull this update ? https://github.com/fra589/grbl-Mega-5X/commit/ec0471874f7909a643b2fc30bb2e414011d926f4