From cf6410ca4b1211c555adba5c24616895b1972755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Fri, 22 Dec 2023 16:00:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=8E=8B=E5=8A=9B=E6=B0=94?= =?UTF-8?q?=E9=98=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entity/DeviceDetailEntity.cs | 8 + .../Entity/PlcReadTempEntity.cs | 9 + .../MainDetailControlAction.cs | 18 +- .../Mesnac.Action.ChemicalWeighing.csproj | 1 + Main/MCEdit/Data/MCProject/SCWSProject2.mprj | 1 + .../Data/MCProject/nodeForm/FormSuDo.xml | 276 ++++++++++++++++++ .../Data/MCProject/nodeForm/MainDetail.xml | 105 +++++++ 7 files changed, 417 insertions(+), 1 deletion(-) create mode 100644 Main/MCEdit/Data/MCProject/nodeForm/FormSuDo.xml diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs index 291a4ed..ea5e855 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs @@ -239,6 +239,14 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity public MCLabel PR2PCP02 { get; set; } public MCLabel PR2PCP03 { get; set; } + + + public MCLabel McA { get; set; } + + public MCLabel McG { get; set; } + public MCLabel McE { get; set; } + public MCLabel McK { get; set; } + public MCLabel McIO { get; set; } } public class SwitchLightEntity diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs index 71d0d0e..6692958 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs @@ -515,5 +515,14 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity public float PR2PCP02_Set { get; set; } public float PR2PCP03_Set { get; set; } + + public float McA_Set { get; set; } + public float McG_Set { get; set; } + public float McE_Set { get; set; } + + public float McK_Set { get; set; } + + + public float McIO_Set { get; set; } } } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index 0cfc247..b25d8a0 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -969,6 +969,15 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl PlcReadTemp.PR2PCP02_Set = DB2107.Pressure.PR2PCP02.ActualValue; PlcReadTemp.PR2PCP03_Set = DB2107.Pressure.PR2PCP03.ActualValue; + + + + + PlcReadTemp.McA_Set = DB2103._24T11A_D.ACT_Speed; + PlcReadTemp.McG_Set = DB2103._64T01G_J.ACT_Speed; + PlcReadTemp.McE_Set = DB2103._64T61E_F.ACT_Speed; + PlcReadTemp.McK_Set = DB2103.DM1K_NSF01.ACT_Speed; + PlcReadTemp.McIO_Set = DB2103.DM1OSF01.ACT_Speed; ControlsHelper.SetThreeWayValve(ThreeValveE.DV2PCP01, PlcReadTemp.DV2PCP01_AlarmR, PlcReadTemp.DV2PCP01_SetR, PlcReadTemp.DV2PCP01_AlarmL, PlcReadTemp.DV2PCP01_SetL, 4); ControlsHelper.SetThreeWayValve(ThreeValveE.DV2PCP02, PlcReadTemp.DV2PCP02_AlarmR, PlcReadTemp.DV2PCP02_SetR, PlcReadTemp.DV2PCP02_AlarmL, PlcReadTemp.DV2PCP02_SetL, 0); @@ -1351,10 +1360,17 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl ControlsHelper.SetSwitchLight(LightE.DMWETER88, PlcReadTemp.DMWETER8_Set, PlcReadTemp.DMWETER8_Alarm); - + //压力参数 LabelE.PR2PCP01.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP01_Set, 2); LabelE.PR2PCP02.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP02_Set, 2); LabelE.PR2PCP03.MCValue = (float)Math.Round(PlcReadTemp.PR2PCP03_Set, 2); + + + LabelE.McA.MCValue = (float)Math.Round(PlcReadTemp.McA_Set, 2); + LabelE.McG.MCValue = (float)Math.Round(PlcReadTemp.McG_Set, 2); + LabelE.McE.MCValue = (float)Math.Round(PlcReadTemp.McE_Set, 2); + LabelE.McK.MCValue = (float)Math.Round(PlcReadTemp.McK_Set, 2); + LabelE.McIO.MCValue = (float)Math.Round(PlcReadTemp.McIO_Set, 2); } /// diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj index 1c03991..d8b7413 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj @@ -655,6 +655,7 @@ FormEnqPar.cs + diff --git a/Main/MCEdit/Data/MCProject/SCWSProject2.mprj b/Main/MCEdit/Data/MCProject/SCWSProject2.mprj index 618326c..789aabd 100644 --- a/Main/MCEdit/Data/MCProject/SCWSProject2.mprj +++ b/Main/MCEdit/Data/MCProject/SCWSProject2.mprj @@ -35,6 +35,7 @@ + diff --git a/Main/MCEdit/Data/MCProject/nodeForm/FormSuDo.xml b/Main/MCEdit/Data/MCProject/nodeForm/FormSuDo.xml new file mode 100644 index 0000000..cb5e9da --- /dev/null +++ b/Main/MCEdit/Data/MCProject/nodeForm/FormSuDo.xml @@ -0,0 +1,276 @@ + + + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL + + + + False + + + + None + True + True + False + + + + Red + DarkGray + 下传 + 7, 240 + BtnOk + 118, 38 + 10 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL + + + 0 + 0 + True + + + False + + + + None + True + True + + 98, 185 + MCTextBoxIO + 100, 21 + 9 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 螺旋输送机IO + 7, 187 + MCLabel5 + 77, 12 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL + + + 0 + 0 + True + + + False + + + + None + True + True + + 97, 151 + MCTextBoxK + 100, 21 + 7 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 螺旋K-N变频 + 6, 153 + MCLabel4 + 71, 12 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL + + + 0 + 0 + True + + + False + + + + None + True + True + + 97, 114 + MCTextBoxE + 100, 21 + 5 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 螺旋E-F变频 + 6, 116 + MCLabel3 + 71, 12 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL + + + 0 + 0 + True + + + False + + + + None + True + True + + 97, 78 + MCTextBoxG + 100, 21 + 3 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 螺旋G-J变频 + 6, 80 + MCLabel2 + 71, 12 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL + + + 0 + 0 + True + + + False + + + + None + True + True + + 98, 41 + MCTextBoxA + 100, 21 + 1 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 螺旋A-D变频 + 7, 43 + MCLabel1 + 71, 12 + + False + 手动速度 + 12, 12 + GroupBox1 + 246, 344 + 0 + + + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ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IAAAAL + + False + False + False + Control + 600, 670 + WindowsDefaultLocation + 螺旋变频速度设定 + Normal + + Tile + 宋体, 9pt + ControlText + FormSuDo + diff --git a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml index 16afaf1..6d8e49f 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml @@ -1,6 +1,111 @@ + + + + + Red + DarkGray + + + False + + + + None + True + True + 0 + ButtonHighlight + 660, 13 + McIO + 11, 12 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 0 + ButtonHighlight + 521, 11 + McK + 11, 12 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 0 + ButtonHighlight + 251, 8 + McG + 11, 12 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 0 + ButtonHighlight + 383, 11 + McE + 11, 12 + + + + + + Red + DarkGray + + + False + + + + None + True + True + 0 + ButtonHighlight + 130, 8 + McA + 11, 12 +