发布一版

dep
杨威 6 months ago
parent 06be082d17
commit c08720563a

@ -1624,18 +1624,18 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
//压力参数 //压力参数
LabelE.PR2PCP01.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP01_Set, 2); LabelE.PR2PCP01.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP01_Set, 2)+ " mPa";
LabelE.PR2PCP02.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP02_Set, 2); LabelE.PR2PCP02.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP02_Set, 2) + " mPa";
LabelE.PR2PCP03.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP03_Set, 2); LabelE.PR2PCP03.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP03_Set, 2) + " mPa";
LabelE.PR2PCP04.MCValue= (float)Math.Round(PlcReadTemp.PR2PCP04_Set, 2); LabelE.PR2PCP04.MCValue= (float)Math.Round(PlcReadTemp.PR2PCP04_Set, 2) + " mPa";
LabelE.McA.MCValue = (float)Math.Round(PlcReadTemp.McA_Set, 2); LabelE.McA.MCValue = (float)Math.Round(PlcReadTemp.McA_Set, 2) + " Hz";
LabelE.McG.MCValue = (float)Math.Round(PlcReadTemp.McG_Set, 2); LabelE.McG.MCValue = (float)Math.Round(PlcReadTemp.McG_Set, 2) + " Hz";
LabelE.McE.MCValue = (float)Math.Round(PlcReadTemp.McE_Set, 2); LabelE.McE.MCValue = (float)Math.Round(PlcReadTemp.McE_Set, 2) + " Hz";
LabelE.McK.MCValue = (float)Math.Round(PlcReadTemp.McK_Set, 2); LabelE.McK.MCValue = (float)Math.Round(PlcReadTemp.McK_Set, 2) + " Hz";
LabelE.McIO.MCValue = (float)Math.Round(PlcReadTemp.McIO_Set, 2); LabelE.McIO.MCValue = (float)Math.Round(PlcReadTemp.McIO_Set, 2) + " Hz";
} }
/// <summary> /// <summary>
@ -1965,12 +1965,12 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
ControlsHelper.SetSwitchLight(LightE.Hopper_4_LowLevel, PlcReadTemp.Hopper_4_LowLevel_Set, false); ControlsHelper.SetSwitchLight(LightE.Hopper_4_LowLevel, PlcReadTemp.Hopper_4_LowLevel_Set, false);
ControlsHelper.SetMCLabel(LabelE.topPressure_V1, (float)Math.Round(PlcReadTemp.topPressure_V1_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.topPressure_V1, (float)Math.Round(PlcReadTemp.topPressure_V1_Set, 2));
ControlsHelper.SetMCLabel(LabelE.topPressure_V2, (float)Math.Round(PlcReadTemp.topPressure_V2_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.topPressure_V2, (float)Math.Round(PlcReadTemp.topPressure_V2_Set, 2));
ControlsHelper.SetMCLabel(LabelE.topPressure_V3, (float)Math.Round(PlcReadTemp.topPressure_V3_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.topPressure_V3, (float)Math.Round(PlcReadTemp.topPressure_V3_Set, 2));
ControlsHelper.SetMCLabel(LabelE.topPressure_V4, (float)Math.Round(PlcReadTemp.topPressure_V4_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.topPressure_V4, (float)Math.Round(PlcReadTemp.topPressure_V4_Set, 2));
ControlsHelper.SetMCLabel(LabelE.topPressure_V5, (float)Math.Round(PlcReadTemp.topPressure_V5_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.topPressure_V5, (float)Math.Round(PlcReadTemp.topPressure_V5_Set, 2));
ControlsHelper.SetMCLabel(LabelE.Vessel_1_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_1_ActWeight_Set, 2)); ControlsHelper.SetMCLabel(LabelE.Vessel_1_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_1_ActWeight_Set, 2));
ControlsHelper.SetMCLabel(LabelE.Vessel_2_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_2_ActWeight_Set, 2)); ControlsHelper.SetMCLabel(LabelE.Vessel_2_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_2_ActWeight_Set, 2));
ControlsHelper.SetMCLabel(LabelE.Vessel_3_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_3_ActWeight_Set, 2)); ControlsHelper.SetMCLabel(LabelE.Vessel_3_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_3_ActWeight_Set, 2));
@ -1983,21 +1983,21 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
ControlsHelper.SetMCLabel(LabelE.conveyV4_PV, (float)Math.Round(PlcReadTemp.conveyV4_PV_Set, 2)); ControlsHelper.SetMCLabel(LabelE.conveyV4_PV, (float)Math.Round(PlcReadTemp.conveyV4_PV_Set, 2));
ControlsHelper.SetMCLabel(LabelE.conveyV5_PV, (float)Math.Round(PlcReadTemp.conveyV5_PV_Set, 2)); ControlsHelper.SetMCLabel(LabelE.conveyV5_PV, (float)Math.Round(PlcReadTemp.conveyV5_PV_Set, 2));
ControlsHelper.SetMCLabel(LabelE.mainPress_V1_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V1_ActualValue_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.mainPress_V1_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V1_ActualValue_Set, 2));
ControlsHelper.SetMCLabel(LabelE.mainPress_V2_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V2_ActualValue_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.mainPress_V2_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V2_ActualValue_Set, 2));
ControlsHelper.SetMCLabel(LabelE.mainPress_V3_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V3_ActualValue_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.mainPress_V3_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V3_ActualValue_Set, 2));
ControlsHelper.SetMCLabel(LabelE.mainPress_V4_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V4_ActualValue_Set, 2)); ControlsHelper.SetMCLabel(LabelE.mainPress_V4_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V4_ActualValue_Set, 2));
ControlsHelper.SetMCLabel(LabelE.mainPress_V5_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V5_ActualValue_Set, 2)); ControlsHelper.SetMCLabel(LabelE.mainPress_V5_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V5_ActualValue_Set, 2));
ControlsHelper.SetMCLabel(LabelE.purgeV1_PV, (float)Math.Round(PlcReadTemp.purgeV1_PV_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.purgeV1_PV, (float)Math.Round(PlcReadTemp.purgeV1_PV_Set, 2));
ControlsHelper.SetMCLabel(LabelE.purgeV2_PV, (float)Math.Round(PlcReadTemp.purgeV2_PV_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.purgeV2_PV, (float)Math.Round(PlcReadTemp.purgeV2_PV_Set, 2));
ControlsHelper.SetMCLabel(LabelE.purgeV3_PV, (float)Math.Round(PlcReadTemp.purgeV3_PV_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.purgeV3_PV, (float)Math.Round(PlcReadTemp.purgeV3_PV_Set, 2));
ControlsHelper.SetMCLabel(LabelE.purgeV4_PV, (float)Math.Round(PlcReadTemp.purgeV4_PV_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.purgeV4_PV, (float)Math.Round(PlcReadTemp.purgeV4_PV_Set, 2));
ControlsHelper.SetMCLabel(LabelE.purgeV5_PV, (float)Math.Round(PlcReadTemp.purgeV5_PV_Set, 2)); ControlsHelper.SetMCLabelMpa(LabelE.purgeV5_PV, (float)Math.Round(PlcReadTemp.purgeV5_PV_Set, 2));
ControlsHelper.SetMCLabel(LabelE.WScale_1_ActWeight, (float)Math.Round(PlcReadTemp.WScale_1_ActWeight_Set, 2)); ControlsHelper.SetMCLabel(LabelE.WScale_1_ActWeight, (float)Math.Round(PlcReadTemp.WScale_1_ActWeight_Set, 2));
@ -2009,18 +2009,18 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
ControlsHelper.SetMCLabel(LabelE.Hopper_3_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_3_ActWeight_Set, 2)); ControlsHelper.SetMCLabel(LabelE.Hopper_3_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_3_ActWeight_Set, 2));
ControlsHelper.SetMCLabel(LabelE.Hopper_4_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_4_ActWeight_Set, 2)); ControlsHelper.SetMCLabel(LabelE.Hopper_4_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_4_ActWeight_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin1, (float)Math.Round(PlcReadTemp.PresDaybin1_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin1, (float)Math.Round(PlcReadTemp.PresDaybin1_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin2, (float)Math.Round(PlcReadTemp.PresDaybin2_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin2, (float)Math.Round(PlcReadTemp.PresDaybin2_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin3, (float)Math.Round(PlcReadTemp.PresDaybin3_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin3, (float)Math.Round(PlcReadTemp.PresDaybin3_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin4, (float)Math.Round(PlcReadTemp.PresDaybin4_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin4, (float)Math.Round(PlcReadTemp.PresDaybin4_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin5, (float)Math.Round(PlcReadTemp.PresDaybin5_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin5, (float)Math.Round(PlcReadTemp.PresDaybin5_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin6, (float)Math.Round(PlcReadTemp.PresDaybin6_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin6, (float)Math.Round(PlcReadTemp.PresDaybin6_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin7, (float)Math.Round(PlcReadTemp.PresDaybin7_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin7, (float)Math.Round(PlcReadTemp.PresDaybin7_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin8, (float)Math.Round(PlcReadTemp.PresDaybin8_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin8, (float)Math.Round(PlcReadTemp.PresDaybin8_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin9, (float)Math.Round(PlcReadTemp.PresDaybin9_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin9, (float)Math.Round(PlcReadTemp.PresDaybin9_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin10, (float)Math.Round(PlcReadTemp.PresDaybin10_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin10, (float)Math.Round(PlcReadTemp.PresDaybin10_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin11, (float)Math.Round(PlcReadTemp.PresDaybin11_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin11, (float)Math.Round(PlcReadTemp.PresDaybin11_Set, 2));
ControlsHelper.SetMCLabel(LabelE.PresDaybin12, (float)Math.Round(PlcReadTemp.PresDaybin12_Set, 2)); ControlsHelper.SetMCLabelkPa(LabelE.PresDaybin12, (float)Math.Round(PlcReadTemp.PresDaybin12_Set, 2));
ControlsHelper.SetJzf(JzfE.AS1BLT01, PlcReadTemp.AS1BLT01_Set); ControlsHelper.SetJzf(JzfE.AS1BLT01, PlcReadTemp.AS1BLT01_Set);

@ -207,6 +207,26 @@ namespace Mesnac.Action.ChemicalWeighing.Util
} }
} }
public static void SetMCLabelkPa(MCLabel obj, object set)
{
if ((set != null && obj != null))
{
obj.Text = Convert.ToString(set) + " kPa";
}
}
public static void SetMCLabelMpa(MCLabel obj, object set)
{
if ((set != null && obj != null))
{
obj.Text = Convert.ToString(set) + " mPa";
}
}
public static void SetMCLabel(MCLabel obj, object set, Color color) public static void SetMCLabel(MCLabel obj, object set, Color color)
{ {
obj.Text = Convert.ToString(set); obj.Text = Convert.ToString(set);

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save