Remap M6 breaks ngc file

More
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:
Code:
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
In addition i´ve modified the change.ngc and added two debugmessages.
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
This is happening also with other change.ngc files (like Versers Probescreen).
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.

More
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?

Please Log in to join the conversation.

More
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...

Please Log in to join the conversation.

More
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.

More
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:
  1. check your ini-settings - especialy the rempa section
  2. check your HAL ( wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolChange )
In my case someone...  commented out my postgui.hal which configured the HAL-connections...
Thank you andy for the support!

Please Log in to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum