压缩机PTC 功能

参数控制,由跟随速度到单个大参数控制
This commit is contained in:
2025-08-14 17:28:15 +08:00
parent c4be5e0929
commit 06ac590208
16 changed files with 3545 additions and 862 deletions

View File

@@ -843,6 +843,43 @@
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!-- PTC功率2 -->
<DataGridTemplateColumn>
<DataGridTemplateColumn.Header>
<TextBlock FontWeight="Bold" Text="PTC功率2&#x0A;(W)" />
</DataGridTemplateColumn.Header>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding MeterPTCPw2Info}" TextWrapping="Wrap" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!-- PTC目标水温 -->
<DataGridTemplateColumn>
<DataGridTemplateColumn.Header>
<TextBlock FontWeight="Bold" Text="PTC目标水温&#x0A;(℃)" />
</DataGridTemplateColumn.Header>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding MeterPTCWaterTempInfo}" TextWrapping="Wrap" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!-- PTC水流量 -->
<DataGridTemplateColumn>
<DataGridTemplateColumn.Header>
<TextBlock FontWeight="Bold" Text="PTC水流量&#x0A;(L/min)" />
</DataGridTemplateColumn.Header>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding MeterPTCWaterFlowInfo}" TextWrapping="Wrap" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!-- PTC流量 -->
<DataGridTemplateColumn>
<DataGridTemplateColumn.Header>
@@ -1466,7 +1503,9 @@
Style="{StaticResource MaterialDesignSwitchToggleButton}"
ToolTip="PTC使能" />
</StackPanel>
<StackPanel
<!-- 放到单独的斜率配置中 这里不在跟谁PLC -->
<!--<StackPanel
Grid.Row="1"
Grid.Column="1"
HorizontalAlignment="Center">
@@ -1493,7 +1532,10 @@
HorizontalAlignment="Center">
<TextBlock FontSize="12" Text="PTC水温(℃)" />
<TextBox Style="{StaticResource txtboxStyle}" Text="{Binding SelectedSlopMeterSpeed.PTCWaterTemp}" />
</StackPanel>
</StackPanel>-->
<!--<StackPanel
Grid.Row="1"
Grid.Column="0"
@@ -2104,7 +2146,7 @@
TotalSlopTime="{Binding MeterEVAPExpTempExDto.SlopTime}" />
</TabItem>
<!-- PTC功率 -->
<!-- PTC功率 SV1 -->
<TabItem>
<TabItem.Header>
<StackPanel
@@ -2139,6 +2181,111 @@
TotalSlopTime="{Binding MeterPTCPwExDto.SlopTime}" />
</TabItem>
<!-- PTC功率 SV2 -->
<TabItem>
<TabItem.Header>
<StackPanel
Width="90"
Margin="-20"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="12"
FontWeight="Bold"
Text="PTC功率2&#10;(W)" />
</StackPanel>
</TabItem.Header>
<Controls:MeterConfig
Margin="5,5,0,5"
AddCommand="{Binding ProStepPTCPw2AddCmd}"
ConstSlopSelectedIndex="{Binding ProStepPTCPw2SwitchConstSlopIndex, Mode=TwoWay}"
ConstantSaveCommand="{Binding ProStepPTCPw2ConstantSaveCmd}"
ConstantValue="{Binding SelectedConstPTCPw2Value, Mode=TwoWay}"
Cycle="{Binding MeterPTCPw2ExDto.SlopCycle}"
DeleteCommand="{Binding ProStepPTCPw2DeleteCmd}"
EditCommand="{Binding ProStepPTCPw2EditCmd}"
IsTimeOk="{Binding MeterPTCPw2ExDto.IsTimeOk}"
ListMeter="{Binding ListSlopMeterPTCPw2Items}"
MeterName="PTC功率2"
MeterSelectedChangedCmd="{Binding MeterPTCPw2SlopSelectedChangedCmd}"
ParConfigCommand="{Binding MeterPTCPw2ParConfigCmd}"
SelectedMeter="{Binding SelectedSlopPTCPw2, Mode=TwoWay}"
SwitchConstSlopCommand="{Binding MeterPTCPw2SwitchConstSlopCmd}"
TotalSlopTime="{Binding MeterPTCPw2ExDto.SlopTime}" />
</TabItem>
<!-- PTC目标水温 -->
<TabItem>
<TabItem.Header>
<StackPanel
Width="90"
Margin="-20"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="12"
FontWeight="Bold"
Text="PTC目标水温&#10;(℃)" />
</StackPanel>
</TabItem.Header>
<Controls:MeterConfig
Margin="5,5,0,5"
AddCommand="{Binding ProStepPTCWaterTempAddCmd}"
ConstSlopSelectedIndex="{Binding ProStepPTCWaterTempSwitchConstSlopIndex, Mode=TwoWay}"
ConstantSaveCommand="{Binding ProStepPTCWaterTempConstantSaveCmd}"
ConstantValue="{Binding SelectedConstPTCWaterTempValue, Mode=TwoWay}"
Cycle="{Binding MeterPTCWaterTempExDto.SlopCycle}"
DeleteCommand="{Binding ProStepPTCWaterTempDeleteCmd}"
EditCommand="{Binding ProStepPTCWaterTempEditCmd}"
IsTimeOk="{Binding MeterPTCWaterTempExDto.IsTimeOk}"
ListMeter="{Binding ListSlopMeterPTCWaterTempItems}"
MeterName="PTC目标水温"
MeterSelectedChangedCmd="{Binding MeterPTCWaterTempSlopSelectedChangedCmd}"
ParConfigCommand="{Binding MeterPTCWaterTempParConfigCmd}"
SelectedMeter="{Binding SelectedSlopPTCWaterTemp, Mode=TwoWay}"
SwitchConstSlopCommand="{Binding MeterPTCWaterTempSwitchConstSlopCmd}"
TotalSlopTime="{Binding MeterPTCWaterTempExDto.SlopTime}" />
</TabItem>
<!-- PTC水流量 -->
<TabItem>
<TabItem.Header>
<StackPanel
Width="90"
Margin="-20"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="12"
FontWeight="Bold"
Text="PTC水流量&#10;(L/Min)" />
</StackPanel>
</TabItem.Header>
<Controls:MeterConfig
Margin="5,5,0,5"
AddCommand="{Binding ProStepPTCWaterFlowAddCmd}"
ConstSlopSelectedIndex="{Binding ProStepPTCWaterFlowSwitchConstSlopIndex, Mode=TwoWay}"
ConstantSaveCommand="{Binding ProStepPTCWaterFlowConstantSaveCmd}"
ConstantValue="{Binding SelectedConstPTCWaterFlowValue, Mode=TwoWay}"
Cycle="{Binding MeterPTCWaterFlowExDto.SlopCycle}"
DeleteCommand="{Binding ProStepPTCWaterFlowDeleteCmd}"
EditCommand="{Binding ProStepPTCWaterFlowEditCmd}"
IsTimeOk="{Binding MeterPTCWaterFlowExDto.IsTimeOk}"
ListMeter="{Binding ListSlopMeterPTCWaterFlowItems}"
MeterName="PTC水流量"
MeterSelectedChangedCmd="{Binding MeterPTCWaterFlowSlopSelectedChangedCmd}"
ParConfigCommand="{Binding MeterPTCWaterFlowParConfigCmd}"
SelectedMeter="{Binding SelectedSlopPTCWaterFlow, Mode=TwoWay}"
SwitchConstSlopCommand="{Binding MeterPTCWaterFlowSwitchConstSlopCmd}"
TotalSlopTime="{Binding MeterPTCWaterFlowExDto.SlopTime}" />
</TabItem>
<!-- PTC流量 -->
<TabItem>
<TabItem.Header>