- Posts: 29
- Thank you received: 0
Please Log in or Create an account to join the conversation.
terans1085 wrote: So what I have done as an interim (possibly permanent) solution is, nest functions rather than remaps.
def m6(self):
if m6func(self) == 1: return INTERP_OK
def m6func(self):
**all m6 code, returning a 1 rather than an INTERP_OK**
Calling m6func(self) directly from the G81.5 remap went well so far. Also I have been reading some of Bevins' threads about his remap. I have not been able to grasp the concept of "yield INTERP_EXECUTE_FINISH", did not notice any difference so far.
Would it be rude if I ask you to have a look at your actual M6 remap python code? as I could not find on the posts.
Thanks a lot for your time!!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
and track it.terans1085 wrote: I have been going through your code, and noticed you use yield INTERP_EXECUTE_FINISH inside function queuebuster(), but never make any call to that. And when I did call, didn't work in my case.
**Might be moving on to something different here, dunno if I should open a new thread....**
I have finally managed to get my remapped M6 somewhat working, BUT, when a gcode file with multiple toolchanges is run, readahead is setting global variables and parameters (from my epilog) way before the next toolchange happens. So if the program is stopped at any point, the machine thinks that the "next" tool is loaded.
Using yield INTERP_EXECUTE_FINISH directly in my remapped m6() produced erratic results, like having linuxcnc open axis.ngc (default). one.
Any ideas about a workaround??
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.