Example #1
0
 //第二步:编写委托方法
 private byte[] GetData(ModTCP modTCP)
 {
     try
     {
         return(modTCP.ReadKeepReg(0, 8));
     }
     catch (Exception)
     {
         return(null);
     }
 }
Example #2
0
 public Form1()
 {
     InitializeComponent();
     modTCP = new ModTCP();
 }