private void test2() { // the next we want write data bool[] values = new bool[] { true, false, true, true, false, true, false, true, true, false }; OperateResult read = melsecA3C.Write("M100", values); if (read.IsSuccess) { // success } else { // failed } }
private void button24_Click(object sender, EventArgs e) { // bool写入 DemoUtils.WriteResultRender(() => melsecA3C.Write(textBox8.Text, bool.Parse(textBox7.Text)), textBox8.Text); }