Custom macro programming can provide for faster and easier machine operations when manufacturing parts or a family of parts with similar features. In certain production instances, a custom macro program can eliminate the need for individual job programming, and the electronic data management of multiple programs. A macro program can be considered the ultimate in custom NC G-code programs. As long as a number of parts and/or operations can be used and controlled by the use of a macro program, time can be saved by reducing the need to generate a dedicated program for each job.
The key on how and when to decide to create a macro program is having multiple parts and/or programs whose geometry can be utilized and adapted to a macro program. Macro programs allow for the operator to input some type of variable value that will change and modify the NC G-code program. Macro variables can replace and substitute any numerical value within a G-code program. Mathematical calculations can also be performed within a program using macro variables. Depending on the intended use, macro programming can be simple or complex. Creation and use of macro programs are typically reserved for production type jobs and part processing. They typically entail a family of parts that have common similarities in geometry or some type of common control factors/variables. Creating and developing a macro program requires an extended amount of time because they are manually generated. Once created, macro programs must be fully tested to insure that they work and function properly. Please consult your machine manuals or contact your machine’s OEM for specific information on macro programming.
