Welcome to Our Community

Some features disabled for guests. Register Today.

INTERFACE controller, Unacceptable GCODE characters?

Discussion in 'Other Builds' started by Darwin A Garrison, Jan 29, 2021.

  1. Darwin A Garrison

    Darwin A Garrison Well-Known
    Builder

    Joined:
    Jan 22, 2019
    Messages:
    43
    Likes Received:
    25
    Having successfully updated my INTERFACE to 1.43 and 1.45, I am now a bit confused as I try to load GCODE files via the USB.

    I have been generating my GCODE files via SketchuCAM because the DXF export from my CAD does not appear to play nicely with the Openbuilds CAM solution.

    I have successfully run my 1010 using this GCODE from CONTROL on my HP laptop for several files now.

    However, if I disconnect the laptop and boot up the INTERFACE to run the system, when I attempt to load the same files into INTERFACE, I get an error that says a character of some sort makes the GCODE un-runnable.

    Here's the file header and first few lines:

    %
    (Generated by SketchUcam V1.5-0803db9)
    (File: 1010_EPP_Clamp.skp)
    (Bit diameter: 1/8")
    (Feed rate: 30"/min)
    (Plunge Feed rate: 20"/min)
    (Material Thickness: 1/2")
    (Material length: 27" X width: 27")
    (Overhead Gantry: true = Conventional Cut)
    (Multipass enabled, Depth = ~ 1/16")
    (RAMPING with no angle limit)
    (Plunge Depth first)
    (Optimization is ON)
    (Arc Feedrate scale is ON)
    (www.PhlatBoyz.com)
    G90 G20 G49 G17 F20
    G53 G00 Z0.0
    G00 X0 Y0
    M3 S15000
    G00 Z0.5

    So, my question is, what do I have to change in the GCODE file to make it acceptable to INTERFACE?
     
  2. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,449
    Try removing the % sign at the top of the file. Its not valid gcode. Control auto removes it. We had to update the Fusion 360 post processor to remove it as well.
     
  3. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,193
    Likes Received:
    4,346
    Interface just sends it along, untouched. Grbl dislikes the "%" in the first line.


    "%" is not a accepted GCODE command

    It's a remnant from when CNC machines ran on tapes and was used as a start and end of file indicator
    We do "filter" out common mistakes like that in CONTROL, but Interface cannot filter the gcode, just doesn't have the resources, it would expect the files to only contain valid lines (gcodes, commands, comments) so Grbl gets what it needs

    For now, please edit it out
    And tagging @David the swarfer can we get that out of SketchuCAM too please :)
     
    David the swarfer and sharmstr like this.
  4. Darwin A Garrison

    Darwin A Garrison Well-Known
    Builder

    Joined:
    Jan 22, 2019
    Messages:
    43
    Likes Received:
    25
    Thanks! I had seen references to the % for the Fusion 360 but didn't know it applied to INTERFACE as well.
     
  5. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,193
    Likes Received:
    4,346
    Just to re-iterate, but Interface, really doesn't play into this. Interface takes the file off the USB drive, reads the first line into memory, and directly sends it over to Grbl. Grbl does what it has to (run, or error) and returns the result (an OK, or an Error). Interface then checks, if it got the OK, it sends the next line, or if got an error, it displays it on screen. Interface does not check, change, or care about the characters in the file. It is GRBL that sends the error, because Grbl does not accept the character because its not in the GCODE Spec :)
     
    sharmstr likes this.
  6. Darwin A Garrison

    Darwin A Garrison Well-Known
    Builder

    Joined:
    Jan 22, 2019
    Messages:
    43
    Likes Received:
    25
    Got it. Good thing that there are people who have this straight because coming into it from outside can get twisty with the details of what influences what.
     
    sharmstr and Peter Van Der Walt like this.
  7. Darwin A Garrison

    Darwin A Garrison Well-Known
    Builder

    Joined:
    Jan 22, 2019
    Messages:
    43
    Likes Received:
    25
    Running the clamp job now using INTERFACE only. Issue resolved.
     
    sharmstr and Peter Van Der Walt like this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice