Esempio n. 1
0
        public Task <OperateResult <short> > ReadInt16Async(string address)
        {
            var tcs = new TaskCompletionSource <OperateResult <short> >();

            m_plc.BeginReadInt16(address, read =>
            {
                tcs.SetResult(read);
            });
            return(tcs.Task);
        }