NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me
Use subroutines with caution

TOPIC: Subroutine GUI

Subroutine GUI 18 Jul 2010 15:27 #3408

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
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:

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

Dewey demoing ngcgui



John
Attachments:
Last Edit: 31 Mär 2011 04:46 by BigJohnT. Reason: update post
The administrator has disabled public write access.

Re:Subroutine GUI 18 Jul 2010 15:32 #3409

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
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 This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re:Subroutine GUI 19 Jul 2010 03:26 #3411

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1074
  • Thank you received: 16
  • Karma: 80
Talk about a cool time saver, Thanks for sharing!

Rick G
The administrator has disabled public write access.

Re:Subroutine GUI 12 Aug 2010 15:18 #3724

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
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
The administrator has disabled public write access.

Re:Subroutine GUI 23 Aug 2010 16:09 #3857

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
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
The administrator has disabled public write access.

Re:Subroutine GUI 04 Sep 2010 04:04 #3974

  • piasdom
  • piasdom's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 537
  • Karma: 2
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
The administrator has disabled public write access.

Re:Subroutine GUI 04 Sep 2010 04:30 #3975

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
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
The administrator has disabled public write access.

Re:Subroutine GUI 04 Sep 2010 05:22 #3976

  • piasdom
  • piasdom's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 537
  • Karma: 2
well, i got it to load and i entered all the parameters,
i get the error "no application named "axis"".
gone alooking again
The administrator has disabled public write access.

Re:Subroutine GUI 04 Sep 2010 14:06 #3977

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
I assume you have to have Axis loaded before you run the g code GUI...

John
The administrator has disabled public write access.

Re:Subroutine GUI 04 Sep 2010 15:40 #3978

  • piasdom
  • piasdom's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 537
  • Karma: 2
Thanks, i tried it both ways(emc started and not), got error on
both. at home now and can't test anything.
The administrator has disabled public write access.
Moderators: Rick G
Time to create page: 1.252 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.