I’m trying to edit a simple startup gcode to lay a layer down etc. but I seem to uncenter the 3d print.

The code pIrint a layer but my object starts in the corner instead of where specified in Simplify3D.

+++++++++++++++++

; Start Gcode that should clean nozzle and check 1st layer

;

M117 Clean ; Indicate nozzle clean in progress on LCD

;M109 S215 ; Uncomment to set your own temp [run warmer to clean out nozzle]

M107 ; Turn layer fan off

G21 ; Set to metric [change to G20 if you want Imperial]

G90 ; Force coordinates to be absolute relative to the origin

G28 ; Home X/Y/Z axis

G0 X10 Y0 Z0.15 F9000 ; Move in 1mm from edge and up [z] 0.15mm

G92 E0 ; Set extruder to [0] zero

G1 Y150 E100 F500 ; Extrude 100mm filiment along Y axis 290mm long to prime and clean the nozzle

G92 E0 ; Reset extruder to [0] zero end of cleaning run

G1 E-3 F500 ; Retract filiment by 3 mm to reduce string effect

G1 X10 Y150 Z15 F9000 ; Move over and rise to safe Z height

G1 X125 Y125 Z15 F9000 ; Move back to front of bed at safe Z height to shear strings

++++++++++++++++++++

I tried adding a G28 but that lead to a problem at the beginning.

Its a relative/absolute problem I think, any help very much appreciated.