|
APIs, concepts, guides, and more
|
Handles callbacks for M-codes within a G-code file. More...
Functions | |
| void | Execute (GcodeCallbackData *data) |
| Executes the M-code callback. | |
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. If the callback contains motion, meaning that the Robot might be in a different position after the M-code is executed, then you should pass true for the containsMotion argument when submitting the Callback with Gcode::MCodeCallbackRegister(). This will ensure that any relative motion commands after the M-code are handled correctly.
Visit our Concept Page for more information.
.
Definition at line 787 of file cartesianrobot.h.