예제 #1
0
 public int ExecuteWrite(string name, int startAddress, int size, short[] writeValues)
 {
     if (McCommand.IsBitDevice(name))
     {
         return(executeWriteBitVal(name, startAddress, size, writeValues));
     }
     else
     {
         return(executeWriteWordVal(name, startAddress, size, writeValues));
     }
 }
예제 #2
0
 public int ExecuteRead(string name, int startAddress, int size, ref short[] values)
 {
     if (McCommand.IsBitDevice(name))
     {
         return(executeReadBitVal(name, startAddress, size, ref values));
     }
     else
     {
         return(executeReadWordVal(name, startAddress, size, ref values));
     }
 }