New button added. Now what?

If you created a new screenset and want to share it with others then please post it here. You can talk about screens here.

New button added. Now what?

Postby PillyWilly » Sat Mar 17, 2018 10:57 am

Hi All

Okay, I figured out how to add a new button to my "RUN" screen.
How do I configure this new button to run my custon M code?

Regards
Jan
PillyWilly
 
Posts: 13
Joined: Wed Oct 25, 2017 6:29 pm

Re: New button added. Now what?

Postby ger21 » Sat Mar 17, 2018 11:15 am

Make the button number the same as the macro number.
It should be between 20000 and 20999.
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 953
Joined: Sat Sep 03, 2016 2:17 am

Re: New button added. Now what?

Postby PillyWilly » Sat Mar 17, 2018 2:17 pm

ger21 wrote:Make the button number the same as the macro number.
It should be between 20000 and 20999.


Thanks, helpfull info.

Now I get a File:/Profiles/Macro_Default\M20000.txt Could not read!

All this M20000.txt contains is:
exec.Setoutpin(1,1);

for triggering Pin 1 on Port 1 on my UB1

Regards
PillyWilly
 
Posts: 13
Joined: Wed Oct 25, 2017 6:29 pm

Re: New button added. Now what?

Postby dezsoe » Sat Mar 17, 2018 2:21 pm

Did you save M20000.txt in the folder /Profiles/Macro_Default? UCCNC looks for it there.
dezsoe
 
Posts: 414
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: New button added. Now what?

Postby PillyWilly » Sat Mar 17, 2018 2:23 pm

dezsoe wrote:Did you save M20000.txt in the folder /Profiles/Macro_Default? UCCNC looks for it there.


Yes, it is there.
PillyWilly
 
Posts: 13
Joined: Wed Oct 25, 2017 6:29 pm

Re: New button added. Now what?

Postby dezsoe » Sat Mar 17, 2018 2:49 pm

Interesting... If you type M20000 in MDI, does it run?
dezsoe
 
Posts: 414
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: New button added. Now what?

Postby ger21 » Sat Mar 17, 2018 2:54 pm

Are you using the default profile, or a different one?
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 953
Joined: Sat Sep 03, 2016 2:17 am

Re: New button added. Now what?

Postby PillyWilly » Sat Mar 17, 2018 2:58 pm

PillyWilly wrote:
dezsoe wrote:Did you save M20000.txt in the folder /Profiles/Macro_Default? UCCNC looks for it there.


Yes, it is there.


No, sorry, the file was placed in the Contents folder.

All fine now
PillyWilly
 
Posts: 13
Joined: Wed Oct 25, 2017 6:29 pm

Re: New button added. Now what?

Postby dezsoe » Sat Mar 17, 2018 3:04 pm

OK! :)
dezsoe
 
Posts: 414
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: New button added. Now what?

Postby Dan911 » Sat Mar 17, 2018 4:58 pm

I written a plugin that you can use to turn pin on/off in any port with E-stop enabled. Use button, mdi or hot-key. Need the newest UCCNC version.

PortPins.zip
(4.96 KiB) Downloaded 21 times
Dan911
 
Posts: 302
Joined: Mon Oct 31, 2016 1:22 am
Location: USA


Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 1 guest

cron