585,760 active members*
3,849 visitors online*
Register for free
Login

Thread: Gcode help

Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2004
    Posts
    2337

    Gcode help

    What would be the Gcode to move an axis 100mm in a positive direction from where ever it is. I dont mean a Gcode telling the axis to go to a set spot like "G0z100" I mean a code that will say move 100 from where ever you are now. Is this possible?
    Being outside the square !!!

  2. #2
    Join Date
    May 2003
    Posts
    79
    Try

    G91 G0 Z100
    G90

    This just tells the machine to make an incremental move (g91).
    Dont forget to switch back to absolute (g90)

    Mark
    http://www.weardalecnccarving.co.uk

  3. #3
    Join Date
    Feb 2004
    Posts
    2337
    Thanks 4 that.
    Being outside the square !!!

  4. #4
    Join Date
    Apr 2004
    Posts
    60
    U and W commands (incremental) could be useful. For example:

    G00 U-1.8 W-3.1

    means that the tool should move -1.8 along the X axis and -3.1 along the Z axis (inches or mm) from the point where the tool was before the execution of the command.

  5. #5
    Join Date
    Mar 2003
    Posts
    35538
    I don't think Mach2 supports this, though.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  6. #6
    Join Date
    Apr 2004
    Posts
    60
    Sorry, I really had no idea...

  7. #7
    Join Date
    Feb 2004
    Posts
    2337
    Hey Tex, I guess I should have mentioned Mach2 in the question.
    I think Ger must have already known thats what I use.
    Thanks for your contribution though.
    Being outside the square !!!

  8. #8
    Join Date
    Apr 2004
    Posts
    60
    It's OK....you're welcome...

  9. #9
    Join Date
    Jan 2005
    Posts
    2
    I was wondering if someone cold give me a list of g codes that will work on a bandt I control and tell me how to set the fixture offsets, i am familiar with coversational programming but not g code any help would be greatly appreciated

Similar Threads

  1. Autocad to gcode
    By JamesMI in forum Autodesk
    Replies: 17
    Last Post: 12-02-2011, 09:54 AM
  2. Is it possible to get a gcode into Rhino
    By MrBean in forum Rhino 3D
    Replies: 11
    Last Post: 04-03-2005, 01:41 PM
  3. gcode to gcode converter
    By july_favre in forum Uncategorised CAM Discussion
    Replies: 4
    Last Post: 05-25-2004, 12:51 AM
  4. dxf to gcode problem...
    By freezer in forum Uncategorised CAM Discussion
    Replies: 9
    Last Post: 02-19-2004, 07:02 AM
  5. Gcode verify autocad plugin
    By balsaman in forum Uncategorised CAM Discussion
    Replies: 1
    Last Post: 10-31-2003, 06:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •