コード例 #1
0
        private void button26_Click(object sender, EventArgs e)
        {
            OperateResult <byte[]> read = busRtuClient.ReadFromCoreServer(textBox13.Text.ToHexBytes( ));

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