Welcome to Our Community

Some features disabled for guests. Register Today.

Openbuild CAM code generator

Discussion in 'Concepts and Ideas' started by Søren Weitling, Aug 8, 2022.

  1. Søren Weitling

    Builder

    Joined:
    Dec 13, 2019
    Messages:
    28
    Likes Received:
    25
    If a project include different tools like a 2 mm endmill and a 4mm endmill, I the Gcode do not stop or pause for a change off endmill. Would it be possible to ad a field, where we could ad some gcode like M0 M3 M5 M8 M9 in the configure Toolpath sections?

    upload_2022-8-8_6-44-22.png
     
  2. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,030
    Likes Received:
    1,428
    Tool changes are not supported since OB Control (and grbl for that matter) doesnt.
     
  3. Søren Weitling

    Builder

    Joined:
    Dec 13, 2019
    Messages:
    28
    Likes Received:
    25
    I know. That is why I want to use the M0 (Pause) then i can change the tool manually and probe manually. I have done that in my post process file for Carveco as example.
    It would be nice to have a field in the toolpath where we could add some g-code that would be added at the end of the toolpath.
     
  4. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,237
    Likes Received:
    1,815
    you cannot probe during a pause so you must mean you are adding a probe macro after the pause.
    bit changing during a pause is very dangerous, an accidental keypress during a pause can cause instant motion and possibly also turn the router back on while you are holding the bit/collet/nut/spanner (depends how your machine is wired of course).

    The right way to do it s to generate separate files for each bit size and do the bit change and probe between files.
     
  5. Søren Weitling

    Builder

    Joined:
    Dec 13, 2019
    Messages:
    28
    Likes Received:
    25
    Yes David, that is what I do in Carveco se example below


    (G-CODE FOR Openbuild Black Box)
    (3.175mm)
    (------------------------------)
    (MATERIAL:)
    ( X MIN:-95.000 Y MIN:-90.000 Z MIN:30.000)
    ( X MAX:95.000 Y MAX:90.000 Z MAX:30.000)
    ( X SIZE:190.000 Y SIZE:180.000 Z SIZE:0.000)
    ( THICKNESS:30.000)

    G21 (MM MODE)
    G90 (ABSOLUTE DISTANCE MODE)
    G94 (MM/MIN MODE)
    (=========FIRST TOOL==========)
    ( TOOL NUMBER:1)
    ( DESCRIPTION:3.175 mm dia. slot drill)
    (FEED RATES IN MM PER MINUTE)
    ( CUTTING FEED RATE:1000)
    ( PLUNGE FEED RATE :270)
    ( RAPID FEED RATE :9999)
    ( SPINDLE SPEED :S18000 r.p.m)
    (---START TOOL CHANGE AND PROBING---)
    (Move to manual tool change position)
    G53 G1z-6 F1000
    G53 G0 X-365 Y-729 F2500 (X,Y;Z to be modified for tool change position)
    M0 (T1 3.175 mm dia. slot drill)
    (Change tool and press Resume)
    G53 G1z-6 F1000
    G53 G0 X-85 Y-724 (X and Y need to be modified for probe position)
    G54 G38.2 Z-70 F200 (Probing Z axis)
    G54 G92 Z51.5 (Z thickness of the probe)
    G53 G1 Z-5 F800 ( Z maximum up )
    G54 (G54 coordinate system)
    G53 G1z-6 F1000 (Move back for dust shoe mount)
    G53 G0 X-365 Y-729
    G54
    M0 (Check Z high then press resume)
    (---END TOOL CHANGE CONTINUE WORK---)

    M3 S18000 (SPINDLE ON)
    M8 (suction on)
    G0X0.0000Y0.0000 (GOTO PART HOME)
    G0X-39.9735Y-37.0580Z31.0000
    G1Z29.0000F270.0
    G3X-38.8510Y-37.5230I1.1225J1.1225F1000.0
    G1X38.8510Y-37.5230
    G3X40.4385Y-35.9355I-0.0000J1.5875
    G1Y35.9355
    G3X38.8510Y37.5230I-1.5875J-0.0000
     
  6. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,749
    Likes Received:
    4,070
    From OpenBuilds CAM use the show/hide toolpath buttons, export a gcode file for each tool you need (full manual control).
    Between job files you can change tools, probe etc
     
    Søren Weitling likes this.
  7. Søren Weitling

    Builder

    Joined:
    Dec 13, 2019
    Messages:
    28
    Likes Received:
    25
    Okay then was just a nerdy thing :)
     

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