Creating Subroutines for ngcgui

More
06 Jun 2011 10:58 - 06 Jun 2011 10:59 #10338 by BigJohnT
BigJohnT created the topic: Creating Subroutines for ngcgui
To create a subroutine for ngcgui name the file the same as the subroutine is named. Format the sub as shown in this example. The subroutine must be contained within the sub/endsub except for the comment on the first line.

(info: simp -- simple subroutine example)
o<simp> sub
#<ra> = #1 (=.6 Radius A) ;Example parm with comment
#<radius_b> = #2 (=0.4) ;Example parm with no comment
#<endx> = #3 (End X) ;Example with no preset
G0x0y0z1
G3 i#<ra> F10
G3 i-#<radius_b> F100
G0 X#<endx>
o<simp> endsub

Complete usage instructions from ngcgui.tcl are in the attached file.

John

File Attachment:

File Name: ngcgui.txt
File Size:19 KB
Attachments:
Last Edit: 06 Jun 2011 10:59 by BigJohnT.
Moderators: Rick G
Time to create page: 0.054 seconds
Powered by Kunena Forum