Subroutine GUI

More
18 Jul 2010 22:27 - 31 Mar 2011 11:46 #3408 by BigJohnT
Subroutine GUI was created by BigJohnT
Dewey Garrett was kind enough to share a tcl program he wrote to handle subroutines. What it does is give you a GUI to enter in the values for the variables. Your subroutine file needs to follow the format of the examples.

You can find instructions for downloading and using it here:

www.panix.com/~dgarrett/ngcgui/README

Dewey demoing ngcgui



John
Attachments:
Last edit: 31 Mar 2011 11:46 by BigJohnT. Reason: update post
The following user(s) said Thank You: Diederik

Please Log in or Create an account to join the conversation.

More
18 Jul 2010 22:32 #3409 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
This is my OD turning subroutine that I use with Dewey's tcl program.

The only thing not worked out is loading the finishing tool but other than that I use it all the time to turn one off parts down to size.

John

File Attachment:

File Name: od.txt
File Size:1 KB
Attachments:
The following user(s) said Thank You: Diederik

Please Log in or Create an account to join the conversation.

More
19 Jul 2010 10:26 #3411 by Rick G
Replied by Rick G on topic Re:Subroutine GUI
Talk about a cool time saver, Thanks for sharing!

Rick G

Please Log in or Create an account to join the conversation.

More
12 Aug 2010 22:18 #3724 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
I forgot to tell the secret launcher code I use LOL.

I create a desktop launcher and use the following to launch each one. Of course the name would change for each file.

/home/john/emc2/ngcgui/ngcgui.tcl --cwidth 25 --vwidth 0 -S /home/john/emc2/nc_files/id.ngc -a

This works with the latest version from Dewey and produces the output shown above.

John

Please Log in or Create an account to join the conversation.

More
23 Aug 2010 23:09 #3857 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Here is some more info from Dewey on the gui.

Hi,

I look at the forum now and then (a great resource) and notice
in your recent post:

> I create a desktop launcher and use the following to launch each one. Of course
> the name would change for each file.

> /home/john/emc2/ngcgui/ngcgui.tcl --cwidth 25 --vwidth 0 -S /home/john/emc2/nc_files/id.ngc -a


I just wanted to mention that the -a option should actually be followed with
a file name like:
-a tst1.ngc
or -a tst2 (this will become tst2.ngc)

When -a is not followed by a filename, it sort of accidentally
works but only if it is the last item on the command. (it uses
the name auto.ngc). A problem could occur if you tried to do
something like have another option following -a and the error
handling isn't so good for that (I'll try to improve it).

The help text is kind of standard format but it may be confusing since the
-a works without the autosend_file specifier if it is the last item.

$ ngcgui.tcl --help
Usage:
ngcgui.tcl --help
ngcgui.tcl [Options] -D nc_files_directory_name
ngcgui.tcl [Options] -i emc_inifile_name
ngcgui.tcl [Options]

Options:
[-S subroutine_file]
[-p preamble_file]
[-P postamble_file]
[-o output_file]
[-font [big|small|fontspec]] (default: "Helvetica -16 bold")
[-horiz|-vert] (default: -vert)
[-a autosend_file] (autosend to axis)
(width of comment field)
(width of varname field)


Another small note -- Starting with a launcher is a good idea but if
you have problems, you probably don't get to see some error messages.
So if you have a startup problem, testing from the command line
may be useful.

Also, when starting from a launcher some of the helpful buttons like
Ctrl-h Show key bindings
have nowhere to write stuff to help -- I should work on this too
so a widget pops up. Since I use command line for most things,
I never thought of the consequences of using a launcher.

keep up the great work!
dewey

--
Dewey Garrett

Please Log in or Create an account to join the conversation.

More
04 Sep 2010 11:04 #3974 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
this works on lathes only? i couldn't get it to work correctly anyway.
it opens, but a shorter version then your pic. great job though

Please Log in or Create an account to join the conversation.

More
04 Sep 2010 11:30 #3975 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
piasdom wrote:

this works on lathes only? i couldn't get it to work correctly anyway.
it opens, but a shorter version then your pic. great job though


No, it works with any EMC config. It just depends on what subroutine you load with it. Also the display changes with different subroutines to match the variables in the subroutine.

John

Please Log in or Create an account to join the conversation.

More
04 Sep 2010 12:22 #3976 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
well, i got it to load and i entered all the parameters,
i get the error "no application named "axis"".
gone alooking again

Please Log in or Create an account to join the conversation.

More
04 Sep 2010 21:06 #3977 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
I assume you have to have Axis loaded before you run the g code GUI...

John

Please Log in or Create an account to join the conversation.

More
04 Sep 2010 22:40 #3978 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
Thanks, i tried it both ways(emc started and not), got error on
both. at home now and can't test anything.

Please Log in or Create an account to join the conversation.

Time to create page: 0.180 seconds
Powered by Kunena Forum