2-Axis CNC G-Code Interpreter

Shop Forum Everything Else 2-Axis CNC G-Code Interpreter

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23168
    petenz123
    Participant

    Hi Dan

    I’m working my way through your tutorial on:

    How to build an 2-axis Arduino CNC Gcode Interpreter

    If I cut-and-paste the code from this page, and try to compile it, I get the a couple of minor errors:

    exit status 1
    ‘set_feedrate’ was not declared in this scope

    comment out a couple of instances of that line and I get

    exit status 1
    ‘VERSION’ was not declared in this scope

    comment that out, and I get the big one:
    exit status 1
    ‘parsenumber’ was not declared in this scope

    I think the ‘parsenumber’ function is not shown on the tutorial page?

    If I use the complete code from
    https://raw.githubusercontent.com/MarginallyClever/GcodeCNCDemo/master/GcodeCNCDemo2Axis/GcodeCNCDemo2Axis.ino

    I get:
    8:20: fatal error: config.h: No such file or directory

    Where does the config.h file come from?

    If I comment that out, I get:
    exit status 1
    ‘MAX_BUF’ was not declared in this scope

    So, I really like your software, particularly the cut-down G-Code interpreter from the tutorial page. It would be a perfect starting point for my project, and a great way to learn.

    Would you have any idea why I’m having trouble with the code? Is there a bit missing on the tutorial page, or some other files that I need to install first?

    Thanks!
    Pete

    #23169
    petenz123
    Participant

    Hi All

    I found one of the errors – parsenumber is spelled both ‘parsenumber’ and ‘parseNumber’

    Still other errors though.

    The 4-axis one seems to compile fine, so I’ll proceed with that one! 🙂

    Thanks
    Pete

    #30481
    James Anderson
    Participant

    This Code Looks Complicated

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.