Change jog modes from plugin

This is where you talk about Plugins. How they are made and how they work, show examples.

Change jog modes from plugin

Postby kevlar129bp » Tue Nov 23, 2021 12:23 am

Hello all,

I'm finally putting Mach in my taillights and couldn't be more excited. I'm in the process of porting my macros and plugins to UC and can't quite figure out what I'm doing wrong.
My goal is to change the jog modes from "continuous", "step", "MPG cont.", "MPG single" and "MPG multi". Could one of you fine folks provide me a code snippet for accomplishing this?
I assume it's something like "UC.Switchbutton(False, True, btnNumb)", but this doesn't change inside the jog flyout? Maybe it shouldn't? I'm not testing on my live machine, as I need
to get the macro/plugin porting done first.

Thanks all,
Chris
kevlar129bp
 
Posts: 1
Joined: Tue Nov 23, 2021 12:11 am

Re: Change jog modes from plugin

Postby eabrust » Wed Nov 24, 2021 1:15 am

User Robertspark has an excellent macro/plugin 'manual, you find it in his signature line. To save you the searching, the link to his manual is: https://drive.google.com/drive/folders/0B9eqGqWQVBbWNVhsZkdfQWRaYTg?usp=sharing

That gives a good rundown of available functions which are available either through macro or .net Plugininterface. Open it and go to the button list table.

For what you are asking about, most can be accomplished by executing button presses for existing defined button numbers, look at button numbers 147-166, 220-241, 556

If you're writing a macro, you'd use : exec.Callbutton( 'button number here' )

If you're writing a plugin, you'd use UC.Callbutton( 'button number here' )


regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA


Return to Plugins

Who is online

Users browsing this forum: No registered users and 3 guests