1.PM添加DO_TVReset,TV阀右键时通过控制DO来进行复位

2.PM主界面添加按钮事件触发TVReset
This commit is contained in:
hanqiangqiang 2023-12-28 15:20:21 +08:00
parent 5f671c2378
commit 2840a964c1
6 changed files with 11 additions and 2 deletions

View File

@ -105,7 +105,7 @@
<IoValve id="V25" display="GasBoxVentBypass" schematicId="V99" unit="" isNc="true" isDefaultOpen="false" diOpen="" doOpen="DO_GasBoxVentBypass(V25)" diCloseSensor="" diOpenSensor="" />
</IoValves>
<IoThrottleValves classType="Aitex.Core.RT.Device.Devices.IoThrottleValve2" assembly="MECF.Framework.RT.EquipmentLibrary">
<IoThrottleValve id="TV" display="TV" schematicId="TV" unit="mbar" scBasePath="PM.{module}" modeValuePressure="5" modeValuePosition="2" modeValueClose="3" modeValueOpen="4" aioType="float" aiStatus="AI_TVmode" aiPositionFeedback="AI_ActualPositon" aiPressureFeedback="AI_ActualPressure" aoPressureMode="AO_ValveModeSetpoint" aoPositionSetPoint="AO_SetpointPositon" aoPressureSetPoint="AO_SetpointPressure" doTVValveEnable="DO_TVEnable" diTVValveEnable="" />
<IoThrottleValve id="TV" display="TV" schematicId="TV" unit="mbar" scBasePath="PM.{module}" modeValuePressure="5" modeValuePosition="2" modeValueClose="3" modeValueOpen="4" aioType="float" aiStatus="AI_TVmode" aiPositionFeedback="AI_ActualPositon" aiPressureFeedback="AI_ActualPressure" aoPressureMode="AO_ValveModeSetpoint" aoPositionSetPoint="AO_SetpointPositon" aoPressureSetPoint="AO_SetpointPressure" doTVValveEnable="DO_TVEnable" doTVReset="DO_TVReset" diTVValveEnable="" />
</IoThrottleValves>
<IoMfcs classType="Aitex.Core.RT.Device.Devices.IoMFC" assembly="MECF.Framework.RT.EquipmentLibrary">
<IoMfc3 id="Mfc1" display="Mfc1" schematicId="Mfc1" unit="sccm" aiActMode="AI_M1ActMode" aoSetMode="AO_M1CtrlMode" aiFlow="AI_M1" aoFlow="AO_M1" scBasePath="PM.PM1.MFC" aioType="float" formatString="F1" diAlarm="DI_MFC01Offline" AlarmText="Alarm101 MFC01 Offline[DI-351]" />

View File

@ -383,6 +383,7 @@
<DO_ITEM Index="135" Name="DO_SCR2Enable" BufferOffset="135" Addr="135" Description="" />
<DO_ITEM Index="136" Name="DO_SCR3Enable" BufferOffset="136" Addr="136" Description="" />
<DO_ITEM Index="140" Name="DO_TVEnable" BufferOffset="140" Addr="140" Description="" />
<DO_ITEM Index="141" Name="DO_TVReset" BufferOffset="141" Addr="141" Description="" />
<DO_ITEM Index="144" Name="DO_PSU1Reset" BufferOffset="144" Addr="144" Description="" />
<DO_ITEM Index="145" Name="DO_PSU2Reset" BufferOffset="145" Addr="145" Description="" />
<DO_ITEM Index="146" Name="DO_PSU3Reset" BufferOffset="146" Addr="146" Description="" />

View File

@ -105,7 +105,7 @@
<IoValve id="V25" display="GasBoxVentBypass" schematicId="V99" unit="" isNc="true" isDefaultOpen="false" diOpen="" doOpen="DO_GasBoxVentBypass(V25)" diCloseSensor="" diOpenSensor="" />
</IoValves>
<IoThrottleValves classType="Aitex.Core.RT.Device.Devices.IoThrottleValve2" assembly="MECF.Framework.RT.EquipmentLibrary">
<IoThrottleValve id="TV" display="TV" schematicId="TV" unit="mbar" scBasePath="PM.{module}" modeValuePressure="5" modeValuePosition="2" modeValueClose="3" modeValueOpen="4" aioType="float" aiStatus="AI_TVmode" aiPositionFeedback="AI_ActualPositon" aiPressureFeedback="AI_ActualPressure" aoPressureMode="AO_ValveModeSetpoint" aoPositionSetPoint="AO_SetpointPositon" aoPressureSetPoint="AO_SetpointPressure" doTVValveEnable="DO_TVEnable" diTVValveEnable="" />
<IoThrottleValve id="TV" display="TV" schematicId="TV" unit="mbar" scBasePath="PM.{module}" modeValuePressure="5" modeValuePosition="2" modeValueClose="3" modeValueOpen="4" aioType="float" aiStatus="AI_TVmode" aiPositionFeedback="AI_ActualPositon" aiPressureFeedback="AI_ActualPressure" aoPressureMode="AO_ValveModeSetpoint" aoPositionSetPoint="AO_SetpointPositon" aoPressureSetPoint="AO_SetpointPressure" doTVValveEnable="DO_TVEnable" doTVReset="DO_TVReset" diTVValveEnable="" />
</IoThrottleValves>
<IoMfcs classType="Aitex.Core.RT.Device.Devices.IoMFC" assembly="MECF.Framework.RT.EquipmentLibrary">
<IoMfc id="Mfc1" display="Mfc1" schematicId="Mfc1" unit="sccm" aiActMode="AI_M1ActMode" aoSetMode="AO_M1CtrlMode" aiFlow="AI_M1" aoFlow="AO_M1" scBasePath="PM.PM2.MFC" aioType="float" formatString="F1" diAlarm="DI_MFC01Offline" AlarmText="Alarm101 MFC01 Offline[DI-351]" />

View File

@ -384,6 +384,7 @@
<DO_ITEM Index="135" Name="DO_SCR2Enable" BufferOffset="135" Addr="135" Description="" />
<DO_ITEM Index="136" Name="DO_SCR3Enable" BufferOffset="136" Addr="136" Description="" />
<DO_ITEM Index="140" Name="DO_TVEnable" BufferOffset="140" Addr="140" Description="" />
<DO_ITEM Index="141" Name="DO_TVReset" BufferOffset="141" Addr="141" Description="" />
<DO_ITEM Index="144" Name="DO_PSU1Reset" BufferOffset="144" Addr="144" Description="" />
<DO_ITEM Index="145" Name="DO_PSU2Reset" BufferOffset="145" Addr="145" Description="" />
<DO_ITEM Index="146" Name="DO_PSU3Reset" BufferOffset="146" Addr="146" Description="" />

View File

@ -6752,6 +6752,7 @@
HorizontalAlignment="Center"
VerticalAlignment="Top"
Command="{Binding CmdTvEnable}"
CommandReset="{Binding CmdTvReset}"
DeviceData="{Binding TV}"
RenderTransformOrigin="-1.667,1.222" />

View File

@ -1480,6 +1480,7 @@ namespace SicUI.Models.PMs
public string LabelU13 { get; set; }
public ICommand CmdTvEnable { get; set; }
public ICommand CmdTvReset { get; set; }
public ICommand CmdTvPostionToZero { get; set; }
public ICommand CmdTurnGasValve { get; set; }
public ICommand CmdSetMfcFlow { get; set; }
@ -1488,6 +1489,7 @@ namespace SicUI.Models.PMs
{
this.DisplayName = "Operation";
CmdTvEnable = new DelegateCommand<object>(PerformCmdTvEnable);
CmdTvReset = new DelegateCommand<object>(PerformCmdTvReset);
CmdTurnGasValve = new DelegateCommand<object>(PerformCmdTurnGasValve);
CmdSetMfcFlow = new DelegateCommand<object>(PerformCmdSetMfcFlow);
}
@ -1516,6 +1518,10 @@ namespace SicUI.Models.PMs
var pair = (KeyValuePair<string, string>)data;
InvokeClient.Instance.Service.DoOperation($"{SystemName}.TV.SetTVValveEnable", pair.Value);
}
private void PerformCmdTvReset(object data)
{
InvokeClient.Instance.Service.DoOperation($"{SystemName}.TV.SetTVReset", true);
}
private void PerformCmdTurnGasValve(object data)
{
var pair = (KeyValuePair<string, string>)data;