In your slicer you will have a section for GCode commands that are run at the very start and end of every print. In Cura/JGCreat, these are found in the machine settings.
There are several good videos on this topic that are linked at the bottom of this article. These will give you a great introduction into what is possible to achieve with starting and ending gcode commands.
Typically this contains several functions:
The lift up and extrude is the “purge and prime” to ensure that filament is flowing correctly. If the filament is left at home position for too long while the nozzle is hot, the filament can ooze out. Then the nozzle will not be ready for printing. The purge and prime gets the filament flowing again ready for printing.
You can add a “wipe” step to the starting gcode after the “purge”. Replace the start gcode listed above with the lines below - or watch the videos below.
Thanks to DaHai for the wipe script.
As the home positions on the A5 has the bed towards the back of the printer, one useful command to add to the end GCode, is a command to bring the Y-axis forward to the front once the print is finished. e.g. “G0 Y280 F600”
Thanks to Rich Haubert for the suggestion to insert a small filament retraction.
Your 3D printer must wait to get to temperature before trying to prime the extruder. Without doing so, it will do nothing but grind the gears on the filament (or crush flexible filament) unless it is still hot enough from a print immediately beforehand. However, the three lines below only have software-specific notation.
If you are using Cura, then you do not need to add these lines to your start gcode, they are automatically added.
If you are using Slic3r, then you may want to check that you have the following lines in your start gcode.
For Cura you can add additional wait commands to the start gcode if you want, but note that the format is slightly different (See here):
Thanks to Poikilos for info on Wait for temperature.