添加部分配置

This commit is contained in:
SIC1016\caipeilun 2026-08-27 16:37:19 +08:00
parent 330e140fca
commit 5ca860c3f3
4 changed files with 65 additions and 39 deletions

View File

@ -164,7 +164,7 @@
<!--存放垃圾IO数据-->
<DI_ITEM Index="220" Name="DI_WaferCassetLeftInch6" BufferOffset="220" Addr="220" Description="" Visible="false"/>
<!--<DI_ITEM Index="220" Name="DI_WaferCassetLeftInch6" BufferOffset="220" Addr="220" Description="" Visible="false"/>
<DI_ITEM Index="220" Name="DI_WaferCassetRightInch6" BufferOffset="220" Addr="220" Description="" Visible="false"/>
<DI_ITEM Index="220" Name="DI_WaferCassetLeftConvexSensor" BufferOffset="220" Addr="220" Description="" Visible="false"/>
<DI_ITEM Index="220" Name="DI_WaferCassetRightConvexSensor" BufferOffset="220" Addr="220" Description="" Visible="false"/>
@ -177,7 +177,7 @@
<DI_ITEM Index="220" Name="DI_LoadTrayCYOpenFB" BufferOffset="220" Addr="220" Description="" Visible="false"/>
<DI_ITEM Index="220" Name="DI_LoadRSideDoorCloseFB" BufferOffset="220" Addr="220" Description="" Visible="false"/>
<DI_ITEM Index="220" Name="DI_LoadRSideDoorOpenFB" BufferOffset="220" Addr="220" Description="" Visible="false"/>
<DI_ITEM Index="220" Name="DI_LoadRSideDoorOpenFB" BufferOffset="220" Addr="220" Description="" Visible="false"/>-->
<!--存放垃圾IO数据-->
<DI_ITEM Index="221" Name="DI_TMPMAS7ComErr" BufferOffset="221" Addr="221" Description="" />
@ -292,14 +292,14 @@
<DO_ITEM Index="154" Name="DO_LdRotationMoveCCD2Pos" BufferOffset="154" Addr="154" Description="" Visible="false"/>
<!--垃圾IO数据-->
<DO_ITEM Index="158" Name="DO_LoadLidLock" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<!--<DO_ITEM Index="158" Name="DO_LoadLidLock" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<DO_ITEM Index="158" Name="DO_LoadLidUnlock" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<DO_ITEM Index="158" Name="DO_LoadWaferCYClamp" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<DO_ITEM Index="158" Name="DO_LoadWaferCYOpen" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<DO_ITEM Index="158" Name="DO_LoadTrayCYClamp" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<DO_ITEM Index="158" Name="DO_LoadTrayCYOpen" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<DO_ITEM Index="158" Name="DO_LoadRSideDoorClose" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<DO_ITEM Index="158" Name="DO_LoadRSideDoorOpen" BufferOffset="158" Addr="158" Description="" Visible="false"/>
<DO_ITEM Index="158" Name="DO_LoadRSideDoorOpen" BufferOffset="158" Addr="158" Description="" Visible="false"/>-->
<!--垃圾IO数据-->
</Block>
</Dig_Out>

View File

@ -1230,11 +1230,13 @@
</configs>
<configs name="Kalman">
<config default="1;1;1;1;1;1;" name="Coefficients" description="卡尔曼滤波器系数;每个系数之间使用;分隔" max="" min="" paramter="" tag="" unit="" type="String" />
<config default="132.12" name="R" description="测量噪声协方差" max="100000" min="0" paramter="" tag="" unit="" type="Double" />
<config default="0.7169" name="QScale" description="过程噪声缩放因子" max="100000" min="0" paramter="" tag="" unit="" type="Double" />
</configs>
</configs>
</configs>
</configs>
<configs name="PM2">
<configs name="PM2" visible ="false">
<config default="PM2" name="DisplayName" description="PM自定义名称" max="" min="" paramter="" tag="" unit="" type="String" />
<config default="#00FFFFFF" name="BackgroundColor" description="PM页面自定义背景色" max="" min="" paramter="" tag="" unit="" type="Color" />
<config default="PN2" name="OperationView" description="PM气路图界面" max="" min="" paramter="PN2" tag="ReadOnlySelection" unit="" type="String" />
@ -1869,6 +1871,8 @@
</configs>
<configs name="Kalman">
<config default="1;1;1;1;1;1;" name="Coefficients" description="卡尔曼滤波器系数;每个系数之间使用;分隔" max="" min="" paramter="" tag="" unit="" type="String" />
<config default="132.12" name="R" description="测量噪声协方差" max="100000" min="0" paramter="" tag="" unit="" type="Double" />
<config default="0.7169" name="QScale" description="过程噪声缩放因子" max="100000" min="0" paramter="" tag="" unit="" type="Double" />
</configs>
</configs>
</configs>

View File

@ -95,7 +95,8 @@ namespace MECF.Framework.Common.Aitex.Core.RT.Device
EventLevel.Warning);
_alarmEvent = SubscribeAlarm($"{Module}.{Display}.ToleranceAlarm", "", ResetAlarmChecker);
if (SC.ContainsItem($"{ScBasePath}.{Display}.EnableAlarm"))
{
SC.RegisterValueChangedCallback($"{ScBasePath}.{Display}.EnableAlarm", (newValue) =>
{
if (!bool.TryParse(newValue.ToString(), out _isEnableErrDetection))
@ -105,6 +106,10 @@ namespace MECF.Framework.Common.Aitex.Core.RT.Device
}
});
}
if (SC.ContainsItem($"{ScBasePath}.AlarmRange"))
{
SC.RegisterValueChangedCallback($"{ScBasePath}.AlarmRange", (newValue) =>
{
if (!double.TryParse(newValue.ToString(), out _alarmRange))
@ -113,6 +118,10 @@ namespace MECF.Framework.Common.Aitex.Core.RT.Device
LOG.Error($"Unable to convert {ScBasePath}.{Display}.AlarmRange value {newValue} to double");
}
});
}
if (SC.ContainsItem($"{ScBasePath}.AlarmTime"))
{
SC.RegisterValueChangedCallback($"{ScBasePath}.AlarmTime", (newValue) =>
{
if (!double.TryParse(newValue.ToString(), out _alarmTime))
@ -121,6 +130,10 @@ namespace MECF.Framework.Common.Aitex.Core.RT.Device
LOG.Error($"Unable to convert {ScBasePath}.{Display}.AlarmRange value {newValue} to double");
}
});
}
if (SC.ContainsItem($"{ScBasePath}.WarningRange"))
{
SC.RegisterValueChangedCallback($"{ScBasePath}.WarningRange", (newValue) =>
{
if (!double.TryParse(newValue.ToString(), out _warningRange))
@ -129,6 +142,10 @@ namespace MECF.Framework.Common.Aitex.Core.RT.Device
LOG.Error($"Unable to convert {ScBasePath}.{Display}.WarningRange value {newValue} to double");
}
});
}
if (SC.ContainsItem($"{ScBasePath}.WarningTime"))
{
SC.RegisterValueChangedCallback($"{ScBasePath}.WarningTime", (newValue) =>
{
if (!double.TryParse(newValue.ToString(), out _warningTime))
@ -139,6 +156,8 @@ namespace MECF.Framework.Common.Aitex.Core.RT.Device
});
}
}
#endregion
#region Properties

View File

@ -61,7 +61,10 @@ namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.GasFlow
public void Initialize(string moduleName)
{
ModuleName = moduleName;
if (SC.ContainsItem($"PM.{ModuleName}.Efficiency.{GasFlowRatioName}"))
{
SC.RegisterValueChangedCallback($"PM.{ModuleName}.Efficiency.{GasFlowRatioName}", OnGasFlowRatioSCChanged);
}
GasFlowRatioValue = SC.SafeGetValue<double>($"PM.{ModuleName}.Efficiency.{GasFlowRatioName}", 1d);
if (GasName == "O2_Vent")