添加部分配置
This commit is contained in:
parent
330e140fca
commit
5ca860c3f3
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -95,48 +95,67 @@ 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))
|
||||
{
|
||||
_isEnableErrDetection = false;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.EnableAlarm value {newValue} to bool");
|
||||
}
|
||||
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.{Display}.EnableAlarm", (newValue) =>
|
||||
});
|
||||
}
|
||||
|
||||
if (SC.ContainsItem($"{ScBasePath}.AlarmRange"))
|
||||
{
|
||||
if (!bool.TryParse(newValue.ToString(), out _isEnableErrDetection))
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.AlarmRange", (newValue) =>
|
||||
{
|
||||
_isEnableErrDetection = false;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.EnableAlarm value {newValue} to bool");
|
||||
}
|
||||
|
||||
});
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.AlarmRange", (newValue) =>
|
||||
if (!double.TryParse(newValue.ToString(), out _alarmRange))
|
||||
{
|
||||
_alarmRange = double.NaN;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.AlarmRange value {newValue} to double");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (SC.ContainsItem($"{ScBasePath}.AlarmTime"))
|
||||
{
|
||||
if (!double.TryParse(newValue.ToString(), out _alarmRange))
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.AlarmTime", (newValue) =>
|
||||
{
|
||||
_alarmRange = double.NaN;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.AlarmRange value {newValue} to double");
|
||||
}
|
||||
});
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.AlarmTime", (newValue) =>
|
||||
if (!double.TryParse(newValue.ToString(), out _alarmTime))
|
||||
{
|
||||
_alarmTime = int.MinValue;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.AlarmRange value {newValue} to double");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (SC.ContainsItem($"{ScBasePath}.WarningRange"))
|
||||
{
|
||||
if (!double.TryParse(newValue.ToString(), out _alarmTime))
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.WarningRange", (newValue) =>
|
||||
{
|
||||
_alarmTime = int.MinValue;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.AlarmRange value {newValue} to double");
|
||||
}
|
||||
});
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.WarningRange", (newValue) =>
|
||||
if (!double.TryParse(newValue.ToString(), out _warningRange))
|
||||
{
|
||||
_warningRange = double.NaN;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.WarningRange value {newValue} to double");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (SC.ContainsItem($"{ScBasePath}.WarningTime"))
|
||||
{
|
||||
if (!double.TryParse(newValue.ToString(), out _warningRange))
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.WarningTime", (newValue) =>
|
||||
{
|
||||
_warningRange = double.NaN;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.WarningRange value {newValue} to double");
|
||||
}
|
||||
});
|
||||
SC.RegisterValueChangedCallback($"{ScBasePath}.WarningTime", (newValue) =>
|
||||
{
|
||||
if (!double.TryParse(newValue.ToString(), out _warningTime))
|
||||
{
|
||||
_warningTime = int.MinValue;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.WarningTime value {newValue} to double");
|
||||
}
|
||||
});
|
||||
if (!double.TryParse(newValue.ToString(), out _warningTime))
|
||||
{
|
||||
_warningTime = int.MinValue;
|
||||
LOG.Error($"Unable to convert {ScBasePath}.{Display}.WarningTime value {newValue} to double");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@ -61,7 +61,10 @@ namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.GasFlow
|
||||
public void Initialize(string moduleName)
|
||||
{
|
||||
ModuleName = moduleName;
|
||||
SC.RegisterValueChangedCallback($"PM.{ModuleName}.Efficiency.{GasFlowRatioName}", OnGasFlowRatioSCChanged);
|
||||
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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user