Welcome! Log In Create A New Profile

Advanced

How difficult would it be......

Posted by Nomadfeet 
How difficult would it be......
November 21, 2015 08:39AM
to add new axes to the G1,G3,etc commands? Essentially, I would like to experiment with printing in grayscale with white and black filament using a switching extruder.
I found a fairly simple way to modify existing gcode to be capable of printing in grayscale before realizing that currently Sprinter handles multiple extruders with the Tn gcode command; in order to achieve my goal each En would have to have its own axis such as "G1 X100 Y100 E[0]5 E[1]2".

Anywho, I am happy to sit down and do the work of adding the axes to my personal work via a hardware change, but it seems this feature as a gcode standard would be highly desirable as things progress, opening up possibilities for using full RGBA colors via a 6 point switching head without using specialised hardware. So, has anyone investigated this/is anyone working on this/is this question completely moronic/does this already exist in some dark corner of Google? Thanks!
Re: How difficult would it be......
November 21, 2015 09:01AM
RepRapFirmware already does this, using the command format G1 X100 Y100 E5:2. In this case, the first and second extruders associated with the currently-selected tool (as selected using a Tn command) would extrude 5 and 2mm of filament respectively.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: How difficult would it be......
November 21, 2015 09:22AM
So...
T0:1
G1 X100 Y100 E5:2
T1:2:4
G1 X150 Y150 E4:1:3
would comply? Thanks, couldn't find that answer in 2 hrs of searching.
Re: How difficult would it be......
November 21, 2015 10:27AM
Quote
Nomadfeet
So...
T0:1
G1 X100 Y100 E5:2
T1:2:4
G1 X150 Y150 E4:1:3
would comply? Thanks, couldn't find that answer in 2 hrs of searching.

Not quite. First you would have to define your tools, typically in the machine configuration file (config.g), like this:

M563 P0 H1:2 D0:1       ; tool 0 uses heaters 1 and 2 and extruder drives 0 and 1
M563 P1 H2:3:4 D1:2:3   ; tool 1 uses heaters 2,3,4 and extruder drives 1,2,3

Note that a heater or extruder drive can be shared between more than one tool. Then you can do:

T0
G1 X100 Y100 E5:2
T1
G1 X150 Y150 E4:1:3

Edited 1 time(s). Last edit at 11/21/2015 10:27AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login