示例#1
0
        //-------------------------------------------------------------------------------------------------------------------------
        // Get Machine Status
        //-------------------------------------------------------------------------------------------------------------------------
        public bool C2_GetMachineStatus(int DeviceID)
        {
            bool tRet = CSAFE_CtrlCmds.cmdGetStatus();

            tRet &= CSAFE_ReqData.cmdGetErrorCode();
            tRet &= C2_GetErrorValue();

            ExecuteCommands(DeviceID);

            return(tRet);
        }
示例#2
0
        //=========================================================================================================================
        // COMMANDS
        //=========================================================================================================================

        //-------------------------------------------------------------------------------------------------------------------------
        // Reset Environment
        //-------------------------------------------------------------------------------------------------------------------------
        public bool C2_EnvironmentReset(int DeviceID)
        {
            bool tRet = CSAFE_CtrlCmds.cmdReset();

            tRet &= CSAFE_CtrlCmds.cmdGoReady();

            ExecuteCommands(DeviceID);

            _Session.Devices[DeviceID].ConfigData = new CSAFE_ConfigurationDataManager(ref _Session);

            return(tRet);
        }