diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/PressureSettingButtonAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/PressureSettingButtonAction.cs index aac934b..d463437 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/PressureSettingButtonAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/PressureSettingButtonAction.cs @@ -63,9 +63,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting return; } - PlcDownload.DownSlio(slioEntity); + try + { + PlcDownload.DownSlio(slioEntity); - MessageBox.Show("下传成功"); + MessageBox.Show("下传成功"); + } + catch (Exception) + { + + MessageBox.Show("下传失败 参数异常"); + } + } @@ -76,9 +85,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting return; } - PlcDownload.DownPipe(pipe); + try + { + PlcDownload.DownPipe(pipe); + MessageBox.Show("下传成功"); + } + catch (Exception) + { + + MessageBox.Show("下传失败 参数异常"); + } - MessageBox.Show("下传成功"); + } }