Compare commits

..

No commits in common. "master" and "V12.2.0" have entirely different histories.

11 changed files with 425 additions and 1032 deletions

View File

@ -32,13 +32,14 @@
this.textBox = new System.Windows.Forms.TextBox(); this.textBox = new System.Windows.Forms.TextBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.smartKeyboard = new SmartX.SmartKeyboard(); this.smartKeyboard = new SmartX.SmartKeyboard();
this.labelTitle = new SmartX.SmartLabel();
this.pictureBoxImage = new System.Windows.Forms.PictureBox(); this.pictureBoxImage = new System.Windows.Forms.PictureBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// textBox // textBox
// //
this.textBox.Font = new System.Drawing.Font("Arial", 25F, System.Drawing.FontStyle.Regular); this.textBox.Font = new System.Drawing.Font("Arial", 25F, System.Drawing.FontStyle.Regular);
this.textBox.Location = new System.Drawing.Point(143, 82); this.textBox.Location = new System.Drawing.Point(143, 99);
this.textBox.MaxLength = 20; this.textBox.MaxLength = 20;
this.textBox.Name = "textBox"; this.textBox.Name = "textBox";
this.textBox.Size = new System.Drawing.Size(489, 45); this.textBox.Size = new System.Drawing.Size(489, 45);
@ -88,6 +89,27 @@
this.smartKeyboard.OnXKeyClick += new System.EventHandler(this.smartKeyboard_OnXKeyClick); this.smartKeyboard.OnXKeyClick += new System.EventHandler(this.smartKeyboard_OnXKeyClick);
this.smartKeyboard.KeyDown += new System.Windows.Forms.KeyEventHandler(this.smartKeyboard_KeyDown); this.smartKeyboard.KeyDown += new System.Windows.Forms.KeyEventHandler(this.smartKeyboard_KeyDown);
// //
// labelTitle
//
this.labelTitle.BackColor = System.Drawing.Color.White;
this.labelTitle.BackPictureBox = null;
this.labelTitle.BackPictureBox1 = null;
this.labelTitle.BackPictureBox2 = null;
this.labelTitle.BorderColor = System.Drawing.Color.Black;
this.labelTitle.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitle.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold);
this.labelTitle.ForeColor = System.Drawing.Color.Gray;
this.labelTitle.InitVisible = true;
this.labelTitle.LineSpacing = 0F;
this.labelTitle.Location = new System.Drawing.Point(143, 43);
this.labelTitle.Name = "labelTitle";
this.labelTitle.Size = new System.Drawing.Size(489, 50);
this.labelTitle.TabIndex = 180;
this.labelTitle.Text = "입력";
this.labelTitle.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
this.labelTitle.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelTitle.Wordwrap = false;
//
// pictureBoxImage // pictureBoxImage
// //
this.pictureBoxImage.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxImage.Image"))); this.pictureBoxImage.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxImage.Image")));
@ -103,6 +125,7 @@
this.ClientSize = new System.Drawing.Size(710, 470); this.ClientSize = new System.Drawing.Size(710, 470);
this.ControlBox = false; this.ControlBox = false;
this.Controls.Add(this.pictureBoxImage); this.Controls.Add(this.pictureBoxImage);
this.Controls.Add(this.labelTitle);
this.Controls.Add(this.smartKeyboard); this.Controls.Add(this.smartKeyboard);
this.Controls.Add(this.textBox); this.Controls.Add(this.textBox);
this.Controls.Add(this.pictureBox1); this.Controls.Add(this.pictureBox1);
@ -118,6 +141,7 @@
private System.Windows.Forms.TextBox textBox; private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox1;
private SmartX.SmartKeyboard smartKeyboard; private SmartX.SmartKeyboard smartKeyboard;
private SmartX.SmartLabel labelTitle;
private System.Windows.Forms.PictureBox pictureBoxImage; private System.Windows.Forms.PictureBox pictureBoxImage;
} }
} }

View File

@ -37,6 +37,7 @@
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();
@ -65,6 +66,7 @@
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();
@ -182,6 +184,7 @@
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);
@ -268,6 +271,25 @@
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;
@ -280,12 +302,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, 46); this.labelProtocolDescriptionCOM3_1.Size = new System.Drawing.Size(320, 20);
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.Top; this.labelProtocolDescriptionCOM3_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelProtocolDescriptionCOM3_1.Wordwrap = true; this.labelProtocolDescriptionCOM3_1.Wordwrap = false;
// //
// labelABFoodTimeoutInterval // labelABFoodTimeoutInterval
// //
@ -776,6 +798,7 @@
// //
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);
@ -817,6 +840,25 @@
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;
@ -829,12 +871,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, 46); this.labelProtocolDescriptionEthernet_1.Size = new System.Drawing.Size(320, 20);
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.Top; this.labelProtocolDescriptionEthernet_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelProtocolDescriptionEthernet_1.Wordwrap = true; this.labelProtocolDescriptionEthernet_1.Wordwrap = false;
// //
// labelStartAddress // labelStartAddress
// //
@ -1524,6 +1566,7 @@
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;
@ -1588,6 +1631,7 @@
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;

View File

@ -159,7 +159,6 @@ namespace INT69DC_7C.Forms
this.comboBoxMode.Items.Add("OPT3"); this.comboBoxMode.Items.Add("OPT3");
this.comboBoxMode.Items.Add("Modbus"); this.comboBoxMode.Items.Add("Modbus");
this.comboBoxMode.Items.Add("OPT5"); this.comboBoxMode.Items.Add("OPT5");
this.comboBoxMode.Items.Add("OPT6");
this.comboBoxMode.SelectedIndex = 0; this.comboBoxMode.SelectedIndex = 0;
this.comboBoxMode.SelectedIndexChanged += new EventHandler(this.comboBoxMode_SelectedIndexChanged); this.comboBoxMode.SelectedIndexChanged += new EventHandler(this.comboBoxMode_SelectedIndexChanged);
@ -181,7 +180,6 @@ namespace INT69DC_7C.Forms
this.comboBoxSerial3Mode.Items.Add("OPT4"); this.comboBoxSerial3Mode.Items.Add("OPT4");
this.comboBoxSerial3Mode.Items.Add("Printer"); this.comboBoxSerial3Mode.Items.Add("Printer");
this.comboBoxSerial3Mode.Items.Add("OPT5"); this.comboBoxSerial3Mode.Items.Add("OPT5");
this.comboBoxSerial3Mode.Items.Add("OPT6");
this.comboBoxSerial3Mode.SelectedIndex = 0; this.comboBoxSerial3Mode.SelectedIndex = 0;
this.comboBoxSerial3Mode.SelectedIndexChanged += new EventHandler(this.comboBoxSerial3_SelectedIndexChanged); this.comboBoxSerial3Mode.SelectedIndexChanged += new EventHandler(this.comboBoxSerial3_SelectedIndexChanged);
} }
@ -332,8 +330,6 @@ 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)
data = this.ParentForm.Protocol_OPT6(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData, this.ParentForm.CurrentProductItem);
switch (this.ParentForm.SystemConfig.EthernetOperationMode) switch (this.ParentForm.SystemConfig.EthernetOperationMode)
{ {
@ -363,8 +359,6 @@ namespace INT69DC_7C.Forms
data = this.ParentForm.Protocol_OPT3(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData[lane - 1], lane, this.ParentForm.CurrentProductItem); data = this.ParentForm.Protocol_OPT3(this.ParentForm.SystemConfig, this.ParentForm.CollectionWeightData[lane - 1], lane, 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[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)
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)
{ {
@ -384,6 +378,158 @@ namespace INT69DC_7C.Forms
break; break;
} }
} }
private void UpdateProtocolDescriptionCom3Display()
{
if (this.comboBoxSerial3Mode.SelectedIndex == 1)
{
#region OPT1
this.labelProtocolDescriptionCOM3_1.Text = "Private use";
this.labelProtocolDescriptionCOM3_2.Text = "";
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 2)
{
#region OPT2
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],";
this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
}
else
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],";
this.labelProtocolDescriptionCOM3_2.Text = "WEIGHT[6],ETX[1]";
}
}
else
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],";
this.labelProtocolDescriptionCOM3_2.Text = "WEIGHT[6],ETX[1]";
}
else
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],";
this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
}
}
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 3)
{
#region OPT3
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],";
this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
}
else
{
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
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
{
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
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],";
this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
}
}
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 4)
{
#region OPT4
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],";
this.labelProtocolDescriptionCOM3_2.Text = "{SIGN[1],WEIGHT[6]} * n,ETX[1]";
}
else
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],";
this.labelProtocolDescriptionCOM3_2.Text = "SIGN[1],WEIGHT[6],ETX[1]";
}
}
else
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],";
this.labelProtocolDescriptionCOM3_2.Text = "SIGN[1],WEIGHT[6],ETX[1]";
}
else
{
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],";
this.labelProtocolDescriptionCOM3_2.Text = "{SIGN[1],WEIGHT[6]} * n,ETX[1]";
}
}
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 5)
{
#region Printer
this.labelProtocolDescriptionCOM3_1.Text = "NO[4], LANE[2], GRADE[1], WEIGHT[6],";
this.labelProtocolDescriptionCOM3_2.Text = "COUNT[9]";
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 6)
{
#region OPT5
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
{
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
{
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
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
{
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
{
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
}
else
{
#region None
this.labelProtocolDescriptionCOM3_1.Text = "COM3 Protocol Description";
this.labelProtocolDescriptionCOM3_2.Text = "COM3 Protocol Description";
#endregion
}
}
private void LocalIPEnable(bool enable) private void LocalIPEnable(bool enable)
{ {
Color tempColor; Color tempColor;
@ -493,6 +639,35 @@ namespace INT69DC_7C.Forms
break; break;
} }
} }
private void UpdateDisplayFormat(int index)
{
if (index == 1)
{
#region OPT2
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],";
this.labelProtocolDescriptionEthernet_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
#endregion
}
else if (index == 2)
{
#region OPT3
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],";
this.labelProtocolDescriptionEthernet_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]";
#endregion
}
else if (index == 4)
{
#region OPT5
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
}
else
{
this.labelProtocolDescriptionEthernet_1.Text = "";
this.labelProtocolDescriptionEthernet_2.Text = "";
}
}
public void DisplayLabelLocalPort(bool bValue) public void DisplayLabelLocalPort(bool bValue)
{ {
if (bValue == false) if (bValue == false)
@ -512,239 +687,6 @@ namespace INT69DC_7C.Forms
this.labelClientStatus.Text = value; this.labelClientStatus.Text = value;
} }
private void UpdateProtocolDescriptionEthernetDisplay(int index)
{
if (index == 1)
{
#region OPT2
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]";
else
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
}
else
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
else
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]";
}
#endregion
}
else if (index == 2)
{
#region OPT3
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
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]";
else
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
}
else
{
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]";
else
this.labelProtocolDescriptionEthernet_1.Text = "STX[1],ID[5],NO[4],PASS[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
}
#endregion
}
else if (index == 4)
{
#region OPT5
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
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]";
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]";
}
else
{
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]";
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]";
}
#endregion
}
else if (index == 5)
{
#region OPT6
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
{
this.labelProtocolDescriptionEthernet_1.Text =
"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
{
this.labelProtocolDescriptionEthernet_1.Text =
"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
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
{
this.labelProtocolDescriptionEthernet_1.Text =
"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
{
this.labelProtocolDescriptionEthernet_1.Text =
"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
}
else
{
this.labelProtocolDescriptionEthernet_1.Text = "";
}
}
private void UpdateProtocolDescriptionCom3Display()
{
if (this.comboBoxSerial3Mode.SelectedIndex == 1)
{
#region OPT1
this.labelProtocolDescriptionCOM3_1.Text = "Private use";
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 2)
{
#region OPT2
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]";
else
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
}
else
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
else
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]";
}
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 3)
{
#region OPT3
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
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]";
else
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],LANE[2],GRD[1],WEIGHT[6],ETX[1]";
}
else
{
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]";
else
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],PASS[6],{GRD[1],WEIGHT[6]} * n,ETX[1]";
}
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 4)
{
#region OPT4
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{SIGN[1],WEIGHT[6]} * n,ETX[1]";
else
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],SIGN[1],WEIGHT[6],ETX[1]";
}
else
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],LANE[2],SIGN[1],WEIGHT[6],ETX[1]";
else
this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{SIGN[1],WEIGHT[6]} * n,ETX[1]";
}
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 5)
{
#region Printer
this.labelProtocolDescriptionCOM3_1.Text = "NO[4], LANE[2], GRADE[1], WEIGHT[6],COUNT[9]";
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 6)
{
#region OPT5
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
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]";
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]";
}
else
{
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]";
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]";
}
#endregion
}
else if (this.comboBoxSerial3Mode.SelectedIndex == 7)
{
#region OPT6
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
{
this.labelProtocolDescriptionCOM3_1.Text =
"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
{
this.labelProtocolDescriptionCOM3_1.Text =
"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
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
{
this.labelProtocolDescriptionCOM3_1.Text =
"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
{
this.labelProtocolDescriptionCOM3_1.Text =
"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
}
else
{
#region None
this.labelProtocolDescriptionCOM3_1.Text = "COM3 Protocol Description";
#endregion
}
}
public void DisplayRefresh() public void DisplayRefresh()
{ {
string value = ""; string value = "";
@ -757,7 +699,7 @@ namespace INT69DC_7C.Forms
// Local IP // Local IP
this.UpdateLocalIPAddressDisplay(); this.UpdateLocalIPAddressDisplay();
// Format // Format
this.UpdateProtocolDescriptionEthernetDisplay(this.ParentForm.SystemConfig.EthernetMode); this.UpdateDisplayFormat(this.ParentForm.SystemConfig.EthernetMode);
// Setting Data visible // Setting Data visible
this.UpdateDisplaySettingData(this.ParentForm.SystemConfig.EthernetMode); this.UpdateDisplaySettingData(this.ParentForm.SystemConfig.EthernetMode);
@ -1006,7 +948,7 @@ namespace INT69DC_7C.Forms
this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig);
this.UpdateDisplaySettingData(this.ParentForm.SystemConfig.EthernetMode); this.UpdateDisplaySettingData(this.ParentForm.SystemConfig.EthernetMode);
this.UpdateProtocolDescriptionEthernetDisplay(this.ParentForm.SystemConfig.EthernetMode); this.UpdateDisplayFormat(this.ParentForm.SystemConfig.EthernetMode);
after = this.comboBoxMode.SelectedItem.ToString(); after = this.comboBoxMode.SelectedItem.ToString();
@ -1648,9 +1590,8 @@ namespace INT69DC_7C.Forms
} }
else if (this.ParentForm.SystemConfig.Serial3Mode == 6) else if (this.ParentForm.SystemConfig.Serial3Mode == 6)
{ {
#region OPT5
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3 if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7) || this.ParentForm.SystemConfig.EquipmentMode == 7)
{ {
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false) if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
this.ParentForm.SerialCH3OPT5(this.ParentForm.CollectionWeightData); this.ParentForm.SerialCH3OPT5(this.ParentForm.CollectionWeightData);
@ -1667,30 +1608,6 @@ namespace INT69DC_7C.Forms
else else
this.ParentForm.SerialCH3OPT5(this.ParentForm.CollectionWeightData); this.ParentForm.SerialCH3OPT5(this.ParentForm.CollectionWeightData);
} }
#endregion
}
else if (this.ParentForm.SystemConfig.Serial3Mode == 7)
{
#region OPT6
if (this.ParentForm.SystemConfig.EquipmentMode == 1 || this.ParentForm.SystemConfig.EquipmentMode == 3
|| this.ParentForm.SystemConfig.EquipmentMode == 7)
{
if (this.ParentForm.SystemConfig.IsIndividualTransmission == false)
this.ParentForm.SerialCH3OPT6(this.ParentForm.CollectionWeightData);
else
{
for (int i = 0; i < this.ParentForm.SystemConfig.EquipmentColumns; i++)
this.ParentForm.SerialCH3OPT6(i + 1, this.ParentForm.CollectionWeightData[i]);
}
}
else if (this.ParentForm.SystemConfig.EquipmentMode == 2)
{
if (this.ParentForm.SystemConfig.IsIntegratedTransmission == false)
this.ParentForm.SerialCH3OPT6(1, this.ParentForm.CollectionWeightData[0]);
else
this.ParentForm.SerialCH3OPT6(this.ParentForm.CollectionWeightData);
}
#endregion
} }
} }
private void buttonSerialSave_Click(object sender, EventArgs e) private void buttonSerialSave_Click(object sender, EventArgs e)

View File

@ -142,8 +142,7 @@ namespace INT69DC_7C.Forms
} }
private void DefaultSetting() private void DefaultSetting()
{ {
this.labelDisplayVer.Text = "12.3.0"; this.labelDisplayVer.Text = "12.2.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

File diff suppressed because it is too large Load Diff

View File

@ -162,7 +162,7 @@
this.smartLabel6.LineSpacing = 0F; this.smartLabel6.LineSpacing = 0F;
this.smartLabel6.Location = new System.Drawing.Point(503, 340); this.smartLabel6.Location = new System.Drawing.Point(503, 340);
this.smartLabel6.Name = "smartLabel6"; this.smartLabel6.Name = "smartLabel6";
this.smartLabel6.Size = new System.Drawing.Size(450, 25); this.smartLabel6.Size = new System.Drawing.Size(420, 25);
this.smartLabel6.TabIndex = 233; this.smartLabel6.TabIndex = 233;
this.smartLabel6.Text = "※ Print ON : activate [Data Statistics]"; this.smartLabel6.Text = "※ Print ON : activate [Data Statistics]";
this.smartLabel6.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left; this.smartLabel6.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
@ -233,7 +233,7 @@
this.smartLabel3.LineSpacing = 0F; this.smartLabel3.LineSpacing = 0F;
this.smartLabel3.Location = new System.Drawing.Point(503, 387); this.smartLabel3.Location = new System.Drawing.Point(503, 387);
this.smartLabel3.Name = "smartLabel3"; this.smartLabel3.Name = "smartLabel3";
this.smartLabel3.Size = new System.Drawing.Size(450, 25); this.smartLabel3.Size = new System.Drawing.Size(420, 25);
this.smartLabel3.TabIndex = 230; this.smartLabel3.TabIndex = 230;
this.smartLabel3.Text = "※ Part11 ON : activate [Login], [Data backup], [Statistics]"; this.smartLabel3.Text = "※ Part11 ON : activate [Login], [Data backup], [Statistics]";
this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left; this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;

View File

@ -58,53 +58,17 @@ namespace INT69DC_7C.Forms
{ {
ImageDll images = new ImageDll(); ImageDll images = new ImageDll();
switch (this.ParentForm.SystemConfig.Language) if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English)
{ {
case DataStore.LanguageID.Korean: this.labelTitle.Text = "Group Editor";
this.labelTitle.Text = "그룹 에디터";
break;
case DataStore.LanguageID.English:
this.labelTitle.Text = "Group Editor";
this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveDisable)); this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable));
this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveDown)); this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown));
this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveUp)); this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp));
this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); }
this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); else
this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); {
break; this.labelTitle.Text = "그룹 에디터";
case DataStore.LanguageID.Chinese:
this.labelTitle.Text = "组编辑";
this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveDisable));
this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveDown));
this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveUp));
this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable));
this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown));
this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp));
break;
case DataStore.LanguageID.Czech:
this.labelTitle.Text = "Group Editor";
this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveDisable));
this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveDown));
this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveUp));
this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable));
this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown));
this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp));
break;
case DataStore.LanguageID.German:
this.labelTitle.Text = "Group Editor";
this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveDisable));
this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveDown));
this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveUp));
this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable));
this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown));
this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp));
break;
default:
break;
} }
} }
private void DefaultSetting() private void DefaultSetting()

View File

@ -394,58 +394,6 @@ 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로 나눈 나머지값 리턴

View File

@ -27,15 +27,9 @@ 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);
@ -48,15 +42,9 @@ 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();

View File

@ -14,9 +14,7 @@ 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()
@ -33,17 +31,11 @@ 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);
fnSerialMgrRcvPacketStrCallback = serialRcvPacketStrMsgCallback; fnSerialMgrRcvErrPacketCallback = serialRcvErrPacketMsgCallback;
DLL_SerialMgr_Register_RcvPacketStrCB(fnSerialMgrRcvPacketStrCallback); DLL_SerialMgr_Register_RcvErrPacketCB(fnSerialMgrRcvErrPacketCallback);
//fnSerialMgrRcvErrPacketCallback = serialRcvErrPacketMsgCallback;
//DLL_SerialMgr_Register_RcvErrPacketCB(fnSerialMgrRcvErrPacketCallback);
fnSerialMgrRcvErrPacketStrCallback = serialRcvErrPacketStrMsgCallback;
DLL_SerialMgr_Register_RcvErrPacketStrCB(fnSerialMgrRcvErrPacketStrCallback);
// test // test
//DLL_SerialMgr_HelloWorld(); //DLL_SerialMgr_HelloWorld();
@ -98,6 +90,7 @@ 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
@ -115,29 +108,39 @@ 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)
{ {
@ -156,29 +159,41 @@ 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
@ -189,6 +204,7 @@ 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());
@ -196,6 +212,7 @@ 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());
@ -212,6 +229,9 @@ 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());

View File

@ -23,47 +23,6 @@
멀티형 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
- 2025.03.04
- Ver 12.2.1 Modify
- Framework : SmartX Framework V3.2.4(update: 2021.01.20)
- 영문 버그 수정
유저설정 - 테스트 설정 팝업 '입력' 한글 버그
유저그룹설정 - 저장 버튼 한글 버그
- 영테크팩 요청 프로토콜 추가
수량 데이터 추가(totalPass, totalNG, totalAll)
OPT6 : STX[1],ID[5],NO[4],PASS CNT[7],NG CNT[7],TOTAL CNT[9],{GRD[1],WEIGHT[6]} * n,ETX[1]
@ Ver 12.2.1 by LSJ
- 2025.01.02
- Ver 12.2.0 Modify
- Framework : SmartX Framework V3.2.4(update: 2021.01.20)
- 시스템설정
판정 그래프 안그려지는 버그 수정
// 판정설정 그래프
private int ReceiveCommandSG0(string lane, string receiveData)
temp = 12 -> 20 수정
속도 데이터가 추가 되어있다고함(실제로는 -99990000 이거만 수신됨..)
@ Ver 12.2.0 by LSJ @ Ver 12.2.0 by LSJ
- 2024.12.19 - 2024.12.19
- Ver 12.1.0 Modify - Ver 12.1.0 Modify