Hello Joop,
Below part of my conf.h end gcode, start end end
#define TEMP_SENSOR_0 2 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#define TEMP_SENSOR_1 0
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_BED 0
//===========================================================================
//=============================Mechanical Settings===========================
//===========================================================================
// ENDSTOP SETTINGS:
// Sets direction of endstops when homing; 1=MAX, -1=MIN
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR 1 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#define min_software_endstops true //If true, axis won't move to coordinates less than HOME_POS.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
// Travel limits after homing
#define X_MAX_POS 140
#define X_MIN_POS 0
#define Y_MAX_POS 140
#define Y_MIN_POS 0
#define Z_MAX_POS 138.8 // was 135 !!!!!!!!!!!!!!!!!
#define Z_MIN_POS 0
#define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
#define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
#define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
// The position of the homing switches
//#define MANUAL_HOME_POSITIONS // If defined, MANUAL_*_HOME_POS below will be used
//#define BED_CENTER_AT_0_0 // If defined, the center of the bed is at (X=0, Y=0)
// default settings
#define DEFAULT_AXIS_STEPS_PER_UNIT {160,160,160,350} // hangt van stapgrootte stepperdriver af
#define DEFAULT_MAX_FEEDRATE {101, 101, 30, 10} // (mm/sec)
#define DEFAULT_MAX_ACCELERATION {1500,1500,70,7000} //
#define DEFAULT_ACCELERATION 1000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
#define DEFAULT_RETRACT_ACCELERATION 2100 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
START GCODE CURA
G21 ;metric values
G90 ;absolute positioning
M84 S0 ;Geen disable motors anders valt printbed naar beneden
G28 Z0 ; EERSTE POGING Z HOME
G1 Z110 ; NAAR Z=110
G28 Z0 ; HOME Z NU GOED
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F{travel_speed} ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F{travel_speed}
;Put printing message on LCD screen
M117 Printing...
END G code
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
G28 Z0 ; home Z
;M84 ;steppers off STeppers niet af anders valt bed met klap naar beneden
G90 ;absolute positioning
;{profile_string}
Frits