This code will work as a button script you will have to setup your Work 0,0 and safe Z height the Feedrate is set in the script.
SetVar(120,30) 'SetFeedrate
SetVar(100,Getoemdro(4))
Sleep(100)
SetVar(101,Getoemdro(10))
Sleep(100)
Setvar(110,Getoemdro(5))
Sleep(100)
Setvar(111,Getoemdro(11))
Sleep(100)
Code"G1 X#100 Y#110 F#120"
While Ismoving()
Wend
Code"G1 X#100 Y#111 F#120"
While Ismoving()
Wend
Code"G1 X#101 Y#111 F#120"
While Ismoving()
Wend
Code"G1 X#101 Y#110 F#120"
While Ismoving()
Wend
Code"G1 X#100 Y#110 F#120"
While Ismoving()
Wend