Remapping M6 with python - how to call G-Codes?

More
20 Jan 2021 13:05 #195987 by freisei
Hi!

i try to change the remapping M6 from ngc to python.
python script is already called - now i try to go to toolchange-position. I think this can be done with command.mdi(...)
But the interpreter is in auto-mode - of course, program is running.

How for exeample can i go to tool-change-position now, without aborting program execution?

Greets from bavaria!
Freisei

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

More
21 Jan 2021 13:23 #196085 by FranseFrikandel
I don't have the answer, however this post might be helpful for you:

forum.linuxcnc.org/10-advanced-configura...thon-lessons-learned

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

More
21 Jan 2021 15:14 - 21 Jan 2021 15:59 #196095 by bevins

H

i try to change the remapping M6 from ngc to python.
python script is already called - now i try to go to toolchangeposition. I think this can be done with command.mdi(...)
But the interpreter is in auto-mode - of course, program is running.

How for exeample can i go to tool-change-position now, without aborting program execution?

Greets from bavaria!
Freisei


You want to goto tollchange position during a remap?

You can execute gcode directly in python while in a remap.
So go to the tooll change position with gcode in python remap.

self.execute("Gcode here")
Last edit: 21 Jan 2021 15:59 by bevins.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum