EquipmentManager中当触发设备报警时,重新使能三色灯的Buzzer。

移除PM2中三色灯定义。
This commit is contained in:
Liang Su 2023-06-12 11:38:06 +08:00
parent 6b57da3589
commit 6a655d8830
6 changed files with 20 additions and 75 deletions

View File

@ -494,14 +494,7 @@
<SicServos classType="Aitex.Core.RT.Device.Devices.SicServo" assembly="MECF.Framework.RT.EquipmentLibrary">
<SicServo id="PMServo" module="" display="PMServo" schematicId="PMServo" unit="" aioType="float" aiActualSpeed="AI_ActualSpeed" aiActualCurrent="AI_ActualCurrent" aiAccSpeed="AI_ActualspeedACC" aiDecSpeed="AI_ActualspeedDEC" aoActualSpeedSetPoint="AO_SpindleSpeed" aoAccSpeedSetPoint="AO_SpindleACC" aoDecSpeedSetPoint="AO_SpindleDEC" diServoReady="DI_ServoReady" diServoError="DI_ServoDriverFaultSW" doServoEnable="DO_ServoEnable" doServoInital="DO_ServoInitial" doServoReset="DO_ServoReset" />
</SicServos>
<IoSignalTowers classType="MECF.Framework.RT.EquipmentLibrary.Devices.IoSignalTower" assembly="MECF.Framework.RT.EquipmentLibrary">
<IoSignalTower id="SignalTower" module="PM2" display="SignalTower" schematicId="PMSignalTower"
eventFile="PM2_STEvents.xml"
doGreen="DO_TowerGreen"
doYellow="DO_TowerYellow"
doRed="DO_TowerRed"
doBuzzer="DO_Buzzer" />
</IoSignalTowers>
<IoChamberMoveBodys classType="Aitex.Core.RT.Device.Devices.IoChamberMoveBody" assembly="MECF.Framework.RT.EquipmentLibrary">
<IoChamberMoveBody id="ChamberMoveBody" module="" display="ChamberMoveBody" schematicId="ChamberMoveBody" unit="" aioType="" diUpFaceback="DI_ChamMoveBodyUp" diDownFaceback="DI_ChamMoveBodyDown" diFront=" DI_ChamMoveBodyFront" diEndFaceback="DI_ChamMoveBodyEnd" doUpSetpoint="DO_ChamMoveBodyUp" doDownSetpoint="DO_ChamMoveBodyDown" doUpBrake="DO_ChamMoveBodyUpAirBrake" doForward="DO_ChamMoveBodyForward" doBackward="DO_ChamMoveBodyBackward" doForwardLatch="DO_ChamMoveBodyBrakerForward" doBackwardLatch="DO_ChamMoveBodyBrakerBackward" diForwardLatch="DI_ChamMoveBodyUpLatchFW" diBackwardLatch="DI_ChamMoveBodyEndLatchBW" diRemote="DI_ChamLidPushButtonLocal" diLock="DI_ManualLidUpPB" diUpDownEnable="DI_ChamMoveBodyUpDownEnableFB" doUpDownEnable="DO_ChamMoveBodyUpDownEnable" />
</IoChamberMoveBodys>

View File

@ -94,8 +94,6 @@ namespace SicModules.PMs
#region Servo & SignalTower && TV
[Tag("SignalTower")] public IoSignalTower _signalTower { get; set; }
[Tag("PMServo")] public SicServo _sicServo { get; set; }
//[Tag("PMAETemp")]

View File

@ -11,6 +11,7 @@
<STEvents>
<STEvent name="PM1.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="PM2.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="TM.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="LoadLock.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="UnLoad.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
@ -20,6 +21,7 @@
<STEvent name="TrayRobot.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="PM1.IsWarning" Red="Off" Yellow="On" Green="Off" Buzzer="Warning" />
<STEvent name="PM2.IsWarning" Red="Off" Yellow="On" Green="Off" Buzzer="Warning" />
<STEvent name="TM.IsWarning" Red="Off" Yellow="On" Green="Off" Buzzer="Warning" />
<STEvent name="LoadLock.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
<STEvent name="UnLoad.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
@ -29,8 +31,10 @@
<STEvent name="TrayRobot.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
<STEvent name="PM1.IsProcessing" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="PM2.IsProcessing" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="PM1.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="PM2.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="TM.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="LoadLock.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="UnLoad.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />

View File

@ -1,45 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<STEvents>
<STPatterns>
<!--注意:"JobDone"为系统保留模式,请仅更改"pattern",其余属性请勿修改 -->
<STPattern name="JobDone" pattern="--.........." cycles="-1" priority="-1" part="Buzzer" />
<STPattern name="Alarm" pattern="-----.." cycles="-1" priority="0"/>
<STPattern name="Warning" pattern="-----......." cycles="-1" priority="5"/>
<STPattern name="Blink" pattern="----------.........." cycles="-1" priority="10"/>
</STPatterns>
<STEvents>
<STEvent name="PM2.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="TM.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="LoadLock.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="UnLoad.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="EFEM.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="Aligner.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="WaferRobot.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="TrayRobot.IsAlarm" Red="On" Yellow="Off" Green="Off" Buzzer="Alarm" />
<STEvent name="PM2.IsWarning" Red="Off" Yellow="On" Green="Off" Buzzer="Warning" />
<STEvent name="TM.IsWarning" Red="Off" Yellow="On" Green="Off" Buzzer="Warning" />
<STEvent name="LoadLock.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
<STEvent name="UnLoad.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
<STEvent name="EFEM.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
<STEvent name="Aligner.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
<STEvent name="WaferRobot.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
<STEvent name="TrayRobot.IsWarning" Red="On" Yellow="Off" Green="Off" Buzzer="Warning" />
<STEvent name="PM2.IsProcessing" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="PM2.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="TM.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="LoadLock.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="UnLoad.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="Aligner.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="WaferRobot.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="TrayRobot.IsBusy" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
<STEvent name="System.IsAutoRunning" Red="Off" Yellow="Off" Green="On" Buzzer="Off" />
</STEvents>
</STEvents>

View File

@ -170,8 +170,6 @@ namespace SicRT.Equipments.Systems
private IoSlitValve _pm2SlitValve = null;
private PeriodicJob _thread;
//
private IoSignalTower _st = null;
//
private IoTC _tc = null;
private List<IoPTOffsetAndK> ioPTOffsetAndKs = new List<IoPTOffsetAndK>();
@ -294,8 +292,6 @@ namespace SicRT.Equipments.Systems
//_pmAETemp1 = DEVICE.GetDevice<SicAETemp>("PM1.PMAETemp");
//_pmAETemp2 = DEVICE.GetDevice<SicAETemp>("PM2.PMAETemp");
//
_st = DEVICE.GetDevice<IoSignalTower>("PM1.SignalTower");
_tc = DEVICE.GetDevice<IoTC>("PM1.TC1");
IniioPTOffsetAndKs();
@ -597,34 +593,38 @@ namespace SicRT.Equipments.Systems
#endregion
}
private void Instance_OnAlarmEvent(EventItem obj)
private void Instance_OnAlarmEvent(EventItem ev)
{
FSM_MSG msg = FSM_MSG.NONE;
if (obj.Level == EventLevel.Warning)
FSM_MSG msg;
if (ev.Level == EventLevel.Warning)
msg = FSM_MSG.WARNING;
else if (obj.Level == EventLevel.Alarm)
else if (ev.Level == EventLevel.Alarm)
{
msg = FSM_MSG.ALARM;
switch (obj.Source)
// 如果设备产生报警则向设备所在的Module发送状态机信号切换到Error状态。
switch (ev.Source)
{
case "PM1":
case "PM2":
case "EFEM":
case "TM":
default:
if (Modules.ContainsKey(ModuleHelper.Converter(obj.Source)))
if (Modules.ContainsKey(ModuleHelper.Converter(ev.Source)))
{
Modules[ModuleHelper.Converter(obj.Source)]?.PostMsg(msg, obj.Id, obj.Description);
Modules[ModuleHelper.Converter(ev.Source)]?.PostMsg(msg, ev.Id, ev.Description);
}
break;
}
/*
if (_st != null)
// 产生新的报警时重新启用Buzzer
foreach (var dev in DEVICE.GetAllDevice().Where(x=>x is IoSignalTower).ToList())
{
_st.SwitchOffBuzzer(false);
}*/
if(dev is IoSignalTower st)
st?.SwitchOffBuzzer(false);
}
}
}

View File

@ -228,11 +228,6 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="Config\PM2_STEvents.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>