APIs, concepts, guides, and more
GcodeCallback

Handles callbacks for M-codes within a G-code file. More...

Functions

void Execute (GcodeCallbackData *data)
 Executes the M-code callback.
 

Description

This class serves as a callback mechanism that gets invoked when an M-code is encountered in the G-code file. It allows you to define custom behavior for specific M-codes. The class provides a single method, Execute, that should be overridden to include the desired M-code handling logic.

Visit our Concept Page for more information.

Note
Inherit from this class and implement the Execute method to add your custom M-code logic.
See also
GcodeCallbackData
Examples
GcodeMotion.cs.

Definition at line 931 of file cartesianrobot.h.