diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/InitAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/InitAction.cs
index 6520eaf..5387115 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/InitAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/InitAction.cs
@@ -394,7 +394,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
}
}
-
+ ///
+ /// 去换一个方式
+ ///
private void GetMotorStatus2()
{
int str = MotorSelect.SelectedIndex;
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/Entity/DeliverPressureEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/Entity/DeliverPressureEntity.cs
index b38d4ef..b84825a 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/Entity/DeliverPressureEntity.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/Entity/DeliverPressureEntity.cs
@@ -113,5 +113,10 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting.Entity
public MCTextBox TxtSpeedMA { get; set; }
public MCTextBox TxtSpeedMB { get; set; }
public MCTextBox TxtSpeedMC { get; set; }
+
+
+ public MCTextBox SetSpeedA { get; set; }
+
+ public MCTextBox SetSpeedM { get; set; }
}
}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/InitAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/InitAction.cs
index 56cd746..a448c52 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/InitAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/InitAction.cs
@@ -145,6 +145,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
speed.TxtSpeedMB.MCValue = dB91.DM2DSM01.SetSpeed_M.ToString();
speed.TxtSpeedMC.MCValue = dB91.DM3DSM01.SetSpeed_M.ToString();
+ speed.SetSpeedA.MCValue=dB91.DM1GDS12.SetSpeed_A.ToString();
+ speed.SetSpeedM.MCValue = dB91.DM1GDS12.SetSpeed_M.ToString();
+
}
}
}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/PressureSettingButtonAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/PressureSettingButtonAction.cs
index 252b2a8..a36b079 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/PressureSettingButtonAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverPressureSetting/PressureSettingButtonAction.cs
@@ -80,6 +80,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverPressureSetting
Convert.ToSingle(speed.TxtSpeedMC.MCValue),
});
+ DB91WriterHelper.AddSpeed(Convert.ToSingle(speed.SetSpeedA.MCValue), Convert.ToSingle(speed.SetSpeedM.MCValue));
+
+
MessageBox.Show("下传成功");
}
catch (Exception)
diff --git a/DataBlockHelper/DBHelpers/DB137WriterHelper.cs b/DataBlockHelper/DBHelpers/DB137WriterHelper.cs
index ed141b9..56d16b2 100644
--- a/DataBlockHelper/DBHelpers/DB137WriterHelper.cs
+++ b/DataBlockHelper/DBHelpers/DB137WriterHelper.cs
@@ -37,5 +37,12 @@ namespace DataBlockHelper.DBHelpers
start = start +14;
}
}
+
+ public static void AddSpeed(float a,float m)
+ {
+ var siemensS7Net = PlcConnect.Instance;
+ siemensS7Net.Write("DB91.78.0", a);
+ siemensS7Net.Write("DB91.82.0", m);
+ }
}
}
diff --git a/Main/MCEdit/Data/MCProject/nodeForm/DeliverPressureSetting.xml b/Main/MCEdit/Data/MCProject/nodeForm/DeliverPressureSetting.xml
index ee2ad05..85e6266 100644
--- a/Main/MCEdit/Data/MCProject/nodeForm/DeliverPressureSetting.xml
+++ b/Main/MCEdit/Data/MCProject/nodeForm/DeliverPressureSetting.xml
@@ -51,6 +51,132 @@
74
@@ -129,7 +255,7 @@
True
True
- 123, 226
+ 123, 190
TxtSpeedMC
59, 26
86
@@ -150,7 +276,7 @@
True
筛分机C手动转速
宋体, 9pt
- 18, 232
+ 18, 196
MCLabel153
95, 12
@@ -172,7 +298,7 @@
True
True
- 123, 192
+ 123, 156
TxtSpeedMB
59, 26
85
@@ -193,7 +319,7 @@
True
筛分机B手动转速
宋体, 9pt
- 18, 199
+ 18, 163
MCLabel154
95, 12
@@ -215,7 +341,7 @@
True
True
- 123, 152
+ 123, 122
TxtSpeedMA
59, 26
83
@@ -236,7 +362,7 @@
True
筛分机A手动转速
宋体, 9pt
- 18, 161
+ 18, 131
MCLabel155
95, 12
@@ -256,7 +382,7 @@
True
Hz
宋体, 9pt
- 188, 105
+ 188, 96
MCLabel123
17, 12
@@ -276,7 +402,7 @@
True
Hz
宋体, 9pt
- 188, 72
+ 188, 64
MCLabel122
17, 12
@@ -318,7 +444,7 @@
True
True
- 123, 99
+ 123, 89
TxtSpeedC
59, 26
77
@@ -339,7 +465,7 @@
True
筛分机C自动转速
宋体, 9pt
- 18, 105
+ 18, 95
MCLabel85
95, 12
@@ -361,7 +487,7 @@
True
True
- 123, 65
+ 123, 56
TxtSpeedB
59, 26
75
@@ -382,7 +508,7 @@
True
筛分机B自动转速
宋体, 9pt
- 18, 72
+ 18, 63
MCLabel86
95, 12