APIs, concepts, guides, and more

◆ Execute()

void Execute ( GcodeCallbackData * data)
Parameters
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.

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

Definition at line 946 of file cartesianrobot.h.