Retaining current tool number after shutdown
- babinda01
- Offline
- Junior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 27
- Thank you received: 2
			
	
						06 Oct 2017 23:19				#100030
		by babinda01
	
	
		
			
	
			
			 		
													
	
				Retaining current tool number after shutdown was created by babinda01			
			
				Hi Guys
I am sure other people have encounted this problem before, but I cant find an answer. I want to be able to have the control startup with the last used tool in memory.
I have assigned variable #4999 = #5400, and then created a Remapped MCode that simply does a M71 Q#4999. This works perfectly for me except I cant get it to exercute automatically on startup.
I have added it to STARTUP_CODE under the [RS274NGC] Section. If I change the title as RS274NGC_STARTUP_CODE - Linuxcnc hangs on startup, if I leave it as STARTUP_CODE linuxcnc starts but it has no effect.
Can someone please tell me what I am doing wrong.
Best regards
Andrew
					I am sure other people have encounted this problem before, but I cant find an answer. I want to be able to have the control startup with the last used tool in memory.
I have assigned variable #4999 = #5400, and then created a Remapped MCode that simply does a M71 Q#4999. This works perfectly for me except I cant get it to exercute automatically on startup.
I have added it to STARTUP_CODE under the [RS274NGC] Section. If I change the title as RS274NGC_STARTUP_CODE - Linuxcnc hangs on startup, if I leave it as STARTUP_CODE linuxcnc starts but it has no effect.
Can someone please tell me what I am doing wrong.
Best regards
Andrew
Please Log in or Create an account to join the conversation.
- newbynobi
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 1928
- Thank you received: 393
			
	
						09 Oct 2017 08:13				#100115
		by newbynobi
	
	
		
			
	
			
			 		
													
	
				Replied by newbynobi on topic Retaining current tool number after shutdown			
			
				Durring start, the axis are not homed! You are only allowed to set a tool with mdi command with homed axis!
If you use gmoccapy 2 from master, just go to the settings page and enable reload tool on start up.
After that step the tool number will be stored in your pref file and will be set with M61Qtollnumber automatically after homing the machine.
Norbert
					If you use gmoccapy 2 from master, just go to the settings page and enable reload tool on start up.
After that step the tool number will be stored in your pref file and will be set with M61Qtollnumber automatically after homing the machine.
Norbert
Please Log in or Create an account to join the conversation.
- babinda01
- Offline
- Junior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 27
- Thank you received: 2
			
	
						10 Oct 2017 01:30				#100130
		by babinda01
	
	
		
			
	
			
			 		
													
	
				Replied by babinda01 on topic Retaining current tool number after shutdown			
			
				Hi Norbert
Thanks a lot for the info. I will upgrade to master and try that.
Andrew
					Thanks a lot for the info. I will upgrade to master and try that.
Andrew
Please Log in or Create an account to join the conversation.
		Moderators: newbynobi, HansU	
		Time to create page: 0.256 seconds	
