private void InitializeMembers() { plcReply = String.Empty; m_Boot = String.Empty; m_FactoryBoot = String.Empty; m_BinLib = String.Empty; m_hwVersion = String.Empty; m_OperandsExecuterType = OperandsExecuterType.ExecuterAscii; initOperandsCount(); }
private void SetPLCExecuterType(int executerNo) { switch (executerNo) { case 1: m_OperandsExecuterType = OperandsExecuterType.ExecuterAscii; break; case 3: m_OperandsExecuterType = OperandsExecuterType.ExecuterFullBinaryMix; break; case 2: m_OperandsExecuterType = OperandsExecuterType.ExecuterPartialBinaryMix; break; default: throw new ComDriveExceptions("Invalid PLC Executer No!", ComDriveExceptions.ComDriveException.UnexpectedError); } }