public async Task <CNCMessage> MoveByXYZ(double X, double Y, double Z, double F) { CNCMessage tmp = null; await Task.Run(() => { CNCMessage message = Protokoll.GetMoveByXYZMessage(X, Y, Z, F); Interface.SendMessage(message); CNCMessage t = new CNCMessage() { Message = "ok" }; tmp = Interface.WaitReceiveMessage(100, t, 1000); }); return(tmp); }