PMPA Craftsman Cribsheet #148: G-Code Macro Arithmetic Operators by Controller

A breakdown of G-code macro keyword functions across a range of major controllers. 

Published March 1, 2026

By David Wynn, Director of Technical Services & Industry Affairs

Download/View Cribsheet

 

Notes: Exact availability can vary by software version and options. Use [ … ] for expression grouping (order of operations), parentheses ( … ) are comments on most controls. Some controllers require arithmetic operations to be executed inside brackets [ ].

 

 

 

Author

David Wynn

David Wynn, MBA, is the PMPA Director of Technical Services & Industry Affairs with over 20 years of experience in the areas of manufacturing, quality, ownership, IT and economics. Email: dwynn@pmpa.org — Website: pmpa.org.