|
@@ -35,7 +35,6 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
private const string ERROR_MIN = "Error_Min";
|
|
|
private const string WARNING_MAX = "Warning_Max";
|
|
|
private const string WARNING_MIN = "Warning_Min";
|
|
|
- private const string LOADER_DI_ENABLE = "LoaderDiEnable";
|
|
|
private const string N2_1A_PRESSURE_VALUE = "Nitrogen1APressure";
|
|
|
private const string N2_1B_PRESSURE_VALUE = "Nitrogen1BPressure";
|
|
|
private const string N2_2A_PRESSURE_VALUE = "Nitrogen2APressure";
|
|
@@ -49,7 +48,7 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
private const string EXHAUST2_PRESSURE_VALUE = "Exhaust2Pressure";
|
|
|
private const string DIW_RETRUN_FLOW_VALUE = "DiwReturnFlow";
|
|
|
private const string VACUUM_PRESSURE_VALUE = "VacuumPressure";
|
|
|
- private const string SAMPLE_ENABLE = "SampleEnable";
|
|
|
+
|
|
|
|
|
|
private const string FFU_LOADER_ERROR = "FFULoaderError";
|
|
|
private const string FFU_PROCESS_ERROR = "FFUProcessError";
|
|
@@ -68,9 +67,9 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
private const string VPW_DI_ENABLE = "VpwDiEnable";
|
|
|
private const string DI_REPLEN_ENABLE = "DiReplenEnable";
|
|
|
private const string DI_FILL_ENABLE = "DiFillEnable";
|
|
|
- private const string SRD_DI_ENABLE = "SrdDiEnable";
|
|
|
+ private const string SRD_DI_ENABLE = "SrdDiwEnable";
|
|
|
private const string SAMPLE_STATION_ENABLE = "SampleStationEnable";
|
|
|
- private const string FILTER_PURGE_ENABLE = "FilterPurgeEnable";
|
|
|
+ private const string FILTER_PURGE_ENABLE = "FilterPurgeEnable";
|
|
|
private const string N2_BLANKET_PRESSURE_VALUE = "N2BlanketPressure";
|
|
|
private const string N2_OVERFLOW_PRESSURE_VALUE = "N2OverflowPressure";
|
|
|
private const string CLAMSHELL_CYLINDER_PRESSURE_VALUE = "ClamshellCylinderPressure";
|
|
@@ -123,9 +122,9 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
/// </summary>
|
|
|
private bool _diFillEnable = false;
|
|
|
/// <summary>
|
|
|
- /// Loader Di可用性
|
|
|
+ /// Srd Di可用性
|
|
|
/// </summary>
|
|
|
- private bool _loaderDiEnable = false;
|
|
|
+ private bool _srdDiEnable = false;
|
|
|
/// <summary>
|
|
|
/// Filter Purge可用性
|
|
|
/// </summary>
|
|
@@ -139,6 +138,14 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
/// </summary>
|
|
|
private double _n2OverflowPressure = 0;
|
|
|
/// <summary>
|
|
|
+ /// clamshellCylinder 压力
|
|
|
+ /// </summary>
|
|
|
+ private double _clamshellCylinderPressure = 0;
|
|
|
+ /// <summary>
|
|
|
+ /// tiltCylinder 压力
|
|
|
+ /// </summary>
|
|
|
+ private double _tiltCylinderPressure = 0;
|
|
|
+ /// <summary>
|
|
|
/// 变量是否初始化字典
|
|
|
/// </summary>
|
|
|
private Dictionary<string, bool> _variableInitializeDic = new Dictionary<string, bool>();
|
|
@@ -216,9 +223,9 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
/// </summary>
|
|
|
public bool CDAEnable { get { return _cdaEnable; } }
|
|
|
/// <summary>
|
|
|
- /// Loader DI 可用性
|
|
|
+ /// SRD DI 可用性
|
|
|
/// </summary>
|
|
|
- public bool LoaderDiEnable { get { return _loaderDiEnable; } }
|
|
|
+ public bool SrdDiEnable { get { return _srdDiEnable; } }
|
|
|
/// <summary>
|
|
|
/// DI Replen Enable
|
|
|
/// </summary>
|
|
@@ -269,6 +276,7 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
SubscribeValueAction();
|
|
|
InitializeOperation();
|
|
|
//_periodicJob = new PeriodicJob(200, OnTimer, $"{Module}.OnTimer", true);
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
/// <summary>
|
|
@@ -291,7 +299,7 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
_facilitiesDataList.Add(InitialFacilitiesData(DI_WATER_PRESSURE));
|
|
|
_facilitiesDataDic[DI_WATER_PRESSURE_VALUE] = _facilitiesDataList[6];
|
|
|
_facilitiesDataList.Add(InitialFacilitiesData(HOUSE_CHILLED_WATER_FLOW));
|
|
|
- _facilitiesDataDic[HOUSE_CHILLED_WATER_PRESSURE_VALUE] = _facilitiesDataList[7];
|
|
|
+ _facilitiesDataDic[HOUSE_CHILLED_WATER_FLOW] = _facilitiesDataList[7];
|
|
|
_facilitiesDataList.Add(InitialFacilitiesData(CDA_EXTERNAL_PRESSURE));
|
|
|
_facilitiesDataDic[CDA_EXTERNAL_PRESSURE_VALUE] = _facilitiesDataList[8];
|
|
|
_facilitiesDataList.Add(InitialFacilitiesData(VACUUM_PRESSURE));
|
|
@@ -311,11 +319,13 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
DATA.Subscribe($"{Module}.{Name}.{HOUSE_CHILLED_WATER_ENABLE}", () => _houseChilledWaterEnable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{DI_FILL_ENABLE}", () => _diFillEnable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{DI_REPLEN_ENABLE}", () => _diReplenEnable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
- DATA.Subscribe($"{Module}.{Name}.{LOADER_DI_ENABLE}", () => _loaderDiEnable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
+ DATA.Subscribe($"{Module}.{Name}.{SRD_DI_ENABLE}", () => _srdDiEnable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{FILTER_PURGE_ENABLE}", () => _filterPurgeEnable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{N2_BLANKET_PRESSURE_VALUE}", () => _n2BlaketPressure, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{N2_OVERFLOW_PRESSURE_VALUE}", () => _n2OverflowPressure, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
- DATA.Subscribe($"{Module}.{Name}.{SAMPLE_ENABLE}", () => _sampleEnable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
+ DATA.Subscribe($"{Module}.{Name}.{CLAMSHELL_CYLINDER_PRESSURE_VALUE}", () => _clamshellCylinderPressure, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
+ DATA.Subscribe($"{Module}.{Name}.{TILT_CYLINDER_PRESSURE_VALUE}", () => _tiltCylinderPressure, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
+ DATA.Subscribe($"{Module}.{Name}.{SAMPLE_STATION_ENABLE}", () => _sampleEnable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{FFU_LOADER_ERROR}", () => _ffuLoaderError, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{FFU_PROCESS_ERROR}", () => _ffuProcessError, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{FFU_LOADER_PRESSURE}", () => _ffuLoaderPressure, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
@@ -330,7 +340,7 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
DATA.Subscribe($"{Module}.{Name}.{N2_2A_PRESSURE_VALUE}", () => _facilitiesDataDic[N2_2A_PRESSURE_VALUE].Value, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{N2_2B_PRESSURE_VALUE}", () => _facilitiesDataDic[N2_2B_PRESSURE_VALUE].Value, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{DI_WATER_PRESSURE_VALUE}", () => _facilitiesDataDic[DI_WATER_PRESSURE_VALUE].Value, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
- DATA.Subscribe($"{Module}.{Name}.{HOUSE_CHILLED_WATER_PRESSURE_VALUE}", () => _facilitiesDataDic[HOUSE_CHILLED_WATER_PRESSURE_VALUE].Value, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
+ DATA.Subscribe($"{Module}.{Name}.{HOUSE_CHILLED_WATER_FLOW}", () => _facilitiesDataDic[HOUSE_CHILLED_WATER_FLOW].Value, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{CDA_EXTERNAL_PRESSURE_VALUE}", () => _facilitiesDataDic[CDA_EXTERNAL_PRESSURE_VALUE].Value, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{VACUUM_PRESSURE_VALUE}", () => _facilitiesDataDic[VACUUM_PRESSURE_VALUE].Value, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
|
DATA.Subscribe($"{Module}.{Name}.{EXHAUST1_PRESSURE_VALUE}", () => _facilitiesDataDic[EXHAUST1_PRESSURE_VALUE].Value, SubscriptionAttribute.FLAG.IgnoreSaveDB);
|
|
@@ -363,8 +373,6 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
BeckhoffIoSubscribeUpdateVariable(HOUSE_CHILLED_WATER_ENABLE);
|
|
|
BeckhoffIoSubscribeUpdateVariable(DI_REPLEN_ENABLE);
|
|
|
BeckhoffIoSubscribeUpdateVariable(DI_FILL_ENABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable(LOADER_DI_ENABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable(FILTER_PURGE_ENABLE);
|
|
|
BeckhoffIoSubscribeUpdateVariable(N2_1A_PRESSURE_VALUE);
|
|
|
BeckhoffIoSubscribeUpdateVariable(N2_1B_PRESSURE_VALUE);
|
|
|
BeckhoffIoSubscribeUpdateVariable(N2_2A_PRESSURE_VALUE);
|
|
@@ -381,7 +389,11 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
BeckhoffIoSubscribeUpdateVariable(VACUUM_PRESSURE_VALUE);
|
|
|
BeckhoffIoSubscribeUpdateVariable(N2_BLANKET_PRESSURE_VALUE);
|
|
|
BeckhoffIoSubscribeUpdateVariable(N2_OVERFLOW_PRESSURE_VALUE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable(SAMPLE_ENABLE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable(CLAMSHELL_CYLINDER_PRESSURE_VALUE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable(TILT_CYLINDER_PRESSURE_VALUE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable(SRD_DI_ENABLE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable(SAMPLE_STATION_ENABLE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable(FILTER_PURGE_ENABLE);
|
|
|
BeckhoffIoSubscribeUpdateVariable(FFU_LOADER_ERROR);
|
|
|
BeckhoffIoSubscribeUpdateVariable(FFU_PROCESS_ERROR);
|
|
|
BeckhoffIoSubscribeUpdateVariable(FFU_LOADER_PRESSURE);
|
|
@@ -419,12 +431,12 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
OP.Subscribe($"{Module}.{Name}.DiFillDisable", DiFillDisableOperation);
|
|
|
OP.Subscribe($"{Module}.{Name}.DiReplenEnable", DiReplenEnableOperation);
|
|
|
OP.Subscribe($"{Module}.{Name}.DiReplenDisable", DiReplenDisableOperation);
|
|
|
- OP.Subscribe($"{Module}.{Name}.LoaderDiEnable", LoaderDiEnableOperation);
|
|
|
- OP.Subscribe($"{Module}.{Name}.LoaderDiDisable", LoaderDiDisableOperation);
|
|
|
+ OP.Subscribe($"{Module}.{Name}.SrdDiwEnable", SrdDiEnableOperation);
|
|
|
+ OP.Subscribe($"{Module}.{Name}.SrdDiwDisable", SrdDiDisableOperation);
|
|
|
OP.Subscribe($"{Module}.{Name}.FilterPurgeEnable", FilterPurgeEnableOperation);
|
|
|
OP.Subscribe($"{Module}.{Name}.FilterPurgeDisable", FilterPurgeDisableOperation);
|
|
|
- OP.Subscribe($"{Module}.{Name}.SampleEnable", SampleEnableOperation);
|
|
|
- OP.Subscribe($"{Module}.{Name}.SampleDisable", SampleDisableOperation);
|
|
|
+ OP.Subscribe($"{Module}.{Name}.SampleStationEnable", SampleEnableOperation);
|
|
|
+ OP.Subscribe($"{Module}.{Name}.SampleStationDisable", SampleDisableOperation);
|
|
|
}
|
|
|
/// 更新变量数值
|
|
|
/// </summary>
|
|
@@ -460,12 +472,6 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
case DI_REPLEN_ENABLE:
|
|
|
_diReplenEnable = (bool)value;
|
|
|
break;
|
|
|
- case LOADER_DI_ENABLE:
|
|
|
- _loaderDiEnable = (bool)value;
|
|
|
- break;
|
|
|
- case FILTER_PURGE_ENABLE:
|
|
|
- _filterPurgeEnable = (bool)value;
|
|
|
- break;
|
|
|
case N2_1A_PRESSURE_VALUE:
|
|
|
case N2_2A_PRESSURE_VALUE:
|
|
|
case N2_1B_PRESSURE_VALUE:
|
|
@@ -474,7 +480,7 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
case CDA_2_PRESSURE_VALUE:
|
|
|
case CDA_EXTERNAL_PRESSURE_VALUE:
|
|
|
case DI_WATER_PRESSURE_VALUE:
|
|
|
- case HOUSE_CHILLED_WATER_PRESSURE_VALUE:
|
|
|
+ case HOUSE_CHILLED_WATER_FLOW:
|
|
|
case EXHAUST1_PRESSURE_VALUE:
|
|
|
case EXHAUST2_PRESSURE_VALUE:
|
|
|
case VACUUM_PRESSURE_VALUE:
|
|
@@ -487,9 +493,21 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
case N2_OVERFLOW_PRESSURE_VALUE:
|
|
|
_n2OverflowPressure = (double)value;
|
|
|
break;
|
|
|
- case SAMPLE_ENABLE:
|
|
|
+ case CLAMSHELL_CYLINDER_PRESSURE_VALUE:
|
|
|
+ _clamshellCylinderPressure = (double)value;
|
|
|
+ break;
|
|
|
+ case TILT_CYLINDER_PRESSURE_VALUE:
|
|
|
+ _tiltCylinderPressure = (double)value;
|
|
|
+ break;
|
|
|
+ case SAMPLE_STATION_ENABLE:
|
|
|
_sampleEnable = (bool)value;
|
|
|
break;
|
|
|
+ case SRD_DI_ENABLE:
|
|
|
+ _srdDiEnable = (bool)value;
|
|
|
+ break;
|
|
|
+ case FILTER_PURGE_ENABLE:
|
|
|
+ _filterPurgeEnable = (bool)value;
|
|
|
+ break;
|
|
|
case FFU_LOADER_ERROR:
|
|
|
_ffuLoaderError = (bool)value;
|
|
|
break;
|
|
@@ -755,14 +773,14 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
return true;
|
|
|
}
|
|
|
/// <summary>
|
|
|
- /// Loader DI Enable
|
|
|
+ /// srd DI Enable
|
|
|
/// </summary>
|
|
|
/// <param name="cmd"></param>
|
|
|
/// <param name="param"></param>
|
|
|
/// <returns></returns>
|
|
|
- private bool LoaderDiEnableOperation(string cmd, object param)
|
|
|
+ private bool SrdDiEnableOperation(string cmd, object param)
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{LOADER_DI_ENABLE}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{SRD_DI_ENABLE}");
|
|
|
if (!string.IsNullOrEmpty(ioName))
|
|
|
{
|
|
|
IOModuleManager.Instance.WriteIoValue(ioName, true);
|
|
@@ -775,9 +793,9 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
/// <param name="cmd"></param>
|
|
|
/// <param name="param"></param>
|
|
|
/// <returns></returns>
|
|
|
- private bool LoaderDiDisableOperation(string cmd, object param)
|
|
|
+ private bool SrdDiDisableOperation(string cmd, object param)
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{LOADER_DI_ENABLE}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{SRD_DI_ENABLE}");
|
|
|
if (!string.IsNullOrEmpty(ioName))
|
|
|
{
|
|
|
IOModuleManager.Instance.WriteIoValue(ioName, false);
|
|
@@ -845,7 +863,7 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
/// <param name="enable"></param>
|
|
|
private void SampeOperation(bool enable)
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{SAMPLE_ENABLE}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{SAMPLE_STATION_ENABLE}");
|
|
|
if (!string.IsNullOrEmpty(ioName))
|
|
|
{
|
|
|
IOModuleManager.Instance.WriteIoValue(ioName, enable);
|
|
@@ -863,12 +881,12 @@ namespace PunkHPX8_RT.Devices.Facilities
|
|
|
return CheckPressureData(EXHAUST1_PRESSURE_VALUE);
|
|
|
}
|
|
|
/// <summary>
|
|
|
- /// 检验Exhaust
|
|
|
+ /// 检验冷却水
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public (bool result, string reason) CheckHouseChilledWaterResult()
|
|
|
{
|
|
|
- return CheckPressureData(HOUSE_CHILLED_WATER_PRESSURE_VALUE);
|
|
|
+ return CheckPressureData(HOUSE_CHILLED_WATER_FLOW);
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 检验CDA
|