- Posts: 208
- Thank you received: 0
Issues Remaping M6
- LearningLinuxCNC
- Topic Author
- Offline
- Elite Member
-
Less
More
4 years 4 months ago #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.
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 to join the conversation.
4 years 4 months ago #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?
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 to join the conversation.
- LearningLinuxCNC
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 208
- Thank you received: 0
4 years 3 months ago #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. . .
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 to join the conversation.
- LearningLinuxCNC
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 208
- Thank you received: 0
4 years 3 months ago #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.
Ok, so I uncommented the stdglue functions and now it works with this.
and it works fine.
I will keep testing. Maybe I fixed the issue unintentionally.
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.
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.
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:
change_prolog(self, **words)
change_epilog(self, **words)
return INTERP_OK
I will keep testing. Maybe I fixed the issue unintentionally.
Please Log in to join the conversation.
- LearningLinuxCNC
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 208
- Thank you received: 0
4 years 3 months ago #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.
Not sure what the culprit line was but something in the remap code was causing a ruckus.
Please Log in to join the conversation.
4 years 2 months ago #250238
by CTB_le123
Replied by CTB_le123 on topic Issues Remaping M6
Hello, could you tell the github of bevins (
forum.linuxcnc.org/10-advanced-configura...sons-learned?start=0
) . I don't search it.
Thank you very much.
Thank you very much.
Please Log in to join the conversation.
- LearningLinuxCNC
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 208
- Thank you received: 0
4 years 2 months ago #250260
by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Issues Remaping M6
Glad you solved it. I can't seem to find it now. Ha!
Please Log in to join the conversation.
4 years 2 months ago #250298
by CTB_le123
Replied by CTB_le123 on topic Issues Remaping M6
Aha! Here is
github.com/bobbevins/Linuxcnc_python_remap_M6
.
Please Log in to join the conversation.
- LearningLinuxCNC
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 208
- Thank you received: 0
4 years 2 months ago #250783
by LearningLinuxCNC
Replied by LearningLinuxCNC on topic Issues Remaping M6
I have all but given up on remapping M6 with pure python. I have instead modified the stdglue change_prolog and made NGC remaps. This seems to provide what I need at the moment.
Please Log in to join the conversation.
Time to create page: 0.324 seconds
