I don't have any idea what teh message said but you need to develop a stop mechanism IF the answer said it failed.
If GetOemDro(151)<1750 Then
MsgBox ("MSG,te groot voor de tafel!")
Dobutton(3) ' Cancel the Gcode program if loaded
End ' End the script
ELSE
Do what ever
End If