示例#1
0
        private void test5( )
        {
            OperateResult <byte[]> read = fujiSPB.Read("D100", 10);

            if (read.IsSuccess)
            {
                int    count   = fujiSPB.ByteTransform.TransInt32(read.Content, 0);
                float  temp    = fujiSPB.ByteTransform.TransSingle(read.Content, 4);
                short  name1   = fujiSPB.ByteTransform.TransInt16(read.Content, 8);
                string barcode = Encoding.ASCII.GetString(read.Content, 10, 10);
            }
        }