If you run an stl file through a slice program, you get a G-code program. The printer can then read this G-code again. There are many G91 G00 X10 Y20 is a code to make the machine move incrementally in x 10mm and in Y 20mm. You can study the G-code in the slice program.