add - 添加电机状态控制

dep_deliver
wangsr 1 year ago
parent 9c83153493
commit ef0fbc58b4

@ -1,4 +1,5 @@
using DataBlockHelper.DBHelpers; using DataBlockHelper;
using DataBlockHelper.DBHelpers;
using Mesnac.Action.Base; using Mesnac.Action.Base;
using Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity; using Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity;
using Mesnac.Action.ChemicalWeighing.Util; using Mesnac.Action.ChemicalWeighing.Util;
@ -21,12 +22,15 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
List<Control> Controls; List<Control> Controls;
MCButtonEntity ButtonE = new MCButtonEntity(); MCButtonEntity ButtonE = new MCButtonEntity();
MCRadioButtonEntity RadioButtonE = new MCRadioButtonEntity(); MCRadioButtonEntity RadioButtonE = new MCRadioButtonEntity();
MCCombobox MotorSelect;
public void Run(RuntimeParameter runtime) public void Run(RuntimeParameter runtime)
{ {
RunIni(runtime); RunIni(runtime);
Controls = GetAllControls(); Controls = GetAllControls();
MotorSelect = Controls.FirstOrDefault(x => x != null && x.Name == "MotorSelect") as MCCombobox;
SetAllControls(); SetAllControls();
ButtonSelect(runtime); ButtonSelect(runtime);
@ -191,6 +195,146 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
Convert.ToBoolean(RadioButtonE.StoreDC.MCValue) Convert.ToBoolean(RadioButtonE.StoreDC.MCValue)
); );
} }
if (runtime.Sender == ButtonE.SwitchAutoMode)
{
string name = MotorSelect.Text;
if (MessageBox.Show($"确认将{name}切换到自动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
string str = MotorSelect.MCValue.ToString();
int value = Convert.ToInt32(str);
if (value < 32)
{
ControlsHelper.WriteMode(str, false);
}
else
{
ControlsHelper.WriteMode(str, true);
}
}
if (runtime.Sender == ButtonE.SwitchManualMode)
{
string name = MotorSelect.Text;
if (MessageBox.Show($"确认将{name}切换到手动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
string str = MotorSelect.MCValue.ToString();
int value = Convert.ToInt32(str);
if (value < 32)
{
ControlsHelper.WriteMode(str, true);
}
else
{
ControlsHelper.WriteMode(str, false);
}
}
if (runtime.Sender == ButtonE.ManualModeOnOff)
{
string name = MotorSelect.Text;
string str = MotorSelect.MCValue.ToString();
byte byt = ControlsHelper.ReadMode(name);
int value = Convert.ToInt32(str);
if (value < 32)
{
if (byt.GetBit(3))
{
if (MessageBox.Show($"确认开启{name}的手动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
ControlsHelper.WriteModeP1(str, true);
}
else
{
if (MessageBox.Show($"确认关闭{name}的手动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
ControlsHelper.WriteModeP1(str, false);
}
}
else
{
if (byt.GetBit(5))
{
if (MessageBox.Show($"确认开启{name}的手动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
ControlsHelper.WriteModeP2(str, true);
}
else
{
if (MessageBox.Show($"确认关闭{name}的手动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
ControlsHelper.WriteModeP2(str, false);
}
}
}
if (runtime.Sender == ButtonE.AutoModeOnOff)
{
string name = MotorSelect.Text;
string str = MotorSelect.MCValue.ToString();
byte byt = ControlsHelper.ReadMode(name);
int value = Convert.ToInt32(str);
if (value < 32)
{
if (byt.GetBit(5))
{
if (MessageBox.Show($"确认开启{name}的自动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
ControlsHelper.WriteModeP2(str, true);
}
else
{
if (MessageBox.Show($"确认关闭{name}的自动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
ControlsHelper.WriteModeP2(str, false);
}
}
else
{
if (byt.GetBit(3))
{
if (MessageBox.Show($"确认开启{name}的自动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
ControlsHelper.WriteModeP1(str, true);
}
else
{
if (MessageBox.Show($"确认关闭{name}的自动模式?", "电机模式切换确认", MessageBoxButtons.YesNo) == DialogResult.No)
{
return;
}
ControlsHelper.WriteModeP1(str, false);
}
}
}
} }
private void SetAllControls() private void SetAllControls()

@ -1,4 +1,6 @@
using Mesnac.Action.ChemicalWeighing.AutoControl.Entity; using DataBlockHelper;
using HslCommunication.Profinet.Siemens;
using Mesnac.Action.ChemicalWeighing.AutoControl.Entity;
using Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity; using Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity;
using Mesnac.Action.ChemicalWeighing.Util; using Mesnac.Action.ChemicalWeighing.Util;
using System; using System;
@ -12,6 +14,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
{ {
public class ControlsHelper : ControlsImprot public class ControlsHelper : ControlsImprot
{ {
private static SiemensS7Net siemensS7Net = PlcConnect.Instance;
public static int BottleSelectA(MCRadioButtonEntity RadioButtonE) public static int BottleSelectA(MCRadioButtonEntity RadioButtonE)
{ {
int no = 0; int no = 0;
@ -66,5 +70,49 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
return no; return no;
} }
/// <summary>
/// 读取手自动模式状态
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public static byte ReadMode(string str)
{
var bytes = PlcConnect.Instance.Read($"DB91.{str}.0", 1).Content;
return bytes[0];
}
/// <summary>
/// 写入手自动模式
/// </summary>
/// <param name="str"></param>
/// <param name="state">第一位为state 第二位相反</param>
public static void WriteMode(string str, bool state)
{
siemensS7Net.Write($"DB91.{str}.0", state);
siemensS7Net.Write($"DB91.{str}.1", !state);
}
/// <summary>
/// 写入34位置
/// </summary>
/// <param name="str"></param>
/// <param name="state">第一位为state 第二位相反</param>
public static void WriteModeP1(string str, bool state)
{
siemensS7Net.Write($"DB91.{str}.2", state);
siemensS7Net.Write($"DB91.{str}.3", !state);
}
/// <summary>
/// 写入56位置
/// </summary>
/// <param name="str"></param>
/// <param name="state">第一位为state 第二位相反</param>
public static void WriteModeP2(string str, bool state)
{
siemensS7Net.Write($"DB91.{str}.4", state);
siemensS7Net.Write($"DB91.{str}.5", !state);
}
} }
} }

@ -25,6 +25,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity
public MCButton BoardStartC { get; set; } public MCButton BoardStartC { get; set; }
public MCButton BoardStopC { get; set; } public MCButton BoardStopC { get; set; }
public MCButton AlarmClearC { get; set; } public MCButton AlarmClearC { get; set; }
public MCButton SwitchAutoMode { get; set; }
public MCButton SwitchManualMode { get; set; }
public MCButton ManualModeOnOff { get; set; }
public MCButton AutoModeOnOff { get; set; }
}
public class MCLabelEntity
{
public MCLabel NowMode { get; set; }
public MCLabel NowAuto { get; set; }
public MCLabel NowManual { get; set; }
} }

@ -1,4 +1,5 @@
using DataBlockHelper.DBHelpers; using DataBlockHelper;
using DataBlockHelper.DBHelpers;
using Mesnac.Action.Base; using Mesnac.Action.Base;
using Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity; using Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard.Entity;
using Mesnac.Action.ChemicalWeighing.Util; using Mesnac.Action.ChemicalWeighing.Util;
@ -6,6 +7,7 @@ using Mesnac.Controls.ChemicalWeighing;
using Mesnac.Controls.Default; using Mesnac.Controls.Default;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
@ -25,6 +27,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
MCButtonEntity ButtonE = new MCButtonEntity(); MCButtonEntity ButtonE = new MCButtonEntity();
MCRadioButtonEntity RadioButtonE = new MCRadioButtonEntity(); MCRadioButtonEntity RadioButtonE = new MCRadioButtonEntity();
SwitchLightEntity SwitchLightE = new SwitchLightEntity(); SwitchLightEntity SwitchLightE = new SwitchLightEntity();
MCLabelEntity LabelE = new MCLabelEntity();
MCCombobox MotorSelect;
public void Run(RuntimeParameter runtime) public void Run(RuntimeParameter runtime)
{ {
@ -33,6 +37,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
Controls = GetAllControls(); Controls = GetAllControls();
SetAllControls(); SetAllControls();
MotorSelect = Controls.FirstOrDefault(x => x != null && x.Name == "MotorSelect") as MCCombobox;
InitOnce(); InitOnce();
ButtonE.BoardStartA.MouseDown += MouseDown; ButtonE.BoardStartA.MouseDown += MouseDown;
@ -182,6 +188,96 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
ButtonE.BoardOnC.Text = "面板启用"; ButtonE.BoardOnC.Text = "面板启用";
ButtonE.BoardOnC.BackColor = System.Drawing.Color.Yellow; ButtonE.BoardOnC.BackColor = System.Drawing.Color.Yellow;
} }
DataTable dataTable = new DataTable();
dataTable.Columns.Add("CmbValue", typeof(string));
dataTable.Columns.Add("CmbDisplay", typeof(string));
DataRow dr = dataTable.NewRow();
dr[0] = "0";
dr[1] = "二级除尘器除尘风机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "2";
dr[1] = "大仓 A 组除尘风机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "4";
dr[1] = "大仓 B 组除尘风机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "6";
dr[1] = "大仓 C 组除尘风机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "8";
dr[1] = "大仓 D 组除尘风机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "10";
dr[1] = "大仓 E 组除尘风机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "12";
dr[1] = "磨粉分析机电机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "14";
dr[1] = "磨粉除尘风机电机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "16";
dr[1] = "磨粉罗茨风机电机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "18";
dr[1] = "磨粉皮带正转电机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "20";
dr[1] = "磨粉皮带反转电机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "22";
dr[1] = "磨粉主机电机主接触器";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "24";
dr[1] = "磨粉主机电机星型接触器";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "26";
dr[1] = "磨粉主机电机三角型接触器";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "28";
dr[1] = "磨粉风机机电机主接触器";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "30";
dr[1] = "磨粉风机机电机星型接触器";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "32";
dr[1] = "磨粉风机机电机三角型接触器";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "34";
dr[1] = "筛分机 A 电机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "48";
dr[1] = "筛分机 B 电机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "62";
dr[1] = "筛分机 C 电机";
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = "76";
dr[1] = "磨粉旋转阀电机";
dataTable.Rows.Add(dr);
MotorSelect.DataSource = dataTable;
} }
private void GetPlcValue(object sender, EventArgs e) private void GetPlcValue(object sender, EventArgs e)
@ -191,6 +287,97 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
SetPanelA(); SetPanelA();
SetPanelB(); SetPanelB();
SetPanelC(); SetPanelC();
GetMotorStatus();
}
private void GetMotorStatus()
{
string str = MotorSelect.MCValue.ToString();
byte byt = ControlsHelper.ReadMode(str);
int value = Convert.ToInt32(str);
if (value < 32)
{
if (!byt.GetBit(0) && byt.GetBit(1))
{
LabelE.NowMode.MCValue = "自动";
}
else if (byt.GetBit(0) && !byt.GetBit(1))
{
LabelE.NowMode.MCValue = "手动";
}
else
{
LabelE.NowMode.MCValue = "未设置";
}
if (!byt.GetBit(2) && byt.GetBit(3))
{
LabelE.NowManual.MCValue = "关闭";
}
else if (byt.GetBit(2) && !byt.GetBit(3))
{
LabelE.NowManual.MCValue = "开启";
}
else
{
LabelE.NowManual.MCValue = "未设置";
}
if (!byt.GetBit(4) && byt.GetBit(5))
{
LabelE.NowAuto.MCValue = "关闭";
}
else if (byt.GetBit(4) && !byt.GetBit(5))
{
LabelE.NowAuto.MCValue = "开启";
}
else
{
LabelE.NowAuto.MCValue = "未设置";
}
}
else
{
if (!byt.GetBit(0) && byt.GetBit(1))
{
LabelE.NowMode.MCValue = "手动";
}
else if (byt.GetBit(0) && !byt.GetBit(1))
{
LabelE.NowMode.MCValue = "自动";
}
else
{
LabelE.NowMode.MCValue = "未设置";
}
if (!byt.GetBit(2) && byt.GetBit(3))
{
LabelE.NowAuto.MCValue = "关闭";
}
else if (byt.GetBit(2) && !byt.GetBit(3))
{
LabelE.NowAuto.MCValue = "开启";
}
else
{
LabelE.NowAuto.MCValue = "未设置";
}
if (!byt.GetBit(4) && byt.GetBit(5))
{
LabelE.NowManual.MCValue = "关闭";
}
else if (byt.GetBit(4) && !byt.GetBit(5))
{
LabelE.NowManual.MCValue = "开启";
}
else
{
LabelE.NowManual.MCValue = "未设置";
}
}
} }
private void SetPanelA() private void SetPanelA()

@ -1,5 +1,264 @@
<Object type="Mesnac.Gui.Common.FrmRunTemplate, Mesnac.Gui.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="DeliverControlBoard" children="Controls"> <Object type="Mesnac.Gui.Common.FrmRunTemplate, Mesnac.Gui.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="DeliverControlBoard" children="Controls">
<Object type="System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="GroupBox13" children="Controls">
<Object type="Mesnac.Controls.Default.MCLabel, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="NowManual" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Text">未设置</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">212, 238</Property>
<Property name="Name">NowManual</Property>
<Property name="Size">56, 16</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCLabel, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="MCLabel77" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Text">当前状态:</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">134, 238</Property>
<Property name="Name">MCLabel77</Property>
<Property name="Size">88, 16</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCLabel, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="NowAuto" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Text">未设置</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">212, 186</Property>
<Property name="Name">NowAuto</Property>
<Property name="Size">56, 16</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCButton, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="ManualModeOnOff" children="Controls">
<Property name="ClickActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAEAAAAEAAAABwMAAAAAAQAAAAQAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAJBAAAAA0DBQQAAAAhTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uAwAAABU8R1VJRD5rX19CYWNraW5nRmllbGQVPE5hbWU+a19fQmFja2luZ0ZpZWxkFzxSZW1hcms+a19fQmFja2luZ0ZpZWxkAQEBAgAAAAYFAAAAIDZCOEFDN0I0QjQ2QzQxMjZBMjk1RjVCQzJCQkIyQzAyBgYAAAAM5oyJ6ZKu5LqL5Lu2BgcAAAAM5oyJ6ZKu5LqL5Lu2Cw==</Binary>
</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="MCPurview">False</Property>
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="ImageAlign">MiddleRight</Property>
<Property name="Text">手动模式开关</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">6, 223</Property>
<Property name="Name">ManualModeOnOff</Property>
<Property name="Size">122, 46</Property>
<Property name="TabIndex">128</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCButton, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="AutoModeOnOff" children="Controls">
<Property name="ClickActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAEAAAAGAAAABwMAAAAAAQAAAAQAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAJBAAAAA0DBQQAAAAhTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uAwAAABU8R1VJRD5rX19CYWNraW5nRmllbGQVPE5hbWU+a19fQmFja2luZ0ZpZWxkFzxSZW1hcms+a19fQmFja2luZ0ZpZWxkAQEBAgAAAAYFAAAAIDZCOEFDN0I0QjQ2QzQxMjZBMjk1RjVCQzJCQkIyQzAyBgYAAAAM5oyJ6ZKu5LqL5Lu2BgcAAAAM5oyJ6ZKu5LqL5Lu2Cw==</Binary>
</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="MCPurview">False</Property>
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="ImageAlign">MiddleRight</Property>
<Property name="Text">自动模式开关</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">6, 171</Property>
<Property name="Name">AutoModeOnOff</Property>
<Property name="Size">122, 46</Property>
<Property name="TabIndex">127</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCLabel, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="MCLabel79" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Text">当前状态:</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">134, 186</Property>
<Property name="Name">MCLabel79</Property>
<Property name="Size">88, 16</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCLabel, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="NowMode" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Text">未设置</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">159, 140</Property>
<Property name="Name">NowMode</Property>
<Property name="Size">56, 16</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCLabel, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="MCLabel82" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Text">当前模式:</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">65, 140</Property>
<Property name="Name">MCLabel82</Property>
<Property name="Size">88, 16</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCButton, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="SwitchManualMode" children="Controls">
<Property name="ClickActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAEAAAAEAAAABwMAAAAAAQAAAAQAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAJBAAAAA0DBQQAAAAhTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uAwAAABU8R1VJRD5rX19CYWNraW5nRmllbGQVPE5hbWU+a19fQmFja2luZ0ZpZWxkFzxSZW1hcms+a19fQmFja2luZ0ZpZWxkAQEBAgAAAAYFAAAAIDZCOEFDN0I0QjQ2QzQxMjZBMjk1RjVCQzJCQkIyQzAyBgYAAAAM5oyJ6ZKu5LqL5Lu2BgcAAAAM5oyJ6ZKu5LqL5Lu2Cw==</Binary>
</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="MCPurview">False</Property>
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="ImageAlign">MiddleRight</Property>
<Property name="Text">切换手动模式</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">157, 80</Property>
<Property name="Name">SwitchManualMode</Property>
<Property name="Size">122, 46</Property>
<Property name="TabIndex">124</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCCombobox, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="MotorSelect" children="Controls">
<Property name="AllowTypeAllSymbols">True</Property>
<Property name="ComboboxList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAE5NZXNuYWMuQ29udHJvbHMuRGVmYXVsdCwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJoBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuRGVmYXVsdC5Db21ib2JveEl0ZW1zLCBNZXNuYWMuQ29udHJvbHMuRGVmYXVsdCwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGxdXQMAAAAGX2l0ZW1zBV9zaXplCF92ZXJzaW9uBAAAJ01lc25hYy5Db250cm9scy5EZWZhdWx0LkNvbWJvYm94SXRlbXNbXQIAAAAICAkDAAAAAAAAAAAAAAAHAwAAAAABAAAAAAAAAAQlTWVzbmFjLkNvbnRyb2xzLkRlZmF1bHQuQ29tYm9ib3hJdGVtcwIAAAAL</Binary>
</Property>
<Property name="IsEmpty">True</Property>
<Property name="DisplayFiled" />
<Property name="ValueFiled" />
<Property name="SelectedChanged">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL</Binary>
</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAE5NZXNuYWMuQ29udHJvbHMuRGVmYXVsdCwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJoBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuRGVmYXVsdC5Db21ib2JveEl0ZW1zLCBNZXNuYWMuQ29udHJvbHMuRGVmYXVsdCwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGxdXQMAAAAGX2l0ZW1zBV9zaXplCF92ZXJzaW9uBAAAJ01lc25hYy5Db250cm9scy5EZWZhdWx0LkNvbWJvYm94SXRlbXNbXQIAAAAICAkDAAAAAAAAAAAAAAAHAwAAAAABAAAAAAAAAAQlTWVzbmFjLkNvbnRyb2xzLkRlZmF1bHQuQ29tYm9ib3hJdGVtcwIAAAAL</Binary>
</Property>
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Location">34, 40</Property>
<Property name="Name">MotorSelect</Property>
<Property name="Size">221, 20</Property>
<Property name="TabIndex">114</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCButton, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="SwitchAutoMode" children="Controls">
<Property name="ClickActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAEAAAAEAAAABwMAAAAAAQAAAAQAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAJBAAAAA0DBQQAAAAhTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uAwAAABU8R1VJRD5rX19CYWNraW5nRmllbGQVPE5hbWU+a19fQmFja2luZ0ZpZWxkFzxSZW1hcms+a19fQmFja2luZ0ZpZWxkAQEBAgAAAAYFAAAAIDZCOEFDN0I0QjQ2QzQxMjZBMjk1RjVCQzJCQkIyQzAyBgYAAAAM5oyJ6ZKu5LqL5Lu2BgcAAAAM5oyJ6ZKu5LqL5Lu2Cw==</Binary>
</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="MCPurview">False</Property>
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="ImageAlign">MiddleRight</Property>
<Property name="Text">切换自动模式</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">6, 80</Property>
<Property name="Name">SwitchAutoMode</Property>
<Property name="Size">122, 46</Property>
<Property name="TabIndex">123</Property>
</Object>
<Property name="TabStop">False</Property>
<Property name="Text">电机手动控制</Property>
<Property name="Location">1403, 13</Property>
<Property name="Name">GroupBox13</Property>
<Property name="Size">285, 275</Property>
<Property name="TabIndex">115</Property>
</Object>
<Object type="System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="GroupBox3" children="Controls"> <Object type="System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="GroupBox3" children="Controls">
<Object type="Mesnac.Controls.ChemicalWeighing.SwitchLight, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="StopLightC" children="Controls"> <Object type="Mesnac.Controls.ChemicalWeighing.SwitchLight, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="StopLightC" children="Controls">
<Property name="StatusName" /> <Property name="StatusName" />
@ -1840,7 +2099,7 @@
<Property name="MCPurview">False</Property> <Property name="MCPurview">False</Property>
<Property name="AllowOriginalSizeShow">False</Property> <Property name="AllowOriginalSizeShow">False</Property>
<Property name="BackColor">Control</Property> <Property name="BackColor">Control</Property>
<Property name="Size">1422, 702</Property> <Property name="Size">1716, 702</Property>
<Property name="StartPosition">WindowsDefaultLocation</Property> <Property name="StartPosition">WindowsDefaultLocation</Property>
<Property name="Text">输送操作面板</Property> <Property name="Text">输送操作面板</Property>
<Property name="WindowState">Normal</Property> <Property name="WindowState">Normal</Property>

Loading…
Cancel
Save