Ejemplo n.º 1
0
        private void button8_Click(object sender, EventArgs e)
        {
            // 字节变量读取
            OperateResult <byte> read = YRC1000Tcp.ReadByteVariable(ushort.Parse(textBox5.Text));

            if (read.IsSuccess)
            {
                textBox4.Text = DateTime.Now.ToString( ) + Environment.NewLine + read.Content;
            }
            else
            {
                MessageBox.Show("Read Failed: " + read.Message);
            }
        }
 private void button8_Click(object sender, EventArgs e)
 {
     // 字节变量读取
     DemoUtils.ReadResultRender(YRC1000Tcp.ReadByteVariable(ushort.Parse(textBox5.Text)), textBox5.Text, textBox4);
 }