Welcome! Log In Create A New Profile

Advanced

Post-procesding G1 Z for dual x carriage dual extruder

Posted by pbrgle1 
Post-procesding G1 Z for dual x carriage dual extruder
September 25, 2015 10:27AM
My nozzles in my dual x carriage setup are 0.5mm apart (Z). Would someone be so kind and write me a simple post-processing script that will add something like this: If active tool = T1, add G1 Z-0.5, else do nothing.

I never coded before and dont know how to approach this issue. I will be very grateful

Edited 1 time(s). Last edit at 09/25/2015 10:29AM by pbrgle1.
Re: Post-procesding G1 Z for dual x carriage dual extruder
September 25, 2015 10:45AM
Sending command G10 P1 Z-0.5 to your firmware will do that for you, if your firmware supports the G10 command (as any firmware that claims to support dual extrusion should).



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: Post-procesding G1 Z for dual x carriage dual extruder
September 25, 2015 10:48AM
Im using marlin because it supports dual x carriages. I dont think marlin supports G10.

Edited 1 time(s). Last edit at 09/25/2015 10:53AM by pbrgle1.
Re: Post-procesding G1 Z for dual x carriage dual extruder
September 25, 2015 10:51AM
In marlin G10 is retraction.
And M218 also doesn't seem to work...

Edited 2 time(s). Last edit at 09/25/2015 11:10AM by pbrgle1.
Re: Post-procesding G1 Z for dual x carriage dual extruder
September 25, 2015 01:29PM
Quote
pbrgle1
In marlin G10 is retraction.
And M218 also doesn't seem to work...

According to [reprap.org], M218 is supported only by Marlin, and it only allows the X and Y tool offsets to be set. So I understand your problem.



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: Post-procesding G1 Z for dual x carriage dual extruder
September 25, 2015 02:04PM
but in the marlin_main.cpp it says:

* M218 - set hotend offset (in mm), T X Y
*/
inline void gcode_M218() {
if (setTargetedHotend(218)) return;
if (code_seen('X')) extruder_offset[X_AXIS][target_extruder] = code_value();
if (code_seen('Y')) extruder_offset[Y_AXIS][target_extruder] = code_value();
#if ENABLED(DUAL_X_CARRIAGE)
if (code_seen('Z')) extruder_offset[Z_AXIS][target_extruder] = code_value();
#endif
SERIAL_ECHO_START;
SERIAL_ECHOPGM(MSG_HOTEND_OFFSET);
for (int e = 0; e < EXTRUDERS; e++) {
SERIAL_CHAR(' ');
SERIAL_ECHO(extruder_offset[X_AXIS][e]);
SERIAL_CHAR(',');
SERIAL_ECHO(extruder_offset[Y_AXIS][e]);
#if ENABLED(DUAL_X_CARRIAGE)
SERIAL_CHAR(',');
SERIAL_ECHO(extruder_offset[Z_AXIS][e]);
#endif

}
SERIAL_EOL;
}

Edited 1 time(s). Last edit at 09/25/2015 02:04PM by pbrgle1.
Re: Post-procesding G1 Z for dual x carriage dual extruder
September 25, 2015 04:06PM
So someone has tried to implement it already, but not updated the wiki. If you are certain that it doesn't work when dual carriage support is enabled, maybe you should check whether this has already been logged as an issue on github, and log a new issue if not.



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