Remap M6 breaks ngc file
15 Apr 2022 21:04 #240343
by mic
Remap M6 breaks ngc file was created by mic
Hi,
i have added a Toollengthsensor to my machine and there are some strange problems with remapping M6.
I hope someone has some ideas how to fix it or at least methods for debugging the problem.
How it´s implemented:
Gmoccapy is used and the change.ngc from Gmoccapy is added to the subroutine path.
INI-File in the RS274NGC section:In addition i´ve modified the change.ngc and added two debugmessages.
What´s happening:
At the moment I have no idea what´s (not) happening and would be very happy if somone can bring some light into the darkness
Thanks a lot!
Mic
i have added a Toollengthsensor to my machine and there are some strange problems with remapping M6.
I hope someone has some ideas how to fix it or at least methods for debugging the problem.
How it´s implemented:
Gmoccapy is used and the change.ngc from Gmoccapy is added to the subroutine path.
INI-File in the RS274NGC section:
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
...
;debugmessage previous to original M6
(debut, Test1)
M6
;debugmessage after original M6
(debug, Test2)
...
What´s happening:
- The debugmessage "Test1" appears
- original M6 is executed
- The debugmessage "Test2" is not shown
At the moment I have no idea what´s (not) happening and would be very happy if somone can bring some light into the darkness
Thanks a lot!
Mic
Please Log in or Create an account to join the conversation.
19 Apr 2022 22:31 #240695
by andypugh
Replied by andypugh on topic Remap M6 breaks ngc file
Presumably "debut" is a typo?
Which makes me suspect that this isn't a copy / paste of the actual change.ngc?
That said, I would have expected execution to continue after the M6. Presumably if you comment that out you get the second debug message?
Which makes me suspect that this isn't a copy / paste of the actual change.ngc?
That said, I would have expected execution to continue after the M6. Presumably if you comment that out you get the second debug message?
The following user(s) said Thank You: mic
Please Log in or Create an account to join the conversation.
24 Apr 2022 17:50 #241093
by mic
Replied by mic on topic Remap M6 breaks ngc file
Yes, debut is a typo in the Forum but it´not possible to edit the post without throwing the formating away...
And you are right - it´s not copy-paste from the machine because i can not post from the machine.
The complete change.ngc is there (without the debug-Messages above):
github.com/LinuxCNC/linuxcnc/blob/master...py/macros/change.ngc
When M6 is commented out the second debug message appears.
That´s why I have no Idea what´s going wrong...
And you are right - it´s not copy-paste from the machine because i can not post from the machine.
The complete change.ngc is there (without the debug-Messages above):
github.com/LinuxCNC/linuxcnc/blob/master...py/macros/change.ngc
When M6 is commented out the second debug message appears.
That´s why I have no Idea what´s going wrong...
Please Log in or Create an account to join the conversation.
27 Apr 2022 21:41 #241407
by andypugh
Replied by andypugh on topic Remap M6 breaks ngc file
I am as puzzled as you. But, in case I we can spot something, what does the REMAP section of the INI look like. Do all the referenced files definitely exist?
Please Log in or Create an account to join the conversation.
09 May 2022 18:20 #242399
by mic
Replied by mic on topic Remap M6 breaks ngc file
Now i´ve figured out, why M6 Remap is broken....
At first a Tip for anyone else having similar issues:
Thank you andy for the support!
At first a Tip for anyone else having similar issues:
- check your ini-settings - especialy the rempa section
- check your HAL ( wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolChange )
Thank you andy for the support!
Please Log in or Create an account to join the conversation.
Time to create page: 0.145 seconds