Welcome! Log In Create A New Profile

Advanced

Previewing gcode with custom colors?

Posted by Ohmarinus 
Previewing gcode with custom colors?
September 29, 2020 04:57AM
Hi all, I hope everyone is okay during these turbulent times.

Anyway, I have an 'issue' where I am previewing custom-generated gcode for a DIY pen plotter. I am totally into creating line-art portraits at the moment (the psychologist said it's only phase and it will pass), and I am currently not content with the way I can preview my gcode files. I have to be able to judge if the file is generated correctly by being able to visually separate the pen up and down movements and showing the draw and non-draw moves.

The gcode looks like this:
G00 Z30.000 F4500.0
G00 X213.821 Y130.007 F4500.0; move 
G00 Z16.000 F4500.0
G01 X213.742 Y129.961 F2400.0; draw 
G01 X213.700 Y129.656 F2400.0; draw 
G01 X213.689 Y129.142 F2400.0; draw 
G01 X213.775 Y129.120 F2400.0; draw 
G01 X213.854 Y128.975 F2400.0; draw 
G01 X213.885 Y129.237 F2400.0; draw 
G01 X213.971 Y129.873 F2400.0; draw 
G01 X213.945 Y129.963 F2400.0; draw 
G01 X213.893 Y130.123 F2400.0; draw 
G01 X213.821 Y130.007 F2400.0; draw 
G00 Z22.000 F4500.0
G00 X213.476 Y128.336 F4500.0; move 
G00 Z16.000 F4500.0
G01 X213.598 Y128.449 F2400.0; draw 
G01 X213.643 Y127.999 F2400.0; draw 
G01 X213.467 Y127.663 F2400.0; draw 
G01 X213.391 Y127.603 F2400.0; draw 
G01 X213.239 Y127.122 F2400.0; draw 
G01 X213.177 Y127.036 F2400.0; draw 
G01 X213.060 Y127.003 F2400.0; draw 
G01 X213.141 Y127.221 F2400.0; draw 
G01 X213.348 Y127.883 F2400.0; draw 
G01 X213.397 Y128.142 F2400.0; draw 
G01 X213.476 Y128.336 F2400.0; draw 
G00 Z22.000 F4500.0
G00 X184.157 Y103.253 F4500.0; move 
G00 Z16.000 F4500.0
G01 X184.916 Y102.576 F2400.0; draw

And this is the visual preview I get:


Right now I'm using Repetier host for this since I don't like the functionality of the program but do like how simple it is to preview gcode. It works really well for a 3D-view that I can rotate and pan/zoom. I never use tethered printing anymore so Repetier is set up to the dimensions of the pen plotter.

As you can see, my gcode is pretty structured but most gcode preview software doesn't recognize pen up and pen down commands. I thought separating them with G00 and G01 might make it come out differently but it doesn't.

Anyway, if anyone has a good tip for software that gives control over how which gcode command gets shown in the preview that would be awesome. Because now I sometimes only discover that my generated artwork contains too many short curves causing ink blobs from all the pen up and down moves.

This is the kind of work I currently produce, so you can imagine that every little defect stands out and I'd rather find it before I ruin expensive paper winking smiley



Edited 1 time(s). Last edit at 09/29/2020 05:27AM by Ohmarinus.


http://www.marinusdebeer.nl/
Sorry, only registered users may post in this forum.

Click here to login