Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
|
33c01ae072 | |
|
e71a8fc3c1 | |
|
ad573d0324 | |
|
fb65aad5b2 |
|
@ -37,7 +37,6 @@
|
||||||
this.labelTitleSlaveID = new SmartX.SmartLabel();
|
this.labelTitleSlaveID = new SmartX.SmartLabel();
|
||||||
this.buttonSerialSend = new System.Windows.Forms.Button();
|
this.buttonSerialSend = new System.Windows.Forms.Button();
|
||||||
this.buttonSerialSave = new System.Windows.Forms.Button();
|
this.buttonSerialSave = new System.Windows.Forms.Button();
|
||||||
this.labelProtocolDescriptionCOM3_2 = new SmartX.SmartLabel();
|
|
||||||
this.labelProtocolDescriptionCOM3_1 = new SmartX.SmartLabel();
|
this.labelProtocolDescriptionCOM3_1 = new SmartX.SmartLabel();
|
||||||
this.labelABFoodTimeoutInterval = new SmartX.SmartLabel();
|
this.labelABFoodTimeoutInterval = new SmartX.SmartLabel();
|
||||||
this.labelTitleTimeout = new SmartX.SmartLabel();
|
this.labelTitleTimeout = new SmartX.SmartLabel();
|
||||||
|
@ -66,7 +65,6 @@
|
||||||
this.labelTitleServerPort = new SmartX.SmartLabel();
|
this.labelTitleServerPort = new SmartX.SmartLabel();
|
||||||
this.labelServerStatus = new SmartX.SmartLabel();
|
this.labelServerStatus = new SmartX.SmartLabel();
|
||||||
this.smartGroupBox1 = new SmartX.SmartGroupBox();
|
this.smartGroupBox1 = new SmartX.SmartGroupBox();
|
||||||
this.labelProtocolDescriptionEthernet_2 = new SmartX.SmartLabel();
|
|
||||||
this.labelProtocolDescriptionEthernet_1 = new SmartX.SmartLabel();
|
this.labelProtocolDescriptionEthernet_1 = new SmartX.SmartLabel();
|
||||||
this.labelStartAddress = new SmartX.SmartLabel();
|
this.labelStartAddress = new SmartX.SmartLabel();
|
||||||
this.labelTitleStartAddress = new SmartX.SmartLabel();
|
this.labelTitleStartAddress = new SmartX.SmartLabel();
|
||||||
|
@ -184,7 +182,6 @@
|
||||||
this.groupBoxComm.Controls.Add(this.labelTitleSlaveID);
|
this.groupBoxComm.Controls.Add(this.labelTitleSlaveID);
|
||||||
this.groupBoxComm.Controls.Add(this.buttonSerialSend);
|
this.groupBoxComm.Controls.Add(this.buttonSerialSend);
|
||||||
this.groupBoxComm.Controls.Add(this.buttonSerialSave);
|
this.groupBoxComm.Controls.Add(this.buttonSerialSave);
|
||||||
this.groupBoxComm.Controls.Add(this.labelProtocolDescriptionCOM3_2);
|
|
||||||
this.groupBoxComm.Controls.Add(this.labelProtocolDescriptionCOM3_1);
|
this.groupBoxComm.Controls.Add(this.labelProtocolDescriptionCOM3_1);
|
||||||
this.groupBoxComm.Controls.Add(this.labelABFoodTimeoutInterval);
|
this.groupBoxComm.Controls.Add(this.labelABFoodTimeoutInterval);
|
||||||
this.groupBoxComm.Controls.Add(this.labelTitleTimeout);
|
this.groupBoxComm.Controls.Add(this.labelTitleTimeout);
|
||||||
|
@ -271,25 +268,6 @@
|
||||||
this.buttonSerialSave.Text = "SAVE";
|
this.buttonSerialSave.Text = "SAVE";
|
||||||
this.buttonSerialSave.Click += new System.EventHandler(this.buttonSerialSave_Click);
|
this.buttonSerialSave.Click += new System.EventHandler(this.buttonSerialSave_Click);
|
||||||
//
|
//
|
||||||
// labelProtocolDescriptionCOM3_2
|
|
||||||
//
|
|
||||||
this.labelProtocolDescriptionCOM3_2.BackPictureBox = this.smartForm1;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.BackPictureBox1 = null;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.BackPictureBox2 = null;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.BorderColor = System.Drawing.Color.Black;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Font = new System.Drawing.Font("New Gulim", 9F, System.Drawing.FontStyle.Regular);
|
|
||||||
this.labelProtocolDescriptionCOM3_2.InitVisible = true;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.LineSpacing = 0F;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Location = new System.Drawing.Point(47, 110);
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Name = "labelProtocolDescriptionCOM3_2";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Size = new System.Drawing.Size(320, 20);
|
|
||||||
this.labelProtocolDescriptionCOM3_2.TabIndex = 25;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "COM3 Protocol Description";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Wordwrap = false;
|
|
||||||
//
|
|
||||||
// labelProtocolDescriptionCOM3_1
|
// labelProtocolDescriptionCOM3_1
|
||||||
//
|
//
|
||||||
this.labelProtocolDescriptionCOM3_1.BackPictureBox = this.smartForm1;
|
this.labelProtocolDescriptionCOM3_1.BackPictureBox = this.smartForm1;
|
||||||
|
@ -302,12 +280,12 @@
|
||||||
this.labelProtocolDescriptionCOM3_1.LineSpacing = 0F;
|
this.labelProtocolDescriptionCOM3_1.LineSpacing = 0F;
|
||||||
this.labelProtocolDescriptionCOM3_1.Location = new System.Drawing.Point(47, 84);
|
this.labelProtocolDescriptionCOM3_1.Location = new System.Drawing.Point(47, 84);
|
||||||
this.labelProtocolDescriptionCOM3_1.Name = "labelProtocolDescriptionCOM3_1";
|
this.labelProtocolDescriptionCOM3_1.Name = "labelProtocolDescriptionCOM3_1";
|
||||||
this.labelProtocolDescriptionCOM3_1.Size = new System.Drawing.Size(320, 20);
|
this.labelProtocolDescriptionCOM3_1.Size = new System.Drawing.Size(320, 46);
|
||||||
this.labelProtocolDescriptionCOM3_1.TabIndex = 23;
|
this.labelProtocolDescriptionCOM3_1.TabIndex = 23;
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "COM3 Protocol Description";
|
this.labelProtocolDescriptionCOM3_1.Text = "COM3 Protocol Description";
|
||||||
this.labelProtocolDescriptionCOM3_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
this.labelProtocolDescriptionCOM3_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||||
this.labelProtocolDescriptionCOM3_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
this.labelProtocolDescriptionCOM3_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Top;
|
||||||
this.labelProtocolDescriptionCOM3_1.Wordwrap = false;
|
this.labelProtocolDescriptionCOM3_1.Wordwrap = true;
|
||||||
//
|
//
|
||||||
// labelABFoodTimeoutInterval
|
// labelABFoodTimeoutInterval
|
||||||
//
|
//
|
||||||
|
@ -798,7 +776,6 @@
|
||||||
//
|
//
|
||||||
this.smartGroupBox1.BackPictureBox = this.smartForm1;
|
this.smartGroupBox1.BackPictureBox = this.smartForm1;
|
||||||
this.smartGroupBox1.BackPictureBox1 = null;
|
this.smartGroupBox1.BackPictureBox1 = null;
|
||||||
this.smartGroupBox1.Controls.Add(this.labelProtocolDescriptionEthernet_2);
|
|
||||||
this.smartGroupBox1.Controls.Add(this.labelProtocolDescriptionEthernet_1);
|
this.smartGroupBox1.Controls.Add(this.labelProtocolDescriptionEthernet_1);
|
||||||
this.smartGroupBox1.Controls.Add(this.labelStartAddress);
|
this.smartGroupBox1.Controls.Add(this.labelStartAddress);
|
||||||
this.smartGroupBox1.Controls.Add(this.labelTitleStartAddress);
|
this.smartGroupBox1.Controls.Add(this.labelTitleStartAddress);
|
||||||
|
@ -840,25 +817,6 @@
|
||||||
this.smartGroupBox1.Text = "TCP_Local";
|
this.smartGroupBox1.Text = "TCP_Local";
|
||||||
this.smartGroupBox1.TextColor = System.Drawing.Color.Black;
|
this.smartGroupBox1.TextColor = System.Drawing.Color.Black;
|
||||||
//
|
//
|
||||||
// labelProtocolDescriptionEthernet_2
|
|
||||||
//
|
|
||||||
this.labelProtocolDescriptionEthernet_2.BackPictureBox = this.smartForm1;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.BackPictureBox1 = null;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.BackPictureBox2 = null;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.BorderColor = System.Drawing.Color.Black;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Font = new System.Drawing.Font("New Gulim", 9F, System.Drawing.FontStyle.Regular);
|
|
||||||
this.labelProtocolDescriptionEthernet_2.InitVisible = true;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.LineSpacing = 0F;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Location = new System.Drawing.Point(71, 133);
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Name = "labelProtocolDescriptionEthernet_2";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Size = new System.Drawing.Size(320, 20);
|
|
||||||
this.labelProtocolDescriptionEthernet_2.TabIndex = 231;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "COM3 Protocol Description";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Wordwrap = false;
|
|
||||||
//
|
|
||||||
// labelProtocolDescriptionEthernet_1
|
// labelProtocolDescriptionEthernet_1
|
||||||
//
|
//
|
||||||
this.labelProtocolDescriptionEthernet_1.BackPictureBox = this.smartForm1;
|
this.labelProtocolDescriptionEthernet_1.BackPictureBox = this.smartForm1;
|
||||||
|
@ -871,12 +829,12 @@
|
||||||
this.labelProtocolDescriptionEthernet_1.LineSpacing = 0F;
|
this.labelProtocolDescriptionEthernet_1.LineSpacing = 0F;
|
||||||
this.labelProtocolDescriptionEthernet_1.Location = new System.Drawing.Point(71, 107);
|
this.labelProtocolDescriptionEthernet_1.Location = new System.Drawing.Point(71, 107);
|
||||||
this.labelProtocolDescriptionEthernet_1.Name = "labelProtocolDescriptionEthernet_1";
|
this.labelProtocolDescriptionEthernet_1.Name = "labelProtocolDescriptionEthernet_1";
|
||||||
this.labelProtocolDescriptionEthernet_1.Size = new System.Drawing.Size(320, 20);
|
this.labelProtocolDescriptionEthernet_1.Size = new System.Drawing.Size(320, 46);
|
||||||
this.labelProtocolDescriptionEthernet_1.TabIndex = 230;
|
this.labelProtocolDescriptionEthernet_1.TabIndex = 230;
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "COM3 Protocol Description";
|
this.labelProtocolDescriptionEthernet_1.Text = "COM3 Protocol Description";
|
||||||
this.labelProtocolDescriptionEthernet_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
this.labelProtocolDescriptionEthernet_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||||
this.labelProtocolDescriptionEthernet_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
this.labelProtocolDescriptionEthernet_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Top;
|
||||||
this.labelProtocolDescriptionEthernet_1.Wordwrap = false;
|
this.labelProtocolDescriptionEthernet_1.Wordwrap = true;
|
||||||
//
|
//
|
||||||
// labelStartAddress
|
// labelStartAddress
|
||||||
//
|
//
|
||||||
|
@ -1566,7 +1524,6 @@
|
||||||
private SmartX.SmartButton buttonBack;
|
private SmartX.SmartButton buttonBack;
|
||||||
private SmartX.SmartLabel labelTitle;
|
private SmartX.SmartLabel labelTitle;
|
||||||
private SmartX.SmartGroupBox groupBoxComm;
|
private SmartX.SmartGroupBox groupBoxComm;
|
||||||
private SmartX.SmartLabel labelProtocolDescriptionCOM3_2;
|
|
||||||
private SmartX.SmartLabel labelProtocolDescriptionCOM3_1;
|
private SmartX.SmartLabel labelProtocolDescriptionCOM3_1;
|
||||||
private SmartX.SmartLabel labelABFoodTimeoutInterval;
|
private SmartX.SmartLabel labelABFoodTimeoutInterval;
|
||||||
private SmartX.SmartLabel labelTitleTimeout;
|
private SmartX.SmartLabel labelTitleTimeout;
|
||||||
|
@ -1631,7 +1588,6 @@
|
||||||
private SmartX.SmartLabel labelTitleStartAddress;
|
private SmartX.SmartLabel labelTitleStartAddress;
|
||||||
private SmartX.SmartLabel labelSlaveID;
|
private SmartX.SmartLabel labelSlaveID;
|
||||||
private SmartX.SmartLabel labelTitleSlaveID;
|
private SmartX.SmartLabel labelTitleSlaveID;
|
||||||
private SmartX.SmartLabel labelProtocolDescriptionEthernet_2;
|
|
||||||
private SmartX.SmartLabel labelProtocolDescriptionEthernet_1;
|
private SmartX.SmartLabel labelProtocolDescriptionEthernet_1;
|
||||||
private System.Windows.Forms.Button button10LaneSend;
|
private System.Windows.Forms.Button button10LaneSend;
|
||||||
private System.Windows.Forms.Button button1LaneSend;
|
private System.Windows.Forms.Button button1LaneSend;
|
||||||
|
|
|
@ -332,8 +332,8 @@ namespace INT69DC_7C.Forms
|
||||||
data = this.ParentForm.Protocol_OPT3(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData, this.ParentForm.CurrentProductItem);
|
data = this.ParentForm.Protocol_OPT3(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData, this.ParentForm.CurrentProductItem);
|
||||||
else if (this.ParentForm.SystemConfig.EthernetMode == 4)
|
else if (this.ParentForm.SystemConfig.EthernetMode == 4)
|
||||||
data = this.ParentForm.Protocol_OPT5(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData, this.ParentForm.CurrentProductItem);
|
data = this.ParentForm.Protocol_OPT5(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData, this.ParentForm.CurrentProductItem);
|
||||||
else if(this.ParentForm.SystemConfig.EthernetMode == 5)
|
else if (this.ParentForm.SystemConfig.EthernetMode == 5)
|
||||||
data = this.ParentForm.Protocol_OPT6(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData);
|
data = this.ParentForm.Protocol_OPT6(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData, this.ParentForm.CurrentProductItem);
|
||||||
|
|
||||||
switch (this.ParentForm.SystemConfig.EthernetOperationMode)
|
switch (this.ParentForm.SystemConfig.EthernetOperationMode)
|
||||||
{
|
{
|
||||||
|
@ -364,7 +364,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.ParentForm.SystemConfig.EthernetMode == 4)
|
else if (this.ParentForm.SystemConfig.EthernetMode == 4)
|
||||||
data = this.ParentForm.Protocol_OPT5(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData[lane - 1], lane, this.ParentForm.CurrentProductItem);
|
data = this.ParentForm.Protocol_OPT5(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData[lane - 1], lane, this.ParentForm.CurrentProductItem);
|
||||||
else if (this.ParentForm.SystemConfig.EthernetMode == 5)
|
else if (this.ParentForm.SystemConfig.EthernetMode == 5)
|
||||||
data = this.ParentForm.Protocol_OPT6(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData[lane - 1], lane);
|
data = this.ParentForm.Protocol_OPT6(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData[lane - 1], lane, this.ParentForm.CurrentProductItem);
|
||||||
|
|
||||||
switch (this.ParentForm.SystemConfig.EthernetOperationMode)
|
switch (this.ParentForm.SystemConfig.EthernetOperationMode)
|
||||||
{
|
{
|
||||||
|
@ -521,28 +521,16 @@ namespace INT69DC_7C.Forms
|
||||||
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -553,28 +541,16 @@ namespace INT69DC_7C.Forms
|
||||||
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "GRD[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "GRD[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -585,28 +561,16 @@ namespace INT69DC_7C.Forms
|
||||||
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "TARE[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "TARE[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "TARE[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],";
|
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "TARE[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -618,26 +582,26 @@ namespace INT69DC_7C.Forms
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],";
|
this.labelProtocolDescriptionEthernet_1.Text =
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
"STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],";
|
this.labelProtocolDescriptionEthernet_1.Text =
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "TOTAL CNT[9],LANE[2],GRD[1],WEIGHT[6],ETX[1]]";
|
"STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],";
|
this.labelProtocolDescriptionEthernet_1.Text =
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "TOTAL CNT[9],LANE[2],GRD[1],WEIGHT[6],ETX[1]]";
|
"STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],";
|
this.labelProtocolDescriptionEthernet_1.Text =
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
"STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -645,7 +609,6 @@ namespace INT69DC_7C.Forms
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionEthernet_1.Text = "";
|
this.labelProtocolDescriptionEthernet_1.Text = "";
|
||||||
this.labelProtocolDescriptionEthernet_2.Text = "";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void UpdateProtocolDescriptionCom3Display()
|
private void UpdateProtocolDescriptionCom3Display()
|
||||||
|
@ -654,7 +617,6 @@ namespace INT69DC_7C.Forms
|
||||||
{
|
{
|
||||||
#region OPT1
|
#region OPT1
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "Private use";
|
this.labelProtocolDescriptionCOM3_1.Text = "Private use";
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "";
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
else if (this.comboBoxSerial3Mode.SelectedIndex == 2)
|
else if (this.comboBoxSerial3Mode.SelectedIndex == 2)
|
||||||
|
@ -664,28 +626,16 @@ namespace INT69DC_7C.Forms
|
||||||
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -696,28 +646,16 @@ namespace INT69DC_7C.Forms
|
||||||
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "GRD[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "GRD[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -728,36 +666,23 @@ namespace INT69DC_7C.Forms
|
||||||
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{SIGN[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "{SIGN[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],SIGN[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "SIGN[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],SIGN[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "SIGN[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{SIGN[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "{SIGN[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
else if (this.comboBoxSerial3Mode.SelectedIndex == 5)
|
else if (this.comboBoxSerial3Mode.SelectedIndex == 5)
|
||||||
{
|
{
|
||||||
#region Printer
|
#region Printer
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "NO[4], LANE[2], GRADE[1], WEIGHT[6],";
|
this.labelProtocolDescriptionCOM3_1.Text = "NO[4], LANE[2], GRADE[1], WEIGHT[6],COUNT[9]";
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "COUNT[9]";
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
else if (this.comboBoxSerial3Mode.SelectedIndex == 6)
|
else if (this.comboBoxSerial3Mode.SelectedIndex == 6)
|
||||||
|
@ -767,28 +692,16 @@ namespace INT69DC_7C.Forms
|
||||||
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "TARE[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "TARE[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "TARE[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],";
|
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "TARE[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -800,26 +713,26 @@ namespace INT69DC_7C.Forms
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],";
|
this.labelProtocolDescriptionCOM3_1.Text =
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
"STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],";
|
this.labelProtocolDescriptionCOM3_1.Text =
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "TOTAL CNT[9],LANE[2],GRD[1],WEIGHT[6],ETX[1]]";
|
"STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],";
|
this.labelProtocolDescriptionCOM3_1.Text =
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "TOTAL CNT[9],LANE[2],GRD[1],WEIGHT[6],ETX[1]]";
|
"STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],";
|
this.labelProtocolDescriptionCOM3_1.Text =
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
"STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -828,7 +741,6 @@ namespace INT69DC_7C.Forms
|
||||||
{
|
{
|
||||||
#region None
|
#region None
|
||||||
this.labelProtocolDescriptionCOM3_1.Text = "COM3 Protocol Description";
|
this.labelProtocolDescriptionCOM3_1.Text = "COM3 Protocol Description";
|
||||||
this.labelProtocolDescriptionCOM3_2.Text = "COM3 Protocol Description";
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,7 +142,8 @@ namespace INT69DC_7C.Forms
|
||||||
}
|
}
|
||||||
private void DefaultSetting()
|
private void DefaultSetting()
|
||||||
{
|
{
|
||||||
this.labelDisplayVer.Text = "12.2.2";
|
this.labelDisplayVer.Text = "12.3.0";
|
||||||
|
|
||||||
if(this.ParentForm.SystemConfig.EquipmentMode == 7)
|
if(this.ParentForm.SystemConfig.EquipmentMode == 7)
|
||||||
this.labelTitleMainboardName.Text = "INT68M-2A";
|
this.labelTitleMainboardName.Text = "INT68M-2A";
|
||||||
else
|
else
|
||||||
|
|
|
@ -515,14 +515,16 @@ namespace INT69DC_7C.Forms
|
||||||
|
|
||||||
|
|
||||||
// DllSerial 사용여부 설정
|
// DllSerial 사용여부 설정
|
||||||
this.FlagDllSerial = false;
|
this.FlagDllSerial = true;
|
||||||
if (this.FlagDllSerial == true)
|
if (this.FlagDllSerial == true)
|
||||||
{
|
{
|
||||||
// SerialDll Initialize
|
// SerialDll Initialize
|
||||||
this.ComPortMainToLCD = "COM2:";
|
this.ComPortMainToLCD = "COM2:";
|
||||||
SerialMgrComm.IntializeSerialManager();
|
SerialMgrComm.IntializeSerialManager();
|
||||||
SerialMgrComm.SerialPortMessageReceive += this.SerialPort_MessageReceive;
|
//SerialMgrComm.SerialPortMessageReceive += this.SerialPort_MessageReceive;
|
||||||
SerialMgrComm.SerialPortErrMessageReceive += this.SerialPort_ErrMessageReceive;
|
//SerialMgrComm.SerialPortErrMessageReceive += this.SerialPort_ErrMessageReceive;
|
||||||
|
SerialMgrComm.SerialPortStrMessageReceive += this.SerialPort_StrMessageReceive;
|
||||||
|
SerialMgrComm.SerialPortErrStrMessageReceive += this.SerialPort_ErrStrMessageReceive;
|
||||||
SerialMgrComm.SerialPortGetVersionDataEvent += this.Serialport_GetVersionDataEvent;
|
SerialMgrComm.SerialPortGetVersionDataEvent += this.Serialport_GetVersionDataEvent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -590,6 +592,13 @@ namespace INT69DC_7C.Forms
|
||||||
this.Serialport_ReceiveDataEvent(data.ToString());
|
this.Serialport_ReceiveDataEvent(data.ToString());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
private void SerialPort_StrMessageReceive(object data)
|
||||||
|
{
|
||||||
|
this.UI_Invoke(delegate
|
||||||
|
{
|
||||||
|
this.Serialport_ReceiveDataEvent(data.ToString());
|
||||||
|
});
|
||||||
|
}
|
||||||
private void SerialPort_ErrMessageReceive(object data)
|
private void SerialPort_ErrMessageReceive(object data)
|
||||||
{
|
{
|
||||||
this.UI_Invoke(delegate
|
this.UI_Invoke(delegate
|
||||||
|
@ -598,6 +607,14 @@ namespace INT69DC_7C.Forms
|
||||||
this.smartFileCommunicationLog.WriteString(string.Format("Receive ({0:yyyy-MM-dd HH:mm:ss}): {1} : Dll(Err MSG)", DateTime.Now, data));
|
this.smartFileCommunicationLog.WriteString(string.Format("Receive ({0:yyyy-MM-dd HH:mm:ss}): {1} : Dll(Err MSG)", DateTime.Now, data));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
private void SerialPort_ErrStrMessageReceive(object data)
|
||||||
|
{
|
||||||
|
this.UI_Invoke(delegate
|
||||||
|
{
|
||||||
|
if (this.IsCommunicationLogOpen == true)
|
||||||
|
this.smartFileCommunicationLog.WriteString(string.Format("Receive ({0:yyyy-MM-dd HH:mm:ss}): {1} : Dll(Err MSG)", DateTime.Now, data));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private void TrasferSystemParameter(SystemConfigurationItem item)
|
private void TrasferSystemParameter(SystemConfigurationItem item)
|
||||||
{
|
{
|
||||||
|
@ -1965,9 +1982,9 @@ namespace INT69DC_7C.Forms
|
||||||
{
|
{
|
||||||
#region 개별 전송
|
#region 개별 전송
|
||||||
if (this.SystemConfig.IsWeightViewForward == true)
|
if (this.SystemConfig.IsWeightViewForward == true)
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[0], 1);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[0], 1, this.CurrentProductItem);
|
||||||
else
|
else
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[this.CollectionWeightData.Count - 1], this.CollectionWeightData.Count);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[this.CollectionWeightData.Count - 1], this.CollectionWeightData.Count, this.CurrentProductItem);
|
||||||
|
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -2271,7 +2288,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[1], 2);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[1], 2, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -2572,7 +2589,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[2], 3);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[2], 3, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -2873,7 +2890,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[3], 4);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[3], 4, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -3174,7 +3191,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[4], 5);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[4], 5, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -3475,7 +3492,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[5], 6);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[5], 6, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -3776,7 +3793,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[6], 7);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[6], 7, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -4075,7 +4092,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[7], 8);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[7], 8, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -4371,7 +4388,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[8], 9);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[8], 9, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -4666,7 +4683,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[9], 10);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[9], 10, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -4959,7 +4976,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[10], 11);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[10], 11, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -5251,7 +5268,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[11], 12);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData[11], 12, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -5601,7 +5618,7 @@ namespace INT69DC_7C.Forms
|
||||||
else if (this.SystemConfig.EthernetMode == 5)
|
else if (this.SystemConfig.EthernetMode == 5)
|
||||||
{
|
{
|
||||||
#region OPT6
|
#region OPT6
|
||||||
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData);
|
etherStringData = this.Protocol_OPT6(this.SystemConfig, this.CollectionWeightData, this.CurrentProductItem);
|
||||||
this.SendEthernetData(etherStringData);
|
this.SendEthernetData(etherStringData);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
@ -8708,9 +8725,8 @@ namespace INT69DC_7C.Forms
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private string Protocol_OPT6_NotStxEtx(SystemConfigurationItem system, Collection<WeightData> datas)
|
private string Protocol_OPT6_NotStxEtx(SystemConfigurationItem system, Collection<WeightData> datas, ProductItem pItem)
|
||||||
{
|
{
|
||||||
string value = "";
|
|
||||||
int toTalAll = 0, toTalPass = 0, totalNg = 0;
|
int toTalAll = 0, toTalPass = 0, totalNg = 0;
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
|
@ -8724,12 +8740,14 @@ namespace INT69DC_7C.Forms
|
||||||
sb.Append(string.Format("IN{0:D3}", system.EquipmentID));
|
sb.Append(string.Format("IN{0:D3}", system.EquipmentID));
|
||||||
sb.Append(string.Format("{0:D4}", system.ProductNumber));
|
sb.Append(string.Format("{0:D4}", system.ProductNumber));
|
||||||
|
|
||||||
value = toTalPass.ToString();
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.UnderRange, system.DecimalPlaces)));
|
||||||
sb.Append(value.PadLeft(7, ' '));
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.PassRange, system.DecimalPlaces)));
|
||||||
value = totalNg.ToString();
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.OverRange, system.DecimalPlaces)));
|
||||||
sb.Append(value.PadLeft(7, ' '));
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.TareRange, system.DecimalPlaces)));
|
||||||
value = toTalAll.ToString();
|
|
||||||
sb.Append(value.PadLeft(9, ' '));
|
sb.Append(Helper.StringBlankFillDigits7(toTalPass.ToString()));
|
||||||
|
sb.Append(Helper.StringBlankFillDigits7(totalNg.ToString()));
|
||||||
|
sb.Append(Helper.StringBlankFillDigits9(toTalAll.ToString()));
|
||||||
|
|
||||||
for (int i = 0; i < system.EquipmentColumns; i++)
|
for (int i = 0; i < system.EquipmentColumns; i++)
|
||||||
{
|
{
|
||||||
|
@ -8749,7 +8767,7 @@ namespace INT69DC_7C.Forms
|
||||||
|
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
private string Protocol_OPT6_NotStxEtx_1(SystemConfigurationItem system, Collection<WeightData> datas)
|
private string Protocol_OPT6_NotStxEtx_1(SystemConfigurationItem system, Collection<WeightData> datas, ProductItem pItem)
|
||||||
{
|
{
|
||||||
string value = "";
|
string value = "";
|
||||||
int toTalAll = 0, toTalPass = 0, totalNg = 0;
|
int toTalAll = 0, toTalPass = 0, totalNg = 0;
|
||||||
|
@ -8765,12 +8783,14 @@ namespace INT69DC_7C.Forms
|
||||||
sb.Append(string.Format("IN{0:D3}", system.EquipmentID));
|
sb.Append(string.Format("IN{0:D3}", system.EquipmentID));
|
||||||
sb.Append(string.Format("{0:D4}", system.ProductNumber));
|
sb.Append(string.Format("{0:D4}", system.ProductNumber));
|
||||||
|
|
||||||
value = toTalPass.ToString();
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.UnderRange, system.DecimalPlaces)));
|
||||||
sb.Append(value.PadLeft(7, ' '));
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.PassRange, system.DecimalPlaces)));
|
||||||
value = totalNg.ToString();
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.OverRange, system.DecimalPlaces)));
|
||||||
sb.Append(value.PadLeft(7, ' '));
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.TareRange, system.DecimalPlaces)));
|
||||||
value = toTalAll.ToString();
|
|
||||||
sb.Append(value.PadLeft(9, ' '));
|
sb.Append(Helper.StringBlankFillDigits7(toTalPass.ToString()));
|
||||||
|
sb.Append(Helper.StringBlankFillDigits7(totalNg.ToString()));
|
||||||
|
sb.Append(Helper.StringBlankFillDigits9(toTalAll.ToString()));
|
||||||
|
|
||||||
for (int i = 0; i < system.EquipmentColumns; i++)
|
for (int i = 0; i < system.EquipmentColumns; i++)
|
||||||
{
|
{
|
||||||
|
@ -8811,17 +8831,17 @@ namespace INT69DC_7C.Forms
|
||||||
|
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
public string Protocol_OPT6(SystemConfigurationItem system, Collection<WeightData> datas)
|
public string Protocol_OPT6(SystemConfigurationItem system, Collection<WeightData> datas, ProductItem pItem)
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
sb.Append((char)0x02);
|
sb.Append((char)0x02);
|
||||||
sb.Append(this.Protocol_OPT6_NotStxEtx(system, datas));
|
sb.Append(this.Protocol_OPT6_NotStxEtx(system, datas, pItem));
|
||||||
sb.Append((char)0x03);
|
sb.Append((char)0x03);
|
||||||
|
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
private string Protocol_OPT6_NotStxEtx(SystemConfigurationItem system, WeightData data, int lane)
|
private string Protocol_OPT6_NotStxEtx(SystemConfigurationItem system, WeightData data, int lane, ProductItem pItem)
|
||||||
{
|
{
|
||||||
string value = "";
|
string value = "";
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -8829,12 +8849,14 @@ namespace INT69DC_7C.Forms
|
||||||
sb.Append(string.Format("IN{0:D3}", system.EquipmentID));
|
sb.Append(string.Format("IN{0:D3}", system.EquipmentID));
|
||||||
sb.Append(string.Format("{0:D4}", system.ProductNumber));
|
sb.Append(string.Format("{0:D4}", system.ProductNumber));
|
||||||
|
|
||||||
value = data.PassCount.ToString();
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.UnderRange, system.DecimalPlaces)));
|
||||||
sb.Append(value.PadLeft(7, ' '));
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.PassRange, system.DecimalPlaces)));
|
||||||
value = data.TotalNGCount.ToString();
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.OverRange, system.DecimalPlaces)));
|
||||||
sb.Append(value.PadLeft(7, ' '));
|
sb.Append(Helper.StringBlankFillDigits6(Helper.StringToDecimalPlaces(pItem.TareRange, system.DecimalPlaces)));
|
||||||
value = data.TotalCount.ToString();
|
|
||||||
sb.Append(value.PadLeft(9, ' '));
|
sb.Append(Helper.StringBlankFillDigits7(data.PassCount.ToString()));
|
||||||
|
sb.Append(Helper.StringBlankFillDigits7(data.TotalNGCount.ToString()));
|
||||||
|
sb.Append(Helper.StringBlankFillDigits9(data.TotalCount.ToString()));
|
||||||
|
|
||||||
sb.Append(string.Format("{0:D2}", lane));
|
sb.Append(string.Format("{0:D2}", lane));
|
||||||
|
|
||||||
|
@ -8853,12 +8875,12 @@ namespace INT69DC_7C.Forms
|
||||||
|
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
public string Protocol_OPT6(SystemConfigurationItem system, WeightData data, int lane)
|
public string Protocol_OPT6(SystemConfigurationItem system, WeightData data, int lane, ProductItem pItem)
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
sb.Append((char)0x02);
|
sb.Append((char)0x02);
|
||||||
sb.Append(this.Protocol_OPT6_NotStxEtx(system, data, lane));
|
sb.Append(this.Protocol_OPT6_NotStxEtx(system, data, lane, pItem));
|
||||||
sb.Append((char)0x03);
|
sb.Append((char)0x03);
|
||||||
|
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
|
@ -11336,11 +11358,11 @@ namespace INT69DC_7C.Forms
|
||||||
#region OPT6 - 중량 데이터 피드백 (수량 포함)
|
#region OPT6 - 중량 데이터 피드백 (수량 포함)
|
||||||
public void SerialCH3OPT6(int lane, WeightData data)
|
public void SerialCH3OPT6(int lane, WeightData data)
|
||||||
{
|
{
|
||||||
this.SerialCom3Write(this.Protocol_OPT6_NotStxEtx(this.SystemConfig, data, lane));
|
this.SerialCom3Write(this.Protocol_OPT6_NotStxEtx(this.SystemConfig, data, lane, this.CurrentProductItem));
|
||||||
}
|
}
|
||||||
public void SerialCH3OPT6(Collection<WeightData> datas)
|
public void SerialCH3OPT6(Collection<WeightData> datas)
|
||||||
{
|
{
|
||||||
this.SerialCom3Write(this.Protocol_OPT6_NotStxEtx_1(this.SystemConfig, datas));
|
this.SerialCom3Write(this.Protocol_OPT6_NotStxEtx_1(this.SystemConfig, datas, this.CurrentProductItem));
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -394,6 +394,58 @@ namespace INT69DC_7C
|
||||||
else
|
else
|
||||||
return "0000000";
|
return "0000000";
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 7자리에 맞춰 공백을 빈칸으로 채움
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static string StringBlankFillDigits7(string value)
|
||||||
|
{
|
||||||
|
if (value.Length == 1)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 2)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 3)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 4)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 5)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 6)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 7)
|
||||||
|
return value;
|
||||||
|
else
|
||||||
|
return " ";
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 9자리에 맞춰 공백을 빈칸으로 채움
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static string StringBlankFillDigits9(string value)
|
||||||
|
{
|
||||||
|
if (value.Length == 1)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 2)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 3)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 4)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 5)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 6)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 7)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 8)
|
||||||
|
return string.Format(" {0}", value);
|
||||||
|
else if (value.Length == 9)
|
||||||
|
return value;
|
||||||
|
else
|
||||||
|
return " ";
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 2로 나눈 나머지값 리턴
|
/// 2로 나눈 나머지값 리턴
|
||||||
|
|
|
@ -27,9 +27,15 @@ namespace INT69DC_7C.SerialManger
|
||||||
public delegate void fnSerialMgrRcvPacketCB(StringBuilder commPort, IntPtr pData, int length);
|
public delegate void fnSerialMgrRcvPacketCB(StringBuilder commPort, IntPtr pData, int length);
|
||||||
public static fnSerialMgrRcvPacketCB fnSerialMgrRcvPacketCallback;
|
public static fnSerialMgrRcvPacketCB fnSerialMgrRcvPacketCallback;
|
||||||
|
|
||||||
|
public delegate void fnSerialMgrRcvPacketStrCB(StringBuilder commPort, StringBuilder pMessage, int length);
|
||||||
|
public static fnSerialMgrRcvPacketStrCB fnSerialMgrRcvPacketStrCallback;
|
||||||
|
|
||||||
public delegate void fnSerialMgrRcvErrPacketCB(StringBuilder commPort, IntPtr pData, int length);
|
public delegate void fnSerialMgrRcvErrPacketCB(StringBuilder commPort, IntPtr pData, int length);
|
||||||
public static fnSerialMgrRcvErrPacketCB fnSerialMgrRcvErrPacketCallback;
|
public static fnSerialMgrRcvErrPacketCB fnSerialMgrRcvErrPacketCallback;
|
||||||
|
|
||||||
|
public delegate void fnSerialMgrRcvErrPacketStrCB(StringBuilder commPort, StringBuilder pMessage, int length);
|
||||||
|
public static fnSerialMgrRcvErrPacketStrCB fnSerialMgrRcvErrPacketStrCallback;
|
||||||
|
|
||||||
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
||||||
public static extern void DLL_SerialMgr_Register_DebugCB(fnSerialMgrDebugCB func);
|
public static extern void DLL_SerialMgr_Register_DebugCB(fnSerialMgrDebugCB func);
|
||||||
|
|
||||||
|
@ -42,9 +48,15 @@ namespace INT69DC_7C.SerialManger
|
||||||
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
||||||
public static extern void DLL_SerialMgr_Register_RcvPacketCB(fnSerialMgrRcvPacketCB func);
|
public static extern void DLL_SerialMgr_Register_RcvPacketCB(fnSerialMgrRcvPacketCB func);
|
||||||
|
|
||||||
|
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
||||||
|
public static extern void DLL_SerialMgr_Register_RcvPacketStrCB(fnSerialMgrRcvPacketStrCB func);
|
||||||
|
|
||||||
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
||||||
public static extern void DLL_SerialMgr_Register_RcvErrPacketCB(fnSerialMgrRcvErrPacketCB func);
|
public static extern void DLL_SerialMgr_Register_RcvErrPacketCB(fnSerialMgrRcvErrPacketCB func);
|
||||||
|
|
||||||
|
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
||||||
|
public static extern void DLL_SerialMgr_Register_RcvErrPacketStrCB(fnSerialMgrRcvErrPacketStrCB func);
|
||||||
|
|
||||||
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
[DllImport(PathDll, CallingConvention = CallingConvention.Winapi)]
|
||||||
public static extern void DLL_SerialMgr_HelloWorld();
|
public static extern void DLL_SerialMgr_HelloWorld();
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,9 @@ namespace INT69DC_7C.SerialManger
|
||||||
{
|
{
|
||||||
public delegate void ObjectEventHandler(object data);
|
public delegate void ObjectEventHandler(object data);
|
||||||
public static event ObjectEventHandler SerialPortMessageReceive;
|
public static event ObjectEventHandler SerialPortMessageReceive;
|
||||||
|
public static event ObjectEventHandler SerialPortStrMessageReceive;
|
||||||
public static event ObjectEventHandler SerialPortErrMessageReceive;
|
public static event ObjectEventHandler SerialPortErrMessageReceive;
|
||||||
|
public static event ObjectEventHandler SerialPortErrStrMessageReceive;
|
||||||
public static event ObjectEventHandler SerialPortGetVersionDataEvent;
|
public static event ObjectEventHandler SerialPortGetVersionDataEvent;
|
||||||
|
|
||||||
public static void IntializeSerialManager()
|
public static void IntializeSerialManager()
|
||||||
|
@ -31,11 +33,17 @@ namespace INT69DC_7C.SerialManger
|
||||||
fnSerialVersionCallback = serialVersionCallback;
|
fnSerialVersionCallback = serialVersionCallback;
|
||||||
DLL_SerialMgr_Register_VersionCB(fnSerialVersionCallback);
|
DLL_SerialMgr_Register_VersionCB(fnSerialVersionCallback);
|
||||||
|
|
||||||
fnSerialMgrRcvPacketCallback = serialRcvPacketMsgCallback;
|
//fnSerialMgrRcvPacketCallback = serialRcvPacketMsgCallback;
|
||||||
DLL_SerialMgr_Register_RcvPacketCB(fnSerialMgrRcvPacketCallback);
|
//DLL_SerialMgr_Register_RcvPacketCB(fnSerialMgrRcvPacketCallback);
|
||||||
|
|
||||||
fnSerialMgrRcvErrPacketCallback = serialRcvErrPacketMsgCallback;
|
fnSerialMgrRcvPacketStrCallback = serialRcvPacketStrMsgCallback;
|
||||||
DLL_SerialMgr_Register_RcvErrPacketCB(fnSerialMgrRcvErrPacketCallback);
|
DLL_SerialMgr_Register_RcvPacketStrCB(fnSerialMgrRcvPacketStrCallback);
|
||||||
|
|
||||||
|
//fnSerialMgrRcvErrPacketCallback = serialRcvErrPacketMsgCallback;
|
||||||
|
//DLL_SerialMgr_Register_RcvErrPacketCB(fnSerialMgrRcvErrPacketCallback);
|
||||||
|
|
||||||
|
fnSerialMgrRcvErrPacketStrCallback = serialRcvErrPacketStrMsgCallback;
|
||||||
|
DLL_SerialMgr_Register_RcvErrPacketStrCB(fnSerialMgrRcvErrPacketStrCallback);
|
||||||
|
|
||||||
// test
|
// test
|
||||||
//DLL_SerialMgr_HelloWorld();
|
//DLL_SerialMgr_HelloWorld();
|
||||||
|
@ -90,7 +98,6 @@ namespace INT69DC_7C.SerialManger
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://stackoverflow.com/questions/22938756/how-to-marshal-c-array-to-c-sharp-via-intptr
|
|
||||||
public static void serialRcvPacketMsgCallback(StringBuilder commPort, IntPtr pData, int length)
|
public static void serialRcvPacketMsgCallback(StringBuilder commPort, IntPtr pData, int length)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -108,39 +115,29 @@ namespace INT69DC_7C.SerialManger
|
||||||
|
|
||||||
if (SerialPortMessageReceive != null)
|
if (SerialPortMessageReceive != null)
|
||||||
SerialPortMessageReceive(sdata);
|
SerialPortMessageReceive(sdata);
|
||||||
|
|
||||||
#if TEST_CB
|
|
||||||
String commPortStr = commPort.ToString();
|
|
||||||
|
|
||||||
serialPortMessageByte(commPortStr, data, length);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
//Console.Write("comm port : " + commPort + ", length = " + length.ToString() + "\n");
|
|
||||||
#if TEST_DEBUG
|
|
||||||
// https://stackoverflow.com/questions/1342922/console-writeline-as-hexadecimal
|
|
||||||
int index = 0;
|
|
||||||
foreach (byte temp in data)
|
|
||||||
{
|
|
||||||
Console.Write(temp.ToString("X2") + " ");
|
|
||||||
index++;
|
|
||||||
|
|
||||||
if (index % 16 == 0) Console.Write("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
Console.Write("\n");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//data = null;
|
|
||||||
|
|
||||||
//GC.Collect();
|
|
||||||
//GC.WaitForPendingFinalizers();
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
throw (e);
|
throw (e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static void serialRcvPacketStrMsgCallback(StringBuilder commPort, StringBuilder pMessage, int length)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (commPort.Length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (SerialPortStrMessageReceive != null)
|
||||||
|
SerialPortStrMessageReceive(pMessage);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void serialRcvErrPacketMsgCallback(StringBuilder commPort, IntPtr pData, int length)
|
public static void serialRcvErrPacketMsgCallback(StringBuilder commPort, IntPtr pData, int length)
|
||||||
{
|
{
|
||||||
|
@ -159,41 +156,29 @@ namespace INT69DC_7C.SerialManger
|
||||||
|
|
||||||
if (SerialPortErrMessageReceive != null)
|
if (SerialPortErrMessageReceive != null)
|
||||||
SerialPortErrMessageReceive(sdata);
|
SerialPortErrMessageReceive(sdata);
|
||||||
|
|
||||||
//String commPortStr = commPort.ToString();
|
|
||||||
//serialPortMessageByte(commPortStr, data, length);
|
|
||||||
|
|
||||||
//Console.Write("Err : comm port : " + commPort + ", length = " + length.ToString() + "\n");
|
|
||||||
|
|
||||||
#if (TEST_DEBUG1)
|
|
||||||
// https://stackoverflow.com/questions/1342922/console-writeline-as-hexadecimal
|
|
||||||
int index = 0;
|
|
||||||
foreach (byte temp in data)
|
|
||||||
{
|
|
||||||
Console.Write(temp.ToString("X2") + " ");
|
|
||||||
index++;
|
|
||||||
|
|
||||||
if (index == 5) break;
|
|
||||||
|
|
||||||
if (index % 16 == 0) Console.Write("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
Console.Write("\n");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// https://dhshin94.tistory.com/135
|
|
||||||
//data = null;
|
|
||||||
|
|
||||||
//GC.Collect();
|
|
||||||
//GC.WaitForPendingFinalizers();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
throw (e);
|
throw (e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static void serialRcvErrPacketStrMsgCallback(StringBuilder commPort, StringBuilder pMessage, int length)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (commPort.Length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (SerialPortErrStrMessageReceive != null)
|
||||||
|
SerialPortErrStrMessageReceive(pMessage);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion // DLL_CALLBACK
|
#endregion // DLL_CALLBACK
|
||||||
|
|
||||||
#region DLL_COMMAND
|
#region DLL_COMMAND
|
||||||
|
@ -204,7 +189,6 @@ namespace INT69DC_7C.SerialManger
|
||||||
|
|
||||||
DLL_SerialMgr_PortOpen(pCommPort, BaudRate, stopBit, parity, dataBit);
|
DLL_SerialMgr_PortOpen(pCommPort, BaudRate, stopBit, parity, dataBit);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void serialPortClose(String commPort)
|
public static void serialPortClose(String commPort)
|
||||||
{
|
{
|
||||||
IntPtr pCommPort = Marshal.StringToBSTR(commPort.ToString());
|
IntPtr pCommPort = Marshal.StringToBSTR(commPort.ToString());
|
||||||
|
@ -212,7 +196,6 @@ namespace INT69DC_7C.SerialManger
|
||||||
DLL_SerialMgr_PortClose(pCommPort);
|
DLL_SerialMgr_PortClose(pCommPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void serialPortMessageByte(String commport, byte[] data, int length)
|
public static void serialPortMessageByte(String commport, byte[] data, int length)
|
||||||
{
|
{
|
||||||
IntPtr pCommPort = Marshal.StringToBSTR(commport.ToString());
|
IntPtr pCommPort = Marshal.StringToBSTR(commport.ToString());
|
||||||
|
@ -229,9 +212,6 @@ namespace INT69DC_7C.SerialManger
|
||||||
// if (SerialPortMessageReceive != null)
|
// if (SerialPortMessageReceive != null)
|
||||||
// SerialPortMessageReceive(sdata);
|
// SerialPortMessageReceive(sdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//https://stackoverflow.com/questions/13418795/convert-byte-array-to-structure-in-the-compact-framework
|
|
||||||
public static void serialPortMessage(String commPort, String Message)
|
public static void serialPortMessage(String commPort, String Message)
|
||||||
{
|
{
|
||||||
IntPtr pCommPort = Marshal.StringToBSTR(commPort.ToString());
|
IntPtr pCommPort = Marshal.StringToBSTR(commPort.ToString());
|
||||||
|
|
|
@ -23,8 +23,27 @@
|
||||||
멀티형 8,10,12열 컨베어/스틱 계량기
|
멀티형 8,10,12열 컨베어/스틱 계량기
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ Ver 12.3.0 by LSJ
|
||||||
|
- 2025.02.27
|
||||||
|
- Ver 12.2.1 Modify
|
||||||
|
- Framework : SmartX Framework V3.2.4(update: 2021.01.20)
|
||||||
|
- SerialDll 사용
|
||||||
|
Serial callback 수정(string)
|
||||||
|
serialRcvPacketStrMsgCallback
|
||||||
|
serialRcvErrPacketStrMsgCallback
|
||||||
|
|
||||||
|
@ Ver 12.2.3 by LSJ
|
||||||
|
- 2025.03.13
|
||||||
|
- Ver 12.2.2 Modify
|
||||||
|
- Framework : SmartX Framework V3.2.4(update: 2021.01.20)
|
||||||
|
- 영테크팩 요청사항 추가
|
||||||
|
OP6 프로토콜 수정
|
||||||
|
중량 설정값 추가
|
||||||
|
OPT6 : STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]
|
||||||
|
--> STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6],PASS CNT[7],NG CNT[7],TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]
|
||||||
|
|
||||||
@ Ver 12.2.2 by LSJ
|
@ Ver 12.2.2 by LSJ
|
||||||
- 2025.02.04
|
- 2025.03.04
|
||||||
- Ver 12.2.1 Modify
|
- Ver 12.2.1 Modify
|
||||||
- Framework : SmartX Framework V3.2.4(update: 2021.01.20)
|
- Framework : SmartX Framework V3.2.4(update: 2021.01.20)
|
||||||
- 영문 버그 수정
|
- 영문 버그 수정
|
||||||
|
|
Loading…
Reference in New Issue