Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: Learning exercise (for me)

  1. #1
    Registered
    Join Date
    May 2005
    Location
    US
    Posts
    173
    Downloads
    0
    Uploads
    0

    Learning exercise (for me)

    Is it possible to look at this picture and determine what the gcode would be? How would it be written? Thanks for helping me learn.pic


  2. #2
    Registered Rekd's Avatar
    Join Date
    Apr 2003
    Location
    teh Debug Window
    Posts
    1,876
    Downloads
    0
    Uploads
    0
    Assuming XY 0 on top left.



    Code:
    G90 G0 X-.125 Y-2.125
    G1 Z-.3 F50.
    X8.875
    G0 Z1.
    ?
    Matt
    San Diego, Ca

    ___ o o o_
    [l_,[_____],
    l---L - □lllllll□-
    ( )_) ( )_)--)_)

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


  3. #3
    Registered
    Join Date
    Apr 2003
    Location
    UK
    Posts
    1,079
    Downloads
    0
    Uploads
    0
    It would be

    G0 Z5 (to clear the stock)
    G0 X9.875 Y0.125 (to move from start (0,0) to the desired x,y spot)
    G1 F6 Z-0.3 (plunging move at 6IPM)
    G1 F24 Y8.875 (cut along y at 24IPM)
    G0 Z5 (clearing again)
    G0 X0 Y0 (back home)

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


  4. #4
    Registered
    Join Date
    Apr 2003
    Location
    UK
    Posts
    1,079
    Downloads
    0
    Uploads
    0
    Lol, beat me, and more concise too!
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #5
    Registered Rekd's Avatar
    Join Date
    Apr 2003
    Location
    teh Debug Window
    Posts
    1,876
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by kong
    Lol, beat me, and more concise too!
    Matt
    San Diego, Ca

    ___ o o o_
    [l_,[_____],
    l---L - □lllllll□-
    ( )_) ( )_)--)_)

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


  • #6
    Moderator ynneb's Avatar
    Join Date
    Feb 2004
    Location
    Oz
    Posts
    2,579
    Downloads
    0
    Uploads
    0
    Hey chuncky, If you want to practice your codes and see them simulated you can download this free program http://www.cncsimulator.com/

    Here is a sample of what you will see. You can simple type the code in the blue box on the side and then see how it will run.
    Attached Thumbnails Attached Thumbnails Learning exercise (for me)-sample.jpg  
    Last edited by ynneb; 05-31-2005 at 07:45 PM.
    Being outside the square !!!


  • #7
    Registered
    Join Date
    May 2005
    Location
    US
    Posts
    173
    Downloads
    0
    Uploads
    0

    Talking

    G90 G0 X-.125 Y-2.125
    G1 Z-.3 F50.
    X8.875
    G0 Z1.
    Matt
    CNCzone Administrator


    Kaboom! Yipee! Breakthrough for me! Now I'm getting somewhere. Thanks to all of you who did the code!


  • #8
    sol
    sol is offline
    Gold Member
    Join Date
    Sep 2003
    Location
    USA
    Posts
    226
    Downloads
    0
    Uploads
    0
    Ummm... I know that the answers in the above posts would have confused the daylights out of me when I was first becoming acquainted with g-code.

    The two codes are not the same because they started from different origins (0,0)
    Also there is confusion because the graph looks as though X is North-South and Y is East West which is the reverse of standard CAD practice.

    Notice that Rekd assumed that 0,0 was the UPPER left hand corner, and X was East-West.

    Kong on the other hand worked under the assumption that 0,0 was at the lower left hand corner and X and Y were switched with Y being East-West.

    For just starting out it would probably be best to think in the standard Cartesian plane since this is the default setting for popular CAD programs.


  • #9
    Registered
    Join Date
    Oct 2004
    Location
    USA
    Posts
    589
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by ynneb
    Hey chuncky, If you want to practice your codes and see them simulated you can download this free program http://www.cncsimulator.com/
    Flashcut is another one to use for practise. It also converts .dxf to g-code. Get it here.

    Chris


  • #10
    Registered
    Join Date
    May 2005
    Location
    US
    Posts
    173
    Downloads
    0
    Uploads
    0

    So glad you responded because......

    .... that's what I always thought. (X being horizontal on the screen with Y being vertical). But then-- when I got the CNC bug I read "somewhere" that it was the other way around. I either read it wrong or it was a typing mistake. Thanks for speaking up.

    "I know that the answers in the above posts would have confused the daylights out of me when I was first becoming acquainted with g-code.
    The two codes are not the same because they started from different origins (0,0) Also there is confusion because the graph looks as though X is North-South and Y is East West which is the reverse of standard CAD practice."


  • #11
    Registered
    Join Date
    May 2005
    Location
    canada
    Posts
    1,164
    Downloads
    0
    Uploads
    0
    AutoEditNC is a simulator created by an educator. No expiry or strings on this one. Discriminator
    is commercial ware but the demo allows saving and does not expire.


  • #12
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,303
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Chunky
    .... that's what I always thought. (X being horizontal on the screen with Y being vertical). But then-- when I got the CNC bug I read "somewhere" that it was the other way around. I either read it wrong or it was a typing mistake. Thanks for speaking up.
    You can actually set your machine up any way you like, but, as was already mentioned, most CAD programs have the X axis running horizontally and the Y axis vertical, with the origin (0,0) at the lower left.

    I didn't see anyone mention it so I'll chime in here. The G90 sets the machine to move in absolute coordinates. So if you have G0 X2 Y2, the machine will move to X=2 Y=2. Absolute coordinates are the most common. But, you can also use G91, which is incremental coordinates. If you use G91, then G0 X2 Y2 will move the machine 2 units in X and 2 units in Y from it's previous position. This can get confusing when trying to read the code, because you have to read through all the code to see where you are. by using G90, you can read any line and know exactly where you are.

    ALso, noone mentioned the difference between G0 and G1. G0 is a rapid, or positioning move, which occurs at the machines maximum speed. You usually use G0 to lift up the tool, and move it into position for upcoming cutting moves. G1 moves are usually cutting moves, and move at a feedrate specified by an F word. G1 X2 Y2 F10 will move at 10 inches per minute. (If your machine is set up in inches. You can set it for any type of unit you like)

    Kong did a pretty good job explaining, just thought I'd add a little too it.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Another learning module
      By Chunky in forum G-Code Programing
      Replies: 12
      Last Post: 06-11-2005, 06:04 AM
    2. learning to g-code
      By bush666au in forum G-Code Programing
      Replies: 3
      Last Post: 04-06-2004, 07:02 AM
    3. Could use some advise on learning CNC?
      By Beezer in forum General CAM Discussion
      Replies: 8
      Last Post: 03-06-2004, 01:12 PM
    4. Mastercam Home Learning
      By motomitch1 in forum Mastercam
      Replies: 12
      Last Post: 11-21-2003, 08:13 AM
    5. learning to model
      By HuFlungDung in forum OneCNC
      Replies: 6
      Last Post: 04-18-2003, 02:01 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.