Image to Gcode: How to make Gcode working?

Hello members,

I have an SVG Image, I have created a Gcode from the image using Grasshopper Rhino 7. For some reason I do not want to use STL model.
I want to run this Gcode on a Ultimaker s5 machine.
So I copied the header and end of the Ultimaker s5 Gcode to my Gcode.
Basically I tried to match my Gcode with a Gcode created by Cura for Ultimaker s5 using a random STL.
But the problem is machine is not accepting that Gcode. What should be the problem?
Machine shows the printing has started but does not make any movement.

I am really not well versed in this but to the best of my knowledge SVG is only 2d not 3d and I only use it for laser etching which is only 2d. Why not use STL? Import the SVG file into Tinkercad and then, after confirming your height, save it to STL and use your slicing software to make the GCode file. Tinkercad is an easy to learn online software for making 3D projects.

Basically Laser Etching and 3D printers are cartesian robots. Gcode is only the language that rotates the motors appropriately. So they could be the motors of an etching machine or 3D printers or any machine. Just that appropriate G and M codes need to be at the right places. I want my 3D printer to trace a certain path while depositing the material without having to generate a CAD model. Just a curve - no CAD model. Anyways, thank you for your input. I will check the TinkerCAD.

Hi, @Pushkar

Welcome to the forum, Glad you found us.

can you DM me the Ggode file and let me have a look?

I am suspecting it may be in a different format or there is a start Gcode missing.

We hope you will join us often.

Jason

Hey there,

A little while back I modified one of my printers to act as a vinyl plotter, I ended up keeping the original firmware and setting the slicer to only print one layer. I ended up using one of the online converters to turn the svg of my logo into an stl and this worked fine for me.

It could be worth trying one of these out,
Matthew

Thanks @Matthew but I do not want an STL file.
I want my data path be like JPEG > SVG > Gcode

HI Pushkar

I can see what you are trying to do but I am not 100% sure if it’s going to be possible using the method you are trying.

The movements look good but the setup for the print is not going to be usable.

There are a variety of the things (parameters) you would have to set. Also, you do not have a G28 (home) in your start gcode or a G29 (mesh bed) if required.

I see you are setting the nozzle temp and resetting the extruder, I am not seeing a request there to pre-warm the bed. or more specifically make the call for bed heat and wait for it to stabilize before printing begins. Usually do this with a combo of M140/M190 and M104 with M109.

The movements look ok at least with a cursory look over, THe issue you are having is the setup of the printer to start printing.

Hope this helps
Jason

I think the easiest way forward is through an STL or 3MF file type first, then a GCode. Yes the hardware is much the same between a laser and 3d printer but the computers function slightly differently. Could you explain why you do not want to simply use STL on the way to success. If we understood this we may then understand how to help you move forward.

@sonic.cues
STL has been a standard for 3D printing, but when it comes to medical images like CT and MRI scans, we already have layered images available. Lot of computational energy goes into reconstructing STL from those images. Instead, we can directly use images for 3D printing, skipping the need of STL altogether. Therefore, I do not want to create an STL. I want to create toolpath from the contours available in the images and want to run it on the 3D printers image after image to build a 3D object. Also, if this technique develops further, I believe for some planar parts (similar to laser etching), even CAD modeling can be skipped. Just take a photo with a smartphone, convert image to gcode and run it on a 3D printer. No need to have 3D modeling packages and convert 3D models to STLs etc. Take a phone, take image, and 3D print the contours, just like laser etching.
I hope the concept is clear enough to you now.

OK now we understand but way out of my league at present. I did a quick search online to convert svg to 3D and every source simply goes to STL or OBJ. Nothing goes straight from SVG to GCode except when the final destination is still 2D. All the education I found to take an SVG to 3D final destination first converts to STL or OBJ etc. Then converts to GCode.

This next link explains the required process.

I will not be able to help with this one.