probe function number for keyboard

If you have a question about the software please ask it here.

probe function number for keyboard

Postby motogeek » Thu Aug 17, 2017 11:17 pm

I am setting up hotkeys on a keyboard, for example the up arrow will move x+, the down arrow will move x-, etc, etc. So far so good. I would like to use the probe button that is on the screen that runs the macro 31 (I think). When I click it on the screen, it all works well, z goes down, hits the block, z raises up and sets the z dro, works great, but I can't seem to find that function to assign it to a keyboard hotkey? Can someone tell me what the function number is, or how I can go about making the probing work using a hot key?
motogeek
 
Posts: 12
Joined: Tue Jun 27, 2017 12:07 am

Re: probe function number for keyboard

Postby cncdrive » Thu Aug 17, 2017 11:25 pm

That button calls the M31 macro.
So you could create a macro which calls the M31.
The macros numbered 20000 to 21999 calls the same number of macros directly.
So, you could create for example an M20000.txt macro in the profile/macros/... folder.
Then add the following code to the macro:

exec.Code("M31");

Now you can assing the function 20000 to a hotkey in the hotkeys menu to trigger the function via a hotkey.
And you can assing an input trigger in the I/O triggers - Input triggers menu in case you want to add an external pushbutton to trigger the function.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: probe function number for keyboard

Postby motogeek » Fri Aug 18, 2017 12:31 am

Thank you for that info. I will try this in the A.M.

Can you explain to me what you mean by "The macros numbered 20000 to 21999 calls the same number of macros directly."?

If I create a macro numbered anywhere from 20000.txt to 21999.txt and place it into the profile/macros folder, it will show up in the hotkeys function menu?

Thanks again!!!! I have to say, this is my first UCCNC setup and I LOVE IT!!!! I have already talked a friend into purchasing it and once I get a really good handle on it, I have 6 more routers and 2 very large hotwire machines that are ALL going to UCCNC! I wish I knew about this earlier, but now I know and am very pleased!!!
motogeek
 
Posts: 12
Joined: Tue Jun 27, 2017 12:07 am

Re: probe function number for keyboard

Postby cncdrive » Fri Aug 18, 2017 12:51 am

In the UCCNC every function has a button code, for example button code 128. is the Cycle Start function.
We dedicated the button codes range 20000 to 21999 to macro call codes, so when you call any of these codes they will execute the same number macro.
The purpose of this range of codes is simply customisability.
You can create a button with the screen editor and give it a buttonnumber parameter in this range and then when you will press that button will call your macro, so you can have custom function buttons.
The same way you can assign the button codes to hotkeys or input triggers, so you can execute the macros with a keyboard keypress or with an input pin triggering.

The codes do not show up in the hotkeys popup list window, but you can simply type in the number into the DRO instead of selecting from the list.

Good to hear you like the UCCNC, I'm wishing you good luck with your first UCCNC machine!
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: probe function number for keyboard

Postby ger21 » Fri Aug 18, 2017 12:55 am

If I create a macro numbered anywhere from 20000.txt to 21999.txt and place it into the profile/macros folder, it will show up in the hotkeys function menu?


No, but you just type the macro number into the Hotkey Function DRO.

So, if your macro is 20100, you just type 20100 in the Function box, and assign the hotkey. When you press the hotkey, it will run macro 20100,
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: probe function number for keyboard

Postby motogeek » Fri Aug 18, 2017 1:09 am

Awesome! Can't wait to try this in the morning.

Thanks for AMAZING customer support! Thanks to Gerry also!
motogeek
 
Posts: 12
Joined: Tue Jun 27, 2017 12:07 am

Re: probe function number for keyboard

Postby dezsoe » Fri Aug 18, 2017 7:11 am

You can check the file Documentation\Buttons_by_number.htm and find button number 196: "Commands a tool length measurement. (Code executed in Macro M31)". Without creating the new macro, you can type 196 for function on hotkeys screen and it will start the measuring.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 26 guests