Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,

More
06 Apr 2023 15:53 #268439 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
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_epilog
---



 
Attachments:

Please Log in or Create an account to join the conversation.

More
07 Apr 2023 00:47 #268472 by cmorley
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?

Please Log in or Create an account to join the conversation.

More
24 Apr 2023 12:05 #269756 by Kasper-001
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 ? 

Please Log in or Create an account to join the conversation.

More
24 Apr 2023 20:45 - 24 Apr 2023 20:50 #269780 by tincho80
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!
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.

More
25 Apr 2023 10:49 #269840 by cmorley
A pause while loading usually occurs when linuxcnc has a path problem with remap.
Under the PYTHON heading those path settings must be right.

Please Log in or Create an account to join the conversation.

More
25 Apr 2023 10:52 #269841 by cmorley
How we need to see your config files please

Please Log in or Create an account to join the conversation.

More
26 Apr 2023 17:25 #269987 by Kasper-001
Attachments:

Please Log in or Create an account to join the conversation.

More
27 Apr 2023 22:19 #270086 by tincho80
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!
The following user(s) said Thank You: cmorley

Please Log in or Create an account to join the conversation.

More
29 Apr 2023 19:17 #270224 by Kasper-001
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

Please Log in or Create an account to join the conversation.

More
30 Apr 2023 13:29 - 21 May 2023 12:09 #270307 by tincho80
hm. I am not a pro.
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
look, what is written in your "postgui_call_list.hal"-file. Mine looks like this and it works:
# These files are loaded post GUI, in the order they appear
source custom_postgui.hal
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]# 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]
[/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.

Time to create page: 1.350 seconds
Powered by Kunena Forum