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)); } }
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)); } }