algorithmic modeling for Rhino
hi all,
i wonder if there is a simple way to translate grasshopper lines to gcodes?
e.g. there is a line from (0,0,0) to (1,1,1), so it will translate it to gcode that a 3dprinter can read. it will move its' (0,0,0) to (1,1,1), additional options like speed, extruder is not so important for me at this time.
thanks in advance
Tags:
I think a few people have used GH to create g-code for 3d printers and cnc machines. There might even exist a plugin for generating 3d printer g-code.
You need to have a good understanding about the format of g-code your cnc machine needs.
You would need to break your tool path down into lines and arcs. If you only want to move in lines then you need to convert your arcs into lots of small lines that approximate the arcs to an acceptable tolerance.
For lines, if you are creating an absolute g-code instruction (not relative) you would have to turn the x,y and z coordinates into the relevant g-code command...
to move to 1,1,1 in a line you need to generate G0 X1.0 Y1.0 Z1.0 F1000 (F=Feedrate) for example.
So on the FORMAT component
I can't remember what the C input is for :)
If you supply a list of points this will output a list of g-code lines telling the cnc to move to each point.
If you understand the format of the G-Code commands you need to generate you should be able to build a formatting definition that takes the inputs needed for lines, arcs etc and formats that info into G-Code.
It's easy to add a header and footer to your g-code in the same way if required.
It really is important to understand how the G-Code for your machine works as it would be quite easy to crash your machine if you send the wrong commands!
thanks a lot, it dig up a lot for me.
i'll start testing when i come back home in the evening.
thanks, there is a free version in that page also, haven't tried yet (probably wont have time today to test) but i think free version can do what i want.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by