Example #1
0
 public static void WriteActiveReference(PlcMaster master, string reference)
 {
     if (master == null)
     {
         return;
     }
     if (master.connected)
     {
         var data = ModbusTcpHelper.AsciiStringToByteArray(reference);
         master.WriteMultipleRegister(106, 1, master.ActiveReferenceStartAddress, data, ref data);
     }
 }
Example #2
0
 public static void WriteProductInUnloading(PlcMaster master, string dataMatrix)
 {
     if (master == null)
     {
         return;
     }
     if (master.connected)
     {
         var data = ModbusTcpHelper.AsciiStringToByteArray(dataMatrix);
         master.WriteMultipleRegister(105, 1, master.UnloadingDataMatrixStartAddress, data, ref data);
     }
 }