Issues Remaping M6

More
30 Jun 2022 18:52 #246293 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Issues Remaping M6
I bet it is because it is not ran as a remap.

I will do some more testing making a simpler remap.py file and let you know what I find out.

Thanks for the feedback. It will probably be next week before I get much more done on this. Other priorities and vacation.
 

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

More
30 Jun 2022 22:40 #246325 by cmorley
Replied by cmorley on topic Issues Remaping M6
have you added:
LOG_LEVEL = 1000
to the INI under [PYTHON]?

Then run from a terminal.
You may get some more info.
If it takes linuxcnc longer to load, then I would guess it's not finding the subroutines.

This looks suspicious:
SUBROUTINE_PATH = Subroutines:../../nc_files/examples/probe/basic_probe/macros/

is the nc_files folder really two levels down from your config folder? Is the examples link in the nc_files folder?

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

More
08 Jul 2022 20:19 #246907 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Issues Remaping M6
Just getting back to this a week later. . .

Chris, the path is correct. It is two levels down.

linuxcnc/nc-files
linuxcnc/configs/Holloway_Sprayball_Machine

I added the LOG_LEVEL = 1000 to the python section of the .ini file. Where is this log level impacting the logging. All remains the same in the terminal window.

I am going to start with a very basic remap and see if I can make it work.

I will report back soon. I hope. Phone calls. . .
 

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

More
12 Jul 2022 18:59 - 12 Jul 2022 19:06 #247172 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Issues Remaping M6
So I stripped the remap code down to just calling the stdglue change_prolog and change_epilog.

Still having the same issue. GUI is unresponsive to LinuxCNC.

I get this message
halui: emcCommandSend: no echo from Task after 5.000 seconds

If I remove everything from the remap code it works fine. The Gui works with this code.
def M6_Remap_sbm(self, **words):
    print("M6_Remap_sbm python code running.")
    # --------------------------------------------------
    # if in preview mode exit without doing anything and all ok
    # ----------------------------------------------------------
    if self.task == 0:
        return INTERP_OK
    else:
        return INTERP_OK

Ok, so I uncommented the stdglue functions and now it works with this.
def M6_Remap_sbm(self, **words):
    print("M6_Remap_sbm python code running.")
    # --------------------------------------------------
    # if in preview mode exit without doing anything and all ok
    # ----------------------------------------------------------
    if self.task == 0:
        return INTERP_OK
    else:
        change_prolog(self, **words)

        change_epilog(self, **words)
        return INTERP_OK
and it works fine.

I will keep testing. Maybe I fixed the issue unintentionally. :)
Last edit: 12 Jul 2022 19:06 by LearningLinuxCNC. Reason: formatting of code blocks.

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

More
12 Jul 2022 19:39 #247176 by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Issues Remaping M6
All seems to be good now. I am adding my remap code back in piece by piece and things are looking good.

Not sure what the culprit line was but something in the remap code was causing a ruckus.

 

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

Time to create page: 0.065 seconds
Powered by Kunena Forum