Browse Source

1revise facility device
2 revise vpw run recipe checklidpressure bug

chenzk 2 days ago
parent
commit
d2a498218c

+ 16 - 17
PunkHPX8_MainPages/Views/SystemFacilitiesView.xaml

@@ -193,8 +193,8 @@
                         <Label Grid.Column="0" VerticalContentAlignment="Center">DIW Fill Enable</Label>
                         <Grid Grid.Column="1">
                             <Ellipse Width="16" Height="16"  Fill="{Binding DiFillEnable,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left"/>
-                            <Button Style="{StaticResource SysBtnStyle}"  Content="On" Width="50" Height="25" HorizontalAlignment="Left" Command="{Binding DiFillEnableCommand}" IsEnabled="{Binding DiFillEnable,Converter={StaticResource boolReverse}}" Margin="25,0,0,0"></Button>
-                            <Button Style="{StaticResource SysBtnStyle}"  Content="Off" Width="50" Height="25" HorizontalAlignment="Left"  Command="{Binding DiFillDisableCommand}" IsEnabled="{Binding DiFillEnable}" Margin="80,0,0,0"></Button>
+                            <Button Style="{StaticResource SysBtnStyle}"  Content="On" Width="50" Height="25" HorizontalAlignment="Left" Command="{Binding DiwFillEnableCommand}" IsEnabled="{Binding DiFillEnable,Converter={StaticResource boolReverse}}" Margin="25,0,0,0"></Button>
+                            <Button Style="{StaticResource SysBtnStyle}"  Content="Off" Width="50" Height="25" HorizontalAlignment="Left"  Command="{Binding DiwFillDisableCommand}" IsEnabled="{Binding DiFillEnable}" Margin="80,0,0,0"></Button>
                         </Grid>
                     </Grid>
 
@@ -206,8 +206,8 @@
                         <Label Grid.Column="0" VerticalContentAlignment="Center">DIW Replen Enable</Label>
                         <Grid Grid.Column="1">
                             <Ellipse Width="16" Height="16"  Fill="{Binding DiReplenEnable,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left"/>
-                            <Button Style="{StaticResource SysBtnStyle}"  Content="On" Width="50" Height="25" HorizontalAlignment="Left" Command="{Binding DiReplenEnableCommand}" IsEnabled="{Binding DiReplenEnable,Converter={StaticResource boolReverse}}" Margin="25,0,0,0"></Button>
-                            <Button Style="{StaticResource SysBtnStyle}"  Content="Off" Width="50" Height="25" HorizontalAlignment="Left" Command="{Binding DiReplenDisableCommand}" IsEnabled="{Binding DiReplenEnable}" Margin="80,0,0,0"></Button>
+                            <Button Style="{StaticResource SysBtnStyle}"  Content="On" Width="50" Height="25" HorizontalAlignment="Left" Command="{Binding DiwReplenEnableCommand}" IsEnabled="{Binding DiReplenEnable,Converter={StaticResource boolReverse}}" Margin="25,0,0,0"></Button>
+                            <Button Style="{StaticResource SysBtnStyle}"  Content="Off" Width="50" Height="25" HorizontalAlignment="Left" Command="{Binding DiwReplenDisableCommand}" IsEnabled="{Binding DiReplenEnable}" Margin="80,0,0,0"></Button>
                         </Grid>
                     </Grid>
                     <Grid Grid.Row="17">
@@ -477,13 +477,12 @@
                             <ColumnDefinition Width="70"></ColumnDefinition>
                             <ColumnDefinition/>
                         </Grid.ColumnDefinitions>
-                        <TextBlock Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding ExhaustData.MinError}"></TextBlock>
-                        <TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding ExhaustData.MinWarning}"></TextBlock>
-                        <!--<TextBlock Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="Black" Foreground="Lime" Text="{Binding ExhaustData.Value}"></TextBlock>-->
-                        <UserControls:PressureBlockControl  Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Value="{Binding ExhaustData.Value}"
-                                                            IsError="{Binding ExhaustData.IsError}" IsWarning="{Binding ExhaustData.IsWarning}" FontSize="18" Width="60"></UserControls:PressureBlockControl>
-                        <TextBlock Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding ExhaustData.MaxError}"></TextBlock>
-                        <TextBlock Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding ExhaustData.MaxWarning}"></TextBlock>
+                        <TextBlock Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding SystemExhaust1Data.MinError}"></TextBlock>
+                        <TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding SystemExhaust1Data.MinWarning}"></TextBlock>
+                        <UserControls:PressureBlockControl  Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Value="{Binding SystemExhaust1Data.Value}"
+                                                            IsError="{Binding SystemExhaust1Data.IsError}" IsWarning="{Binding SystemExhaust1Data.IsWarning}" FontSize="18" Width="60"></UserControls:PressureBlockControl>
+                        <TextBlock Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding SystemExhaust1Data.MaxError}"></TextBlock>
+                        <TextBlock Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding SystemExhaust1Data.MaxWarning}"></TextBlock>
                         <TextBlock Grid.Column="5" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" Background="Transparent">inWC</TextBlock>
                     </Grid>
                     <Grid Grid.Row="10">
@@ -495,14 +494,14 @@
                             <ColumnDefinition Width="70"></ColumnDefinition>
                             <ColumnDefinition/>
                         </Grid.ColumnDefinitions>
-                        <TextBlock Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding DiWaterPressureData.MinError}"></TextBlock>
-                        <TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding DiWaterPressureData.MinWarning}"></TextBlock>
+                        <TextBlock Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding SystemExhaust2Data.MinError}"></TextBlock>
+                        <TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding SystemExhaust2Data.MinWarning}"></TextBlock>
                         <!--<TextBlock Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="Black" Foreground="Lime" Text="{Binding DiWaterPressureData.Value}"></TextBlock>-->
-                        <UserControls:PressureBlockControl  Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Value="{Binding DiWaterPressureData.Value}"
-                                     IsError="{Binding DiWaterPressureData.IsError}" IsWarning="{Binding DiWaterPressureData.IsWarning}"
+                        <UserControls:PressureBlockControl  Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Value="{Binding SystemExhaust2Data.Value}"
+                                     IsError="{Binding SystemExhaust2Data.IsError}" IsWarning="{Binding SystemExhaust2Data.IsWarning}"
                                      FontSize="18" Width="60"></UserControls:PressureBlockControl>
-                        <TextBlock Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding DiWaterPressureData.MaxError}"></TextBlock>
-                        <TextBlock Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding DiWaterPressureData.MaxWarning}"></TextBlock>
+                        <TextBlock Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding SystemExhaust2Data.MaxError}"></TextBlock>
+                        <TextBlock Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18" Width="60" Background="LightGray" Foreground="White" Text="{Binding SystemExhaust2Data.MaxWarning}"></TextBlock>
                         <TextBlock Grid.Column="5" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" Background="Transparent">psi</TextBlock>
                     </Grid>
                     <Grid Grid.Row="11">

+ 3 - 3
PunkHPX8_RT/Config/Devices/ModuleIOCfg.xml

@@ -67,8 +67,8 @@
 		<IO Name="Facilities.CassetteB200M" IOName="r_Cassette_B_200MM"/>
 		<IO Name="Facilities.PH3" IOName="r_pH3"/>
 		<IO Name="Facilities.HouseChilledWaterFlow" IOName="r_HCW_FLOW"/>
-		<IO Name="Facilities.SystemExhaust1" IOName="r_SYSTEM_EXHAUST_1"/>
-		<IO Name="Facilities.SystemExhaust2" IOName="r_SYSTEM_EXHAUST_2"/>
+		<IO Name="Facilities.Exhaust1Pressure" IOName="r_SYSTEM_EXHAUST_1"/>
+		<IO Name="Facilities.Exhaust2Pressure" IOName="r_SYSTEM_EXHAUST_2"/>
 		<IO Name="Facilities.DiWaterPressure" IOName="r_DI_WATER_PRESSURE"/>
 		<IO Name="Facilities.Nitrogen1BPressure" IOName="r_N2_1B_PRESSURE"/>
 		<IO Name="Facilities.Nitrogen1APressure" IOName="r_N2_1A_PRESSURE"/>
@@ -79,7 +79,7 @@
 		<IO Name="Facilities.ExternalCDAPressure" IOName="r_CDA_EXTERNAL_PRESSURE"/>
 		<IO Name="Facilities.VacuumPressure" IOName="r_SYSTEM_VACUUM"/>
 		<IO Name="Facilities.N2BlanketPressure" IOName="r_N2_BLANKET_PRESSURE"/>
-		<IO Name="Facilities.N2OverFlowPressure" IOName="r_N2_OVERFLOW_PRESSURE"/>
+		<IO Name="Facilities.N2OverflowPressure" IOName="r_N2_OVERFLOW_PRESSURE"/>
 		<IO Name="Facilities.DIReplenFlow" IOName="r_DIREPLEN_FLOW"/>
 
 		<IO Name="Facilities.N2Enable" IOName="c_N2_ENABLE"/>

+ 1 - 1
PunkHPX8_RT/Config/System.sccfg

@@ -192,7 +192,7 @@
 			<config default="25.0" name="Error_Min" nameView="Error_Min" max="60.0" min="10.0" paramter="" tag="" unit="" type="Double"  description="This value defines the minimum pressure, in psi (pounds per square inch), below which this interlock will transition to an Error state."/>
 			<config default="30.0" name="Warning_Min" nameView="Warning_Min" max="60.0" min="10.0" paramter="" tag="" unit="" type="Double"  description="This value defines the minimum pressure, in psi (pounds per square inch), below which this interlock will transition to an Warning state.  Note corresponding Error_Min/Error_Max testing supersedes this test."/>
 		</configs>
-		<configs name="HouseChilledWater_Flow" nameView="HouseChilledWater_Flow">
+		<configs name="HouseChilledWaterFlow" nameView="HouseChilledWaterFlow">
 			<config default="30.0" name="Error_Max" nameView="Error_Max" max="30.0" min="10.0" paramter="" tag="" unit="" type="Double"  description="This value defines the maximum pressure, in psi (pounds per square inch), above which this interlock will transition to an Error state."/>
 			<config default="25.0" name="Warning_Max" nameView="Warning_Max" max="30.0" min="10.0" paramter="" tag="" unit="" type="Double"  description="This value defines the maximum pressure, in psi (pounds per square inch), above which this interlock will transition to an Warning state.  Note corresponding Error_Min/Error_Max testing supersedes this test."/>
 			<config default="10.0" name="Error_Min" nameView="Error_Min" max="30.0" min="5.0" paramter="" tag="" unit="" type="Double"  description="This value defines the minimum pressure, in psi (pounds per square inch), below which this interlock will transition to an Error state."/>

+ 14 - 61
PunkHPX8_RT/Devices/Facilities/SystemFacilities.cs

@@ -25,7 +25,7 @@ namespace PunkHPX8_RT.Devices.Facilities
         private const string N2_2A_PRESSURE = "N2_2A_Pressure";
         private const string N2_2B_PRESSURE = "N2_2B_Pressure";
         private const string DI_WATER_PRESSURE = "DIWater_Pressure";
-        private const string HOUSE_CHILLED_WATER_FLOW = "HouseChilledWater_Flow";
+        private const string HOUSE_CHILLED_WATER_FLOW = "HouseChilledWaterFlow";
         private const string CDA_EXTERNAL_PRESSURE = "CDA_External_Pressure";
         private const string VACUUM_PRESSURE = "Vacuum_Pressure";
         private const string EXHAUST_PRESSURE1 = "Exhaust_Pressure1";
@@ -50,10 +50,7 @@ namespace PunkHPX8_RT.Devices.Facilities
         private const string DIW_RETRUN_FLOW_VALUE = "DiwReturnFlow";
         private const string VACUUM_PRESSURE_VALUE = "VacuumPressure";
         private const string SAMPLE_ENABLE = "SampleEnable";
-        private const string SAMPLE_FLOW_1_ENABLE = "SampleFlow1Enable";
-        private const string SAMPLE_FLOW_2_ENABLE = "SampleFlow2Enable";
-        private const string SAMPLE_FLOW_3_ENABLE = "SampleFlow3Enable";
-        private const string SAMPLE_FLOW_4_ENABLE = "SampleFlow4Enable";
+
         private const string FFU_LOADER_ERROR = "FFULoaderError";
         private const string FFU_PROCESS_ERROR = "FFUProcessError";
         private const string FFU_LOADER_PRESSURE = "FFULoaderPressure";
@@ -138,6 +135,10 @@ namespace PunkHPX8_RT.Devices.Facilities
         /// </summary>
         private double _n2BlaketPressure = 0;
         /// <summary>
+        /// N2 Overflow 压力
+        /// </summary>
+        private double _n2OverflowPressure = 0;
+        /// <summary>
         /// 变量是否初始化字典
         /// </summary>
         private Dictionary<string, bool> _variableInitializeDic = new Dictionary<string, bool>();
@@ -148,22 +149,6 @@ namespace PunkHPX8_RT.Devices.Facilities
         /// </summary>
         private bool _sampleEnable = false;
         /// <summary>
-        /// Sample Flow 1 Enable
-        /// </summary>
-        private bool _sampleFlow1Enable = false;
-        /// <summary>
-        /// Sample Flow 2 Enable
-        /// </summary>
-        private bool _sampleFlow2Enable = false;
-        /// <summary>
-        /// Sample Flow 3 Enable
-        /// </summary>
-        private bool _sampleFlow3Enable = false;
-        /// <summary>
-        /// Sample Flow 4 Enable
-        /// </summary>
-        private bool _sampleFlow4Enable = false;
-        /// <summary>
         /// 开始采样时间
         /// </summary>
         private DateTime _sampleStartime;
@@ -329,11 +314,8 @@ namespace PunkHPX8_RT.Devices.Facilities
             DATA.Subscribe($"{Module}.{Name}.{LOADER_DI_ENABLE}", () => _loaderDiEnable, 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}.{SAMPLE_FLOW_1_ENABLE}", () => _sampleFlow1Enable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
-            DATA.Subscribe($"{Module}.{Name}.{SAMPLE_FLOW_2_ENABLE}", () => _sampleFlow2Enable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
-            DATA.Subscribe($"{Module}.{Name}.{SAMPLE_FLOW_3_ENABLE}", () => _sampleFlow3Enable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
-            DATA.Subscribe($"{Module}.{Name}.{SAMPLE_FLOW_4_ENABLE}", () => _sampleFlow4Enable, 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);
@@ -391,17 +373,15 @@ namespace PunkHPX8_RT.Devices.Facilities
             BeckhoffIoSubscribeUpdateVariable(CDA_2_PRESSURE_VALUE);
             BeckhoffIoSubscribeUpdateVariable(CDA_EXTERNAL_PRESSURE_VALUE);
             BeckhoffIoSubscribeUpdateVariable(DI_WATER_PRESSURE_VALUE);
+            BeckhoffIoSubscribeUpdateVariable(HOUSE_CHILLED_WATER_FLOW);
             BeckhoffIoSubscribeUpdateVariable(HOUSE_CHILLED_WATER_PRESSURE_VALUE);
             BeckhoffIoSubscribeUpdateVariable(EXHAUST1_PRESSURE_VALUE);
             BeckhoffIoSubscribeUpdateVariable(EXHAUST2_PRESSURE_VALUE);
             BeckhoffIoSubscribeUpdateVariable(DIW_RETRUN_FLOW_VALUE);
             BeckhoffIoSubscribeUpdateVariable(VACUUM_PRESSURE_VALUE);
             BeckhoffIoSubscribeUpdateVariable(N2_BLANKET_PRESSURE_VALUE);
+            BeckhoffIoSubscribeUpdateVariable(N2_OVERFLOW_PRESSURE_VALUE);
             BeckhoffIoSubscribeUpdateVariable(SAMPLE_ENABLE);
-            BeckhoffIoSubscribeUpdateVariable(SAMPLE_FLOW_1_ENABLE);
-            BeckhoffIoSubscribeUpdateVariable(SAMPLE_FLOW_2_ENABLE);
-            BeckhoffIoSubscribeUpdateVariable(SAMPLE_FLOW_3_ENABLE);
-            BeckhoffIoSubscribeUpdateVariable(SAMPLE_FLOW_4_ENABLE);
             BeckhoffIoSubscribeUpdateVariable(FFU_LOADER_ERROR);
             BeckhoffIoSubscribeUpdateVariable(FFU_PROCESS_ERROR);
             BeckhoffIoSubscribeUpdateVariable(FFU_LOADER_PRESSURE);
@@ -452,6 +432,7 @@ namespace PunkHPX8_RT.Devices.Facilities
         /// <param name="value"></param>
         private void UpdateVariableValue(string variable, object value)
         {
+            
             if (_variableInitializeDic.ContainsKey(variable) && !_variableInitializeDic[variable])
             {
                 _variableInitializeDic[variable] = true;
@@ -503,21 +484,12 @@ namespace PunkHPX8_RT.Devices.Facilities
                 case N2_BLANKET_PRESSURE_VALUE:
                     _n2BlaketPressure = (double)value;
                     break;
+                case N2_OVERFLOW_PRESSURE_VALUE:
+                    _n2OverflowPressure = (double)value;
+                    break;
                 case SAMPLE_ENABLE:
                     _sampleEnable = (bool)value;
                     break;
-                case SAMPLE_FLOW_1_ENABLE:
-                    _sampleFlow1Enable = (bool)value;
-                    break;
-                case SAMPLE_FLOW_2_ENABLE:
-                    _sampleFlow2Enable = (bool)value;
-                    break;
-                case SAMPLE_FLOW_3_ENABLE:
-                    _sampleFlow3Enable = (bool)value;
-                    break;
-                case SAMPLE_FLOW_4_ENABLE:
-                    _sampleFlow4Enable = (bool)value;
-                    break;
                 case FFU_LOADER_ERROR:
                     _ffuLoaderError = (bool)value;
                     break;
@@ -878,26 +850,7 @@ namespace PunkHPX8_RT.Devices.Facilities
             {
                 IOModuleManager.Instance.WriteIoValue(ioName, enable);
             }
-            string sampleFlow1Name = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{SAMPLE_FLOW_1_ENABLE}");
-            if (!string.IsNullOrEmpty(sampleFlow1Name))
-            {
-                IOModuleManager.Instance.WriteIoValue(sampleFlow1Name, enable);
-            }
-            string sampleFlow2Name = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{SAMPLE_FLOW_2_ENABLE}");
-            if (!string.IsNullOrEmpty(sampleFlow2Name))
-            {
-                IOModuleManager.Instance.WriteIoValue(sampleFlow2Name, enable);
-            }
-            string sampleFlow3Name = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{SAMPLE_FLOW_3_ENABLE}");
-            if (!string.IsNullOrEmpty(sampleFlow3Name))
-            {
-                IOModuleManager.Instance.WriteIoValue(sampleFlow3Name, enable);
-            }
-            string sampleFlow4Name = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Name}.{SAMPLE_FLOW_4_ENABLE}");
-            if (!string.IsNullOrEmpty(sampleFlow4Name))
-            {
-                IOModuleManager.Instance.WriteIoValue(sampleFlow4Name, enable);
-            }
+           
         }
         #endregion
 

+ 1 - 1
PunkHPX8_RT/Modules/VpwCell/VpwVacuumPrewetRoutine.cs

@@ -206,7 +206,7 @@ namespace PunkHPX8_RT.Modules.VpwCell
         private bool CheckLidReleaseVacuum()
         {
             double vacuumValue = _vpwCellDevice.CommonData.VacuumPressure;
-            return vacuumValue <= _lidReleasePressure;
+            return vacuumValue >= _lidReleasePressure;
         }
         /// <summary>
         /// open vent valve

+ 1 - 1
PunkHPX8_RT/Modules/VpwCell/VpwVentPrewetRoutine.cs

@@ -106,7 +106,7 @@ namespace PunkHPX8_RT.Modules.VpwCell
         private bool CheckLidReleaseVacuum()
         {
             double vacuumValue = _vpwCellDevice.CommonData.VacuumPressure;
-            return vacuumValue <= _lidReleasePressure;
+            return vacuumValue >= _lidReleasePressure;
         }
         /// <summary>
         /// open vent valve

+ 4 - 4
PunkHPX8_Twincate/PunkHPX8/PlcTest/POUs/MAIN.TcPOU

@@ -454,16 +454,16 @@ ELSE
 	Safety_SDI_CHANNEL_EL1904_NS100_4:=FALSE;
 END_IF
 
-IF MAIN_IO_RELAY_4CHANNEL_EL2624_N106_1=TRUE AND VPW_PNEU_SMC_EX260_BYTE1.3=TRUE THEN
+IF MAIN_IO_RELAY_4CHANNEL_EL2624_N106_1=TRUE AND VPW_PNEU_SMC_EX260_BYTE1.3=TRUE  AND VPW_PNEU_SMC_EX260_BYTE1.5=FALSE THEN
 	VPW_AI_8CHANNEL_0_10V_EL3068_N105_1:=25000;
 ELSE
-	VPW_AI_8CHANNEL_0_10V_EL3068_N105_1:=29000;
+	VPW_AI_8CHANNEL_0_10V_EL3068_N105_1:=29500;
 END_IF
 
-IF MAIN_IO_RELAY_4CHANNEL_EL2624_N106_1=TRUE AND VPW_PNEU_SMC_EX260_BYTE1.4=TRUE THEN
+IF MAIN_IO_RELAY_4CHANNEL_EL2624_N106_1=TRUE AND VPW_PNEU_SMC_EX260_BYTE1.4=TRUE AND VPW_PNEU_SMC_EX260_BYTE1.4=FALSE THEN
 	VPW_AI_8CHANNEL_0_10V_EL3068_N105_2:=25000;
 ELSE
-	VPW_AI_8CHANNEL_0_10V_EL3068_N105_2:=29000;
+	VPW_AI_8CHANNEL_0_10V_EL3068_N105_2:=29500;
 END_IF]]></ST>
     </Implementation>
     <LineIds Name="MAIN">