- Posts: 27
- Thank you received: 0
Remap M6 breaks ngc file
4 years 6 months ago #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:
Code:
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
Code:
...
;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 to join the conversation.
4 years 6 months ago #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?
Please Log in to join the conversation.
4 years 6 months ago #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 to join the conversation.
4 years 6 months ago #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 to join the conversation.
4 years 5 months ago #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 to join the conversation.
Time to create page: 0.080 seconds
