1. Hey guyz. Welcome to the All New Phlatforum!



    Sign Up and take a look around. There are so many awesome new features.

    The Phlatforum is a place we can all hang out and

    have fun sharing our RC adventures!

  2. Dismiss Notice

Changing Gcode out

Discussion in 'SketchUcam Help' started by bradleyk, Jul 27, 2011.

  1. bradleyk

    bradleyk New Member

    Offline
    Messages:
    3
    Trophy Points:
    0
    hi,
    i have made my own cnc mill, but the controller requires a command before each move,

    this is the output from sketchucam

    G0 Z0.125984251968504
    X0.823640 Y0.771600
    G1 Z-0.248030 F100
    X0.823640 Y0.771600 Z-0.248030
    X0.823640 Y9.320420 Z-0.248030
    X0.861440 Y9.320420 Z-0.248030
    X0.861440 Y0.733800 Z-0.248030
    X0.899230 Y0.733800 Z-0.248030

    and i need

    G0 Z0.125984251968504
    G01 X0.823640 Y0.771600
    G01 Z-0.248030 F100
    G01 X0.823640 Y0.771600 Z-0.248030
    G01 X0.823640 Y9.320420 Z-0.248030
    G01 X0.861440 Y9.320420 Z-0.248030
    G01 X0.861440 Y0.733800 Z-0.248030
    G01 X0.899230 Y0.733800 Z-0.248030

    thanks,

    great work on the script so far, keep it up
     
  2. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    bradleyk, the easiest way to do it is loading the g-code in NotePad++ and replace 'x' with 'g01 x'. Just make sure you go over the code afterwards to make sure that you don't have a code like 'g0 g01 x...'.

    BTW, welcome to the board!
     
  3. bradleyk

    bradleyk New Member

    Offline
    Messages:
    3
    Trophy Points:
    0
    that is what i have been doing, but i was hoping to be able to make a fix

    thanks
     
  4. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    If you want, you can go into the .rb file and make changes there, if you know a bit about programming. The file's name is /tools/phlatboyz/phlatmill.rb
     
  5. bradleyk

    bradleyk New Member

    Offline
    Messages:
    3
    Trophy Points:
    0
    thanks

    i figured it out,

    line 177,206,226,243
    command_out += Cmd if(cmd!= @cc)
    to
    command_out += Cmd
     
  6. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    Good show!!!
     
  7. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Nice job on figuring this out guys, I am sure this will help others in the future who need special code output. :good:
    Thanks
    Mark and Trish
     
  8. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    Please note that there is a setup option for this, from version 1.3a
    RTFM!
     
    terrance likes this.
  9. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    LOL!!! Please note that this is a thread from four years ago! LOL!!! :rofl:
     
  10. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    yeah, but it just got referenced in a query!
     
  11. mysteriousduck

    mysteriousduck New Member

    Offline
    Messages:
    1
    Trophy Points:
    1
    Location:
    San Antonio, Texas
    Could someone please help me in finding said setup option please? my grbl controller does not like not having G01 commands.

    *Edit* - Found it!
     
    Last edited: Oct 27, 2015

Share This Page