Creating Subroutines for ngcgui

More
15 years 4 months ago #10338 by BigJohnT
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

Attachment ngcgui.txt not found

Please Log in to join the conversation.

More
7 years 2 months ago #142394 by Dinuka_Shehan
What is subroutine???

Please Log in to join the conversation.

More
5 years 7 months ago #201408 by HalaszAttila
Hello,

can i put dropdown menu, or radiobutton in ngcgui? Or just number input boxes?
Thanks.

Please Log in to join the conversation.

More
5 years 7 months ago #202903 by BigJohnT
ngcgui is great but is a bit limited, I still use it on my CHNC lathe, I use QtPyVCP now and don't have any limitations.

www.qtpyvcp.com/

For example my mill GUI built with QtPyVCP has loads of conversational features.
jethornton.github.io/mill_touch_v6

Jt

Please Log in to join the conversation.

More
1 year 6 months ago #327005 by max68
Guys, can anyone tell me why the id.ngc and od.ngc macros don't work (nothing happens and there are no errors). The other macros taper-od.ngc and g76diam.ngc and sphere work fine? What could it be?

Please Log in to join the conversation.

More
1 year 6 months ago #327028 by Aciera
@max68

No double posting please.

Please Log in to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum