586,596 active members*
3,338 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Uncategorised CAM Discussion > CNC how to generate the "gcode" from an image
Page 1 of 2 12
Results 1 to 20 of 22
  1. #1
    EntityX Guest

    CNC how to generate the "gcode" from an image

    Hi, I recently purchased a CNC 3040T-Z 4 axis (but I use only XYZ) and I'm damning to understand how to create an the g-code from an image (really simple) to insert into Mach 3 and start the machine.

    Can anyone help me?

    Thanks

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: CNC how to generate the "gcode" from an image

    Get some software like Photo V Carve.
    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)

  3. #3
    Join Date
    Sep 2006
    Posts
    6463

    Re: CNC how to generate the "gcode" from an image

    Hi, as I'm a newby, as in total new to CNC, and am going down the same path, I found a tutorial by Bob Warfield on the CNC cook book forum.... page....whatever.......and he gives 10 G codes that you can use to get started and understand the compiling of them to make the machine move as you want to.

    Using those 10 G codes and MDI on Mach 3 enable me to move the table and spindle where I wanted it to go to get the feel of it.

    Jogging will move the slides, but an MDI input for a start out will make them move with control.
    Ian.

  4. #4
    Join Date
    Jun 2007
    Posts
    180

    Re: CNC how to generate the "gcode" from an image

    Take a look at our image to gcode program PicEngrave Pro 5. It's considerably less the PhotoVcarve and has more features.

    www.picengrave.com - PicEngraver Pro 5 + Laser

    www.PicEngrave.com - Gallery
    Pic Engraving Software Products
    http://www.picengrave.com

  5. #5
    EntityX Guest

    Re: CNC how to generate the "gcode" from an image

    the image that I have to turn in gcode is this:Imgur: The most awesome images on the Internet

    microholes

  6. #6
    EntityX Guest

    Re: CNC how to generate the "gcode" from an image

    Any help? please

  7. #7
    Join Date
    Mar 2003
    Posts
    35538

    Re: CNC how to generate the "gcode" from an image

    Is your image just the letters made up of dots?
    There's no easy way to do what you want, that I'm aware of.
    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)

  8. #8
    EntityX Guest

    Re: CNC how to generate the "gcode" from an image

    Quote Originally Posted by ger21 View Post
    Is your image just the letters made up of dots?
    There's no easy way to do what you want, that I'm aware of.
    I know is possible..

  9. #9
    Join Date
    Dec 2013
    Posts
    267

    Re: CNC how to generate the "gcode" from an image

    Do you have any CAM software at your disposal?

    You can try downloading Fusion360 (free for hobbiest users), re-drawing your image in CAD and then using proper CAM to generate tool paths and finally posting it to gcode. This would give you the ability to center drill the dots or trace the lines with a 2D contour or whatever else floats your boat.

    Best of luck!

  10. #10
    EntityX Guest

    Re: CNC how to generate the "gcode" from an image

    Quote Originally Posted by wtopace View Post
    Do you have any CAM software at your disposal?

    You can try downloading Fusion360 (free for hobbiest users), re-drawing your image in CAD and then using proper CAM to generate tool paths and finally posting it to gcode. This would give you the ability to center drill the dots or trace the lines with a 2D contour or whatever else floats your boat.

    Best of luck!

    For now I have no software... can you advise me please?

  11. #11
    Join Date
    Dec 2013
    Posts
    267

    Re: CNC how to generate the "gcode" from an image

    Quote Originally Posted by EntityX View Post
    For now I have no software... can you advise me please?
    My advice- Learn and use Fusion360. There is no "easy button" here. CNC machines are very very dumb, all they can do is follow instructions. Instructions that you provide.

    3D CAD/CAM Software for Product Design | Fusion 360

  12. #12
    Join Date
    Apr 2015
    Posts
    327

    Re: CNC how to generate the "gcode" from an image

    Fusion is great for start with cnc programming or if you dont need make some special modify on the toolpath. I can say that learn this software take me about 2 or 3 days. But when you want some machining from 2D geo or picture and etc. I use for this Alphacam and Alphacam art.
    Alphacam post and VBA macros, Autodesk HSM post.
    www.cadcam-softcz.cz

  13. #13
    Join Date
    Jun 2007
    Posts
    180

    Re: CNC how to generate the "gcode" from an image

    There is an issue with the jpg format it's saved to. I can't even open it in MS Paint.
    Pic Engraving Software Products
    http://www.picengrave.com

  14. #14
    Join Date
    Apr 2004
    Posts
    5741

    Re: CNC how to generate the "gcode" from an image

    DeskProto has a heightfield function, which will raise a 3D relief mesh from a single grayscale photo (typically sending the light pixels high and the dark ones low), and then write the G-code to carve it. It's not a free program, but the demo will work for a month before you need to pay for it.
    Andrew Werby
    Website

  15. #15
    Join Date
    Aug 2011
    Posts
    2

    Re: CNC how to generate the "gcode" from an image

    Quote Originally Posted by EntityX View Post
    Hi, I recently purchased a CNC 3040T-Z 4 axis (but I use only XYZ) and I'm damning to understand how to create an the g-code from an image (really simple) to insert into Mach 3 and start the machine.

    Can anyone help me?

    Thanks
    It's actually quite difficult to do. First you should convert the image to a vector (svg) image. This can be done with Illustrator's Live Trace Tool. Most other Vector graphics applications have a similar feature somewhere in them. Then you will need a SVG to g-code convertor. I'd suggest googling that. Sorry but I don't know any off hand. I have written just such a program which takes a black and white image and then controls my DIY pen plotter so that the image gets drawn with a pen on a sheet of paper. I've had raving success with that. In all cases I started with a vector image first.

    Good luck!

  16. #16
    Join Date
    Apr 2015
    Posts
    327

    Re: CNC how to generate the "gcode" from an image

    Send me this yout picture please.

    [email protected]
    Alphacam post and VBA macros, Autodesk HSM post.
    www.cadcam-softcz.cz

  17. #17
    Join Date
    Nov 2015
    Posts
    3
    If you have an iPhone or iPad you can try CNC Dot Art. You can literally make a selfie with the phone and send it to the machine. Yo can even take the picture with the phone from the screen.

  18. #18
    Join Date
    May 2011
    Posts
    17

    Re: CNC how to generate the "gcode" from an image

    Quote Originally Posted by wtopace View Post
    My advice- Learn and use Fusion360. There is no "easy button" here. CNC machines are very very dumb, all they can do is follow instructions. Instructions that you provide.

    3D CAD/CAM Software for Product Design | Fusion 360
    How would you use Fusion 360 to make a relief of a picture?

    Thanks!

  19. #19
    Join Date
    Dec 2013
    Posts
    267

    Re: CNC how to generate the "gcode" from an image

    Quote Originally Posted by garyo1954 View Post
    How would you use Fusion 360 to make a relief of a picture?

    Thanks!
    Probably not the best way - probably nothing earth shattering - probably not even the "right way", but it works and I already sent some code to the OP to try to help him out. I think he may have had a few issues with the canned drilling cycle or something, but I haven't heard back from him in a while.

    I imported his image onto my sketch, scaled it properly added a point to the top-left corner of the picture (to be used in setup as G54), added holes the correct size for his drill bit to all of the dots (with the assistance of some rectangular arrays and such and copy/paste). Switched to cam, added a drilling op, select all holes the same diameter... done.

    For me, it was quite a bit faster than writing some kind of specialized software to detect image contrast, assign positional coordinates and generate g-code. I guess if I were better with OpenCV or something, maybe, but the above didn't take more than half an hour start to finish.

  20. #20
    Join Date
    May 2011
    Posts
    17

    Re: CNC how to generate the "gcode" from an image

    Quote Originally Posted by wtopace View Post
    Probably not the best way - probably nothing earth shattering - probably not even the "right way", but it works and I already sent some code to the OP to try to help him out. I think he may have had a few issues with the canned drilling cycle or something, but I haven't heard back from him in a while.

    I imported his image onto my sketch, scaled it properly added a point to the top-left corner of the picture (to be used in setup as G54), added holes the correct size for his drill bit to all of the dots (with the assistance of some rectangular arrays and such and copy/paste). Switched to cam, added a drilling op, select all holes the same diameter... done.

    For me, it was quite a bit faster than writing some kind of specialized software to detect image contrast, assign positional coordinates and generate g-code. I guess if I were better with OpenCV or something, maybe, but the above didn't take more than half an hour start to finish.
    Thanks for the quick reply!

    I started looking at Fusion 360 today. My initial concern was the cloud storage, but seems from reading some these posts that has been solved. I'm excited to try it in comparison to VisualCAD/CAM (which I find very intuitive/easy to learn).

    The OP is talking about an stippling effect from what I could understand. Stippling is an art where one uses dot of varying shades of grey to make a picture. That sounds like a lot of work, can't imagine the g code involved.

    I see what you're doing. I should work. Good, better, best doesn't matter when you get started. Its the getting started doing something that makes you feel good. And you can always refine your technique as it become more clear what you are doing.

    My thought would have been to make an STL or iges in Inkscape before bringing it into Fusion. But you solved that problem.


    Thanks again!

    G

Page 1 of 2 12

Similar Threads

  1. X Axis "Goes Off Pattern", "Awry", "Skewed", "Travels"
    By DaDaDaddio in forum Laser Engraving / Cutting Machine General Topics
    Replies: 1
    Last Post: 05-06-2013, 09:59 AM
  2. BobArt - No Image after "Load Image"
    By TAProwler in forum BobCad-Cam
    Replies: 2
    Last Post: 12-24-2010, 06:05 PM
  3. Programmable mirror image "15 mf"
    By cncwhiz in forum Fanuc
    Replies: 0
    Last Post: 01-07-2008, 10:42 PM
  4. Lazycam doesn't generate "passes"
    By wadero in forum Mach Mill
    Replies: 10
    Last Post: 08-21-2007, 10:22 PM
  5. 3D image "cracked" inside glass
    By moyesboy2 in forum Glass, Plastic and Stone
    Replies: 17
    Last Post: 08-04-2006, 07:42 AM

Tags for this Thread

Posting Permissions

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