So gcode...l its a kind a programming language but more primitive. Its like giving specific instruction to the printer with code difficult to recognize, but it doesn't have much logic like general programming will have. Gcode programs are read once from top to bottom by the machine, no repeating code neither thinking by the 3d printer.
Stage 11, step 5. Here you can see the machine settings menu. To the bottom left the gcode executed before the printer stars and to the bottom right the code that is run after the print stops. You can add all sort of crazy stuff in here.
https://makertech-3d.dozuki.com/Guide/Stage+11+-+First+Print/17?lang=en
Lets analyze the following gcode, this is my starting gcode and should me equal to most people:
;----------Proforge 2S Start G-code----------
M201 X900 Y900 Z50 E5000
M140 S{material_bed_temperature_layer_0} ;Set Bed Temp
M104 S{material_print_temperature_layer_0} T0; Heat up Hotend 1 (T0)
M109 S{material_print_temperature_layer_0} T0; Wait for Hotend 1 (T0)
G28 ;Home
G29 ;Autolevel Bed
G1 F8000 X10 Y3 ;Move hotend to bottom left corner
G1 Z3 ;Move Hotend to assumed Z Home
; ---Unique to your setup---
G92 Z0.47 ;Set Z-offset in 0.1mm incriments (increase if first layer too high, decrease if too low)
; --------------------------
G1 Z{layer_height_0} ;Set to first layer height
M82 ;absolute extrusion mode
G92 E0 ;Zero Extruder
G1 F1500 X290 E12 ;Prime Hotend
; ----------Proforge 2S Start G-code----------
Pretty strange code isn't it? But thanks to Makertech that made a comment in each line we can figure this out faster, check this part of the code:
G29 ;Autolevel Bed
G1 F8000 X10 Y3 ;Move hotend to bottom left corner
G1 Z3 ;Move Hotend to assumed Z Home
First line seems to call to the autolevel function, this will trigger the 9 point readings. Question, is the probe(blue thing) always on top of the bed surface when you are printer autolevels?
Second line is the code we wanna change, this code tells the extruder to move to this point, somehow in your setup Daryl this is making your extruder go too far. So you have to investigate in the internet what each of this codes "G1 F8000 X10 Y3" means and modify the numerical values to a value that works for you. You can test this codes with pronterface remember, Stage 10:
https://makertech-3d.dozuki.com/Guide/Stage+10+-+Programming/16?lang=en
So test playing with this code in pronterface and if you find out values that work for you then change the machine settings so you get a correct test line before printing. Unless you like living a dangerous life research the codes before using them in pronterface.
I don't really know gcode, you have to study it and solve the problem yourself =), but I can guide you if you have more doubts or problems, just ask. And if someone knows gcode and what I just said is wrong then please correct me hehe xD.