Ejemplo n.º 1
0
        private void button26_Click(object sender, EventArgs e)
        {
            OperateResult <byte[]> read = xGBCnet.ReadBase(HslCommunication.Serial.SoftCRC16.CRC16(HslCommunication.BasicFramework.SoftBasic.HexStringToBytes(textBox13.Text)));

            if (read.IsSuccess)
            {
                textBox11.Text = "Result:" + HslCommunication.BasicFramework.SoftBasic.ByteToHexString(read.Content);
            }
            else
            {
                MessageBox.Show("Read Failed:" + read.ToMessageShowString( ));
            }
        }