Exemple #1
0
 public static void ReadActiveReference(PlcMaster master, ref byte[] data)
 {
     if (master == null)
     {
         return;
     }
     if (master.connected)
     {
         master.ReadHoldingRegister(107, 1, master.ActiveReferenceStartAddress, 10, ref data);
     }
 }
Exemple #2
0
 public static void ReadScanData(PlcMaster master, ref byte[] data)
 {
     if (master == null)
     {
         return;
     }
     if (master.connected)
     {
         master.ReadHoldingRegister(100, 1, master.ScanStartAddress, 5, ref data);
     }
 }
Exemple #3
0
 public static void ReadProductInUnloading(PlcMaster master, ref byte[] data)
 {
     if (master == null)
     {
         return;
     }
     if (master.connected)
     {
         master.ReadHoldingRegister(102, 1, master.UnloadingDataMatrixStartAddress, 20, ref data);
     }
 }