Example #1
0
        private void button26_Click(object sender, EventArgs e)
        {
            OperateResult <byte[]> read = melsecSerial.ReadFromCoreServer(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( ));
            }
        }