PMPA Craftsman Cribsheet #149: G-Code Macro Relational and Logical Operators by Controller

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

Published May 1, 2026

By David Wynn, Director of Technical Services & Industry Affairs

Download/View Cribsheet

 

Exact availability can vary by software version and options. Some controllers require logical operations to be executed inside brackets [ ]. It is important to understand that most controllers use text-based operators to denote logical operations because traditional symbols are reserved within controllers for other operations. Keyword “=” is reserved for variable assignment in most controllers so we use EQ. 

 

 

 

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.