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