Translating output to Open5x compatible gcode #9
Replies: 3 comments 10 replies
-
|
Nice! It would probably be easier to do this conversion within the S4 slicer notebook itself. The following block of code in the notebook is what converts the toolpath from a python array to a gcode file: As you can see, it gives you the position and rotation of each point in the toolpath. A few lines later, I generate the actual gcode string for that point in the toolpath: I have the "cartesian printer" line commented out, but if you uncomment it, it would give gcode with XYZ defining the location of the nozzle in space, and B defining the rotation of the nozzle perpendicular to the radial axis. You would probably need to tweak this a bit to give the A and B rotation axis instead (which rotate around the X and Y axis respectively), which I assume the open5x printers use? But this should be a simple addition. |
Beta Was this translation helpful? Give feedback.
-
|
I tried the original model pi 3mm g-code, but all my y values show 0, is that reasonable |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
After a handful of unsuccessful conversations with ChatGPT I was finally able to get it to create a functional python script which can translate the files produced in
output_gcodeinto gcode which is compatible with Open5x machines. A nozzle offset of 0mm is requiredNOZZLE_OFFSET = 0.PXL_20250501_000819004_edit.mp4
If you are interested, here is the conversation: ChatGPT: Gcode Translation 5-Axis
Here is the script from the conversation, without modification.
Beta Was this translation helpful? Give feedback.
All reactions