Пример #1
0
 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();
 }
Пример #2
0
        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);
            }
        }