simCNC: What are macros, and what are Python Actions?
A Python macro is a function/program written by the user, e.g., to operate non-standard machine equipment. Python actions are one of the mechanisms for invoking macros. You can define an event and conditions there, in which a specific user macro will be run. Other mechanisms for invoking your own macros include, e.g., the interface editor (additional buttons on the screen that invoke the macro). Another frequently used mechanism is the “M…” machine commands (e.g., M3, M7, etc.). You can create a macro called, e.g., M45.py, and it will be invoked when the M45 command is encountered in the machining program. This is how, for example, tool magazine support is most often implemented (tool change command – M6).
[Source:] The text was created by CS-Lab’s Technical Support section for CSMIO/IP users.