G-Wizard Calculator:
Fast, Easy, Reliable Feeds and Speeds


Join 100,000+ CNC'ers!  Get our latest blog posts delivered straight to your email inbox once a week for free. Plus, we’ll give you access to some great CNC reference materials including:

  • Our Big List of over 200 CNC Tips and Techniques
  • Our Free GCode Programming Basics Course
  • And more!


GCode is Complicated
G-Wizard Makes it Easy

GWE LinuxCNC Named Variables Errors


I am trying to get GWE set up and working for my custom LinuxCNC-based router. I’ve created a machine profile, selected the LinuxCNCMill post, turned on all the Post Macro options (including SetVN and LinuxCNCNamedParams). I’m still getting ERRORS on all my variable definition lines, such as #<IterationX> = 3. The program I’m editing runs fine on my machine.

Any thoughts on what I might be doing wrong or missing?



  • You must to post comments
Best Answer

Hi Jeff.

We don’t support the LinuxCNC variable naming yet, just Fanuc style.

The standard Fanuc syntax is described on this page of our GCode Tutorial:

As you will see, macro variables are typically named as numbers such as “#101”.  Yuck!  Hard to read and understand.
For more money, Fanuc will offer you symbolic names.  That is described here:
G-Wizard Editor can work with that format and even help you convert back and forth between the two fairly seamlessly if your controller doesn’t support named variables.  Check that article link for more.
One other approach would be to use a Find/Replace script to alternate between a number and symbolic format.  This article tells how to set up a CSV file to do bulk Find/Replace:
Until I get a chance to add the LinuxCNC syntax, which I definitely plan to do, that’s where things stand.  You’d have to use one or the other of these workarounds.
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Show us your humanity*


Do you want to be a better CNC'er in 37 Seconds?

Get Better Tool Life, Surface Finish, and Material Removal Rates Fast.

It's that easy. You can install and get results in a matter of minutes.


Start Now, It's Free!



  GW Calculator

  GW Editor



  Deals and Steals

CNC Blog








     Feeds and Speeds

     G-Code Tutorial

     CNC Machining & Manufacturing

     DIY CNC Cookbook

     CNC Dictionary

CNC Projects


     Machinist's Search


     Online Groups


     Reference Data


     CNC Dictionary


     Tool Brands


     Hall of Fame

     Organization: Soon!





     Our History

     Privacy Policy

All material © 2016, CNCCookbook, Inc.