Enter Numbered Parameter during pouse
- tommy
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 105
- Thank you received: 2
			
	
						27 Apr 2017 12:32				#92195
		by tommy
	
	
		
			
	
			
			 		
													
	
				Enter Numbered Parameter during pouse was created by tommy			
			
				Is there a way to prompt operator to enter parameter #5410? The idea is to let operator enter tool diameter during (manual) tool change when machine waits operator to change tool.
Tool change is done by subroutine g-code.
					Tool change is done by subroutine g-code.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- 
				  
- Away
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 4686
- Thank you received: 1433
			
	
						27 Apr 2017 14:02				#92209
		by Todd Zuercher
	
	
		
			
	
			
			 		
													
	
				Replied by Todd Zuercher on topic Enter Numbered Parameter during pouse			
			
				The answer is it can be done.  How comfortable are you with programing your own little popup window?
There is no ready made way to do it.
Here is one way:
forum.linuxcnc.org/38-general-linuxcnc-q...-a-variable?start=10
In this example a custom Mcode (M131) opens a TCL pop up window where the user can input a value.
That value is given to the hal pin "motion.analog-in-00", then in your Gcode you can use M66 E0 L0 to set that value to #5399, you can then use that in your g-code to set the value to #5410.
You could also do it with python, possibly reading/writing the parameter value directly. (I've never done it myself and the above example is the first thing I found in a search. tested and works.)
					There is no ready made way to do it.
Here is one way:
forum.linuxcnc.org/38-general-linuxcnc-q...-a-variable?start=10
In this example a custom Mcode (M131) opens a TCL pop up window where the user can input a value.
That value is given to the hal pin "motion.analog-in-00", then in your Gcode you can use M66 E0 L0 to set that value to #5399, you can then use that in your g-code to set the value to #5410.
You could also do it with python, possibly reading/writing the parameter value directly. (I've never done it myself and the above example is the first thing I found in a search. tested and works.)
Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						28 Apr 2017 12:36				#92259
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic Enter Numbered Parameter during pouse			
			
				I have a strong suspicion that #5410 is read-only, or at least that setting it in G-cod won't affect the system's opinion of tool diameter.
In G-code you would use G10 L1, G10 L10 or G10 L11 to set the tool diameter.
In python code you can do it through the tool_offset command:
linuxcnc.org/docs/2.7/html/config/python-interface.html
					In G-code you would use G10 L1, G10 L10 or G10 L11 to set the tool diameter.
In python code you can do it through the tool_offset command:
linuxcnc.org/docs/2.7/html/config/python-interface.html
Please Log in or Create an account to join the conversation.
		Time to create page: 0.079 seconds	
