コード例 #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            OperateResult <bool[]> read = allenBradleyNet.ReadBoolArray(textBox3.Text);

            if (read.IsSuccess)
            {
                textBox4.Text = $"Result[{DateTime.Now:HH:mm:ss}]:" + HslCommunication.BasicFramework.SoftBasic.ArrayFormat(read.Content);
            }
            else
            {
                MessageBox.Show("Read failed:" + read.ToMessageShowString( ));
            }
        }