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