no preview/lines in axis after remap M command

More
22 Jul 2017 20:57 #96292 by Nator
Hello,
I am using the tool-chane.ngc and tool-job-begin.ngc for tool touch off. I got the files working with manual "call" of the M6 and M600 commands.
My Problem is, if i open a "normal! gcode with my Tn M6 command. I do not see any lines or preview in Axis. If i delete the M6 command and reload Axis shows me the lines again.
Does somebody know, why a remap does this with axis?

Thanks Nator

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

More
26 Jul 2017 15:38 #96483 by andypugh
The Axis preview is generated by running the G-code through a separate version of the interpreter.

You might need your remapped functions to be aware of whether they are making a part or creating a preview.
See the #<_task_> parameter description here:
linuxcnc.org/docs/2.7/html/gcode/overvie...ub:system-parameters

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

More
26 Jul 2017 17:59 #96495 by Nator
Thanks for the answer!
I got it solved in the meantime. I had an if loop with a parameter which is written in another o-code. But this variable is somehow always forgotten, eventhough it is an <_Parameter>. I made a Number Parameter and wrote it to a file. That did it.

But perhaps i need the Task Parameter another time.

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

Time to create page: 0.101 seconds
Powered by Kunena Forum