- Configuring LinuxCNC
- Advanced Configuration
- Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,
Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,
- Kasper-001
- 
				 Topic Author Topic Author
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 81
- Thank you received: 5
			
	
						06 Apr 2023 15:53				#268439
		by Kasper-001
	
	
		
			
	
	
			
			 		
													
	
				Auto Tool Measurement setup,makes gmoccapy slow and difrent configation, was created by Kasper-001			
			
				hello
 
im trying to setup auto tool measurement
when i put this segment, into the ini.file under [RS274NGC]
it makes the gmoccapy really really slow, and it dos not work
i was following this guide linuxcnc.org/docs/html/gui/gmoccapy.html...uto-tool-measurement
----
# Enables the reading of INI and HAL values from gcode---
 			
					im trying to setup auto tool measurement
when i put this segment, into the ini.file under [RS274NGC]
it makes the gmoccapy really really slow, and it dos not work
i was following this guide linuxcnc.org/docs/html/gui/gmoccapy.html...uto-tool-measurement
----
# Enables the reading of INI and HAL values from gcode
FEATURES=12
# is the sub, with is called when a error during tool change happens, not needed on every machine configuration
ON_ABORT_COMMAND=O <on_abort> call
# The remap code
REMAP=M6  modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilogPlease Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						07 Apr 2023 00:47				#268472
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				Did you add the [PYTHON] section too?
Did you add the abort.ngc file?
Can you run linuxcnc from a terminal and post what it prints?
					Did you add the abort.ngc file?
Can you run linuxcnc from a terminal and post what it prints?
Please Log in or Create an account to join the conversation.
- Kasper-001
- 
				 Topic Author Topic Author
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 81
- Thank you received: 5
			
	
						24 Apr 2023 12:05				#269756
		by Kasper-001
	
	
		
			
	
			
			 		
													
	
				Replied by Kasper-001 on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				yes i just tried one more time, and the same happen, very slow loading,
if i attachs the whole config folder can you help me ?
					if i attachs the whole config folder can you help me ?
Please Log in or Create an account to join the conversation.
- tincho80
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 13
- Thank you received: 1
			
	
						24 Apr 2023 20:45		 -  24 Apr 2023 20:50		#269780
		by tincho80
	
	
		
			
	
	
			 		
													
	
				Replied by tincho80 on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				Hi,
unfortunately, I am facing the exact same problem!
I followed the manual precisely: linuxcnc.org/docs/stable/html/gui/gmocca...uto-tool-measurement
Only when I comment out the prolog and the epilog, the gmoccapy-gui starts normal. but of course then, the tool length measurement doesen't work...
So if someone could please help, I would be very happy, too! many THANKS in advance!
			
					unfortunately, I am facing the exact same problem!
I followed the manual precisely: linuxcnc.org/docs/stable/html/gui/gmocca...uto-tool-measurement
Only when I comment out the prolog and the epilog, the gmoccapy-gui starts normal. but of course then, the tool length measurement doesen't work...
So if someone could please help, I would be very happy, too! many THANKS in advance!
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
		Last edit: 24 Apr 2023 20:50  by tincho80.			
			Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						25 Apr 2023 10:49				#269840
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				A pause while loading usually occurs when linuxcnc has a path problem with remap.
Under the PYTHON heading those path settings must be right.
					Under the PYTHON heading those path settings must be right.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						25 Apr 2023 10:52				#269841
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				How we need to see your config files please			
					Please Log in or Create an account to join the conversation.
- Kasper-001
- 
				 Topic Author Topic Author
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 81
- Thank you received: 5
			
	
						26 Apr 2023 17:25				#269987
		by Kasper-001
	
	
		
			
	
	
			
			 		
													
	
				Replied by Kasper-001 on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				herre is the config folder			
					Please Log in or Create an account to join the conversation.
- tincho80
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 13
- Thank you received: 1
			
	
						27 Apr 2023 22:19				#270086
		by tincho80
	
	
		
			
	
	
			 		
													
	
				Replied by tincho80 on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				It's all working now for me! the only missing thing was the postgui.hal file which I had to create and write manually (to fill with the needed content) according to the instructions in the manual (above link "gmoccapy - tool length measurement")
sorry for bothering the forum!
					sorry for bothering the forum!
		The following user(s) said Thank You: cmorley 	
			Please Log in or Create an account to join the conversation.
- Kasper-001
- 
				 Topic Author Topic Author
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 81
- Thank you received: 5
			
	
						29 Apr 2023 19:17				#270224
		by Kasper-001
	
	
		
			
	
			
			 		
													
	
				Replied by Kasper-001 on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				now i got this, and i don´t know where to put that pin who is missing,
Debug file information:
custom_postgui.hal:11: Pin 'gmoccapy.toolchange-change' does not exist
					Debug file information:
custom_postgui.hal:11: Pin 'gmoccapy.toolchange-change' does not exist
Please Log in or Create an account to join the conversation.
- tincho80
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 13
- Thank you received: 1
			
	
						30 Apr 2023 13:29		 -  21 May 2023 12:09		#270307
		by tincho80
	
	
		
			
	
	
			 		
													
	
				Replied by tincho80 on topic Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,			
			
				hm. I am not a pro.
But it might depend on what you defined in the "HAL-section" in your machine.ini file:look, what is written in your "postgui_call_list.hal"-file. Mine looks like this and it works:what ever file you are loading at start up, it should contain the code below.
my postgui.hal is empty. but the custom_postgui.hal should look like the following:[/code]
[/code]
good luck! once it's working, it's a dream! It's worth the effort to fix it!
					But it might depend on what you defined in the "HAL-section" in your machine.ini file:
[HAL]
HALUI = halui
HALFILE = BridgeportCNC-1.hal
HALFILE = custom.hal
HALFILE = vc-p4s.hal
POSTGUI_HALFILE = postgui_call_list.hal
POSTGUI_HALFILE = vc-postgui.hal
SHUTDOWN = shutdown.hal# These files are loaded post GUI, in the order they appear
source custom_postgui.halmy postgui.hal is empty. but the custom_postgui.hal should look like the following:
[code][code]# The next lines are only needed if the pins had been connected before
unlinkp iocontrol.0.tool-change
unlinkp iocontrol.0.tool-changed
unlinkp iocontrol.0.tool-prep-number
unlinkp iocontrol.0.tool-prepared
# link to gmoccapy toolchange, so you get the advantage of tool description on change dialog
net tool-change gmoccapy.toolchange-change <= iocontrol.0.tool-change
net tool-changed gmoccapy.toolchange-changed <= iocontrol.0.tool-changed
net tool-prep-number gmoccapy.toolchange-number <= iocontrol.0.tool-prep-number
net tool-prep-loop iocontrol.0.tool-prepare <= iocontrol.0.tool-prepared[/code]
good luck! once it's working, it's a dream! It's worth the effort to fix it!
		Last edit: 21 May 2023 12:09  by tincho80.			
			Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,
		Time to create page: 0.084 seconds	
