Jelajahi Sumber

1,增加导出存储器指定地址数据;
2,修改转速调节相关控件。

Dail 10 bulan lalu
induk
melakukan
b4f7f3bcc6

TEMPAT SAMPAH
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 3 - 1
Welling_Motor_Debug_Tool/DebugForm.Designer.cs

@@ -28,6 +28,7 @@
         /// </summary>
         private void InitializeComponent()
         {
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DebugForm));
             this.button_DebugDisplay = new System.Windows.Forms.Button();
             this.button_DebugClear = new System.Windows.Forms.Button();
             this.groupBox1 = new System.Windows.Forms.GroupBox();
@@ -130,7 +131,8 @@
             this.Controls.Add(this.button_DebugDisplay);
             this.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
-            this.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Margin = new System.Windows.Forms.Padding(5);
             this.MaximizeBox = false;
             this.Name = "DebugForm";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

+ 2 - 0
Welling_Motor_Debug_Tool/DebugForm.cs

@@ -43,11 +43,13 @@ namespace Welling_Motor_Debug_Tool
             {
                 mainForm.mainform1.DebugDataDisplayEnable = true;
                 button_DebugDisplay.Text = "停止实时显示";
+                button_DebugDisplay.BackColor = Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(215)))), ((int)(((byte)(0)))));
             }
             else
             {
                 mainForm.mainform1.DebugDataDisplayEnable = false;
                 button_DebugDisplay.Text = "开始实时显示";
+                button_DebugDisplay.BackColor = Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             }
         }
 

+ 77 - 0
Welling_Motor_Debug_Tool/DebugForm.resx

@@ -117,4 +117,81 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAA
+        AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A+fn5BvT09Avg4OAfwsLCPa6urlGmpqZZoKCgX52dnWKcnJxjmpqaZZiY
+        mGeXl5dolZWVapSUlGuTk5NskZGRbpCQkG+QkJBvkJCQb5CQkG+Pj49wj4+PcJCQkG+RkZFukZGRbpKS
+        km2VlZVqnJycY6qqqlW9vb1C3d3dIvHx8Q7///8A/v7+AbSzslVDQDr4VUtF/1hNR/9VS0X/U0pF/1FJ
+        Q/9RSEP/UEhC/1FIQv9QSEP/UUlD/1FJQ/9RSUP/UUlD/1FJQ/9RSUP/UUlD/1FIQv9RSEL/UUhC/1FJ
+        Q/9SSkT/U0pE/1NKRP9RSEL/S0Q+/z06NP+amplw/v7+Af///wCYl5V7ODcx/z08Nv88Ozb/Ozw2/zs9
+        OP88Pjn/PT86/z4/Ov8/QDv/QEE8/0BBPP9BQj3/QUI9/0FCPf9BQj7/QEA8/z9AO/8+Pzr/Pj85/z0+
+        Of87PDf/Ojs2/zk6Nf84OTP/Njcy/zY2Mf82NjH/NzYx/zY2MP9tb2ur09TTLy0wKv0yNC//Njk0/zk7
+        Nv87Pjn/PkE8/0FDPv9DRUD/Q0ZC/0ZIRP9HSkX/SEtH/0lLR/9KTEj/Sk1I/0lMSP9IS0f/R0pF/0ZI
+        RP9ERkL/Q0ZB/0FDP/8+QTz/PD86/zk8OP83OjX/NDcy/zI1MP8xMy7/LTAr/yksJv9WWFTJMDQu/zc6
+        Nf88Pzv/QEM//1RTTf+9qJv/v6qd/8Crnv/Aq57/wKud/8Crnf/Aq53/wKud/7+rnf/Aqp3/v6uc/7+q
+        nP+/qpz/vqqc/76pm/++qpv/vqqc/72pm/+9qZv/vaib/7ejlv9aV1D/Nzo2/zQ3Mv8vMi3/Ki0o/0lN
+        SNw1OTT/P0E9/0VIQ/+RhXz/dGZe/xMPDP8WEg7/FhIO/xYSDv8WEg7/FhIO/xYSDv8WEg7/FhIO/xYS
+        Dv8WEg7/FhIO/xYSDv8WEg7/FhIO/xYSDv8WEg7/FhIO/xYSDv8WEg7/Ew8M/2lcVP9vaWH/Oz45/zU4
+        M/8tMCv/T1JN3D1BPP9HSUX/TVBL/3hrY/8PCwn/GRMQ/xoUEf8aFBH/GhQR/xoUEf8aFBH/GhQR/xoU
+        Ef8aFBH/GhQR/xoUEf8aFBH/GhQR/xoUEf8aFBH/GhQR/xoUEf8aFBH/GhQR/xoUEP8ZExD/EQ0L/35z
+        af9CRED/PD86/zI2MP9SVVDcQUQ//0tOSf9RU0//YldR/xANC/8aFBH/HBUS/xwVEv8cFRL/HBUS/xwV
+        Ev8cFRL/HBUS/xwVEv8cFRL/HBUS/xwVEv8cFRL/HBUS/xwVEv8cFhL/HBYS/xwWEv8cFRL/HBUS/xoU
+        Ef8TDgz/Z15W/0VIRP8/Qj3/NTgz/1hbVtxKTUj/VFdT/1tdWf9XTkj/h2wF/41xCf+OcQn/jnEJ/5p7
+        C/9uVxL/xp4E/8aeBP//zAD//8wA/089HP//zAD/QjMZ/0IzGf9CMxn/xp4E/zYqF/+OcQn/NioX/zYq
+        F/9CMxn/QTIZ/y4jEv9fVk/+TVBM/0ZJRf89Pzr/YGJe3FNWUf9dYFz/ZWdj/1BIQv+HbAX/NSkX/zEl
+        FP82Khf/QjMZ/25XEv+bewv/QjMZ/089HP9PPRz/Tz0c///MAP9CMxn/QjMZ/0IzGf/GngT/PDAd/49y
+        Cv82Khf/NioX/0MzGf9BMxn/LiMS/1pSS/5WWVT/TlFN/0NGQf9oaWXcXF9a/2dqZv9vcW7/SkI8/ohs
+        Bf8vJBP/MCUT/zYpF/9CMxn/blcS/55+D/9NPiT/XEoq/1xKKv9PPRz/Tz0c/8aeBP/GngT/xp4E/0Iz
+        Gf89MR7/j3IK/zYqF/82Khf/QjMZ/0IzGf8uJBP/V05I/l9hXv9XWVX/S05J/29xbtxmaGT/cnVw/3p8
+        ef9FPTf+iGwF/zUpF/81KRf/NikX/0IzGf9uVxL/x58F/8igBv//zAD//8wA/08+Hf9PPRz/xp4E/0Iz
+        Gf/GngT/QjMZ/z8yIP+Qcwv/jnEJ/45xCf/GngT/nn4O/y4kE/9TTEb+aWpn/2BjXv9TV1L/dnh03G9y
+        bf97fnr/hIaD/0A5M/6IbQX/MCUT/zUpFv82Khf/QjMZ/25XEv+dfg7/Sjog/089HP9PPRz/UUAf/089
+        HP/GngT/QjMZ/8aeBP9OPiX/QjYk/5J1Df85LRr/OS0a/0Q0G/9DNBr/LyUT/1FKRP5xdHD/aWtn/1te
+        Wf99gHvceXp3/4aIhP+PkY7/PTUv/oltBv81KRf/NioX/zYqF/9CMxn/b1cS/8igBv/Kogj//8wA///M
+        AP9aSSr/XUsr/1BCKP/Lown/UEEo/09AJ/9CNiT/knUN/49yCv+OcQn/xp4E/5p6C/8wJRP/T0lC/nt9
+        ef9xc3D/Y2Zi/4WHg9yChID/j5KO/5ialv85MSz+FREO/x0WEv8hGhb/Misn/zYvK/82MCz/NjAs/zYw
+        LP83MCz/NzEt/zcxLf83MCz/NjAs/zYwLP82Lyv/NS4q/zUuKv80Lin/My0o/zIsJ/8vKST/JB0Y/xcS
+        D/9PR0H+hIaD/3p8eP9rbWn/iImH3IaIhf+UlZL/nJ2b/zgwKv4VEQ7/IhsX/zcxLf85My//OTMv/zkz
+        L/86NDD/OjQw/zs1MP87NTD/OzUw/zs1Mf87NTD/OjQw/zo0MP85My//OTMv/zgyLv83MCz/Ni8r/zUu
+        Kv8zLCj/IBsX/05HQf6Kiof/foB9/25xbf+OkY3cj5GN/5udmv+kpaL/Ni0o/pN3EP+dgRn/n4Ia/5+C
+        Gv+qixv/hW4q/8+nDf/PqA7//8wA///MAP//zAD/bVs7/9CoDv9iUzr/YVM6/2FTOv9WSzn/Vko4/1VJ
+        N/+fghr/qYka/1tNNP9CNyb/TUU//pKTkP+HiYX/dnl1/5WWlNyVl5T/oqSh/6qsqf80LCb+TEEw/1VJ
+        OP9ZTzz/ooYe/62OH/+Kcy//rY4f/2dZP/9yYED/gnFR///MAP9zYkL/0qoQ/2lbQv9pWkH/aVpB/2FU
+        Qf9eU0D/XlJA/6SHH/+ujx//Zlc9/0g9LP9MRT/+mZqX/46Qjf99f3z/mpya3Jydmv+oqqf/sbKw/zMr
+        Jf5TSDf/ZFlH/6aJIf+miiL/sZIj/454NP+ykiP/bmBH/3xqSP+CcVH//8wA/3loSP/UrBL/b2FI/29h
+        SP9vYUj/ZltJ/2VaSP9lWkj/qIwk/7KTJP9sXkX/TUMy/0xEP/6foJ3/lZeV/4WHg/+goJ7coaOg/66v
+        rf+3uLb/Miok/p+EHP+ojCT/aV5N/2pfTf90Zk3/k305/7WWJ/91Zk3/fm5N/4JxUf//zAD/d2dG/9Wu
+        FP/VrhT/1a4U/9WuFP9sYVD/bGFQ/2xhT/+skCj/tZYn/3NmTP9TSTf/TEU//qWlo/+bnJr/jI2K/6Sm
+        otynqKb/s7Sy/729u/8xKSP+pIgh/2thT/9sYlD/bmRT/3hqUv+XgT7/t5gp/3hrUv+CcVH/gnFR///M
+        AP93Z0b/168V/3psU/96bFP/emxT/3FmVP9xZlT/cGVT/6+TK/+3mCn/eGpR/1hOPf9MRj/+qquo/5+h
+        nv+Qko//qqup3K2uq/+5ubf/wcLA/y8oIv6miyT/rpIq/7CULP+wlCz/uZor/5uFQf/YsBb/2LAW///M
+        AP//zAD//8wA/3dnRv/YsBb/2LAW/9iwFv/YsBb/dGpY/7GVLf+xlS3/sZUt/9iwFv/YsBb/mX4W/0xG
+        QP6ur6z/o6Wi/5WXlP+vsK3csbKw/729vP/Gx8X/MSoj/0xJRv9jXlv/ZWBd/2ZhXv9nYl//Z2Jf/2dj
+        X/9nY2D/aGNg/2hjYP9oY2D/aGNg/2hjYP9oY2D/Z2Ng/2diX/9nYl//Z2Jf/2diX/9nYl//ZmFe/2Vg
+        Xf9EQT7/UUpE/rGzsf+nqKb/mpuY/7Ozsdy0tbP/v8C9/8nKx/9JQDn/Kyoo/15bWP9rZ2T/bmpn/3Ft
+        av92cm//fHh2/4F9e/+FgX//iISC/4qHhf+Kh4X/iISC/4SAfv9/e3j/enZ0/3dzcP9zb2z/b2to/21o
+        Zf9qZWP/YFxZ/zAtLP9qY1z/tLWz/6mqp/+cnpr/t7m23Li5t//Cw8H/zc3L/7azr/87LiT/GhgW/xYV
+        Ff8WFRX/FhUV/xYVFf8WFRX/FhUV/xYVFf8WFRX/FhUV/xYVFf8WFRX/FhUV/xYVFf8WFRX/FhUV/xYV
+        Ff8WFRX/FhUV/xYVFf8aFxb/QDYt/rm5t/+3uLX/ra6s/6Cin//Ly8qtvL26/8bHxP/P0M7/19fW/93d
+        3P/j4+L/6eno/+7u7f/x8fD/9fTz//X19P/19fT/9fX0//X19P/19fT/9fX0//X19P/19fT/9fX0//Py
+        8v/w8O//6+vq/+Xm5f/f397/2trY/9LT0f/Ky8j/wMG//7q7uP+vsK7/pKWi//f39wnCw8DuyMnH/9HS
+        0P/Z2dj/3t/d/+Xm5P/r6+r/8PDv//Pz8v/19fT/9fX0//X19P/19fT/9fX0//X19P/19fT/9fX0//X1
+        9P/19fT/9PTz//Ly8f/t7uz/6Ojn/+Hh4P/b3Nv/1NXT/8zMy//Cw8H/u7y7/7GysP+nqKX/////ANPT
+        0zzKysj+0tPR/9rb2f/g4N//5ufm/+zt6//x8fD/9PTz//X19P/19fT/9fX0//X19P/19fT/9fX0//X1
+        9P/19fT/9fX0//X19P/19fT/8/Py/+/u7f/p6ej/4+Ph/93d3P/W1tT/zc7M/8PFwv+9vbv/s7Sy/9/f
+        3zz///8A////APf39wjU1NOX39/e4OPk4uHp6ejh7+/u4fPz8uH19fTh9vb14fb29eH29vXh9vb14fb2
+        9eH29vXh9vb14fb29eH29vXh9vb14fb29eH19PPh8PDw4ezr6uHm5uXh4eHg4dra2eHT09Lhy8zJ3tHR
+        0K/6+vkG////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
+</value>
+  </data>
 </root>

TEMPAT SAMPAH
Welling_Motor_Debug_Tool/Images/leafsoft.ico


+ 3 - 3
Welling_Motor_Debug_Tool/Version.cs

@@ -17,17 +17,17 @@ namespace Welling_Motor_Debug_Tool
         //修改记录
         string ChangeLog = "修改记录:\r\n" +
             "V" + mainForm.Version + "\r\n" +
-            "1,增加自动更新按钮,解决离线使用打开慢的问题;\r\n" +
+            "1,增加自动更新按钮,解决离线使用打开慢的问题;\r\n" +
             "2,删除发送进入5S协议指令,新版本UART控制器不需要配置协议,考虑还原提高兼容性;\r\n" +
             "3,部分工序增加延时,解决通信异常问题;\r\n" +
             "4,量产测试和检验模式增加重发机制;\r\n" +
             "5,控制参数预留1低8位作为转把定速巡航开关,仪表用户参数增加转把定速巡航开关;\r\n" +
             "6, 增加指令窗口,可显示接收和发送的数据;\r\n" +
-            "7,解决导入本地记录文件,自定义字符串以\\0结尾高级参数界面异常问题,目前关闭自定义字符串指令。\r\n\r\n" +
+            "7,解决导入本地记录文件,自定义字符串以\\0结尾高级参数界面异常问题,目前关闭自定义字符串指令。\r\n\r\n" +
             "V2.2.1\r\n" +
             "1,优化修改配置模式时重复发送指令的问题;\r\n" +
             "2,解决刹车检测报错的问题;\r\n" +
-            "3,解决力矩传感器测试结果不显示问题。\r\n\r\n" +
+            "3, 解决力矩传感器测试结果不显示问题。\r\n\r\n" +
             "V2.2.0\r\n" +
             "1,优化新增协议内容;\r\n" +
             "2,增加协议类型选择,支持CAN和UART;\r\n" +

TEMPAT SAMPAH
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_V2.2.2.exe


+ 77 - 125
Welling_Motor_Debug_Tool/mainForm.Designer.cs

@@ -125,6 +125,7 @@ namespace Welling_Motor_Debug_Tool
             this.样机测试记录ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.toolStripTextBox_DelLogFile = new System.Windows.Forms.ToolStripComboBox();
             this.指令调试ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.发送指令ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.查询ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.调试记录数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.生产记录数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -146,7 +147,6 @@ namespace Welling_Motor_Debug_Tool
             this.button_SpeedDec10 = new System.Windows.Forms.Button();
             this.button_SpeedDec1 = new System.Windows.Forms.Button();
             this.label24 = new System.Windows.Forms.Label();
-            this.numericUpDown_SpeedAdj = new System.Windows.Forms.NumericUpDown();
             this.label4 = new System.Windows.Forms.Label();
             this.comboBox_LightSwitch = new System.Windows.Forms.ComboBox();
             this.label3 = new System.Windows.Forms.Label();
@@ -384,9 +384,6 @@ namespace Welling_Motor_Debug_Tool
             this.textBox_FacModeName = new System.Windows.Forms.TextBox();
             this.groupBox22 = new System.Windows.Forms.GroupBox();
             this.button_FacModeLightSW = new System.Windows.Forms.Button();
-            this.label_FacModeMotorSpeedSet = new System.Windows.Forms.Label();
-            this.label67 = new System.Windows.Forms.Label();
-            this.trackBar_FacModeMotorSpeedAdj = new System.Windows.Forms.TrackBar();
             this.button_FacModeMotorRun = new System.Windows.Forms.Button();
             this.groupBox21 = new System.Windows.Forms.GroupBox();
             this.label79 = new System.Windows.Forms.Label();
@@ -480,6 +477,7 @@ namespace Welling_Motor_Debug_Tool
             this.comboBox_FacModeCfgDate = new System.Windows.Forms.ComboBox();
             this.groupBox2 = new System.Windows.Forms.GroupBox();
             this.checkBox_FacMode_MosCal = new System.Windows.Forms.CheckBox();
+            this.pictureBox_WriteLock = new System.Windows.Forms.PictureBox();
             this.checkBox_FacCad = new System.Windows.Forms.CheckBox();
             this.checkBox_FacLightTest = new System.Windows.Forms.CheckBox();
             this.checkBox_FacBreakTest = new System.Windows.Forms.CheckBox();
@@ -520,6 +518,7 @@ namespace Welling_Motor_Debug_Tool
             this.richTextBox_CheckModeLog = new System.Windows.Forms.RichTextBox();
             this.groupBox29 = new System.Windows.Forms.GroupBox();
             this.checkBox_CheckModeMos = new System.Windows.Forms.CheckBox();
+            this.pictureBox_ReadLock = new System.Windows.Forms.PictureBox();
             this.checkBox_CheckModeSN = new System.Windows.Forms.CheckBox();
             this.checkBox_CheckModeTorque = new System.Windows.Forms.CheckBox();
             this.checkBox_CheckModeCfg = new System.Windows.Forms.CheckBox();
@@ -619,14 +618,11 @@ namespace Welling_Motor_Debug_Tool
             this.label_UserName = new System.Windows.Forms.Label();
             this.label124 = new System.Windows.Forms.Label();
             this.label46 = new System.Windows.Forms.Label();
-            this.pictureBox_WriteLock = new System.Windows.Forms.PictureBox();
-            this.pictureBox_ReadLock = new System.Windows.Forms.PictureBox();
             this.pictureBox2 = new System.Windows.Forms.PictureBox();
-            this.发送指令ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.textBox_MotorSpeedPercent = new System.Windows.Forms.TextBox();
             this.menuStrip_Set.SuspendLayout();
             this.statusStrip1.SuspendLayout();
             this.groupBox1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_SpeedAdj)).BeginInit();
             this.groupBox3.SuspendLayout();
             this.tabControl1.SuspendLayout();
             this.tabPage_MotorParam.SuspendLayout();
@@ -664,7 +660,6 @@ namespace Welling_Motor_Debug_Tool
             this.tabPage_FactoryMode.SuspendLayout();
             this.groupBox25.SuspendLayout();
             this.groupBox22.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.trackBar_FacModeMotorSpeedAdj)).BeginInit();
             this.groupBox21.SuspendLayout();
             this.groupBox20.SuspendLayout();
             this.groupBox24.SuspendLayout();
@@ -673,15 +668,15 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox28.SuspendLayout();
             this.groupBox27.SuspendLayout();
             this.groupBox2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox_WriteLock)).BeginInit();
             this.tabPage_ProductMode_Read.SuspendLayout();
             this.groupBox31.SuspendLayout();
             this.groupBox30.SuspendLayout();
             this.groupBox29.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox_ReadLock)).BeginInit();
             this.tabControl2.SuspendLayout();
             this.tabPage_RunInfo.SuspendLayout();
             this.tabPage_DebugInfo.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox_WriteLock)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox_ReadLock)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
             this.SuspendLayout();
             // 
@@ -915,7 +910,7 @@ namespace Welling_Motor_Debug_Tool
             this.IP地址ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerIP});
             this.IP地址ToolStripMenuItem.Name = "IP地址ToolStripMenuItem";
-            this.IP地址ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.IP地址ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.IP地址ToolStripMenuItem.Text = "IP地址";
             // 
             // toolStripTextBox_ServerIP
@@ -923,7 +918,7 @@ namespace Welling_Motor_Debug_Tool
             this.toolStripTextBox_ServerIP.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
             this.toolStripTextBox_ServerIP.Name = "toolStripTextBox_ServerIP";
             this.toolStripTextBox_ServerIP.Size = new System.Drawing.Size(200, 28);
-            this.toolStripTextBox_ServerIP.Text = "8.134.109.44";
+            this.toolStripTextBox_ServerIP.Text = "10.177.130.30";
             this.toolStripTextBox_ServerIP.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ConfigFileSave_KeyDown);
             // 
             // 端口ToolStripMenuItem
@@ -931,7 +926,7 @@ namespace Welling_Motor_Debug_Tool
             this.端口ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerPort});
             this.端口ToolStripMenuItem.Name = "端口ToolStripMenuItem";
-            this.端口ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.端口ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.端口ToolStripMenuItem.Text = "端口";
             // 
             // toolStripTextBox_ServerPort
@@ -939,7 +934,7 @@ namespace Welling_Motor_Debug_Tool
             this.toolStripTextBox_ServerPort.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
             this.toolStripTextBox_ServerPort.Name = "toolStripTextBox_ServerPort";
             this.toolStripTextBox_ServerPort.Size = new System.Drawing.Size(200, 28);
-            this.toolStripTextBox_ServerPort.Text = "21";
+            this.toolStripTextBox_ServerPort.Text = "15021";
             this.toolStripTextBox_ServerPort.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ConfigFileSave_KeyDown);
             // 
             // 用户名ToolStripMenuItem
@@ -947,7 +942,7 @@ namespace Welling_Motor_Debug_Tool
             this.用户名ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerUser});
             this.用户名ToolStripMenuItem.Name = "用户名ToolStripMenuItem";
-            this.用户名ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.用户名ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.用户名ToolStripMenuItem.Text = "用户名";
             // 
             // toolStripTextBox_ServerUser
@@ -955,7 +950,7 @@ namespace Welling_Motor_Debug_Tool
             this.toolStripTextBox_ServerUser.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
             this.toolStripTextBox_ServerUser.Name = "toolStripTextBox_ServerUser";
             this.toolStripTextBox_ServerUser.Size = new System.Drawing.Size(200, 28);
-            this.toolStripTextBox_ServerUser.Text = "ttium";
+            this.toolStripTextBox_ServerUser.Text = "factory_test";
             this.toolStripTextBox_ServerUser.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ConfigFileSave_KeyDown);
             // 
             // 密码ToolStripMenuItem
@@ -963,7 +958,7 @@ namespace Welling_Motor_Debug_Tool
             this.密码ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerPasswd});
             this.密码ToolStripMenuItem.Name = "密码ToolStripMenuItem";
-            this.密码ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.密码ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.密码ToolStripMenuItem.Text = "密码";
             // 
             // toolStripTextBox_ServerPasswd
@@ -971,7 +966,7 @@ namespace Welling_Motor_Debug_Tool
             this.toolStripTextBox_ServerPasswd.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
             this.toolStripTextBox_ServerPasswd.Name = "toolStripTextBox_ServerPasswd";
             this.toolStripTextBox_ServerPasswd.Size = new System.Drawing.Size(200, 28);
-            this.toolStripTextBox_ServerPasswd.Text = "ttium123";
+            this.toolStripTextBox_ServerPasswd.Text = "ttium";
             this.toolStripTextBox_ServerPasswd.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ConfigFileSave_KeyDown);
             // 
             // 存储路径ToolStripMenuItem
@@ -979,7 +974,7 @@ namespace Welling_Motor_Debug_Tool
             this.存储路径ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_ServerPath});
             this.存储路径ToolStripMenuItem.Name = "存储路径ToolStripMenuItem";
-            this.存储路径ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.存储路径ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.存储路径ToolStripMenuItem.Text = "存储路径";
             // 
             // toolStripTextBox_ServerPath
@@ -1011,7 +1006,7 @@ namespace Welling_Motor_Debug_Tool
             this.生产商ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MAC});
             this.生产商ToolStripMenuItem.Name = "生产商ToolStripMenuItem";
-            this.生产商ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.生产商ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.生产商ToolStripMenuItem.Text = "生产商";
             // 
             // toolStripTextBox_MAC
@@ -1027,7 +1022,7 @@ namespace Welling_Motor_Debug_Tool
             this.生产地ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBoxMACAddr});
             this.生产地ToolStripMenuItem.Name = "生产地ToolStripMenuItem";
-            this.生产地ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.生产地ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.生产地ToolStripMenuItem.Text = "生产地";
             // 
             // toolStripTextBoxMACAddr
@@ -1043,7 +1038,7 @@ namespace Welling_Motor_Debug_Tool
             this.生产日期ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MACDate});
             this.生产日期ToolStripMenuItem.Name = "生产日期ToolStripMenuItem";
-            this.生产日期ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.生产日期ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.生产日期ToolStripMenuItem.Text = "生产日期";
             // 
             // toolStripTextBox_MACDate
@@ -1059,7 +1054,7 @@ namespace Welling_Motor_Debug_Tool
             this.产品标识ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MACPD});
             this.产品标识ToolStripMenuItem.Name = "产品标识ToolStripMenuItem";
-            this.产品标识ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.产品标识ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.产品标识ToolStripMenuItem.Text = "产品标识";
             // 
             // toolStripTextBox_MACPD
@@ -1298,7 +1293,7 @@ namespace Welling_Motor_Debug_Tool
             this.mOS1ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MOS1});
             this.mOS1ToolStripMenuItem.Name = "mOS1ToolStripMenuItem";
-            this.mOS1ToolStripMenuItem.Size = new System.Drawing.Size(127, 26);
+            this.mOS1ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.mOS1ToolStripMenuItem.Text = "MOS1";
             // 
             // toolStripTextBox_MOS1
@@ -1314,7 +1309,7 @@ namespace Welling_Motor_Debug_Tool
             this.mOS2ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MOS2});
             this.mOS2ToolStripMenuItem.Name = "mOS2ToolStripMenuItem";
-            this.mOS2ToolStripMenuItem.Size = new System.Drawing.Size(127, 26);
+            this.mOS2ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.mOS2ToolStripMenuItem.Text = "MOS2";
             // 
             // toolStripTextBox_MOS2
@@ -1330,7 +1325,7 @@ namespace Welling_Motor_Debug_Tool
             this.mOS3ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_MOS3});
             this.mOS3ToolStripMenuItem.Name = "mOS3ToolStripMenuItem";
-            this.mOS3ToolStripMenuItem.Size = new System.Drawing.Size(127, 26);
+            this.mOS3ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.mOS3ToolStripMenuItem.Text = "MOS3";
             // 
             // toolStripTextBox_MOS3
@@ -1360,14 +1355,14 @@ namespace Welling_Motor_Debug_Tool
             this.cANToolStripMenuItem.Checked = true;
             this.cANToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
             this.cANToolStripMenuItem.Name = "cANToolStripMenuItem";
-            this.cANToolStripMenuItem.Size = new System.Drawing.Size(122, 26);
+            this.cANToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.cANToolStripMenuItem.Text = "CAN";
             this.cANToolStripMenuItem.Click += new System.EventHandler(this.cANToolStripMenuItem_Click);
             // 
             // uARTToolStripMenuItem
             // 
             this.uARTToolStripMenuItem.Name = "uARTToolStripMenuItem";
-            this.uARTToolStripMenuItem.Size = new System.Drawing.Size(122, 26);
+            this.uARTToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.uARTToolStripMenuItem.Text = "UART";
             this.uARTToolStripMenuItem.Click += new System.EventHandler(this.uARTToolStripMenuItem_Click);
             // 
@@ -1451,7 +1446,7 @@ namespace Welling_Motor_Debug_Tool
             this.生产配置文件ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_DelCfgFile});
             this.生产配置文件ToolStripMenuItem.Name = "生产配置文件ToolStripMenuItem";
-            this.生产配置文件ToolStripMenuItem.Size = new System.Drawing.Size(176, 26);
+            this.生产配置文件ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.生产配置文件ToolStripMenuItem.Text = "生产配置文件";
             // 
             // toolStripTextBox_DelCfgFile
@@ -1467,7 +1462,7 @@ namespace Welling_Motor_Debug_Tool
             this.样机测试记录ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripTextBox_DelLogFile});
             this.样机测试记录ToolStripMenuItem.Name = "样机测试记录ToolStripMenuItem";
-            this.样机测试记录ToolStripMenuItem.Size = new System.Drawing.Size(176, 26);
+            this.样机测试记录ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.样机测试记录ToolStripMenuItem.Text = "样机测试记录";
             // 
             // toolStripTextBox_DelLogFile
@@ -1485,6 +1480,13 @@ namespace Welling_Motor_Debug_Tool
             this.指令调试ToolStripMenuItem.Text = "指令窗口";
             this.指令调试ToolStripMenuItem.Click += new System.EventHandler(this.指令调试ToolStripMenuItem_Click);
             // 
+            // 发送指令ToolStripMenuItem
+            // 
+            this.发送指令ToolStripMenuItem.Name = "发送指令ToolStripMenuItem";
+            this.发送指令ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.发送指令ToolStripMenuItem.Text = "发送指令";
+            this.发送指令ToolStripMenuItem.Click += new System.EventHandler(this.发送指令ToolStripMenuItem_Click);
+            // 
             // 查询ToolStripMenuItem
             // 
             this.查询ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -1498,14 +1500,14 @@ namespace Welling_Motor_Debug_Tool
             // 调试记录数据ToolStripMenuItem
             // 
             this.调试记录数据ToolStripMenuItem.Name = "调试记录数据ToolStripMenuItem";
-            this.调试记录数据ToolStripMenuItem.Size = new System.Drawing.Size(176, 26);
+            this.调试记录数据ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.调试记录数据ToolStripMenuItem.Text = "调试记录数据";
             this.调试记录数据ToolStripMenuItem.Click += new System.EventHandler(this.调试记录数据ToolStripMenuItem_Click);
             // 
             // 生产记录数据ToolStripMenuItem
             // 
             this.生产记录数据ToolStripMenuItem.Name = "生产记录数据ToolStripMenuItem";
-            this.生产记录数据ToolStripMenuItem.Size = new System.Drawing.Size(176, 26);
+            this.生产记录数据ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.生产记录数据ToolStripMenuItem.Text = "生产记录数据";
             this.生产记录数据ToolStripMenuItem.Click += new System.EventHandler(this.生产记录数据ToolStripMenuItem_Click);
             // 
@@ -1525,7 +1527,7 @@ namespace Welling_Motor_Debug_Tool
             // 版本ToolStripMenuItem
             // 
             this.版本ToolStripMenuItem.Name = "版本ToolStripMenuItem";
-            this.版本ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.版本ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.版本ToolStripMenuItem.Text = "版本信息";
             this.版本ToolStripMenuItem.Click += new System.EventHandler(this.版本ToolStripMenuItem_Click);
             // 
@@ -1535,7 +1537,7 @@ namespace Welling_Motor_Debug_Tool
             this.打开ToolStripMenuItem,
             this.关闭ToolStripMenuItem});
             this.自动更新ToolStripMenuItem.Name = "自动更新ToolStripMenuItem";
-            this.自动更新ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.自动更新ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.自动更新ToolStripMenuItem.Text = "自动更新";
             // 
             // 打开ToolStripMenuItem
@@ -1543,28 +1545,28 @@ namespace Welling_Motor_Debug_Tool
             this.打开ToolStripMenuItem.Checked = true;
             this.打开ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
             this.打开ToolStripMenuItem.Name = "打开ToolStripMenuItem";
-            this.打开ToolStripMenuItem.Size = new System.Drawing.Size(112, 26);
+            this.打开ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.打开ToolStripMenuItem.Text = "打开";
             this.打开ToolStripMenuItem.Click += new System.EventHandler(this.打开ToolStripMenuItem_Click);
             // 
             // 关闭ToolStripMenuItem
             // 
             this.关闭ToolStripMenuItem.Name = "关闭ToolStripMenuItem";
-            this.关闭ToolStripMenuItem.Size = new System.Drawing.Size(112, 26);
+            this.关闭ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.关闭ToolStripMenuItem.Text = "关闭";
             this.关闭ToolStripMenuItem.Click += new System.EventHandler(this.关闭ToolStripMenuItem_Click);
             // 
             // 本机信息ToolStripMenuItem
             // 
             this.本机信息ToolStripMenuItem.Name = "本机信息ToolStripMenuItem";
-            this.本机信息ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.本机信息ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.本机信息ToolStripMenuItem.Text = "本机信息";
             this.本机信息ToolStripMenuItem.Click += new System.EventHandler(this.本机信息ToolStripMenuItem_Click);
             // 
             // 帮助ToolStripMenuItem
             // 
             this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem";
-            this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.帮助ToolStripMenuItem.Text = "查看帮助";
             // 
             // 累计运行时间ToolStripMenuItem
@@ -1572,7 +1574,7 @@ namespace Welling_Motor_Debug_Tool
             this.累计运行时间ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripMenuItem_RunTime});
             this.累计运行时间ToolStripMenuItem.Name = "累计运行时间ToolStripMenuItem";
-            this.累计运行时间ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
+            this.累计运行时间ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
             this.累计运行时间ToolStripMenuItem.Text = "运行时间";
             this.累计运行时间ToolStripMenuItem.MouseHover += new System.EventHandler(this.累计运行时间ToolStripMenuItem_MouseHover);
             // 
@@ -1603,13 +1605,13 @@ namespace Welling_Motor_Debug_Tool
             // 
             // groupBox1
             // 
+            this.groupBox1.Controls.Add(this.textBox_MotorSpeedPercent);
             this.groupBox1.Controls.Add(this.label69);
             this.groupBox1.Controls.Add(this.button_SpeedAdd10);
             this.groupBox1.Controls.Add(this.button_SpeedAdd1);
             this.groupBox1.Controls.Add(this.button_SpeedDec10);
             this.groupBox1.Controls.Add(this.button_SpeedDec1);
             this.groupBox1.Controls.Add(this.label24);
-            this.groupBox1.Controls.Add(this.numericUpDown_SpeedAdj);
             this.groupBox1.Controls.Add(this.label4);
             this.groupBox1.Controls.Add(this.comboBox_LightSwitch);
             this.groupBox1.Controls.Add(this.label3);
@@ -1695,17 +1697,6 @@ namespace Welling_Motor_Debug_Tool
             this.label24.TabIndex = 6;
             this.label24.Text = "%";
             // 
-            // numericUpDown_SpeedAdj
-            // 
-            this.numericUpDown_SpeedAdj.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
-            this.numericUpDown_SpeedAdj.Location = new System.Drawing.Point(85, 124);
-            this.numericUpDown_SpeedAdj.Name = "numericUpDown_SpeedAdj";
-            this.numericUpDown_SpeedAdj.ReadOnly = true;
-            this.numericUpDown_SpeedAdj.Size = new System.Drawing.Size(73, 28);
-            this.numericUpDown_SpeedAdj.TabIndex = 5;
-            this.numericUpDown_SpeedAdj.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.numericUpDown_SpeedAdj.ValueChanged += new System.EventHandler(this.numericUpDown_SpeedAdj_ValueChanged);
-            // 
             // label4
             // 
             this.label4.AutoSize = true;
@@ -4344,9 +4335,6 @@ namespace Welling_Motor_Debug_Tool
             // groupBox22
             // 
             this.groupBox22.Controls.Add(this.button_FacModeLightSW);
-            this.groupBox22.Controls.Add(this.label_FacModeMotorSpeedSet);
-            this.groupBox22.Controls.Add(this.label67);
-            this.groupBox22.Controls.Add(this.trackBar_FacModeMotorSpeedAdj);
             this.groupBox22.Controls.Add(this.button_FacModeMotorRun);
             this.groupBox22.Location = new System.Drawing.Point(190, 3);
             this.groupBox22.Name = "groupBox22";
@@ -4367,40 +4355,6 @@ namespace Welling_Motor_Debug_Tool
             this.button_FacModeLightSW.UseVisualStyleBackColor = false;
             this.button_FacModeLightSW.Click += new System.EventHandler(this.button_FacModeLightSW_Click);
             // 
-            // label_FacModeMotorSpeedSet
-            // 
-            this.label_FacModeMotorSpeedSet.AutoSize = true;
-            this.label_FacModeMotorSpeedSet.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.label_FacModeMotorSpeedSet.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label_FacModeMotorSpeedSet.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
-            this.label_FacModeMotorSpeedSet.Location = new System.Drawing.Point(138, 91);
-            this.label_FacModeMotorSpeedSet.Name = "label_FacModeMotorSpeedSet";
-            this.label_FacModeMotorSpeedSet.Size = new System.Drawing.Size(40, 17);
-            this.label_FacModeMotorSpeedSet.TabIndex = 19;
-            this.label_FacModeMotorSpeedSet.Text = "100%";
-            this.label_FacModeMotorSpeedSet.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label67
-            // 
-            this.label67.AutoSize = true;
-            this.label67.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label67.Location = new System.Drawing.Point(22, 96);
-            this.label67.Name = "label67";
-            this.label67.Size = new System.Drawing.Size(56, 17);
-            this.label67.TabIndex = 18;
-            this.label67.Text = "转速调节";
-            // 
-            // trackBar_FacModeMotorSpeedAdj
-            // 
-            this.trackBar_FacModeMotorSpeedAdj.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.trackBar_FacModeMotorSpeedAdj.Location = new System.Drawing.Point(15, 116);
-            this.trackBar_FacModeMotorSpeedAdj.Maximum = 100;
-            this.trackBar_FacModeMotorSpeedAdj.Name = "trackBar_FacModeMotorSpeedAdj";
-            this.trackBar_FacModeMotorSpeedAdj.Size = new System.Drawing.Size(163, 45);
-            this.trackBar_FacModeMotorSpeedAdj.TabIndex = 17;
-            this.trackBar_FacModeMotorSpeedAdj.TickStyle = System.Windows.Forms.TickStyle.TopLeft;
-            this.trackBar_FacModeMotorSpeedAdj.ValueChanged += new System.EventHandler(this.trackBar_FacModeMotorSpeedAdj_ValueChanged);
-            // 
             // button_FacModeMotorRun
             // 
             this.button_FacModeMotorRun.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
@@ -5488,6 +5442,17 @@ namespace Welling_Motor_Debug_Tool
             this.checkBox_FacMode_MosCal.Text = "MOS校准";
             this.checkBox_FacMode_MosCal.UseVisualStyleBackColor = true;
             // 
+            // pictureBox_WriteLock
+            // 
+            this.pictureBox_WriteLock.Image = global::Welling_Motor_Debug_Tool.Properties.Resources.Lock;
+            this.pictureBox_WriteLock.Location = new System.Drawing.Point(100, 28);
+            this.pictureBox_WriteLock.Name = "pictureBox_WriteLock";
+            this.pictureBox_WriteLock.Size = new System.Drawing.Size(45, 45);
+            this.pictureBox_WriteLock.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox_WriteLock.TabIndex = 7;
+            this.pictureBox_WriteLock.TabStop = false;
+            this.pictureBox_WriteLock.Click += new System.EventHandler(this.pictureBox_WriteLock_Click);
+            // 
             // checkBox_FacCad
             // 
             this.checkBox_FacCad.AutoSize = true;
@@ -6006,6 +5971,17 @@ namespace Welling_Motor_Debug_Tool
             this.checkBox_CheckModeMos.Text = "MOS内阻校准确认";
             this.checkBox_CheckModeMos.UseVisualStyleBackColor = true;
             // 
+            // pictureBox_ReadLock
+            // 
+            this.pictureBox_ReadLock.Image = global::Welling_Motor_Debug_Tool.Properties.Resources.Lock;
+            this.pictureBox_ReadLock.Location = new System.Drawing.Point(149, 28);
+            this.pictureBox_ReadLock.Name = "pictureBox_ReadLock";
+            this.pictureBox_ReadLock.Size = new System.Drawing.Size(45, 45);
+            this.pictureBox_ReadLock.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox_ReadLock.TabIndex = 8;
+            this.pictureBox_ReadLock.TabStop = false;
+            this.pictureBox_ReadLock.Click += new System.EventHandler(this.pictureBox_ReadLock_Click);
+            // 
             // checkBox_CheckModeSN
             // 
             this.checkBox_CheckModeSN.AutoSize = true;
@@ -7032,28 +7008,6 @@ namespace Welling_Motor_Debug_Tool
             this.label46.TabIndex = 21;
             this.label46.Text = "/";
             // 
-            // pictureBox_WriteLock
-            // 
-            this.pictureBox_WriteLock.Image = global::Welling_Motor_Debug_Tool.Properties.Resources.Lock;
-            this.pictureBox_WriteLock.Location = new System.Drawing.Point(100, 28);
-            this.pictureBox_WriteLock.Name = "pictureBox_WriteLock";
-            this.pictureBox_WriteLock.Size = new System.Drawing.Size(45, 45);
-            this.pictureBox_WriteLock.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox_WriteLock.TabIndex = 7;
-            this.pictureBox_WriteLock.TabStop = false;
-            this.pictureBox_WriteLock.Click += new System.EventHandler(this.pictureBox_WriteLock_Click);
-            // 
-            // pictureBox_ReadLock
-            // 
-            this.pictureBox_ReadLock.Image = global::Welling_Motor_Debug_Tool.Properties.Resources.Lock;
-            this.pictureBox_ReadLock.Location = new System.Drawing.Point(149, 28);
-            this.pictureBox_ReadLock.Name = "pictureBox_ReadLock";
-            this.pictureBox_ReadLock.Size = new System.Drawing.Size(45, 45);
-            this.pictureBox_ReadLock.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox_ReadLock.TabIndex = 8;
-            this.pictureBox_ReadLock.TabStop = false;
-            this.pictureBox_ReadLock.Click += new System.EventHandler(this.pictureBox_ReadLock_Click);
-            // 
             // pictureBox2
             // 
             this.pictureBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
@@ -7065,12 +7019,16 @@ namespace Welling_Motor_Debug_Tool
             this.pictureBox2.TabIndex = 16;
             this.pictureBox2.TabStop = false;
             // 
-            // 发送指令ToolStripMenuItem
+            // textBox_MotorSpeedPercent
             // 
-            this.发送指令ToolStripMenuItem.Name = "发送指令ToolStripMenuItem";
-            this.发送指令ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
-            this.发送指令ToolStripMenuItem.Text = "发送指令";
-            this.发送指令ToolStripMenuItem.Click += new System.EventHandler(this.发送指令ToolStripMenuItem_Click);
+            this.textBox_MotorSpeedPercent.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
+            this.textBox_MotorSpeedPercent.Location = new System.Drawing.Point(85, 124);
+            this.textBox_MotorSpeedPercent.Name = "textBox_MotorSpeedPercent";
+            this.textBox_MotorSpeedPercent.ReadOnly = true;
+            this.textBox_MotorSpeedPercent.Size = new System.Drawing.Size(70, 28);
+            this.textBox_MotorSpeedPercent.TabIndex = 17;
+            this.textBox_MotorSpeedPercent.Text = "0";
+            this.textBox_MotorSpeedPercent.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
             // mainForm
             // 
@@ -7116,7 +7074,6 @@ namespace Welling_Motor_Debug_Tool
             this.statusStrip1.PerformLayout();
             this.groupBox1.ResumeLayout(false);
             this.groupBox1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_SpeedAdj)).EndInit();
             this.groupBox3.ResumeLayout(false);
             this.tabControl1.ResumeLayout(false);
             this.tabPage_MotorParam.ResumeLayout(false);
@@ -7176,8 +7133,6 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox25.ResumeLayout(false);
             this.groupBox25.PerformLayout();
             this.groupBox22.ResumeLayout(false);
-            this.groupBox22.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.trackBar_FacModeMotorSpeedAdj)).EndInit();
             this.groupBox21.ResumeLayout(false);
             this.groupBox21.PerformLayout();
             this.groupBox20.ResumeLayout(false);
@@ -7192,6 +7147,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox27.ResumeLayout(false);
             this.groupBox2.ResumeLayout(false);
             this.groupBox2.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox_WriteLock)).EndInit();
             this.tabPage_ProductMode_Read.ResumeLayout(false);
             this.tabPage_ProductMode_Read.PerformLayout();
             this.groupBox31.ResumeLayout(false);
@@ -7199,13 +7155,12 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox30.ResumeLayout(false);
             this.groupBox29.ResumeLayout(false);
             this.groupBox29.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox_ReadLock)).EndInit();
             this.tabControl2.ResumeLayout(false);
             this.tabPage_RunInfo.ResumeLayout(false);
             this.tabPage_RunInfo.PerformLayout();
             this.tabPage_DebugInfo.ResumeLayout(false);
             this.tabPage_DebugInfo.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox_WriteLock)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox_ReadLock)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
@@ -7227,7 +7182,6 @@ namespace Welling_Motor_Debug_Tool
         private GroupBox groupBox1;
         private GroupBox groupBox3;
         private ToolStripMenuItem 连接ToolStripMenuItem;
-        private NumericUpDown numericUpDown_SpeedAdj;
         private Label label4;
         private Label label3;
         private ComboBox comboBox_WorkMode;
@@ -7428,9 +7382,6 @@ namespace Welling_Motor_Debug_Tool
         private Button buttonFacModeSet4;
         private TextBox textBox_FacModeSensorADC2;
         private Button button_FacModeMotorRun;
-        private Label label_FacModeMotorSpeedSet;
-        private Label label67;
-        private TrackBar trackBar_FacModeMotorSpeedAdj;
         private Label label84;
         private TextBox textBox_FacModeFW;
         private Button Button_FacModeReadVer;
@@ -7804,5 +7755,6 @@ namespace Welling_Motor_Debug_Tool
         private Label label137;
         public ToolStripMenuItem 指令调试ToolStripMenuItem;
         private ToolStripMenuItem 发送指令ToolStripMenuItem;
+        private TextBox textBox_MotorSpeedPercent;
     }
 }

+ 66 - 43
Welling_Motor_Debug_Tool/mainForm.cs

@@ -2138,6 +2138,25 @@ namespace Welling_Motor_Debug_Tool
                             break;
                         }
                 }
+                //存储器导出数据显示
+                if ((CmdTemp & 0xFF00) == 0xAB00)
+                {
+                    unchecked
+                    {
+                        this.Invoke((EventHandler)(delegate
+                        {
+                            long ByteNum = 0;
+                            ByteNum = ((Data[4] << 24) + (Data[5] << 16) + (Data[6] << 8) + Data[7]) - ((Data[0] << 24) + (Data[1] << 16) + (Data[2] << 8) + Data[3]) + 1;
+                            if (ByteNum > 4) //数据长度超过4Bytes,按照16进制显示字节流
+                            {
+                                for (int i = 0; i < ByteNum; i++)
+                                {
+                                    richTextBox_RamFlasgData.AppendText(Convert.ToString(Data[8 + i], 16).PadLeft(2, '0').ToUpper() + " ");
+                                }
+                            }
+                        }));
+                    }
+                }
             }
             #endregion
 
@@ -2332,22 +2351,6 @@ namespace Welling_Motor_Debug_Tool
             toolStripComboBox_ComNum.SelectedIndex = toolStripComboBox_ComNum.Items.Count > 0 ? 0 : -1;
         }
 
-        /// <summary>
-        /// 转速调节事件
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void numericUpDown_SpeedAdj_ValueChanged(object sender, EventArgs e)
-        {
-            //生产模式转速设置值更新
-            trackBar_FacModeMotorSpeedAdj.Value = (int)numericUpDown_SpeedAdj.Value;
-            label_FacModeMotorSpeedSet.Text = trackBar_FacModeMotorSpeedAdj.Value.ToString() + "%";
-            //设置转速百分比
-            var Data = new byte[1];
-            Data[0] = (byte)numericUpDown_SpeedAdj.Value;
-            mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2C01, Data);
-        }
-
         /// <summary>
         /// 存储标志修改事件
         /// </summary>
@@ -4034,7 +4037,7 @@ namespace Welling_Motor_Debug_Tool
             textBox_FacModeSensorADC4.Text = "";
             LightSwitchStatus = false;
             MotorRunStatus = false;
-            trackBar_FacModeMotorSpeedAdj.Value = 5;
+            textBox_MotorSpeedPercent.Text = "5";            
             textBox_FacModeName.Text = "";
             textBox_FacModeNum.Text = "";
             textBox_FacModeHW.Text = "";
@@ -4268,7 +4271,9 @@ namespace Welling_Motor_Debug_Tool
                 }
                 Delay_ms(200);
                 //设置转速百分比100%
-                trackBar_FacModeMotorSpeedAdj.Value = 100;
+                textBox_MotorSpeedPercent.Text = "100";
+                ConfigParam[0] = (byte)100;
+                mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2C01, ConfigParam);
                 MotorRunStatus = !MotorRunStatus;
                 button_FacModeMotorRun.BackColor = Color.Yellow;
                 Delay_ms(200);
@@ -4280,7 +4285,9 @@ namespace Welling_Motor_Debug_Tool
             else //运转状态
             {
                 //设置转速百分比0%
-                trackBar_FacModeMotorSpeedAdj.Value = 0;
+                textBox_MotorSpeedPercent.Text = "0";
+                ConfigParam[0] = (byte)0;
+                mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2C01, ConfigParam);
                 MotorRunStatus = !MotorRunStatus;
                 button_FacModeMotorRun.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
                 Delay_ms(200);
@@ -4311,18 +4318,6 @@ namespace Welling_Motor_Debug_Tool
             }
         }
 
-        /// <summary>
-        /// 生产模式转速调节
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void trackBar_FacModeMotorSpeedAdj_ValueChanged(object sender, EventArgs e)
-        {
-            //转速百分比更新
-            label_FacModeMotorSpeedSet.Text = trackBar_FacModeMotorSpeedAdj.Value.ToString() + "%";
-            numericUpDown_SpeedAdj.Value = trackBar_FacModeMotorSpeedAdj.Value;
-        }
-
         /// <summary>
         /// 生产模式写入型号
         /// </summary>
@@ -8655,34 +8650,62 @@ namespace Welling_Motor_Debug_Tool
 
         private void button_SpeedDec10_Click(object sender, EventArgs e)
         {
-            if (numericUpDown_SpeedAdj.Value <= 10)
-                numericUpDown_SpeedAdj.Value = 0;
+            short Percent = Convert.ToInt16(textBox_MotorSpeedPercent.Text);
+            if (Percent <= 10)
+                Percent = 0;
             else
-                numericUpDown_SpeedAdj.Value -= 10;
+                Percent -= 10;
+            //生产模式转速设置值更新
+            textBox_MotorSpeedPercent.Text = Percent.ToString();
+            //设置转速百分比
+            var Data = new byte[1];
+            Data[0] = (byte)Percent;
+            mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2C01, Data);
         }
 
         private void button_SpeedAdd10_Click(object sender, EventArgs e)
         {
-            if (numericUpDown_SpeedAdj.Value >= 90)
-                numericUpDown_SpeedAdj.Value = 100;
+            short Percent = Convert.ToInt16(textBox_MotorSpeedPercent.Text);
+            if (Percent >= 90)
+                Percent = 100;
             else
-                numericUpDown_SpeedAdj.Value += 10;
+                Percent += 10;
+            //生产模式转速设置值更新
+            textBox_MotorSpeedPercent.Text = Percent.ToString();
+            //设置转速百分比
+            var Data = new byte[1];
+            Data[0] = (byte)Percent;
+            mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2C01, Data);
         }
 
         private void button_SpeedDec1_Click(object sender, EventArgs e)
         {
-            if (numericUpDown_SpeedAdj.Value <= 1)
-                numericUpDown_SpeedAdj.Value = 0;
+            short Percent = Convert.ToInt16(textBox_MotorSpeedPercent.Text);
+            if (Percent <= 1)
+                Percent = 0;
             else
-                numericUpDown_SpeedAdj.Value -= 1;
+                Percent -= 1;
+            //生产模式转速设置值更新
+            textBox_MotorSpeedPercent.Text = Percent.ToString();
+            //设置转速百分比
+            var Data = new byte[1];
+            Data[0] = (byte)Percent;
+            mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2C01, Data);
         }
 
         private void button_SpeedAdd1_Click(object sender, EventArgs e)
         {
-            if(numericUpDown_SpeedAdj.Value >= 99)
-                numericUpDown_SpeedAdj.Value = 100;
+            short Percent = Convert.ToInt16(textBox_MotorSpeedPercent.Text);
+            if (Percent >= 99)
+                Percent = 100;
             else
-                numericUpDown_SpeedAdj.Value += 1;
+                Percent += 1;
+            //生产模式转速设置值更新
+            textBox_MotorSpeedPercent.Text = Percent.ToString();
+            //设置转速百分比
+            var Data = new byte[1];
+            Data[0] = (byte)Percent;
+            mySerialProcess.SendCmd((ushort)0x751, (byte)0x16, (ushort)0x2C01, Data);
         }
 
 

TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.AssemblyReference.cache


TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.GenerateResource.cache


TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb