> I wanted to know what gcode is sended when you abort a print via the lcd display (print from sd card).
It send nothing, it just stop reading and do dome hard-coded stuff.
What you want (nozzle lift up, bed advance):
To move the head up 2mm, write
G1 Z2.00 F7200.000
To move the bed in the front, write
G0 Y210.0 F7200.000
To "abord" a print, just write nothing after that point.
source : http://reprap.org/wiki/G-code