Will the remapped code be executed first when the G code file is loaded?

More
1 year 6 months ago #326216 by DavidK
Hi,

I have the same problem. Could you please tell me where I have to set the #<_task> paramter to skip the remapped code.

Thank you very much

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

More
1 year 6 months ago - 1 year 6 months ago #326217 by Aciera
You don't 'set' the #<_task> parameter, you use an 'if' statement in your code to check the value of the #<_task> parameter.

Examples:

In ngc code:
Code:
o100 if [#<_task> EQ 1] ;everything in here is only executed during actual gcode execution o100 endif

In a python remap:
Code:
    if self.task == 0: # ignore the preview interpreter         yield INTERP_EXECUTE_FINISH         return INTERP_OK
Last edit: 1 year 6 months ago by Aciera.
The following user(s) said Thank You: DavidK

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

Time to create page: 0.050 seconds
Powered by Kunena Forum