From 90c84700e1db4da5dda0700926f0af1d9a0f30b2 Mon Sep 17 00:00:00 2001 From: wangsr Date: Sun, 17 Dec 2023 10:17:04 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E5=85=AC=E5=B7=AE=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=20=E7=BB=B4=E4=BF=AE=E5=BC=80=E5=85=B3=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E9=A2=9C=E8=89=B2=20=E8=BE=93=E9=80=81=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=B0=8F=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AutoControl/ControlsHelper.cs | 14 ++ .../AutoControl/InitAction.cs | 3 + .../Data/MCProject/nodeForm/AutoControlC.xml | 15 -- .../Data/MCProject/nodeForm/LjDeliver.xml | 200 ++---------------- 4 files changed, 31 insertions(+), 201 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/ControlsHelper.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/ControlsHelper.cs index 4502108..165a8ac 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/ControlsHelper.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/ControlsHelper.cs @@ -223,6 +223,18 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl TextE.DryW10.MCValue = Dry.RecipePlcViews[9].Set; TextE.DryW11.MCValue = Dry.RecipePlcViews[10].Set; TextE.DryW12.MCValue = Dry.RecipePlcViews[11].Set; + TextE.DryT1.MCValue = Dry.RecipePlcViews[0].Tolerance; + TextE.DryT2.MCValue = Dry.RecipePlcViews[1].Tolerance; + TextE.DryT3.MCValue = Dry.RecipePlcViews[2].Tolerance; + TextE.DryT4.MCValue = Dry.RecipePlcViews[3].Tolerance; + TextE.DryT5.MCValue = Dry.RecipePlcViews[4].Tolerance; + TextE.DryT6.MCValue = Dry.RecipePlcViews[5].Tolerance; + TextE.DryT7.MCValue = Dry.RecipePlcViews[6].Tolerance; + TextE.DryT8.MCValue = Dry.RecipePlcViews[7].Tolerance; + TextE.DryT9.MCValue = Dry.RecipePlcViews[8].Tolerance; + TextE.DryT10.MCValue = Dry.RecipePlcViews[9].Tolerance; + TextE.DryT11.MCValue = Dry.RecipePlcViews[10].Tolerance; + TextE.DryT12.MCValue = Dry.RecipePlcViews[11].Tolerance; TextE.DryWaitTime.MCValue = Dry.RecipeSteps[1].MixTime; TextE.DryOutDelayTime.MCValue = Dry.RecipeSteps[2].MixTime; TextE.DrySpeed1.MCValue = Dry.RecipeSteps[0].MixSpeed; @@ -234,6 +246,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl { TextE.MaterialWeight1.MCValue = Gel.RecipePlcViews[0].Set; TextE.MaterialWeight2.MCValue = Gel.RecipePlcViews[1].Set; + TextE.MaterialTolerance1.MCValue = Gel.RecipePlcViews[0].Tolerance; + TextE.MaterialTolerance2.MCValue = Gel.RecipePlcViews[1].Tolerance; TextE.GelSpeedSet.MCValue = Gel.RecipeSteps[0].MixSpeed; TextE.GelPosTimeA.MCValue = Gel.RecipeSteps[2].MixTemp; TextE.GelNagTimeB.MCValue = Gel.RecipeSteps[2].MixSpeed; diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/InitAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/InitAction.cs index aba214b..bbc39f1 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/InitAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/InitAction.cs @@ -124,10 +124,13 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl if (rd[ControlsHelper.SingleSelect(RadioE) - 1]) { LabelE.RepairState.MCValue = "开"; + LabelE.RepairState.BackColor = Color.Red; } else { LabelE.RepairState.MCValue = "关"; + LabelE.RepairState.BackColor = Color.LightGreen; + } } diff --git a/Main/MCEdit/Data/MCProject/nodeForm/AutoControlC.xml b/Main/MCEdit/Data/MCProject/nodeForm/AutoControlC.xml index 0d73f3f..0a10db1 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/AutoControlC.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/AutoControlC.xml @@ -1358,7 +1358,6 @@ True True - 0.2 397, 354 DryT12 46, 26 @@ -1492,7 +1491,6 @@ True True - 0.2 397, 324 DryT11 46, 26 @@ -1626,7 +1624,6 @@ True True - 0.2 397, 294 DryT10 46, 26 @@ -1760,7 +1757,6 @@ True True - 0.2 397, 264 DryT9 46, 26 @@ -1894,7 +1890,6 @@ True True - 0.2 397, 234 DryT8 46, 26 @@ -2028,7 +2023,6 @@ True True - 0.2 397, 204 DryT7 46, 26 @@ -2162,7 +2156,6 @@ True True - 0.2 397, 174 DryT6 46, 26 @@ -2296,7 +2289,6 @@ True True - 0.2 397, 144 DryT5 46, 26 @@ -2430,7 +2422,6 @@ True True - 0.2 397, 114 DryT4 46, 26 @@ -2564,7 +2555,6 @@ True True - 0.2 397, 84 DryT3 46, 26 @@ -2698,7 +2688,6 @@ True True - 0.2 397, 54 DryT2 46, 26 @@ -2832,7 +2821,6 @@ True True - 0.2 397, 24 DryT1 46, 26 @@ -3725,7 +3713,6 @@ True True - 0.2 86, 52 ManualTolerance 80, 21 @@ -3960,7 +3947,6 @@ True True - 0.2 407, 54 MaterialTolerance2 80, 26 @@ -4500,7 +4486,6 @@ True True - 0.2 407, 24 MaterialTolerance1 80, 26 diff --git a/Main/MCEdit/Data/MCProject/nodeForm/LjDeliver.xml b/Main/MCEdit/Data/MCProject/nodeForm/LjDeliver.xml index f2c710c..51adb43 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/LjDeliver.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/LjDeliver.xml @@ -565,7 +565,7 @@ Aqua 596, 84 SpecialLabelBlue509 - 730, 1 + 26, 1 @@ -635,7 +635,7 @@ - 458, 128 + 458, 175 DV1PCP16 22, 12 @@ -653,7 +653,7 @@ True MiddleCenter White - 468, 131 + 468, 178 SpecialLabelBlue513 106, 3 @@ -1832,7 +1832,7 @@ Aqua 527, 112 SpecialLabelBlue656 - 249, 1 + 95, 1 @@ -1868,7 +1868,7 @@ Aqua 568, 60 SpecialLabelBlue655 - 304, 1 + 54, 1 @@ -1904,7 +1904,7 @@ Aqua 485, 32 SpecialLabelBlue653 - 923, 1 + 138, 1 @@ -1978,92 +1978,6 @@ MCLabel273 41, 12 - - - - - - False - - - - None - True - True - MiddleCenter - Aqua - 544, 516 - SpecialLabelBlue648 - 19, 1 - - - - - - - False - - - - None - True - True - MiddleCenter - Aqua - 528, 456 - SpecialLabelBlue649 - 17, 1 - - - - - - - False - - - - None - True - True - MiddleCenter - Aqua - 531, 486 - SpecialLabelBlue650 - 38, 1 - - - - TurnOff - 563, 509 - Jzf19 - 13, 11 - - - - TurnOff - 521, 479 - Jzf20 - 13, 11 - - - - - - - False - - - - None - True - True - MiddleCenter - Aqua - 544, 456 - SpecialLabelBlue651 - 1, 60 - @@ -2208,92 +2122,6 @@ SpecialLabelBlue643 3, 799 - - - - - - False - - - - None - True - True - MiddleCenter - Aqua - 502, 280 - SpecialLabelBlue641 - 19, 1 - - - - - - - False - - - - None - True - True - MiddleCenter - Aqua - 486, 220 - SpecialLabelBlue640 - 17, 1 - - - - - - - False - - - - None - True - True - MiddleCenter - Aqua - 489, 250 - SpecialLabelBlue638 - 38, 1 - - - - TurnOff - 521, 273 - Jzf18 - 13, 11 - - - - TurnOff - 479, 243 - Jzf17 - 13, 11 - - - - - - - False - - - - None - True - True - MiddleCenter - Aqua - 502, 220 - SpecialLabelBlue637 - 1, 60 - @@ -2308,7 +2136,7 @@ True MiddleCenter White - 492, 144 + 492, 211 SpecialLabelBlue636 3, 60 @@ -2326,7 +2154,7 @@ True MiddleCenter White - 492, 201 + 492, 268 SpecialLabelBlue635 10, 3 @@ -2344,7 +2172,7 @@ True MiddleCenter White - 479, 144 + 479, 211 SpecialLabelBlue633 14, 3 @@ -2362,7 +2190,7 @@ True MiddleCenter White - 479, 174 + 479, 241 SpecialLabelBlue632 22, 3 @@ -4779,7 +4607,7 @@ - 500, 171 + 500, 239 DV1PCP10 22, 12 @@ -4788,7 +4616,7 @@ - 500, 198 + 500, 266 DV1PCP09 22, 12 @@ -4802,7 +4630,7 @@ - 458, 142 + 458, 209 DV1PCP02 22, 12 @@ -4811,7 +4639,7 @@ - 458, 171 + 458, 238 DV1PCP01 22, 12