add temp1, temp2
This commit is contained in:
422
Emulator/AGVEmulator/Form1.Designer.cs
generated
422
Emulator/AGVEmulator/Form1.Designer.cs
generated
@@ -30,34 +30,34 @@ namespace AGVEmulator
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
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();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata85 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata86 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata87 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata88 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata89 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata90 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata91 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata92 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata93 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata94 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata95 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata96 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata97 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata98 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata99 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata100 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata101 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata102 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata103 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata104 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata105 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata106 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata107 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata108 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata109 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata110 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata111 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
AGVEmulator.UC.AgvViewer.ptdata ptdata112 = new AGVEmulator.UC.AgvViewer.ptdata();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.rtBMS = new arCtl.LogTextBox();
|
||||
@@ -132,6 +132,8 @@ namespace AGVEmulator
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage3 = new System.Windows.Forms.TabPage();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.nudIDAgv = new System.Windows.Forms.NumericUpDown();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.nudTagNo = new System.Windows.Forms.NumericUpDown();
|
||||
@@ -152,8 +154,12 @@ namespace AGVEmulator
|
||||
this.sbBMS = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.sbCAL = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.nudIDAgv = new System.Windows.Forms.NumericUpDown();
|
||||
this.trbT1 = new System.Windows.Forms.TrackBar();
|
||||
this.trbT2 = new System.Windows.Forms.TrackBar();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
|
||||
@@ -179,11 +185,13 @@ namespace AGVEmulator
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.tabPage3.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudIDAgv)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudTagNo)).BeginInit();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudIDAgv)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trbT1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trbT2)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
@@ -221,6 +229,12 @@ namespace AGVEmulator
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.label11);
|
||||
this.panel1.Controls.Add(this.label10);
|
||||
this.panel1.Controls.Add(this.label9);
|
||||
this.panel1.Controls.Add(this.label8);
|
||||
this.panel1.Controls.Add(this.trbT2);
|
||||
this.panel1.Controls.Add(this.trbT1);
|
||||
this.panel1.Controls.Add(this.btc8);
|
||||
this.panel1.Controls.Add(this.btc4);
|
||||
this.panel1.Controls.Add(this.btc7);
|
||||
@@ -1016,120 +1030,120 @@ namespace AGVEmulator
|
||||
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;
|
||||
ptdata85.active = false;
|
||||
ptdata85.data = "NOT";
|
||||
ptdata85.pos = 30F;
|
||||
ptdata86.active = false;
|
||||
ptdata86.data = "QA";
|
||||
ptdata86.pos = 200F;
|
||||
ptdata87.active = false;
|
||||
ptdata87.data = "CHG";
|
||||
ptdata87.pos = 300F;
|
||||
ptdata88.active = false;
|
||||
ptdata88.data = "QC";
|
||||
ptdata88.pos = 400F;
|
||||
ptdata89.active = false;
|
||||
ptdata89.data = "#FVI-1";
|
||||
ptdata89.pos = 500F;
|
||||
ptdata90.active = false;
|
||||
ptdata90.data = "#FVI-2";
|
||||
ptdata90.pos = 600F;
|
||||
ptdata91.active = false;
|
||||
ptdata91.data = "#FVI-3";
|
||||
ptdata91.pos = 700F;
|
||||
ptdata92.active = false;
|
||||
ptdata92.data = "#FVI-4";
|
||||
ptdata92.pos = 800F;
|
||||
ptdata93.active = false;
|
||||
ptdata93.data = "#FVI-5";
|
||||
ptdata93.pos = 900F;
|
||||
ptdata94.active = false;
|
||||
ptdata94.data = "POT";
|
||||
ptdata94.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;
|
||||
ptdata85,
|
||||
ptdata86,
|
||||
ptdata87,
|
||||
ptdata88,
|
||||
ptdata89,
|
||||
ptdata90,
|
||||
ptdata91,
|
||||
ptdata92,
|
||||
ptdata93,
|
||||
ptdata94};
|
||||
ptdata95.active = false;
|
||||
ptdata95.data = "9000";
|
||||
ptdata95.pos = 80F;
|
||||
ptdata96.active = false;
|
||||
ptdata96.data = "9001";
|
||||
ptdata96.pos = 120F;
|
||||
ptdata97.active = false;
|
||||
ptdata97.data = "9010";
|
||||
ptdata97.pos = 180F;
|
||||
ptdata98.active = false;
|
||||
ptdata98.data = "9011";
|
||||
ptdata98.pos = 220F;
|
||||
ptdata99.active = false;
|
||||
ptdata99.data = "9020";
|
||||
ptdata99.pos = 280F;
|
||||
ptdata100.active = false;
|
||||
ptdata100.data = "9021";
|
||||
ptdata100.pos = 320F;
|
||||
ptdata101.active = false;
|
||||
ptdata101.data = "9030";
|
||||
ptdata101.pos = 380F;
|
||||
ptdata102.active = false;
|
||||
ptdata102.data = "9031";
|
||||
ptdata102.pos = 420F;
|
||||
ptdata103.active = false;
|
||||
ptdata103.data = "9040";
|
||||
ptdata103.pos = 480F;
|
||||
ptdata104.active = false;
|
||||
ptdata104.data = "9041";
|
||||
ptdata104.pos = 520F;
|
||||
ptdata105.active = false;
|
||||
ptdata105.data = "9050";
|
||||
ptdata105.pos = 580F;
|
||||
ptdata106.active = false;
|
||||
ptdata106.data = "9051";
|
||||
ptdata106.pos = 620F;
|
||||
ptdata107.active = false;
|
||||
ptdata107.data = "9060";
|
||||
ptdata107.pos = 680F;
|
||||
ptdata108.active = false;
|
||||
ptdata108.data = "9061";
|
||||
ptdata108.pos = 720F;
|
||||
ptdata109.active = false;
|
||||
ptdata109.data = "9070";
|
||||
ptdata109.pos = 780F;
|
||||
ptdata110.active = false;
|
||||
ptdata110.data = "9071";
|
||||
ptdata110.pos = 820F;
|
||||
ptdata111.active = false;
|
||||
ptdata111.data = "9000";
|
||||
ptdata111.pos = 10F;
|
||||
ptdata112.active = false;
|
||||
ptdata112.data = "9001";
|
||||
ptdata112.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};
|
||||
ptdata95,
|
||||
ptdata96,
|
||||
ptdata97,
|
||||
ptdata98,
|
||||
ptdata99,
|
||||
ptdata100,
|
||||
ptdata101,
|
||||
ptdata102,
|
||||
ptdata103,
|
||||
ptdata104,
|
||||
ptdata105,
|
||||
ptdata106,
|
||||
ptdata107,
|
||||
ptdata108,
|
||||
ptdata109,
|
||||
ptdata110,
|
||||
ptdata111,
|
||||
ptdata112};
|
||||
this.agvViewer1.Location = new System.Drawing.Point(241, 0);
|
||||
this.agvViewer1.Name = "agvViewer1";
|
||||
this.agvViewer1.Size = new System.Drawing.Size(899, 120);
|
||||
@@ -1192,6 +1206,34 @@ namespace AGVEmulator
|
||||
this.panel3.Size = new System.Drawing.Size(364, 622);
|
||||
this.panel3.TabIndex = 15;
|
||||
//
|
||||
// nudIDAgv
|
||||
//
|
||||
this.nudIDAgv.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.nudIDAgv.Location = new System.Drawing.Point(6, 249);
|
||||
this.nudIDAgv.Maximum = new decimal(new int[] {
|
||||
9999999,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nudIDAgv.Name = "nudIDAgv";
|
||||
this.nudIDAgv.Size = new System.Drawing.Size(98, 38);
|
||||
this.nudIDAgv.TabIndex = 13;
|
||||
this.nudIDAgv.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.nudIDAgv.Value = new decimal(new int[] {
|
||||
10,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(32, 220);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(45, 12);
|
||||
this.label7.TabIndex = 12;
|
||||
this.label7.Text = "AGV ID";
|
||||
//
|
||||
// numericUpDown2
|
||||
//
|
||||
this.numericUpDown2.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
@@ -1388,33 +1430,69 @@ namespace AGVEmulator
|
||||
this.sbCAL.Size = new System.Drawing.Size(19, 17);
|
||||
this.sbCAL.Text = "●";
|
||||
//
|
||||
// label7
|
||||
// trbT1
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(32, 220);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(45, 12);
|
||||
this.label7.TabIndex = 12;
|
||||
this.label7.Text = "AGV ID";
|
||||
this.trbT1.LargeChange = 10;
|
||||
this.trbT1.Location = new System.Drawing.Point(442, 7);
|
||||
this.trbT1.Maximum = 990;
|
||||
this.trbT1.Name = "trbT1";
|
||||
this.trbT1.Size = new System.Drawing.Size(172, 45);
|
||||
this.trbT1.SmallChange = 5;
|
||||
this.trbT1.TabIndex = 14;
|
||||
this.trbT1.Value = 200;
|
||||
this.trbT1.Scroll += new System.EventHandler(this.trbT1_Scroll);
|
||||
//
|
||||
// nudIDAgv
|
||||
// trbT2
|
||||
//
|
||||
this.nudIDAgv.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.nudIDAgv.Location = new System.Drawing.Point(6, 249);
|
||||
this.nudIDAgv.Maximum = new decimal(new int[] {
|
||||
9999999,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nudIDAgv.Name = "nudIDAgv";
|
||||
this.nudIDAgv.Size = new System.Drawing.Size(98, 38);
|
||||
this.nudIDAgv.TabIndex = 13;
|
||||
this.nudIDAgv.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.nudIDAgv.Value = new decimal(new int[] {
|
||||
10,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.trbT2.LargeChange = 10;
|
||||
this.trbT2.Location = new System.Drawing.Point(442, 58);
|
||||
this.trbT2.Maximum = 990;
|
||||
this.trbT2.Name = "trbT2";
|
||||
this.trbT2.Size = new System.Drawing.Size(172, 45);
|
||||
this.trbT2.SmallChange = 5;
|
||||
this.trbT2.TabIndex = 15;
|
||||
this.trbT2.Value = 200;
|
||||
this.trbT2.Scroll += new System.EventHandler(this.trbT2_Scroll);
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(392, 18);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(44, 12);
|
||||
this.label8.TabIndex = 16;
|
||||
this.label8.Text = "Temp1";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(391, 72);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(44, 12);
|
||||
this.label9.TabIndex = 17;
|
||||
this.label9.Text = "Temp2";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.label10.ForeColor = System.Drawing.Color.White;
|
||||
this.label10.Location = new System.Drawing.Point(620, 12);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(75, 24);
|
||||
this.label10.TabIndex = 18;
|
||||
this.label10.Text = "Curr";
|
||||
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.label11.ForeColor = System.Drawing.Color.White;
|
||||
this.label11.Location = new System.Drawing.Point(620, 68);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(75, 24);
|
||||
this.label11.TabIndex = 19;
|
||||
this.label11.Text = "Curr";
|
||||
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
@@ -1462,13 +1540,15 @@ namespace AGVEmulator
|
||||
this.tabPage3.ResumeLayout(false);
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel3.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudIDAgv)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudTagNo)).EndInit();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.statusStrip1.ResumeLayout(false);
|
||||
this.statusStrip1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudIDAgv)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trbT1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trbT2)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -1571,6 +1651,12 @@ namespace AGVEmulator
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.NumericUpDown nudIDAgv;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.TrackBar trbT2;
|
||||
private System.Windows.Forms.TrackBar trbT1;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.Label label10;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -101,6 +101,8 @@ namespace AGVEmulator
|
||||
serAGV.BaudRate = 57600;
|
||||
// serPLC.BaudRate = 57600;
|
||||
trackBar1_Scroll(null, null);
|
||||
trbT2_Scroll(null, null);
|
||||
trbT1_Scroll(null, null);
|
||||
timer1.Start();
|
||||
|
||||
//plc inout 이름 설정
|
||||
@@ -219,7 +221,7 @@ namespace AGVEmulator
|
||||
agvViewer1.MarkTouched += AgvViewer1_MarkTouched;
|
||||
agvViewer1.Command += AgvViewer1_Command;
|
||||
}
|
||||
|
||||
|
||||
void MakeViewer()
|
||||
{
|
||||
//태그목록
|
||||
@@ -340,7 +342,7 @@ namespace AGVEmulator
|
||||
button18.PerformClick();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
char GetGroupItemCheckbox(GroupBox grp)
|
||||
@@ -411,8 +413,8 @@ namespace AGVEmulator
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
AGV.WriteData("ACK");
|
||||
@@ -474,7 +476,7 @@ namespace AGVEmulator
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
@@ -568,15 +570,30 @@ namespace AGVEmulator
|
||||
private void button6_Click(object sender, EventArgs e)
|
||||
{
|
||||
var target = (byte)nudIDAgv.Value;
|
||||
var tagno =(uint) nudTagNo.Value;
|
||||
this.XBE.SendGotoTag( target, tagno);
|
||||
var tagno = (uint)nudTagNo.Value;
|
||||
this.XBE.SendGotoTag(target, tagno);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var target = (byte)nudIDAgv.Value;
|
||||
var tagno = (uint)numericUpDown2.Value;
|
||||
this.XBE.SendCurrentPos(target,tagno);
|
||||
this.XBE.SendCurrentPos(target, tagno);
|
||||
}
|
||||
|
||||
UInt16 Temp1, Temp2;
|
||||
private void trbT1_Scroll(object sender, EventArgs e)
|
||||
{
|
||||
//값에 /10해서 표시한다.
|
||||
Temp1 =(UInt16) trbT1.Value;
|
||||
label10.Text = $"{Temp1 / 10f}º";
|
||||
|
||||
}
|
||||
|
||||
private void trbT2_Scroll(object sender, EventArgs e)
|
||||
{
|
||||
Temp2 = (UInt16)trbT2.Value;
|
||||
label11.Text = $"{Temp2 / 10f}º";
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace AGVEmulator
|
||||
this.cellvolt[i] = (UInt16)rnd.Next(3300, 3350);
|
||||
}
|
||||
Array.Copy(this.cellvolt, 0, e.cellVolt, 0, 8);
|
||||
|
||||
this.btc1.Invoke(new Action(() =>
|
||||
{
|
||||
var idx = 0;
|
||||
@@ -53,6 +54,8 @@ namespace AGVEmulator
|
||||
e.MaxA = (int)BMS_MaxA;
|
||||
e.Remain = BMS_Remain;
|
||||
e.Volt = BMS_Volt;
|
||||
e.Temp1 = this.Temp1;
|
||||
e.Temp2 = this.Temp2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -14,12 +14,16 @@ namespace AGVEmulator
|
||||
public float Remain { get; set; }
|
||||
public int CurA { get; set; }
|
||||
public int MaxA { get; set; }
|
||||
public UInt16 Temp1 { get; set; }
|
||||
public UInt16 Temp2 { get; set; }
|
||||
public RequestBatteryDataArgs()
|
||||
{
|
||||
this.Volt = 25;
|
||||
this.Remain = 79f;
|
||||
this.CurA = 40;
|
||||
this.MaxA = 80;
|
||||
Temp1 = 0;
|
||||
Temp2 = 0;
|
||||
}
|
||||
}
|
||||
public class RequestVoltageDataArgs : EventArgs
|
||||
@@ -52,8 +56,8 @@ namespace AGVEmulator
|
||||
var barrFD77 = sampleFD77.Split(' ').ToList().Select(t => Convert.ToByte(t, 16)).ToArray(); //normal
|
||||
|
||||
if (data.First() != 0xDD || data.Last() != 0x77)
|
||||
{
|
||||
RaiseMessage(MessageType.Error, "stx,etx error");
|
||||
{
|
||||
RaiseMessage(MessageType.Error, $"stx,etx error data={data.HexString()}");
|
||||
return false;
|
||||
}
|
||||
var sts = data[1];
|
||||
@@ -89,6 +93,14 @@ namespace AGVEmulator
|
||||
var perc = (byte)(int)p.Remain;
|
||||
Array.Copy(new byte[] { perc }, 0, basic_payload, 19, 1);
|
||||
|
||||
//temp1
|
||||
var temp1 = BitConverter.GetBytes((UInt16)(p.Temp1 + 2731)).Reverse().ToArray();
|
||||
Array.Copy(temp1, 0, basic_payload, 23,2);
|
||||
|
||||
//temp2
|
||||
var temp2 = BitConverter.GetBytes((UInt16)(p.Temp2 + 2731)).Reverse().ToArray();
|
||||
Array.Copy(temp2, 0, basic_payload, 25, 2);
|
||||
|
||||
var datalen = (byte)basic_payload.Length;
|
||||
var payload_cs = new List<byte>();
|
||||
payload_cs.Add(datalen);
|
||||
@@ -115,7 +127,7 @@ namespace AGVEmulator
|
||||
//Array.Copy(BitConverter.GetBytes(chksum).Reverse().ToArray(), 0, barrFD77, 20, 2);
|
||||
|
||||
|
||||
RaiseMessage(MessageType.Normal, $"Volt:{p.Volt}v,Remain:{p.Remain}%");
|
||||
RaiseMessage(MessageType.Normal, $"Volt:{p.Volt}v,Remain:{p.Remain}%,temp1:{p.Temp1/10f},Temp2:{p.Temp2/10f}");
|
||||
|
||||
var sendstr = System.Text.Encoding.Default.GetString(barr0D);
|
||||
RaiseMessage(MessageType.Normal, "Tx:" + barr0D.HexString());
|
||||
@@ -137,7 +149,7 @@ namespace AGVEmulator
|
||||
{
|
||||
var volt = p.cellVolt[i];
|
||||
var arr_cellvolt = BitConverter.GetBytes(volt).Reverse().ToArray();
|
||||
Array.Copy(arr_cellvolt, 0, payload, ( i * 2), arr_cellvolt.Length);
|
||||
Array.Copy(arr_cellvolt, 0, payload, (i * 2), arr_cellvolt.Length);
|
||||
}
|
||||
|
||||
//makechecksum
|
||||
|
||||
Reference in New Issue
Block a user