grblHAL / RP2040

grblHAL driver for RP2040 (Pi Pico)
Other
103 stars 44 forks source link

ATC using Macros #75

Open fireup924 opened 9 months ago

fireup924 commented 9 months ago

I notice there's some code in the macros.c that has ATC code that uses macros to perform automatic tool changes. I want to activate this feature when there's an M6 command and it runs the tc.macro that is stored in the littleFS or SD card. Which flag do I have to set to turn this feature on?

terjeio commented 9 months ago

SDCARD_ENABLE NGC_EXPRESSIONS_ENABLE Using LittleFS is a little complicated for the time beeing, you will need a Pico W and enable WebUI or WiFi with FTP. Upload is then either via the WebUI maintenance page or FTP.

Uploads to the SD card is possible via ioSender if SDCARD_ENABLE is set to 2 (by using a slightly modified YModem protocol).

terjeio commented 9 months ago

More here.

fireup924 commented 9 months ago

Thank you for the info. I was able to get the code to compile under Arduino IDE and use the plug-in that allow for LittleFS to upload macro files that I create under /data folder. This made it pretty easy for me to update macro files. I didn't want to use SDcard at this time as my test board don't have that feature.