Ejemplo n.º 1
0
        private void button11_Click(object sender, EventArgs e)
        {
            // 实数读取
            OperateResult <float> read = YRC1000Tcp.ReadRealVariable(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 button11_Click(object sender, EventArgs e)
 {
     // 实数读取
     DemoUtils.ReadResultRender(YRC1000Tcp.ReadRealVariable(ushort.Parse(textBox5.Text)), textBox5.Text, textBox4);
 }