Creating Subroutines for ngcgui
- BigJohnT
- 
				 Topic Author Topic Author
- Offline
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 3990
- Thank you received: 994
			
	
						06 Jun 2011 10:58		 -  06 Jun 2011 10:59		#10338
		by BigJohnT
	
	
		
			
	
	
			 		
													
	
				Creating Subroutines for ngcgui was created 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
	
			
					(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
		Last edit: 06 Jun 2011 10:59  by BigJohnT.			
			Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 333
- Thank you received: 26
			
	
						17 Aug 2019 15:48				#142394
		by Dinuka_Shehan
	
	
		
			
	
			
			 		
													
	
				Replied by Dinuka_Shehan on topic Creating Subroutines for ngcgui			
			
				What is subroutine???			
					Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 149
- Thank you received: 5
			
	
						08 Mar 2021 10:35				#201408
		by HalaszAttila
	
	
		
			
	
			
			 		
													
	
				Replied by HalaszAttila on topic Creating Subroutines for ngcgui			
			
				Hello,
can i put dropdown menu, or radiobutton in ngcgui? Or just number input boxes?
Thanks.
					can i put dropdown menu, or radiobutton in ngcgui? Or just number input boxes?
Thanks.
Please Log in or Create an account to join the conversation.
- BigJohnT
- 
				 Topic Author Topic Author
- Offline
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 3990
- Thank you received: 994
			
	
						19 Mar 2021 22:28		 -  19 Mar 2021 22:29		#202903
		by BigJohnT
	
	
		
			
	
	
			 		
													
	
				Replied by BigJohnT on topic Creating Subroutines for ngcgui			
			
				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
					www.qtpyvcp.com/
For example my mill GUI built with QtPyVCP has loads of conversational features.
jethornton.github.io/mill_touch_v6
Jt
		Last edit: 19 Mar 2021 22:29  by BigJohnT.			
	
		The following user(s) said Thank You: HalaszAttila 	
			Please Log in or Create an account to join the conversation.
- max68
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 1
- Thank you received: 0
			
	
						24 Apr 2025 18:04				#327005
		by max68
	
	
		
			
	
			
			 		
													
	
				Replied by max68 on topic Creating Subroutines for ngcgui			
			
				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 or Create an account to join the conversation.
- Aciera
- 
				  
- Offline
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 4554
- Thank you received: 2028
			
	
						25 Apr 2025 06:48				#327028
		by Aciera
	
	
		
			
	
			
			 		
													
	
				Replied by Aciera on topic Creating Subroutines for ngcgui			
			
				@max68
No double posting please.
					No double posting please.
Please Log in or Create an account to join the conversation.
		Time to create page: 0.135 seconds	
