Page 1 of 1

How to Assign a Hotkey to Run a G-code Macro

PostPosted: Fri Sep 20, 2024 3:30 pm
by taawad
Hi everyone,

I’m trying to set up a hot key in UCCNC so that pressing the letter “G” runs a macro to execute a G-code that makes a square. Here’s what I’ve done so far

Created a text file named M21000 with the G-code
Placed the file in UCCNC > Profiles > Macros_Default. However when I load the software, I get a pop to select the motion controller device. If I delete the text, the software loads normally.

My Questions are:
Where should I place the M21000 text file so that UCCNC recognizes it and runs the macro when I press “G”?
How can I set the function to 21000 associated with the “G” hotkey, as it doesn’t show 21000 in the function code window?
Where is the DRO & Screen editor located in UCCNC?

Re: How to Assign a Hotkey to Run a G-code Macro

PostPosted: Sat Sep 21, 2024 1:13 pm
by Battwell
read about the codelist function in macro programmer manual. (how to run a list of code)

create a correct macro using this and save as m2100.

dro and screen editor is in settings. edit screen button.

Re: How to Assign a Hotkey to Run a G-code Macro

PostPosted: Thu Apr 24, 2025 12:34 pm
by jsobell
I'm trying something similar, but this answer is missing the OP's question.
To bind a hotkey to a macro it appears you create the new macro with the name nnnnn.txt, where n < 21000, then type that number as the Function number in the key binding.