Beispiel #1
0
 private void button24_Click(object sender, EventArgs e)
 {
     // bool写入
     DemoUtils.WriteResultRender(() => keyence_net.Write(textBox8.Text, new bool[] { bool.Parse(textBox7.Text) }), textBox8.Text);
 }
Beispiel #2
0
        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   = keyence_net.Write("M100", values);

            if (read.IsSuccess)
            {
                // success
            }
            else
            {
                // failed
            }
        }
 private void button24_Click(object sender, EventArgs e)
 {
     // bool写入
     try
     {
         writeResultRender(keyence_net.Write(textBox8.Text, new bool[] { bool.Parse(textBox7.Text) }), textBox8.Text);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }