..
This commit is contained in:
@@ -67,13 +67,13 @@ namespace AGVEmulator
|
||||
public enum esignal1
|
||||
{
|
||||
front_gate_out = 0,
|
||||
rear_sensor_out,
|
||||
rear_gte_out,
|
||||
mark_sensor_1,
|
||||
mark_sensor_2,
|
||||
lift_down_sensor,
|
||||
lift_up_sensor,
|
||||
magnet_relay,
|
||||
charger_align_sensor,
|
||||
lift_up,
|
||||
lift_down,
|
||||
magnet_on
|
||||
}
|
||||
public enum esystemflag0
|
||||
{
|
||||
@@ -330,20 +330,20 @@ namespace AGVEmulator
|
||||
switch(cmd2)
|
||||
{
|
||||
case "ON":
|
||||
SetAGV(esignal1.magnet_on, true);
|
||||
SetAGV(esignal1.magnet_relay, true);
|
||||
break;
|
||||
case "UP":
|
||||
SetAGV(esignal1.lift_down, false);
|
||||
SetAGV(esignal1.lift_up, true);
|
||||
SetAGV(esignal1.lift_down_sensor, false);
|
||||
SetAGV(esignal1.lift_up_sensor, true);
|
||||
break;
|
||||
case "DN":
|
||||
SetAGV(esignal1.lift_up, false);
|
||||
SetAGV(esignal1.lift_down, true);
|
||||
SetAGV(esignal1.lift_up_sensor, false);
|
||||
SetAGV(esignal1.lift_down_sensor, true);
|
||||
break;
|
||||
case "ST":
|
||||
break;
|
||||
case "OF":
|
||||
SetAGV(esignal1.magnet_on, false);
|
||||
SetAGV(esignal1.magnet_relay, false);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
@@ -74,24 +74,48 @@ namespace AGVEmulator
|
||||
/// 카트를 가지러 들어간다
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
public void SendPickOn(byte id)
|
||||
public void SendPickOnEnter(byte id)
|
||||
{
|
||||
var data = new List<byte>();
|
||||
data.Add(id);
|
||||
Send(ENIGProtocol.AGVCommandHE.PickOn, data.ToArray());
|
||||
Send(ENIGProtocol.AGVCommandHE.PickOnEnter, data.ToArray());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 카트를 내려놓는다
|
||||
/// 카트를 내려놓으로 들어간다
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
public void SendPickOff(byte id)
|
||||
public void SendPickOffEnter(byte id)
|
||||
{
|
||||
var data = new List<byte>();
|
||||
data.Add(id);
|
||||
Send(ENIGProtocol.AGVCommandHE.PickOff, data.ToArray());
|
||||
Send(ENIGProtocol.AGVCommandHE.PickOffEnter, data.ToArray());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 카트를 가지러 들어가서 나온다
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
public void SendPickOnExit(byte id)
|
||||
{
|
||||
var data = new List<byte>();
|
||||
data.Add(id);
|
||||
Send(ENIGProtocol.AGVCommandHE.PickOnExit, data.ToArray());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 카트를 내려놓으러 들어가서 나온다
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
public void SendPickOffExit(byte id)
|
||||
{
|
||||
var data = new List<byte>();
|
||||
data.Add(id);
|
||||
Send(ENIGProtocol.AGVCommandHE.PickOffExit, data.ToArray());
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void SendCurrentPos(byte id, uint tag)
|
||||
{
|
||||
var data = new List<byte>();
|
||||
|
||||
442
AGVEmulator/fMain.Designer.cs
generated
442
AGVEmulator/fMain.Designer.cs
generated
@@ -32,35 +32,35 @@ namespace AGVEmulator
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata113 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata114 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata115 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata116 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata117 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata118 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata119 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata120 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata121 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata122 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata123 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata124 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata125 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata126 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata127 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata128 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata129 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata130 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata131 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata132 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata133 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata134 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata135 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata136 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata137 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata138 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata139 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata140 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fMain));
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata1 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata2 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata3 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata4 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata5 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata6 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata7 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata8 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata9 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata10 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata11 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata12 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata13 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata14 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata15 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata16 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata17 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata18 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata19 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata20 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata21 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata22 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata23 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata24 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata25 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata26 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata27 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata28 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.rtBMS = new arCtl.LogTextBox();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
@@ -86,6 +86,7 @@ namespace AGVEmulator
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.trackBar1 = new System.Windows.Forms.TrackBar();
|
||||
this.serBMS = new AGVEmulator.SerialConn();
|
||||
this.rtAGV = new arCtl.LogTextBox();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.groupBox9 = new System.Windows.Forms.GroupBox();
|
||||
@@ -128,6 +129,7 @@ namespace AGVEmulator
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.rtCAL = new arCtl.LogTextBox();
|
||||
this.serCAL = new AGVEmulator.SerialConn();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage4 = new System.Windows.Forms.TabPage();
|
||||
@@ -135,6 +137,8 @@ namespace AGVEmulator
|
||||
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.rtAGVPro = new arCtl.LogTextBox();
|
||||
this.panel12 = new System.Windows.Forms.Panel();
|
||||
this.agvViewer1 = new AGVEmulator.UC.AgvViewer();
|
||||
this.serAGV = new AGVEmulator.SerialConn();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage3 = new System.Windows.Forms.TabPage();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
@@ -166,10 +170,10 @@ namespace AGVEmulator
|
||||
this.sbBMS = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.sbCAL = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.agvViewer1 = new AGVEmulator.UC.AgvViewer();
|
||||
this.serAGV = new AGVEmulator.SerialConn();
|
||||
this.serBMS = new AGVEmulator.SerialConn();
|
||||
this.serCAL = new AGVEmulator.SerialConn();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.button13 = new System.Windows.Forms.Button();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trbT2)).BeginInit();
|
||||
@@ -504,6 +508,18 @@ namespace AGVEmulator
|
||||
this.trackBar1.Value = 7000;
|
||||
this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
|
||||
//
|
||||
// serBMS
|
||||
//
|
||||
this.serBMS.BaudRate = 9600;
|
||||
this.serBMS.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.serBMS.dev = null;
|
||||
this.serBMS.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.serBMS.Location = new System.Drawing.Point(3, 17);
|
||||
this.serBMS.Name = "serBMS";
|
||||
this.serBMS.PortName = "COM31";
|
||||
this.serBMS.Size = new System.Drawing.Size(1134, 84);
|
||||
this.serBMS.TabIndex = 1;
|
||||
//
|
||||
// rtAGV
|
||||
//
|
||||
this.rtAGV.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
|
||||
@@ -997,6 +1013,18 @@ namespace AGVEmulator
|
||||
this.rtCAL.TabIndex = 2;
|
||||
this.rtCAL.Text = "";
|
||||
//
|
||||
// serCAL
|
||||
//
|
||||
this.serCAL.BaudRate = 9600;
|
||||
this.serCAL.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.serCAL.dev = null;
|
||||
this.serCAL.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.serCAL.Location = new System.Drawing.Point(3, 17);
|
||||
this.serCAL.Name = "serCAL";
|
||||
this.serCAL.PortName = "COM41";
|
||||
this.serCAL.Size = new System.Drawing.Size(776, 84);
|
||||
this.serCAL.TabIndex = 1;
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Interval = 200;
|
||||
@@ -1082,6 +1110,149 @@ namespace AGVEmulator
|
||||
this.panel12.Size = new System.Drawing.Size(1140, 120);
|
||||
this.panel12.TabIndex = 5;
|
||||
//
|
||||
// agvViewer1
|
||||
//
|
||||
this.agvViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.agvViewer1.FontMrk = new System.Drawing.Font("Microsoft Sans Serif", 7F);
|
||||
this.agvViewer1.FontTag = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.agvViewer1.lastmark = "";
|
||||
this.agvViewer1.lastmarkdir = "";
|
||||
this.agvViewer1.lasttag = "";
|
||||
this.agvViewer1.lasttagdir = "";
|
||||
ptdata113.active = false;
|
||||
ptdata113.data = "NOT";
|
||||
ptdata113.pos = 30F;
|
||||
ptdata114.active = false;
|
||||
ptdata114.data = "QA";
|
||||
ptdata114.pos = 200F;
|
||||
ptdata115.active = false;
|
||||
ptdata115.data = "CHG";
|
||||
ptdata115.pos = 300F;
|
||||
ptdata116.active = false;
|
||||
ptdata116.data = "QC";
|
||||
ptdata116.pos = 400F;
|
||||
ptdata117.active = false;
|
||||
ptdata117.data = "#FVI-1";
|
||||
ptdata117.pos = 500F;
|
||||
ptdata118.active = false;
|
||||
ptdata118.data = "#FVI-2";
|
||||
ptdata118.pos = 600F;
|
||||
ptdata119.active = false;
|
||||
ptdata119.data = "#FVI-3";
|
||||
ptdata119.pos = 700F;
|
||||
ptdata120.active = false;
|
||||
ptdata120.data = "#FVI-4";
|
||||
ptdata120.pos = 800F;
|
||||
ptdata121.active = false;
|
||||
ptdata121.data = "#FVI-5";
|
||||
ptdata121.pos = 900F;
|
||||
ptdata122.active = false;
|
||||
ptdata122.data = "POT";
|
||||
ptdata122.pos = 970F;
|
||||
this.agvViewer1.listMRK = new AGVEmulator.UC.AgvViewer.ptdata[] {
|
||||
ptdata113,
|
||||
ptdata114,
|
||||
ptdata115,
|
||||
ptdata116,
|
||||
ptdata117,
|
||||
ptdata118,
|
||||
ptdata119,
|
||||
ptdata120,
|
||||
ptdata121,
|
||||
ptdata122};
|
||||
ptdata123.active = false;
|
||||
ptdata123.data = "9000";
|
||||
ptdata123.pos = 80F;
|
||||
ptdata124.active = false;
|
||||
ptdata124.data = "9001";
|
||||
ptdata124.pos = 120F;
|
||||
ptdata125.active = false;
|
||||
ptdata125.data = "9010";
|
||||
ptdata125.pos = 180F;
|
||||
ptdata126.active = false;
|
||||
ptdata126.data = "9011";
|
||||
ptdata126.pos = 220F;
|
||||
ptdata127.active = false;
|
||||
ptdata127.data = "9020";
|
||||
ptdata127.pos = 280F;
|
||||
ptdata128.active = false;
|
||||
ptdata128.data = "9021";
|
||||
ptdata128.pos = 320F;
|
||||
ptdata129.active = false;
|
||||
ptdata129.data = "9030";
|
||||
ptdata129.pos = 380F;
|
||||
ptdata130.active = false;
|
||||
ptdata130.data = "9031";
|
||||
ptdata130.pos = 420F;
|
||||
ptdata131.active = false;
|
||||
ptdata131.data = "9040";
|
||||
ptdata131.pos = 480F;
|
||||
ptdata132.active = false;
|
||||
ptdata132.data = "9041";
|
||||
ptdata132.pos = 520F;
|
||||
ptdata133.active = false;
|
||||
ptdata133.data = "9050";
|
||||
ptdata133.pos = 580F;
|
||||
ptdata134.active = false;
|
||||
ptdata134.data = "9051";
|
||||
ptdata134.pos = 620F;
|
||||
ptdata135.active = false;
|
||||
ptdata135.data = "9060";
|
||||
ptdata135.pos = 680F;
|
||||
ptdata136.active = false;
|
||||
ptdata136.data = "9061";
|
||||
ptdata136.pos = 720F;
|
||||
ptdata137.active = false;
|
||||
ptdata137.data = "9070";
|
||||
ptdata137.pos = 780F;
|
||||
ptdata138.active = false;
|
||||
ptdata138.data = "9071";
|
||||
ptdata138.pos = 820F;
|
||||
ptdata139.active = false;
|
||||
ptdata139.data = "9000";
|
||||
ptdata139.pos = 10F;
|
||||
ptdata140.active = false;
|
||||
ptdata140.data = "9001";
|
||||
ptdata140.pos = 50F;
|
||||
this.agvViewer1.listTAG = new AGVEmulator.UC.AgvViewer.ptdata[] {
|
||||
ptdata123,
|
||||
ptdata124,
|
||||
ptdata125,
|
||||
ptdata126,
|
||||
ptdata127,
|
||||
ptdata128,
|
||||
ptdata129,
|
||||
ptdata130,
|
||||
ptdata131,
|
||||
ptdata132,
|
||||
ptdata133,
|
||||
ptdata134,
|
||||
ptdata135,
|
||||
ptdata136,
|
||||
ptdata137,
|
||||
ptdata138,
|
||||
ptdata139,
|
||||
ptdata140};
|
||||
this.agvViewer1.Location = new System.Drawing.Point(241, 0);
|
||||
this.agvViewer1.Name = "agvViewer1";
|
||||
this.agvViewer1.Size = new System.Drawing.Size(899, 120);
|
||||
this.agvViewer1.StopbyMark = false;
|
||||
this.agvViewer1.TabIndex = 0;
|
||||
this.agvViewer1.Text = "agvViewer1";
|
||||
this.agvViewer1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.agvViewer1_MouseDown);
|
||||
//
|
||||
// serAGV
|
||||
//
|
||||
this.serAGV.BaudRate = 9600;
|
||||
this.serAGV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.serAGV.dev = null;
|
||||
this.serAGV.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.serAGV.Location = new System.Drawing.Point(0, 0);
|
||||
this.serAGV.Name = "serAGV";
|
||||
this.serAGV.PortName = "COM21";
|
||||
this.serAGV.Size = new System.Drawing.Size(241, 120);
|
||||
this.serAGV.TabIndex = 0;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.groupBox1);
|
||||
@@ -1106,6 +1277,10 @@ namespace AGVEmulator
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.label13);
|
||||
this.panel3.Controls.Add(this.button6);
|
||||
this.panel3.Controls.Add(this.button13);
|
||||
this.panel3.Controls.Add(this.label12);
|
||||
this.panel3.Controls.Add(this.button3);
|
||||
this.panel3.Controls.Add(this.button2);
|
||||
this.panel3.Controls.Add(this.nudIDAgv);
|
||||
@@ -1128,9 +1303,9 @@ namespace AGVEmulator
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(246, 339);
|
||||
this.button3.Location = new System.Drawing.Point(204, 305);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(86, 38);
|
||||
this.button3.Size = new System.Drawing.Size(133, 38);
|
||||
this.button3.TabIndex = 15;
|
||||
this.button3.Tag = "--";
|
||||
this.button3.Text = "Pick Off";
|
||||
@@ -1139,9 +1314,9 @@ namespace AGVEmulator
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(246, 295);
|
||||
this.button2.Location = new System.Drawing.Point(65, 305);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(86, 38);
|
||||
this.button2.Size = new System.Drawing.Size(133, 38);
|
||||
this.button2.TabIndex = 14;
|
||||
this.button2.Tag = "--";
|
||||
this.button2.Text = "Pick On";
|
||||
@@ -1408,172 +1583,45 @@ namespace AGVEmulator
|
||||
this.sbCAL.Size = new System.Drawing.Size(19, 17);
|
||||
this.sbCAL.Text = "●";
|
||||
//
|
||||
// agvViewer1
|
||||
// label12
|
||||
//
|
||||
this.agvViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.agvViewer1.FontMrk = new System.Drawing.Font("Microsoft Sans Serif", 7F);
|
||||
this.agvViewer1.FontTag = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.agvViewer1.lastmark = "";
|
||||
this.agvViewer1.lastmarkdir = "";
|
||||
this.agvViewer1.lasttag = "";
|
||||
this.agvViewer1.lasttagdir = "";
|
||||
ptdata1.active = false;
|
||||
ptdata1.data = "NOT";
|
||||
ptdata1.pos = 30F;
|
||||
ptdata2.active = false;
|
||||
ptdata2.data = "QA";
|
||||
ptdata2.pos = 200F;
|
||||
ptdata3.active = false;
|
||||
ptdata3.data = "CHG";
|
||||
ptdata3.pos = 300F;
|
||||
ptdata4.active = false;
|
||||
ptdata4.data = "QC";
|
||||
ptdata4.pos = 400F;
|
||||
ptdata5.active = false;
|
||||
ptdata5.data = "#FVI-1";
|
||||
ptdata5.pos = 500F;
|
||||
ptdata6.active = false;
|
||||
ptdata6.data = "#FVI-2";
|
||||
ptdata6.pos = 600F;
|
||||
ptdata7.active = false;
|
||||
ptdata7.data = "#FVI-3";
|
||||
ptdata7.pos = 700F;
|
||||
ptdata8.active = false;
|
||||
ptdata8.data = "#FVI-4";
|
||||
ptdata8.pos = 800F;
|
||||
ptdata9.active = false;
|
||||
ptdata9.data = "#FVI-5";
|
||||
ptdata9.pos = 900F;
|
||||
ptdata10.active = false;
|
||||
ptdata10.data = "POT";
|
||||
ptdata10.pos = 970F;
|
||||
this.agvViewer1.listMRK = new AGVEmulator.UC.AgvViewer.ptdata[] {
|
||||
ptdata1,
|
||||
ptdata2,
|
||||
ptdata3,
|
||||
ptdata4,
|
||||
ptdata5,
|
||||
ptdata6,
|
||||
ptdata7,
|
||||
ptdata8,
|
||||
ptdata9,
|
||||
ptdata10};
|
||||
ptdata11.active = false;
|
||||
ptdata11.data = "9000";
|
||||
ptdata11.pos = 80F;
|
||||
ptdata12.active = false;
|
||||
ptdata12.data = "9001";
|
||||
ptdata12.pos = 120F;
|
||||
ptdata13.active = false;
|
||||
ptdata13.data = "9010";
|
||||
ptdata13.pos = 180F;
|
||||
ptdata14.active = false;
|
||||
ptdata14.data = "9011";
|
||||
ptdata14.pos = 220F;
|
||||
ptdata15.active = false;
|
||||
ptdata15.data = "9020";
|
||||
ptdata15.pos = 280F;
|
||||
ptdata16.active = false;
|
||||
ptdata16.data = "9021";
|
||||
ptdata16.pos = 320F;
|
||||
ptdata17.active = false;
|
||||
ptdata17.data = "9030";
|
||||
ptdata17.pos = 380F;
|
||||
ptdata18.active = false;
|
||||
ptdata18.data = "9031";
|
||||
ptdata18.pos = 420F;
|
||||
ptdata19.active = false;
|
||||
ptdata19.data = "9040";
|
||||
ptdata19.pos = 480F;
|
||||
ptdata20.active = false;
|
||||
ptdata20.data = "9041";
|
||||
ptdata20.pos = 520F;
|
||||
ptdata21.active = false;
|
||||
ptdata21.data = "9050";
|
||||
ptdata21.pos = 580F;
|
||||
ptdata22.active = false;
|
||||
ptdata22.data = "9051";
|
||||
ptdata22.pos = 620F;
|
||||
ptdata23.active = false;
|
||||
ptdata23.data = "9060";
|
||||
ptdata23.pos = 680F;
|
||||
ptdata24.active = false;
|
||||
ptdata24.data = "9061";
|
||||
ptdata24.pos = 720F;
|
||||
ptdata25.active = false;
|
||||
ptdata25.data = "9070";
|
||||
ptdata25.pos = 780F;
|
||||
ptdata26.active = false;
|
||||
ptdata26.data = "9071";
|
||||
ptdata26.pos = 820F;
|
||||
ptdata27.active = false;
|
||||
ptdata27.data = "9000";
|
||||
ptdata27.pos = 10F;
|
||||
ptdata28.active = false;
|
||||
ptdata28.data = "9001";
|
||||
ptdata28.pos = 50F;
|
||||
this.agvViewer1.listTAG = new AGVEmulator.UC.AgvViewer.ptdata[] {
|
||||
ptdata11,
|
||||
ptdata12,
|
||||
ptdata13,
|
||||
ptdata14,
|
||||
ptdata15,
|
||||
ptdata16,
|
||||
ptdata17,
|
||||
ptdata18,
|
||||
ptdata19,
|
||||
ptdata20,
|
||||
ptdata21,
|
||||
ptdata22,
|
||||
ptdata23,
|
||||
ptdata24,
|
||||
ptdata25,
|
||||
ptdata26,
|
||||
ptdata27,
|
||||
ptdata28};
|
||||
this.agvViewer1.Location = new System.Drawing.Point(241, 0);
|
||||
this.agvViewer1.Name = "agvViewer1";
|
||||
this.agvViewer1.Size = new System.Drawing.Size(899, 120);
|
||||
this.agvViewer1.StopbyMark = false;
|
||||
this.agvViewer1.TabIndex = 0;
|
||||
this.agvViewer1.Text = "agvViewer1";
|
||||
this.agvViewer1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.agvViewer1_MouseDown);
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(17, 318);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(34, 12);
|
||||
this.label12.TabIndex = 16;
|
||||
this.label12.Text = "Enter";
|
||||
//
|
||||
// serAGV
|
||||
// label13
|
||||
//
|
||||
this.serAGV.BaudRate = 9600;
|
||||
this.serAGV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.serAGV.dev = null;
|
||||
this.serAGV.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.serAGV.Location = new System.Drawing.Point(0, 0);
|
||||
this.serAGV.Name = "serAGV";
|
||||
this.serAGV.PortName = "COM21";
|
||||
this.serAGV.Size = new System.Drawing.Size(241, 120);
|
||||
this.serAGV.TabIndex = 0;
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(17, 362);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(26, 12);
|
||||
this.label13.TabIndex = 19;
|
||||
this.label13.Text = "Exit";
|
||||
//
|
||||
// serBMS
|
||||
// button6
|
||||
//
|
||||
this.serBMS.BaudRate = 9600;
|
||||
this.serBMS.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.serBMS.dev = null;
|
||||
this.serBMS.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.serBMS.Location = new System.Drawing.Point(3, 17);
|
||||
this.serBMS.Name = "serBMS";
|
||||
this.serBMS.PortName = "COM31";
|
||||
this.serBMS.Size = new System.Drawing.Size(1134, 84);
|
||||
this.serBMS.TabIndex = 1;
|
||||
this.button6.Location = new System.Drawing.Point(204, 349);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(133, 38);
|
||||
this.button6.TabIndex = 18;
|
||||
this.button6.Tag = "--";
|
||||
this.button6.Text = "Pick Off";
|
||||
this.button6.UseVisualStyleBackColor = true;
|
||||
this.button6.Click += new System.EventHandler(this.button6_Click_1);
|
||||
//
|
||||
// serCAL
|
||||
// button13
|
||||
//
|
||||
this.serCAL.BaudRate = 9600;
|
||||
this.serCAL.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.serCAL.dev = null;
|
||||
this.serCAL.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.serCAL.Location = new System.Drawing.Point(3, 17);
|
||||
this.serCAL.Name = "serCAL";
|
||||
this.serCAL.PortName = "COM41";
|
||||
this.serCAL.Size = new System.Drawing.Size(776, 84);
|
||||
this.serCAL.TabIndex = 1;
|
||||
this.button13.Location = new System.Drawing.Point(65, 349);
|
||||
this.button13.Name = "button13";
|
||||
this.button13.Size = new System.Drawing.Size(133, 38);
|
||||
this.button13.TabIndex = 17;
|
||||
this.button13.Tag = "--";
|
||||
this.button13.Text = "Pick On";
|
||||
this.button13.UseVisualStyleBackColor = true;
|
||||
this.button13.Click += new System.EventHandler(this.button13_Click);
|
||||
//
|
||||
// fMain
|
||||
//
|
||||
@@ -1746,6 +1794,10 @@ namespace AGVEmulator
|
||||
private Button button3;
|
||||
private Button button2;
|
||||
private Panel panel2;
|
||||
private Label label12;
|
||||
private Label label13;
|
||||
private Button button6;
|
||||
private Button button13;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -938,21 +938,25 @@ namespace AGVEmulator
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
var target = (byte)nudIDAgv.Value;
|
||||
this.XBE.SendPickOn(target);
|
||||
this.XBE.SendPickOnEnter(target);
|
||||
}
|
||||
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
var target = (byte)nudIDAgv.Value;
|
||||
this.XBE.SendPickOff(target);
|
||||
this.XBE.SendPickOffEnter(target);
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void trbT2_Scroll(object sender, EventArgs e)
|
||||
{
|
||||
Temp2 = (UInt16)trbT2.Value;
|
||||
label11.Text = $"{Temp2 / 10f}º";
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
serAGV.Connect();
|
||||
@@ -966,8 +970,16 @@ namespace AGVEmulator
|
||||
serBMS.Disconnect();
|
||||
serCAL.Disconnect();
|
||||
}
|
||||
|
||||
|
||||
private void button13_Click(object sender, EventArgs e)
|
||||
{
|
||||
var target = (byte)nudIDAgv.Value;
|
||||
this.XBE.SendPickOnExit(target);
|
||||
}
|
||||
private void button6_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var target = (byte)nudIDAgv.Value;
|
||||
this.XBE.SendPickOffExit(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user