APIs, concepts, guides, and more

◆ Execute()

void Execute ( GcodeCallbackData * data)
dataA pointer to a GcodeCallbackData structure containing both API-generated and user-defined information.

This method gets invoked whenever an M-code is encountered in the G-code file. The method provides a GcodeCallbackData object, which encapsulates the line number and the line string for the encountered M-code, as well as fields for setting the success status and any error details.

Executes the M-code callback.

This method should be overridden in derived classes to include custom logic for handling M-codes.
See also

Definition at line 946 of file cartesianrobot.h.