PMPA Craftsman Cribsheet #151: G-Code Macro Programming Flow Operators by Controller

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

Published September 1, 2026

By David Wynn, Director of Technical Services & Industry Affairs

Download/View Cribsheet

 

Exact availability can vary by software version and options. Check your manual for exact syntax and availability.  The workaround: Typically uses a format of IF [#100 EQ 1] THEN #101=5. Instead use a GOTO statement then put assignment on that line. IF [#100 EQ 1] GOTO N100. Put assignment on N100 #101=5. 

 

 

 

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.