Beispiel #1
0
        private object ReadCoil(string address, ushort length)
        {
            OperateResult <byte[]> b = fastEnet.Read(address, length);

            if (!b.IsSuccess)
            {
                throw new InvalidOperationException($"TValue[] Read {b.Message}");
            }
            else
            {
                return(HslCommunication.BasicFramework.SoftBasic.ByteToBoolArray(b.Content));
            }
        }