I don't know if that is your particular printers correct commands, they look fine though.
Is the part of the sub-program that commands motion missing? In other words, on most stuff, you would have a axis call, a feed rate and distance to go to make it move. It might be G01 to start a feed rate (Gzero1) X 2.5 distance F200 for whatever federate in the correct measuring system for your machine. Give the E axis the same.
Depending on how your thing reads code, you have to present code the way your thing reads it. How much info per line, how to end a line, how to space a line, in other words, G code composition. Just like writing English, compose by the rules and G-code makes sense to your audience, your thing.
Get a list of the codes that work with your thing, find out the program format so your programs will be understood, write a line. watch it move, or not, try another, same thing again...If you care to master G code, you can easily. there are limited options, (the G and M codes) that when fed in correctly will always have the same outcome.
I work in machining and design and always say, the easy part is moving to any point, the harder part is knowing why.
Below is a splash of what one of my things needs to do what you want somewhere in there, for reference, yours would be different for the bed leveling info:
G90
M82
M106 S0
M140 S60
M190 S60
M104 S220 T0
M109 S220 T0
M115 U3.0.7 ; use the latest firmware version
G28 W ; home all axes without mesh bed leveling
G80 ; run mesh bed leveling routine
G1 Y-3.0 F1000.0 ; prepare to prime
G92 E0 ; reset extrusion distance
G1 X60.0 E9.0 F1000.0 ; priming
G1 X100.0 E12.5 F1000.0 ; priming
G92 E0
G1 E-1.5000 F1800
G1 Z0.130 F1000
; process
; layer 1, Z = 0.130
T0
; tool H0.200 W0.462
; skirt
G1 X49.362 Y60.974 F4800
G1 E0.0000 F540
G92 E0
G1 X49.393 Y60.943 E0.0017 F1400
G1 X50.290 Y60.097 E0.0490
G1 X50.323 Y60.067 E0.0508
G1 X50.430 Y59.975 E0.0562
G1 X50.465 Y59.947 E0.0579
G1 X51.445 Y59.185 E0.1056
G1 X51.483 Y59.157 E0.1074
G1 X51.603 Y59.073 E0.1130
G1 X51.643 Y59.047 E0.1149
Edited 1 time(s). Last edit at 12/26/2019 01:51PM by kengineer.