Пример #1
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;
 }
 private void button_read_string_Click(object sender, EventArgs e)
 {
     // 读取字符串
     DemoUtils.ReadResultRender(keyence_net.ReadString(textBox3.Text, ushort.Parse(textBox5.Text)), textBox3.Text, textBox4);
 }