public bool CheckPSHealthy(Model.PSData objPSData) { bool isHealthy = false; objPSDaoService = new PSDaoImp(); using (OpcOperationsService opcd = new OpcOperationsImp(OpcConnection.GetOPCServerConnection())) { if (opcd.IsMachineHealthy(objPSData.machineChannel + "." + objPSData.machineCode + "." + OpcTags.PS_Shuttle_Aisle_Position_for_L2)) { isHealthy = opcd.ReadTag <bool>(objPSData.machineChannel, objPSData.machineCode, OpcTags.PS_L2_Auto_Ready_Bit); isHealthy = isHealthy && !objPSDaoService.IsPSDisabled(objPSData.machineCode); isHealthy = isHealthy && !objPSDaoService.IsPSSwitchOff(objPSData.machineCode); } } return(isHealthy); }
public bool IsPSDisabled(string machineName) { objPSDaoService = new PSDaoImp(); return(objPSDaoService.IsPSDisabled(machineName)); }