private void button_read_long_Click(object sender, EventArgs e)
 {
     // 读取long变量
     if (textBox12.Text == "1")
     {
         DemoUtils.ReadResultRender(keyence_net.ReadInt64(textBox3.Text), textBox3.Text, textBox4);
     }
     else
     {
         DemoUtils.ReadResultRender(keyence_net.ReadInt64(textBox3.Text, ushort.Parse(textBox12.Text)), textBox3.Text, textBox4);
     }
 }
Example #2
0
 private void test3()
 {
     // These are the underlying operations that ignore validation of success
     short  d100_short  = keyence_net.ReadInt16("D100").Content;
     ushort d100_ushort = keyence_net.ReadUInt16("D100").Content;
     int    d100_int    = keyence_net.ReadInt32("D100").Content;
     uint   d100_uint   = keyence_net.ReadUInt32("D100").Content;
     long   d100_long   = keyence_net.ReadInt64("D100").Content;
     ulong  d100_ulong  = keyence_net.ReadUInt64("D100").Content;
     float  d100_float  = keyence_net.ReadFloat("D100").Content;
     double d100_double = keyence_net.ReadDouble("D100").Content;
     // need to specify the text length
     string d100_string = keyence_net.ReadString("D100", 10).Content;
 }
Example #3
0
 private void button_read_long_Click(object sender, EventArgs e)
 {
     // 读取long变量
     DemoUtils.ReadResultRender(keyence_net.ReadInt64(textBox3.Text), textBox3.Text, textBox4);
 }