Browse Source

客户端堆垛机运动状态代码更新

master
志铭 吕 1 week ago
parent
commit
cb1a6df3e8
  1. 16
      ControlMonitorClient/FrmClient.designer.cs
  2. 79
      ControlMonitorClient/FrmControlMonitor.cs
  3. 497
      ControlMonitorClient/FrmControlMonitor.designer.cs
  4. 7
      WcfControlMonitorLib/SControlMonitor.cs

16
ControlMonitorClient/FrmClient.designer.cs

@ -187,40 +187,40 @@
// MIStartRetrieveTask
//
this.MIStartRetrieveTask.Name = "MIStartRetrieveTask";
this.MIStartRetrieveTask.Size = new System.Drawing.Size(182, 26);
this.MIStartRetrieveTask.Size = new System.Drawing.Size(224, 26);
this.MIStartRetrieveTask.Text = "开始获取任务";
this.MIStartRetrieveTask.Click += new System.EventHandler(this.MIStartRetrieveTask_Click);
//
// MIStopRetrieveTask
//
this.MIStopRetrieveTask.Name = "MIStopRetrieveTask";
this.MIStopRetrieveTask.Size = new System.Drawing.Size(182, 26);
this.MIStopRetrieveTask.Size = new System.Drawing.Size(224, 26);
this.MIStopRetrieveTask.Text = "停止获取任务";
this.MIStopRetrieveTask.Click += new System.EventHandler(this.MIStopRetrieveTask_Click);
//
// Tss1
//
this.Tss1.Name = "Tss1";
this.Tss1.Size = new System.Drawing.Size(179, 6);
this.Tss1.Size = new System.Drawing.Size(221, 6);
//
// MITurnOn
//
this.MITurnOn.Name = "MITurnOn";
this.MITurnOn.Size = new System.Drawing.Size(182, 26);
this.MITurnOn.Size = new System.Drawing.Size(224, 26);
this.MITurnOn.Text = "打开命令开关";
this.MITurnOn.Click += new System.EventHandler(this.MITurnOn_Click);
//
// MITurnOff
//
this.MITurnOff.Name = "MITurnOff";
this.MITurnOff.Size = new System.Drawing.Size(182, 26);
this.MITurnOff.Size = new System.Drawing.Size(224, 26);
this.MITurnOff.Text = "关闭命令开关";
this.MITurnOff.Click += new System.EventHandler(this.MITurnOff_Click);
//
// MISystemInit
//
this.MISystemInit.Name = "MISystemInit";
this.MISystemInit.Size = new System.Drawing.Size(182, 26);
this.MISystemInit.Size = new System.Drawing.Size(224, 26);
this.MISystemInit.Text = "设备初始化";
this.MISystemInit.Visible = false;
this.MISystemInit.Click += new System.EventHandler(this.MISystemInit_Click);
@ -516,7 +516,7 @@
//
// MMPLCStatus
//
this.MMPLCStatus.Image = global::wcfControlMonitorClient.Properties.Resources.linkok;
this.MMPLCStatus.Image = global::wcfControlMonitorClient.Properties.Resources.linkerror;
this.MMPLCStatus.Name = "MMPLCStatus";
this.MMPLCStatus.Size = new System.Drawing.Size(82, 36);
this.MMPLCStatus.Text = "PLC";
@ -524,7 +524,7 @@
//
// MMServerStatus
//
this.MMServerStatus.Image = global::wcfControlMonitorClient.Properties.Resources.linkok;
this.MMServerStatus.Image = global::wcfControlMonitorClient.Properties.Resources.linkerror;
this.MMServerStatus.Name = "MMServerStatus";
this.MMServerStatus.Size = new System.Drawing.Size(102, 36);
this.MMServerStatus.Text = "Server";

79
ControlMonitorClient/FrmControlMonitor.cs

@ -257,7 +257,7 @@ namespace wcfControlMonitorClient
//}
#region 穿梭板实时显示
if (device.DeviceKind == 1 && device.IsShuttleBorad == 1)
if (device.DeviceKind == 1 )
{
//ctrl.BringToFront();//add by lyj 20171122
@ -273,9 +273,12 @@ namespace wcfControlMonitorClient
//int boardboxWidth = 14;//探物box的宽度度
int iStartColum = 2;
int iEndColum = 37;
int iStartColum = 1;
int iEndColum = 38;
#region 调试堆垛机运动
//device.XCoor = DateTime.Now.Second % 37 + 1;
//device.YCoor = 1;
#endregion
if ((device.XCoor == 0) || device.YCoor == 0)
{
switch (device.DeviceIndex)
@ -285,7 +288,7 @@ namespace wcfControlMonitorClient
stack1.Location =
new Point(
560, 4);
848, 102);
tw1.Location = new Point(stack1.Location.X + 19, stack1.Location.Y + 10);
@ -293,7 +296,7 @@ namespace wcfControlMonitorClient
case 11002:
stack2.Location =
new Point(
560, 4);
848, 256);
tw2.Location = new Point(stack2.Location.X + 19, stack2.Location.Y + 10);
@ -301,7 +304,7 @@ namespace wcfControlMonitorClient
case 11003:
stack3.Location =
new Point(
560,4);
848,531);
tw3.Location = new Point(stack3.Location.X + 19, stack3.Location.Y + 10);
break;
@ -321,7 +324,7 @@ namespace wcfControlMonitorClient
stack1.Location =
new Point(
548, 4);
848, 102);
tw1.Location = new Point(stack1.Location.X + 13, stack1.Location.Y + 8);
@ -329,7 +332,7 @@ namespace wcfControlMonitorClient
case 11002:
stack2.Location =
new Point(
548,4);
848, 256);
tw2.Location = new Point(stack2.Location.X + 13, stack2.Location.Y + 8);
@ -337,7 +340,7 @@ namespace wcfControlMonitorClient
case 11003:
stack3.Location =
new Point(
548, 4);
848, 531);
tw3.Location = new Point(stack3.Location.X + 13, stack3.Location.Y + 8);
break;
@ -356,7 +359,7 @@ namespace wcfControlMonitorClient
stack1.Location =
new Point(
6, 4);
546, 122);
tw1.Location = new Point(stack1.Location.X + 13, stack1.Location.Y + 8);
@ -364,7 +367,7 @@ namespace wcfControlMonitorClient
case 11002:
stack2.Location =
new Point(
6, 4);
546, 316);
tw2.Location = new Point(stack2.Location.X + 13, stack2.Location.Y + 8);
@ -372,7 +375,7 @@ namespace wcfControlMonitorClient
case 11003:
stack3.Location =
new Point(
6, 4);
546, 666);
tw3.Location = new Point(stack3.Location.X + 13, stack3.Location.Y + 8);
break;
@ -388,24 +391,22 @@ namespace wcfControlMonitorClient
stack1.Location =
new Point(
560 - (546 - 6) * (device.XCoor - iStartColum) /
(iEndColum - iStartColum),4);
848 - (437 - 6) * (device.XCoor - iStartColum) /
(iEndColum - iStartColum),102);
tw1.Location = new Point(stack1.Location.X + 13, stack1.Location.Y + 8);
break;
case 11002:
stack2.Location =
new Point(
560 - (546 - 6) * (device.XCoor - iStartColum) /
(iEndColum - iStartColum), 4);
848 - (437 - 6) * (device.XCoor - iStartColum) /
(iEndColum - iStartColum), 256);
tw2.Location = new Point(stack2.Location.X + 13, stack2.Location.Y + 8);
break;
case 11003:
stack3.Location =
new Point(
560 - (546 - 6) * (device.XCoor - iStartColum) /
(iEndColum - iStartColum), 4);
848 - (437 - 6) * (device.XCoor - iStartColum) /
(iEndColum - iStartColum), 531);
tw3.Location = new Point(stack3.Location.X + 13, stack3.Location.Y + 8);
break;
@ -837,7 +838,7 @@ namespace wcfControlMonitorClient
//}
foreach (Control ctrl in this.plAccessorial1.Controls)
{
if ((ctrl.GetType().ToString() == "System.Windows.Forms.Button") && (ctrl.Tag != null))
{
ctrl.Click += new EventHandler(ctrl_Click);
@ -874,23 +875,37 @@ namespace wcfControlMonitorClient
{
try
{
PictureBox btn = (PictureBox)sender;
int DeviceIndex = Convert.ToInt32(btn.Tag);
Model.MDevice device;
device = Model.CGetInfo.GetDeviceInfo(DeviceIndex);
string bost = "";
if (device.SplitByte_6 == 1)
if (MessageBox.Show("你确定要修改设备禁用状态吗?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
bost = "0"; //
PictureBox btn = (PictureBox)sender;
int DeviceIndex = Convert.ToInt32(btn.Tag);
Model.MDevice device;
device = Model.CGetInfo.GetDeviceInfo(DeviceIndex);
string bost = "";
if (device.SplitByte_6 == 1)
{
bost = "0"; //
}
else
{
bost = "1";//
}
string errtxt = string.Empty;
var isOK=CStaticClass.WcfControl.WriteDBData(out errtxt, DeviceIndex, "DB1", bost);
if (!isOK)
{
MessageBox.Show("发送失败,返回消息:"+errtxt);
}
}
else
{
bost = "1";//
}
string errtxt = string.Empty;
CStaticClass.WcfControl.WriteDBData(out errtxt, DeviceIndex, "DB1", bost);
}
catch (Exception ex)
{

497
ControlMonitorClient/FrmControlMonitor.designer.cs

@ -117,14 +117,11 @@
this.label92 = new System.Windows.Forms.Label();
this.label79 = new System.Windows.Forms.Label();
this.button80 = new System.Windows.Forms.Button();
this.panel10 = new System.Windows.Forms.Panel();
this.tb_11002 = new System.Windows.Forms.TextBox();
this.bt_11002 = new System.Windows.Forms.Button();
this.button81 = new System.Windows.Forms.Button();
this.panel15 = new System.Windows.Forms.Panel();
this.tb_11003 = new System.Windows.Forms.TextBox();
this.bt_11003 = new System.Windows.Forms.Button();
this.panel5 = new System.Windows.Forms.Panel();
this.tb_11001 = new System.Windows.Forms.TextBox();
this.bt_11001 = new System.Windows.Forms.Button();
this.panel9 = new System.Windows.Forms.Panel();
@ -231,6 +228,10 @@
this.button93 = new System.Windows.Forms.Button();
this.button90 = new System.Windows.Forms.Button();
this.button87 = new System.Windows.Forms.Button();
this.button114 = new System.Windows.Forms.Button();
this.button113 = new System.Windows.Forms.Button();
this.button112 = new System.Windows.Forms.Button();
this.button111 = new System.Windows.Forms.Button();
this.button62 = new System.Windows.Forms.Button();
this.button66 = new System.Windows.Forms.Button();
this.button92 = new System.Windows.Forms.Button();
@ -317,6 +318,10 @@
this.button57 = new System.Windows.Forms.Button();
this.button36 = new System.Windows.Forms.Button();
this.label31 = new System.Windows.Forms.Label();
this.button118 = new System.Windows.Forms.Button();
this.button116 = new System.Windows.Forms.Button();
this.button117 = new System.Windows.Forms.Button();
this.button115 = new System.Windows.Forms.Button();
this.button63 = new System.Windows.Forms.Button();
this.button82 = new System.Windows.Forms.Button();
this.button76 = new System.Windows.Forms.Button();
@ -445,14 +450,19 @@
this.label91 = new System.Windows.Forms.Label();
this.label43 = new System.Windows.Forms.Label();
this.label44 = new System.Windows.Forms.Label();
this.button111 = new System.Windows.Forms.Button();
this.button112 = new System.Windows.Forms.Button();
this.button113 = new System.Windows.Forms.Button();
this.button114 = new System.Windows.Forms.Button();
this.button115 = new System.Windows.Forms.Button();
this.button116 = new System.Windows.Forms.Button();
this.button117 = new System.Windows.Forms.Button();
this.button118 = new System.Windows.Forms.Button();
this.label106 = new System.Windows.Forms.Label();
this.label1668 = new System.Windows.Forms.Label();
this.label107 = new System.Windows.Forms.Label();
this.label108 = new System.Windows.Forms.Label();
this.label109 = new System.Windows.Forms.Label();
this.label110 = new System.Windows.Forms.Label();
this.label111 = new System.Windows.Forms.Label();
this.label112 = new System.Windows.Forms.Label();
this.label113 = new System.Windows.Forms.Label();
this.label115 = new System.Windows.Forms.Label();
this.label116 = new System.Windows.Forms.Label();
this.label117 = new System.Windows.Forms.Label();
this.label118 = new System.Windows.Forms.Label();
pictureBox14 = new System.Windows.Forms.PictureBox();
pictureBox13 = new System.Windows.Forms.PictureBox();
pictureBox12 = new System.Windows.Forms.PictureBox();
@ -469,9 +479,6 @@
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox26)).BeginInit();
this.panel10.SuspendLayout();
this.panel15.SuspendLayout();
this.panel5.SuspendLayout();
this.panel9.SuspendLayout();
this.panel16.SuspendLayout();
this.panel4.SuspendLayout();
@ -1289,6 +1296,23 @@
//
// plAccessorial1
//
this.plAccessorial1.Controls.Add(this.tb_11001);
this.plAccessorial1.Controls.Add(this.tb_11002);
this.plAccessorial1.Controls.Add(this.bt_11001);
this.plAccessorial1.Controls.Add(this.bt_11002);
this.plAccessorial1.Controls.Add(this.tb_11003);
this.plAccessorial1.Controls.Add(this.bt_11003);
this.plAccessorial1.Controls.Add(this.label118);
this.plAccessorial1.Controls.Add(this.label117);
this.plAccessorial1.Controls.Add(this.label116);
this.plAccessorial1.Controls.Add(this.label113);
this.plAccessorial1.Controls.Add(this.label112);
this.plAccessorial1.Controls.Add(this.label111);
this.plAccessorial1.Controls.Add(this.label110);
this.plAccessorial1.Controls.Add(this.label109);
this.plAccessorial1.Controls.Add(this.label108);
this.plAccessorial1.Controls.Add(this.label107);
this.plAccessorial1.Controls.Add(this.label1668);
this.plAccessorial1.Controls.Add(this.button95);
this.plAccessorial1.Controls.Add(this.label105);
this.plAccessorial1.Controls.Add(this.label104);
@ -1310,10 +1334,7 @@
this.plAccessorial1.Controls.Add(this.label92);
this.plAccessorial1.Controls.Add(this.label79);
this.plAccessorial1.Controls.Add(this.button80);
this.plAccessorial1.Controls.Add(this.panel10);
this.plAccessorial1.Controls.Add(this.button81);
this.plAccessorial1.Controls.Add(this.panel15);
this.plAccessorial1.Controls.Add(this.panel5);
this.plAccessorial1.Controls.Add(this.panel9);
this.plAccessorial1.Controls.Add(this.panel14);
this.plAccessorial1.Controls.Add(this.panel16);
@ -1462,6 +1483,8 @@
this.plAccessorial1.Controls.Add(this.label67);
this.plAccessorial1.Controls.Add(this.label88);
this.plAccessorial1.Controls.Add(this.label87);
this.plAccessorial1.Controls.Add(this.label106);
this.plAccessorial1.Controls.Add(this.label115);
this.plAccessorial1.Controls.Add(this.label24);
this.plAccessorial1.Controls.Add(this.label94);
this.plAccessorial1.Controls.Add(this.label64);
@ -1528,6 +1551,7 @@
this.plAccessorial1.Name = "plAccessorial1";
this.plAccessorial1.Size = new System.Drawing.Size(1910, 1022);
this.plAccessorial1.TabIndex = 5825;
this.plAccessorial1.Tag = "17008";
//
// button95
//
@ -1803,21 +1827,12 @@
this.button80.Text = "12021";
this.button80.UseVisualStyleBackColor = false;
//
// panel10
//
this.panel10.Controls.Add(this.tb_11002);
this.panel10.Controls.Add(this.bt_11002);
this.panel10.Location = new System.Drawing.Point(570, 308);
this.panel10.Name = "panel10";
this.panel10.Size = new System.Drawing.Size(627, 56);
this.panel10.TabIndex = 6019;
//
// tb_11002
//
this.tb_11002.BackColor = System.Drawing.Color.Blue;
this.tb_11002.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.tb_11002.Enabled = false;
this.tb_11002.Location = new System.Drawing.Point(575, 18);
this.tb_11002.Location = new System.Drawing.Point(1149, 323);
this.tb_11002.Margin = new System.Windows.Forms.Padding(4);
this.tb_11002.Multiline = true;
this.tb_11002.Name = "tb_11002";
@ -1830,7 +1845,7 @@
//
this.bt_11002.BackColor = System.Drawing.Color.DarkOrange;
this.bt_11002.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.bt_11002.Location = new System.Drawing.Point(560, 11);
this.bt_11002.Location = new System.Drawing.Point(1134, 316);
this.bt_11002.Margin = new System.Windows.Forms.Padding(4);
this.bt_11002.Name = "bt_11002";
this.bt_11002.Size = new System.Drawing.Size(63, 35);
@ -1838,6 +1853,8 @@
this.bt_11002.Tag = "11002";
this.bt_11002.Text = "11002";
this.bt_11002.UseVisualStyleBackColor = false;
this.bt_11002.Click += new System.EventHandler(this.ctrl_Click);
this.bt_11002.MouseEnter += new System.EventHandler(this.Btn_MouseEnter);
//
// button81
//
@ -1852,21 +1869,12 @@
this.button81.Text = "12022";
this.button81.UseVisualStyleBackColor = false;
//
// panel15
//
this.panel15.Controls.Add(this.tb_11003);
this.panel15.Controls.Add(this.bt_11003);
this.panel15.Location = new System.Drawing.Point(570, 118);
this.panel15.Name = "panel15";
this.panel15.Size = new System.Drawing.Size(627, 44);
this.panel15.TabIndex = 6018;
//
// tb_11003
//
this.tb_11003.BackColor = System.Drawing.Color.Blue;
this.tb_11003.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.tb_11003.Enabled = false;
this.tb_11003.Location = new System.Drawing.Point(576, 14);
this.tb_11003.Location = new System.Drawing.Point(1149, 133);
this.tb_11003.Margin = new System.Windows.Forms.Padding(4);
this.tb_11003.Multiline = true;
this.tb_11003.Name = "tb_11003";
@ -1879,7 +1887,7 @@
//
this.bt_11003.BackColor = System.Drawing.Color.DarkOrange;
this.bt_11003.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.bt_11003.Location = new System.Drawing.Point(560, 4);
this.bt_11003.Location = new System.Drawing.Point(1130, 123);
this.bt_11003.Margin = new System.Windows.Forms.Padding(4);
this.bt_11003.Name = "bt_11003";
this.bt_11003.Size = new System.Drawing.Size(63, 35);
@ -1887,22 +1895,15 @@
this.bt_11003.Tag = "11003";
this.bt_11003.Text = "11003";
this.bt_11003.UseVisualStyleBackColor = false;
//
// panel5
//
this.panel5.Controls.Add(this.tb_11001);
this.panel5.Controls.Add(this.bt_11001);
this.panel5.Location = new System.Drawing.Point(570, 658);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(627, 44);
this.panel5.TabIndex = 6020;
this.bt_11003.Click += new System.EventHandler(this.ctrl_Click);
this.bt_11003.MouseEnter += new System.EventHandler(this.Btn_MouseEnter);
//
// tb_11001
//
this.tb_11001.BackColor = System.Drawing.Color.Blue;
this.tb_11001.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.tb_11001.Enabled = false;
this.tb_11001.Location = new System.Drawing.Point(579, 14);
this.tb_11001.Location = new System.Drawing.Point(1152, 676);
this.tb_11001.Margin = new System.Windows.Forms.Padding(4);
this.tb_11001.Multiline = true;
this.tb_11001.Name = "tb_11001";
@ -1915,7 +1916,7 @@
//
this.bt_11001.BackColor = System.Drawing.Color.DarkOrange;
this.bt_11001.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.bt_11001.Location = new System.Drawing.Point(560, 4);
this.bt_11001.Location = new System.Drawing.Point(1133, 666);
this.bt_11001.Margin = new System.Windows.Forms.Padding(4);
this.bt_11001.Name = "bt_11001";
this.bt_11001.Size = new System.Drawing.Size(63, 35);
@ -1923,6 +1924,8 @@
this.bt_11001.Tag = "11001";
this.bt_11001.Text = "11001";
this.bt_11001.UseVisualStyleBackColor = false;
this.bt_11001.Click += new System.EventHandler(this.ctrl_Click);
this.bt_11001.MouseEnter += new System.EventHandler(this.Btn_MouseEnter);
//
// panel9
//
@ -2134,7 +2137,7 @@
this.textBox85.Name = "textBox85";
this.textBox85.Size = new System.Drawing.Size(17, 16);
this.textBox85.TabIndex = 5962;
this.textBox85.Tag = "12030.0";
this.textBox85.Tag = "12008.0";
this.textBox85.Visible = false;
//
// textBox5
@ -3097,7 +3100,7 @@
this.button68.Name = "button68";
this.button68.Size = new System.Drawing.Size(41, 53);
this.button68.TabIndex = 5897;
this.button68.Tag = "12005";
this.button68.Tag = "12008";
this.button68.Text = "12005";
this.button68.UseVisualStyleBackColor = false;
//
@ -3257,6 +3260,58 @@
this.button87.Text = "12002";
this.button87.UseVisualStyleBackColor = false;
//
// button114
//
this.button114.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button114.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button114.Location = new System.Drawing.Point(1562, 672);
this.button114.Margin = new System.Windows.Forms.Padding(4);
this.button114.Name = "button114";
this.button114.Size = new System.Drawing.Size(148, 35);
this.button114.TabIndex = 5898;
this.button114.Tag = "30005";
this.button114.Text = "12004AGV对接信号";
this.button114.UseVisualStyleBackColor = false;
//
// button113
//
this.button113.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button113.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button113.Location = new System.Drawing.Point(1562, 416);
this.button113.Margin = new System.Windows.Forms.Padding(4);
this.button113.Name = "button113";
this.button113.Size = new System.Drawing.Size(148, 35);
this.button113.TabIndex = 5898;
this.button113.Tag = "30004";
this.button113.Text = "12003AGV对接信号";
this.button113.UseVisualStyleBackColor = false;
//
// button112
//
this.button112.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button112.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button112.Location = new System.Drawing.Point(1562, 215);
this.button112.Margin = new System.Windows.Forms.Padding(4);
this.button112.Name = "button112";
this.button112.Size = new System.Drawing.Size(148, 35);
this.button112.TabIndex = 5898;
this.button112.Tag = "30003";
this.button112.Text = "12002AGV对接信号";
this.button112.UseVisualStyleBackColor = false;
//
// button111
//
this.button111.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button111.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button111.Location = new System.Drawing.Point(1553, 122);
this.button111.Margin = new System.Windows.Forms.Padding(4);
this.button111.Name = "button111";
this.button111.Size = new System.Drawing.Size(148, 35);
this.button111.TabIndex = 5898;
this.button111.Tag = "30002";
this.button111.Text = "12001AGV对接信号";
this.button111.UseVisualStyleBackColor = false;
//
// button62
//
this.button62.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
@ -3822,7 +3877,7 @@
this.label24.BackColor = System.Drawing.Color.Transparent;
this.label24.Enabled = false;
this.label24.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label24.Location = new System.Drawing.Point(1255, 147);
this.label24.Location = new System.Drawing.Point(1373, 180);
this.label24.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(77, 15);
@ -4376,6 +4431,58 @@
this.label31.TabIndex = 5865;
this.label31.Text = "←";
//
// button118
//
this.button118.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button118.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button118.Location = new System.Drawing.Point(152, 580);
this.button118.Margin = new System.Windows.Forms.Padding(4);
this.button118.Name = "button118";
this.button118.Size = new System.Drawing.Size(160, 29);
this.button118.TabIndex = 5914;
this.button118.Tag = "30009";
this.button118.Text = "12051AGV对接信号";
this.button118.UseVisualStyleBackColor = false;
//
// button116
//
this.button116.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button116.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button116.Location = new System.Drawing.Point(135, 316);
this.button116.Margin = new System.Windows.Forms.Padding(4);
this.button116.Name = "button116";
this.button116.Size = new System.Drawing.Size(149, 29);
this.button116.TabIndex = 5914;
this.button116.Tag = "30008";
this.button116.Text = "12044AGV对接信号";
this.button116.UseVisualStyleBackColor = false;
//
// button117
//
this.button117.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button117.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button117.Location = new System.Drawing.Point(135, 122);
this.button117.Margin = new System.Windows.Forms.Padding(4);
this.button117.Name = "button117";
this.button117.Size = new System.Drawing.Size(149, 29);
this.button117.TabIndex = 5914;
this.button117.Tag = "30006";
this.button117.Text = "12029AGV对接信号";
this.button117.UseVisualStyleBackColor = false;
//
// button115
//
this.button115.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button115.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button115.Location = new System.Drawing.Point(135, 211);
this.button115.Margin = new System.Windows.Forms.Padding(4);
this.button115.Name = "button115";
this.button115.Size = new System.Drawing.Size(149, 29);
this.button115.TabIndex = 5914;
this.button115.Tag = "30007";
this.button115.Text = "12031AGV对接信号";
this.button115.UseVisualStyleBackColor = false;
//
// button63
//
this.button63.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
@ -4460,7 +4567,7 @@
this.label56.BackColor = System.Drawing.Color.Transparent;
this.label56.Enabled = false;
this.label56.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label56.Location = new System.Drawing.Point(254, 662);
this.label56.Location = new System.Drawing.Point(257, 687);
this.label56.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label56.Name = "label56";
this.label56.Size = new System.Drawing.Size(37, 15);
@ -5839,109 +5946,163 @@
this.label44.TabIndex = 3219;
this.label44.Tag = "17001";
//
// button111
//
this.button111.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button111.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button111.Location = new System.Drawing.Point(1553, 122);
this.button111.Margin = new System.Windows.Forms.Padding(4);
this.button111.Name = "button111";
this.button111.Size = new System.Drawing.Size(148, 35);
this.button111.TabIndex = 5898;
this.button111.Tag = "30002";
this.button111.Text = "12001AGV对接信号";
this.button111.UseVisualStyleBackColor = false;
//
// button112
//
this.button112.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button112.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button112.Location = new System.Drawing.Point(1562, 215);
this.button112.Margin = new System.Windows.Forms.Padding(4);
this.button112.Name = "button112";
this.button112.Size = new System.Drawing.Size(148, 35);
this.button112.TabIndex = 5898;
this.button112.Tag = "30003";
this.button112.Text = "12002AGV对接信号";
this.button112.UseVisualStyleBackColor = false;
//
// button113
//
this.button113.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button113.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button113.Location = new System.Drawing.Point(1562, 416);
this.button113.Margin = new System.Windows.Forms.Padding(4);
this.button113.Name = "button113";
this.button113.Size = new System.Drawing.Size(148, 35);
this.button113.TabIndex = 5898;
this.button113.Tag = "30004";
this.button113.Text = "12003AGV对接信号";
this.button113.UseVisualStyleBackColor = false;
//
// button114
//
this.button114.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button114.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button114.Location = new System.Drawing.Point(1562, 672);
this.button114.Margin = new System.Windows.Forms.Padding(4);
this.button114.Name = "button114";
this.button114.Size = new System.Drawing.Size(148, 35);
this.button114.TabIndex = 5898;
this.button114.Tag = "30005";
this.button114.Text = "12004AGV对接信号";
this.button114.UseVisualStyleBackColor = false;
//
// button115
//
this.button115.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button115.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button115.Location = new System.Drawing.Point(135, 211);
this.button115.Margin = new System.Windows.Forms.Padding(4);
this.button115.Name = "button115";
this.button115.Size = new System.Drawing.Size(139, 29);
this.button115.TabIndex = 5914;
this.button115.Tag = "30007";
this.button115.Text = "12031AGV对接信号";
this.button115.UseVisualStyleBackColor = false;
//
// button116
//
this.button116.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button116.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button116.Location = new System.Drawing.Point(135, 316);
this.button116.Margin = new System.Windows.Forms.Padding(4);
this.button116.Name = "button116";
this.button116.Size = new System.Drawing.Size(139, 29);
this.button116.TabIndex = 5914;
this.button116.Tag = "30008";
this.button116.Text = "12044AGV对接信号";
this.button116.UseVisualStyleBackColor = false;
//
// button117
//
this.button117.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button117.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button117.Location = new System.Drawing.Point(135, 122);
this.button117.Margin = new System.Windows.Forms.Padding(4);
this.button117.Name = "button117";
this.button117.Size = new System.Drawing.Size(139, 29);
this.button117.TabIndex = 5914;
this.button117.Tag = "30006";
this.button117.Text = "12029AGV对接信号";
this.button117.UseVisualStyleBackColor = false;
//
// button118
//
this.button118.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.button118.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button118.Location = new System.Drawing.Point(152, 580);
this.button118.Margin = new System.Windows.Forms.Padding(4);
this.button118.Name = "button118";
this.button118.Size = new System.Drawing.Size(139, 29);
this.button118.TabIndex = 5914;
this.button118.Tag = "30009";
this.button118.Text = "12051AGV对接信号";
this.button118.UseVisualStyleBackColor = false;
// label106
//
this.label106.AutoSize = true;
this.label106.BackColor = System.Drawing.Color.Transparent;
this.label106.Enabled = false;
this.label106.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label106.Location = new System.Drawing.Point(1310, 662);
this.label106.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label106.Name = "label106";
this.label106.Size = new System.Drawing.Size(77, 15);
this.label106.TabIndex = 5840;
this.label106.Text = "12023移栽";
//
// label1668
//
this.label1668.AutoSize = true;
this.label1668.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1668.ForeColor = System.Drawing.Color.Red;
this.label1668.Location = new System.Drawing.Point(265, 661);
this.label1668.Name = "label1668";
this.label1668.Size = new System.Drawing.Size(18, 17);
this.label1668.TabIndex = 8359;
this.label1668.Tag = "17008";
this.label1668.Text = "◀";
//
// label107
//
this.label107.AutoSize = true;
this.label107.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label107.ForeColor = System.Drawing.Color.Red;
this.label107.Location = new System.Drawing.Point(245, 253);
this.label107.Name = "label107";
this.label107.Size = new System.Drawing.Size(18, 17);
this.label107.TabIndex = 8359;
this.label107.Tag = "17007";
this.label107.Text = "◀";
//
// label108
//
this.label108.AutoSize = true;
this.label108.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label108.ForeColor = System.Drawing.Color.Red;
this.label108.Location = new System.Drawing.Point(257, 149);
this.label108.Name = "label108";
this.label108.Size = new System.Drawing.Size(18, 17);
this.label108.TabIndex = 8359;
this.label108.Tag = "17006";
this.label108.Text = "◀";
//
// label109
//
this.label109.AutoSize = true;
this.label109.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label109.ForeColor = System.Drawing.Color.Red;
this.label109.Location = new System.Drawing.Point(257, 62);
this.label109.Name = "label109";
this.label109.Size = new System.Drawing.Size(18, 17);
this.label109.TabIndex = 8359;
this.label109.Tag = "17005";
this.label109.Text = "◀";
//
// label110
//
this.label110.AutoSize = true;
this.label110.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label110.ForeColor = System.Drawing.Color.Red;
this.label110.Location = new System.Drawing.Point(1580, 58);
this.label110.Name = "label110";
this.label110.Size = new System.Drawing.Size(18, 17);
this.label110.TabIndex = 8359;
this.label110.Tag = "17001";
this.label110.Text = "◀";
//
// label111
//
this.label111.AutoSize = true;
this.label111.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label111.ForeColor = System.Drawing.Color.Red;
this.label111.Location = new System.Drawing.Point(1580, 256);
this.label111.Name = "label111";
this.label111.Size = new System.Drawing.Size(18, 17);
this.label111.TabIndex = 8359;
this.label111.Tag = "17002";
this.label111.Text = "◀";
//
// label112
//
this.label112.AutoSize = true;
this.label112.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label112.ForeColor = System.Drawing.Color.Red;
this.label112.Location = new System.Drawing.Point(1580, 345);
this.label112.Name = "label112";
this.label112.Size = new System.Drawing.Size(18, 17);
this.label112.TabIndex = 8359;
this.label112.Tag = "17003";
this.label112.Text = "◀";
//
// label113
//
this.label113.AutoSize = true;
this.label113.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label113.ForeColor = System.Drawing.Color.Red;
this.label113.Location = new System.Drawing.Point(1580, 599);
this.label113.Name = "label113";
this.label113.Size = new System.Drawing.Size(18, 17);
this.label113.TabIndex = 8359;
this.label113.Tag = "17004";
this.label113.Text = "◀";
//
// label115
//
this.label115.AutoSize = true;
this.label115.BackColor = System.Drawing.Color.Transparent;
this.label115.Enabled = false;
this.label115.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label115.Location = new System.Drawing.Point(1310, 58);
this.label115.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label115.Name = "label115";
this.label115.Size = new System.Drawing.Size(77, 15);
this.label115.TabIndex = 5840;
this.label115.Text = "12005移栽";
//
// label116
//
this.label116.AutoSize = true;
this.label116.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label116.ForeColor = System.Drawing.Color.Red;
this.label116.Location = new System.Drawing.Point(1203, 672);
this.label116.Name = "label116";
this.label116.Size = new System.Drawing.Size(18, 17);
this.label116.TabIndex = 8359;
this.label116.Tag = "17009";
this.label116.Text = "◀";
//
// label117
//
this.label117.AutoSize = true;
this.label117.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label117.ForeColor = System.Drawing.Color.Red;
this.label117.Location = new System.Drawing.Point(1203, 329);
this.label117.Name = "label117";
this.label117.Size = new System.Drawing.Size(18, 17);
this.label117.TabIndex = 8359;
this.label117.Tag = "17010";
this.label117.Text = "◀";
//
// label118
//
this.label118.AutoSize = true;
this.label118.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label118.ForeColor = System.Drawing.Color.Red;
this.label118.Location = new System.Drawing.Point(1200, 132);
this.label118.Name = "label118";
this.label118.Size = new System.Drawing.Size(18, 17);
this.label118.TabIndex = 8359;
this.label118.Tag = "17011";
this.label118.Text = "◀";
//
// FrmControlMonitor
//
@ -5976,12 +6137,6 @@
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox26)).EndInit();
this.panel10.ResumeLayout(false);
this.panel10.PerformLayout();
this.panel15.ResumeLayout(false);
this.panel15.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel9.ResumeLayout(false);
this.panel16.ResumeLayout(false);
this.panel4.ResumeLayout(false);
@ -6195,14 +6350,11 @@
private System.Windows.Forms.Label label92;
private System.Windows.Forms.Label label79;
private System.Windows.Forms.Button button80;
private System.Windows.Forms.Panel panel10;
private System.Windows.Forms.TextBox tb_11002;
private System.Windows.Forms.Button bt_11002;
private System.Windows.Forms.Button button81;
private System.Windows.Forms.Panel panel15;
private System.Windows.Forms.TextBox tb_11003;
private System.Windows.Forms.Button bt_11003;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.TextBox tb_11001;
private System.Windows.Forms.Button bt_11001;
private System.Windows.Forms.Panel panel9;
@ -6427,6 +6579,19 @@
private System.Windows.Forms.Button button117;
private System.Windows.Forms.Button button115;
private System.Windows.Forms.Button button118;
private System.Windows.Forms.Label label106;
private System.Windows.Forms.Label label113;
private System.Windows.Forms.Label label112;
private System.Windows.Forms.Label label111;
private System.Windows.Forms.Label label110;
private System.Windows.Forms.Label label109;
private System.Windows.Forms.Label label108;
private System.Windows.Forms.Label label107;
private System.Windows.Forms.Label label1668;
private System.Windows.Forms.Label label115;
private System.Windows.Forms.Label label116;
private System.Windows.Forms.Label label118;
private System.Windows.Forms.Label label117;
//private System.Windows.Forms.Button button132;

7
WcfControlMonitorLib/SControlMonitor.cs

@ -8089,6 +8089,10 @@ namespace WcfControlMonitorLib
errtext = string.Empty;
try
{
if (!PLCClient ){
errtext = "PLC未连接";
return false;
}
Model.MDevice md = Model.CGetInfo.GetDeviceInfo(deviceIndex);
if (DBBlock == "DB1")
@ -8100,7 +8104,8 @@ namespace WcfControlMonitorLib
wv[0].Clear();
wv[0].Append(Wdata);
sdo = CommModeCreate.CreateSendDeviceOrder(deviceIndex);
sdo.WriteDBData(wn, wv, md.S7Connection);
sdo.WriteDBData(wn, wv, md.S7Connection);
CommonClassLib.CCarryConvert.WriteDarkCasket("OPCClient", "写堆垛机急停按钮信号:", deviceIndex.ToString(), md.S7Connection + ";" + DBBlock + ";" + (md.Dbw1Address + 22).ToString() + ";" + Wdata);
}

Loading…
Cancel
Save