@Phaedrux thx. I didnt find out how to, so I tried a bit and got this one working: ☺
G91 ; relative positioning M574 Z1 S1 P"!0.io5.in+!1.io0.in+!1.io1.in+!1.io2.in" G1 H1 Z40 F600 M574 Z1 S1 P"0.io5.in+1.io0.in+1.io1.in+1.io2.in" G1 H1 Z-350 F600 G1 H2 Z1 F60 G1 H1 Z-10 F60 G1 H2 Z-29 F600 G90 ; absolute positioning G92 Z0