M107 G21 ; set units to millimeters G90 ; use absolute coordinates M83 ; use relative distances for extrusion ; G28 ; home all axes G4 S2 M300 S330 P200 ; ton 330Hz 0,2s M117 AUTO-PARK test X1; ; test IDEX X1 ------------------------------- T0 G1 X-10 F3000 G4 S2 G1 X250 E200 G4 S2 G1 X120 E-100 G4 S2 M117 AUTO-PARK test X2; ; ; test IDEX X2 ------------------------------- T1 G1 X-10 G4 S2 G1 X250 E200 G4 S2 G1 X120 E-100 G4 S2 M300 S330 P200 ; ton 330Hz 0,2s M117 DUPLICATE mode ; ; test DUPLICATE mode ------------------------ M605S1 T0 M605 S2 G28X G1X0 G4 S2 ; G1 X130 E100 G4 S2 G1 X-10 E-100 G4 S2 M300 S330 P200 ; ton 330Hz 0,2s M117 MIRRORED mode ; ; test MIRRORED mode ------------------------- M605S1 T0 M605 S2 X240 G28X G1X0 M605 S3 G4 S2 ; G1 X95 E100 G4 S2 G1 X-10 E-100 G4 S2 M300 S330 P200 ; ton 330Hz 0,2s M117 FULL CONTROL mode ; ; test FULL CONTROL mode ------------------------- M605S0 G28X ; T0 G1 X60 T1 G1 X120 T0 G1 X-50 ; X1 parking T1 G1 X-10 G4 S2 G1 X120 E100 G1 X250 E-100 G4 S2 G1 X180 T0 G1 X120 T1 G1 X300 ; X2 parking T0 G1 X250 G4 S2 G1 X120 E100 G1 X-10 E-100 G4 S2 G1 X 60 G4 S2 ; T1 G1 X180 T0 G4 S2 M300 S330 P200 ; ton 330Hz 0,2s M117 AUTO-PARK mode ; ; test AUTO-PARK mode ------------------------- M605 S1 ;G28X G28 G1X0 ; T0 G1 X250 E100 G1 X120 G4 S2 ; ; test Y ------------------------------- G1 Y-5 F3000 G4 S2 G1 Y 250 G4 S2 G1 Y 120 G4 S2 ; M300 S330 P200 ; ton 330Hz 0,2s G4 P500 M300 S330 P200 ; ton 330Hz 0,2s ; M84 ; disable motors -------------------------- M280 P1 S90 ; servo 1 center -------------------------- M280 P2 S90 ; servo 2 center -------------------------- ; ; ------------ Marlin configuration ------------------ ; ; ; ******* Marlin\Configuration.h ********** ; ;// Direction of endstops when homing; 1=MAX, -1=MIN ;// :[-1,1] ;#define X_HOME_DIR -1 ;#define Y_HOME_DIR -1 ;#define Z_HOME_DIR -1 ; ;// @section machine ; ;// The size of the print bed ;#define X_BED_SIZE 240 ;#define Y_BED_SIZE 240 ; ;// Travel limits (mm) after homing, corresponding to endstop positions. ;#define X_MIN_POS -50 ;#define Y_MIN_POS -8 ;#define Z_MIN_POS 0 ;#define X_MAX_POS X_BED_SIZE ;#define Y_MAX_POS Y_BED_SIZE ;#define Z_MAX_POS 200 ; ; ;********* Marlin\Configuration_adv.h ************* ; ;#define DUAL_X_CARRIAGE ;#if ENABLED(DUAL_X_CARRIAGE) ; #define X1_MIN_POS X_MIN_POS // Set to X_MIN_POS ; #define X1_MAX_POS X_BED_SIZE // Set a maximum so the first X-carriage can't hit the parked second X-carriage ; #define X2_MIN_POS 0 // Set a minimum to ensure the second X-carriage can't hit the parked first X-carriage ; #define X2_MAX_POS X_BED_SIZE // Set this to the distance between toolheads when both heads are homed ; #define X2_HOME_DIR 1 // Set to 1. The second X-carriage always homes to the maximum endstop position ; #define X2_HOME_POS 300 // Default X2 home position. Set to X2_MAX_POS. ; // However: In this mode the HOTEND_OFFSET_X value for the second extruder provides a software ; // override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops ; // without modifying the firmware (through the "M218 T1 X???" command). ; // Remember: you should set the second extruder x-offset to 0 in your slicer.; ; ; // This is the default power-up mode which can be later using M605. ; #define DEFAULT_DUAL_X_CARRIAGE_MODE DXC_AUTO_PARK_MODE ; ; // Default x offset in duplication mode (typically set to half print bed width) ; #define DEFAULT_DUPLICATION_X_OFFSET 120 ; ; // Default action to execute following M605 mode change commands. Typically G28X to apply new mode. ; //#define EVENT_GCODE_IDEX_AFTER_MODECHANGE "G28X" ;#endif