- (버그수정) Print 통신 선택 시 포맷 깨지는 부분 수정

- 메인화면 [인쇄] 버튼 1, 2열 동시 사용(개별출력기능)
 - 기능설정 - 스위치 채터링 추가
master V3.2.0
CJY 2025-11-29 14:05:36 +09:00
parent e77336f3b3
commit 89c7ccfbf0
17 changed files with 2411 additions and 2408 deletions

View File

@ -172,8 +172,18 @@ namespace ITC81DB_2.Controls
if (this.labelTotalCount1.Text != value)
this.labelTotalCount1.Text = value;
if (data.StartTime.Year == 1111 || data.StopTime.Year == 1111)
data.StartTime = data.StopTime = DateTime.Now;
if (data.StartTime.Year == 1111)
{
data.StartTime = DateTime.Now;
this.SelectedWeightData1.StartTime = data.StartTime;
this.ParentForm.ParentForm.SaveCounterFile1(this.SelectedWeightData1, this.SelectedProductNo - 1);
}
if (data.StopTime.Year == 1111)
{
data.StopTime = DateTime.Now;
this.SelectedWeightData1.StopTime = data.StopTime;
this.ParentForm.ParentForm.SaveCounterFile1(this.SelectedWeightData1, this.SelectedProductNo - 1);
}
value = data.StartTime.ToString("yyyy-MM-dd HH:mm:ss");
if (this.labelStartTime.Text != value)
@ -268,6 +278,19 @@ namespace ITC81DB_2.Controls
value = data.TotalCount.ToString();
if (this.labelTotalCount2.Text != value)
this.labelTotalCount2.Text = value;
if (data.StartTime.Year == 1111)
{
data.StartTime = DateTime.Now;
this.SelectedWeightData2.StartTime = data.StartTime;
this.ParentForm.ParentForm.SaveCounterFile2(this.SelectedWeightData2, this.SelectedProductNo - 1);
}
if (data.StopTime.Year == 1111)
{
data.StopTime = DateTime.Now;
this.SelectedWeightData2.StopTime = data.StopTime;
this.ParentForm.ParentForm.SaveCounterFile2(this.SelectedWeightData2, this.SelectedProductNo - 1);
}
}
public void DisplayPrintButton(SystemConfigurationItem system)
@ -485,6 +508,10 @@ namespace ITC81DB_2.Controls
this.ParentForm.ParentForm.LoadCounterFile1(ref this.SelectedWeightData1, this.SelectedProductNo - 1);
this.ParentForm.ParentForm.LoadProductFile1(ref this.SelectedProductItem1, this.SelectedProductNo - 1);
this.UpdateDisplay1(this.SelectedWeightData1, this.SelectedProductItem1);
this.ParentForm.ParentForm.LoadCounterFile2(ref this.SelectedWeightData2, this.SelectedProductNo - 1);
this.ParentForm.ParentForm.LoadProductFile2(ref this.SelectedProductItem2, this.SelectedProductNo - 1);
this.UpdateDisplay2(this.SelectedWeightData2, this.SelectedProductItem2);
}
}

View File

@ -259,6 +259,7 @@ namespace ITC81DB_2.Controls
this.comboBoxEthernetMode.Items.Add("Remote");
this.comboBoxEthernetMode.Items.Add("Printer");
this.comboBoxEthernetMode.Items.Add("STD2"); // STD2
this.comboBoxEthernetMode.Items.Add("imaje 9028 OPT2"); // 한맥
this.comboBoxEthernetMode.SelectedIndexChanged += new EventHandler(this.comboBoxEthernetMode_SelectedIndexChanged);
}
@ -303,6 +304,9 @@ namespace ITC81DB_2.Controls
case 4: // STD2
this.labelFormat.Text = "STX[1],ID[5],No[4],Lane[1],U[6],P[6],O[6],UC[7],PC[7],OC[7],ExC[7],TC[9],Grd[1],Sign[1],Weight[6],ETX[1]";
break;
case (int)Define.E_CommMode.f5_imaje_9028_OPT2: // imaje_9028_OPT2
this.labelFormat.Text = "ENQ ->(30ms) 0x99, 0x00, 0x07, 0x12, Weight[5], 0x12, Checksum[1]";
break;
default:
break;
}
@ -330,7 +334,7 @@ namespace ITC81DB_2.Controls
this.buttonTestSend.Enabled = true;
if (this.comboBoxEthernetMode.SelectedIndex == (int)Define.E_CommMode.f5_Modbus&& this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
if (this.comboBoxEthernetMode.SelectedIndex == (int)Define.E_CommMode.f99_Modbus&& this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
{
this.ControlModbusTCP.DisplayRefresh(this.ParentForm.CurrentConfigurationMenu());
this.ControlModbusTCP.Visible = true;
@ -508,7 +512,7 @@ namespace ITC81DB_2.Controls
sb.Append((char)0x03);
#endregion
break;
case (int)Define.E_CommMode.f5_Modbus:
case (int)Define.E_CommMode.f99_Modbus:
#region Modbus TCP(16. Write Multiple Registers)
if (this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
{
@ -914,10 +918,10 @@ namespace ITC81DB_2.Controls
this.ParentForm.ParentForm.SystemConfig.EthernetCommMode = mode;
afterComMode = this.ParentForm.ParentForm.ChildFormMenu.CenterConfiSerial.ReturnCommunicationModeName(mode);
if ((this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f5_Modbus
|| this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f5_Modbus
|| this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f5_Modbus
|| this.ParentForm.ParentForm.SystemConfig.EthernetCommMode == (int)Define.E_CommMode.f5_Modbus)
if ((this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f99_Modbus
|| this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f99_Modbus
|| this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f99_Modbus
|| this.ParentForm.ParentForm.SystemConfig.EthernetCommMode == (int)Define.E_CommMode.f99_Modbus)
&& this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
{
this.ParentForm.ParentForm.ChildFormMainDisplay.MainBottomModbusIconAdd(true);

View File

@ -208,6 +208,8 @@ namespace ITC81DB_2.Controls
this.comboBoxSerialMode.Items.Add("Remote");
this.comboBoxSerialMode.Items.Add("Printer");
this.comboBoxSerialMode.Items.Add("STD2");
this.comboBoxSerialMode.Items.Add("imaje 9028 OPT2"); // 한맥
//this.comboBoxSerialMode.Items.Add("-");
this.comboBoxSerialMode.SelectedIndexChanged += new EventHandler(this.comboBoxSerialMode_SelectedIndexChanged);
}
@ -259,62 +261,9 @@ namespace ITC81DB_2.Controls
case 3:
return "Drucker";
case 4:
return "imaje9410-1";
case 5:
return "imaje9028-1";
case 6:
return "OPT0";
case 7:
return "imaje9410-2";
case 8:
return "imaje9028-2";
case 9:
return "Hitachi";
case 10:
return "MACSA";
case 11:
return "Markoprint";
case 12:
return "alphaJET";
case 13:
return "VJ1510";
case 14:
return "OPT1";
case 15:
return "OPT2";
case 16:
return "OPC";
case 17:
return "OPT3";
case 18:
return "HP-200";
case 19:
return "Smart Jet";
case 20:
return "imaje 9410 OPT3";
case 21:
return "RFID R420";
case 22:
if (this.ParentForm.ParentForm.SystemConfig.IsModbus == false)
return "-";
else
return "Modbus";
case 23:
return "STD2";
case 24:
return "MULTi-JET";
case 25:
return "DJ(VIDEOJET)";
case 26:
return "LINX8830";
case 27:
return "MYJET";
case 28:
return "OPT4";
case 29:
return "OPT5";
case 30:
return "STD3";
case 5:
return "imaje9028-2";
default:
return "Keiner";
}
@ -334,62 +283,9 @@ namespace ITC81DB_2.Controls
case 3:
return "Impresora industrial";
case 4:
return "imaje9410-1";
case 5:
return "imaje9028-1";
case 6:
return "OPT0";
case 7:
return "imaje9410-2";
case 8:
return "imaje9028-2";
case 9:
return "Hitachi";
case 10:
return "MACSA";
case 11:
return "Markoprint";
case 12:
return "alphaJET";
case 13:
return "VJ1510";
case 14:
return "OPT1";
case 15:
return "OPT2";
case 16:
return "OPC";
case 17:
return "OPT3";
case 18:
return "HP-200";
case 19:
return "Smart Jet";
case 20:
return "imaje 9410 OPT3";
case 21:
return "RFID R420";
case 22:
if (this.ParentForm.ParentForm.SystemConfig.IsModbus == false)
return "-";
else
return "Modbus";
case 23:
return "STD2";
case 24:
return "MULTi-JET";
case 25:
return "DJ(VIDEOJET)";
case 26:
return "LINX8830";
case 27:
return "MYJET";
case 28:
return "OPT4";
case 29:
return "OPT5";
case 30:
return "STD3";
case 5:
return "imaje9028-2";
default:
return "Ninguna";
}
@ -409,62 +305,9 @@ namespace ITC81DB_2.Controls
case 3:
return "Printer";
case 4:
return "imaje9410-1";
case 5:
return "imaje9028-1";
case 6:
return "OPT0";
case 7:
return "imaje9410-2";
case 8:
return "imaje9028-2";
case 9:
return "Hitachi";
case 10:
return "MACSA";
case 11:
return "Markoprint";
case 12:
return "alphaJET";
case 13:
return "VJ1510";
case 14:
return "OPT1";
case 15:
return "OPT2";
case 16:
return "OPC";
case 17:
return "OPT3";
case 18:
return "HP-200";
case 19:
return "Smart Jet";
case 20:
return "imaje 9410 OPT3";
case 21:
return "RFID R420";
case 22:
if (this.ParentForm.ParentForm.SystemConfig.IsModbus == false)
return "-";
else
return "Modbus";
case 23:
return "STD2";
case 24:
return "MULTi-JET";
case 25:
return "DJ(VIDEOJET)";
case 26:
return "LINX8830";
case 27:
return "MYJET";
case 28:
return "OPT4";
case 29:
return "OPT5";
case 30:
return "STD3";
case 5:
return "imaje9028-2";
default:
return "None";
}
@ -491,7 +334,10 @@ namespace ITC81DB_2.Controls
case (int)Define.E_CommMode.f4_STD2: // STD2
this.labelFormat.Text = "STX[1],ID[5],No[4],U[6],P[6],O[6],UC[7],PC[7],OC[7],ExC[7],TC[9],Grd[1],Sign[1],Weight[6],ETX[1]";
break;
case (int)Define.E_CommMode.f5_Modbus: // Modbus_TCP
case (int)Define.E_CommMode.f5_imaje_9028_OPT2: // imaje_9028_OPT2
this.labelFormat.Text = "ENQ ->(30ms) 0x99, 0x00, 0x07, 0x12, Weight[5], 0x12, Checksum[1]";
break;
case (int)Define.E_CommMode.f99_Modbus: // Modbus_TCP
if (this.ParentForm.ParentForm.SystemConfig.IsModbus == false)
this.labelFormat.Text = "-";
else
@ -512,7 +358,7 @@ namespace ITC81DB_2.Controls
this.ControlVisible(false);
//this.DisplayBottomSettingMenu();
if (this.comboBoxSerialMode.SelectedIndex == (int)Define.E_CommMode.f5_Modbus && this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
if (this.comboBoxSerialMode.SelectedIndex == (int)Define.E_CommMode.f99_Modbus && this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
this.buttonAddon.Visible = true;
else
this.buttonAddon.Visible = false;
@ -557,7 +403,7 @@ namespace ITC81DB_2.Controls
this.comboBoxSerialMode.SelectedIndex = item.SerialCOM1Mode;
this.comboBoxSerialMode.SelectedIndexChanged += new EventHandler(this.comboBoxSerialMode_SelectedIndexChanged);
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f5_Modbus
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f99_Modbus
&& this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
this.ControlModbusRTU.ModbusRTUDefaultSettings();
else
@ -593,7 +439,7 @@ namespace ITC81DB_2.Controls
this.comboBoxSerialMode.SelectedIndex = item.SerialCOM3Mode;
this.comboBoxSerialMode.SelectedIndexChanged += new EventHandler(this.comboBoxSerialMode_SelectedIndexChanged);
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f5_Modbus
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f99_Modbus
&& this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
this.ControlModbusRTU.ModbusRTUDefaultSettings();
else
@ -630,7 +476,7 @@ namespace ITC81DB_2.Controls
this.comboBoxSerialMode.SelectedIndexChanged += new EventHandler(this.comboBoxSerialMode_SelectedIndexChanged);
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f5_Modbus
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f99_Modbus
&& this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
this.ControlModbusRTU.ModbusRTUDefaultSettings();
else
@ -656,15 +502,13 @@ namespace ITC81DB_2.Controls
string[] afterMode = new string[3];
Define.E_MenuBottomConfiguration temp = this.ParentForm.CurrentConfigurationMenu();
this.ParentForm.ParentForm.ChangeSerialCOM3FrameBufferSize(1024);
this.ParentForm.ParentForm.ChangeSerialCOM3ReceiveDetect(SmartX.SmartSerialPort.RECEIVEDETECTTYPE.EVENT_QUEUE);
beforeBaudrate[0] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM1BaudRate);
beforeBaudrate[1] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM3BaudRate);
beforeBaudrate[2] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM4BaudRate);
beforeMode[0] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode);
beforeMode[1] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode);
beforeMode[2] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode);
//beforeBaudrate[0] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM1BaudRate);
//beforeBaudrate[1] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM3BaudRate);
//beforeBaudrate[2] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM4BaudRate);
//beforeMode[0] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode);
//beforeMode[1] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode);
//beforeMode[2] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode);
this.ControlModbusRTU.SerialDefaultSettings();
@ -676,6 +520,12 @@ namespace ITC81DB_2.Controls
this.ParentForm.ParentForm.SystemConfig.SerialCOM1BaudRate = baudrate;
this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode = mode;
if (mode == (int)Define.E_CommMode.f3_Printer)
{
this.ParentForm.CenterBasicDataStatistics.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMainDisplay.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
}
this.ParentForm.ParentForm.ChangeSerialCOM1FrameSeparateType(Define.E_SeparateType.NONEFRAME_READTIMEOUT);
this.ParentForm.ParentForm.OpenSerialCOM1();
break;
@ -685,6 +535,12 @@ namespace ITC81DB_2.Controls
this.ParentForm.ParentForm.SystemConfig.SerialCOM3BaudRate = baudrate;
this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode = mode;
if (mode == (int)Define.E_CommMode.f3_Printer)
{
this.ParentForm.CenterBasicDataStatistics.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMainDisplay.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
}
this.ParentForm.ParentForm.ChangeSerialCOM3FrameSeparateType(Define.E_SeparateType.NONEFRAME_READTIMEOUT);
this.ParentForm.ParentForm.OpenSerialCOM3();
break;
@ -701,10 +557,10 @@ namespace ITC81DB_2.Controls
break;
}
if ((this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f5_Modbus
|| this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f5_Modbus
|| this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f5_Modbus
|| this.ParentForm.ParentForm.SystemConfig.EthernetCommMode == (int)Define.E_CommMode.f5_Modbus)
if ((this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f99_Modbus
|| this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f99_Modbus
|| this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f99_Modbus
|| this.ParentForm.ParentForm.SystemConfig.EthernetCommMode == (int)Define.E_CommMode.f99_Modbus)
&& this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
{
this.ParentForm.ParentForm.ChildFormMainDisplay.MainBottomModbusIconAdd(true);
@ -712,27 +568,13 @@ namespace ITC81DB_2.Controls
}
else
this.ParentForm.ParentForm.ChildFormMainDisplay.MainBottomModbusIconAdd(false);
afterBaudrate[0] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM1BaudRate);
afterBaudrate[1] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM3BaudRate);
afterBaudrate[2] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM4BaudRate);
afterMode[0] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode);
afterMode[1] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode);
afterMode[2] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode);
//if(beforeBaudrate[0] != afterBaudrate[0])
// this.ParentForm.ParentForm.SetTrackingHistoryData(Define.E_TrackingParameter.COM1Baudrate, "", beforeBaudrate[0], afterBaudrate[0]);
//if (beforeBaudrate[1] != afterBaudrate[1])
// this.ParentForm.ParentForm.SetTrackingHistoryData(Define.E_TrackingParameter.COM3Baudrate, "", beforeBaudrate[1], afterBaudrate[1]);
//if (beforeBaudrate[2] != afterBaudrate[2])
// this.ParentForm.ParentForm.SetTrackingHistoryData(Define.E_TrackingParameter.COM4Baudrate, "", beforeBaudrate[2], afterBaudrate[2]);
//if (beforeMode[0] != afterMode[0])
// this.ParentForm.ParentForm.SetTrackingHistoryData(Define.E_TrackingParameter.COM1Mode, "", beforeMode[0], afterMode[0]);
//if (beforeMode[1] != afterMode[1])
// this.ParentForm.ParentForm.SetTrackingHistoryData(Define.E_TrackingParameter.COM3Mode, "", beforeMode[1], afterMode[1]);
//if (beforeMode[2] != afterMode[2])
// this.ParentForm.ParentForm.SetTrackingHistoryData(Define.E_TrackingParameter.COM4Mode, "", beforeMode[2], afterMode[2]);
//afterBaudrate[0] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM1BaudRate);
//afterBaudrate[1] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM3BaudRate);
//afterBaudrate[2] = this.ReturnBaudrateName(this.ParentForm.ParentForm.SystemConfig.SerialCOM4BaudRate);
//afterMode[0] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode);
//afterMode[1] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode);
//afterMode[2] = this.ReturnCommunicationModeName(this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode);
this.ParentForm.ParentForm.SaveSystemConfigurationFile1(this.ParentForm.ParentForm.SystemConfig);
}
@ -762,7 +604,7 @@ namespace ITC81DB_2.Controls
this.buttonTestSend.Enabled = true;
if (this.comboBoxSerialMode.SelectedIndex == (int)Define.E_CommMode.f5_Modbus && this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
if (this.comboBoxSerialMode.SelectedIndex == (int)Define.E_CommMode.f99_Modbus && this.ParentForm.ParentForm.SystemConfig.IsModbus == true)
{
this.ControlModbusRTU.Visible = true;
this.ControlModbusRTU.BringToFront();
@ -810,8 +652,8 @@ namespace ITC81DB_2.Controls
default:
break;
}
byte[] byteArray = new byte[12];
byte[] weightBytes = new byte[4];
byte[] byteArray = new byte[11];
byte[] weightBytes = new byte[5];
byte[] bytes = new byte[100];
if (this.comboBoxSerialMode.SelectedIndex == 0)
@ -880,6 +722,25 @@ namespace ITC81DB_2.Controls
sb.Append((char)0x03);
#endregion
break;
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
#region imaje 9028 OPT2
// 중량발송 : 0x99
byteArray[0] = 0x99;
// Length : 0x00, 0x02 고정값
byteArray[1] = 0x00;
byteArray[2] = 0x07;
byteArray[3] = 0x12;
weightBytes = new UTF8Encoding().GetBytes("123.4");
for (int i = 0; i < weightBytes.Length; i++)
{
byteArray[i + 4] = weightBytes[i];
}
byteArray[9] = 0x12;
byteArray[10] = 0x00;
byteArray[10] = Helper.ChecksumCalculator(byteArray);
#endregion
break;
default:
isTest = false;
break;
@ -927,7 +788,7 @@ namespace ITC81DB_2.Controls
this.SaveComboBox(this.comboBoxSerialBaudRate.SelectedIndex, this.comboBoxSerialMode.SelectedIndex);
this.ParentForm.ParentForm.ChildFormMainDisplay.UpdateIcomDisplay();
this.ButtonAddOnDisplay();
//this.ButtonAddOnDisplay();
this.buttonSave.Enabled = false;
}

View File

@ -195,7 +195,7 @@
this.labelTitleEquipmentType.BackPictureBox2 = null;
this.labelTitleEquipmentType.BorderColor = System.Drawing.Color.Black;
this.labelTitleEquipmentType.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitleEquipmentType.Font = new System.Drawing.Font("새굴림", 12F, System.Drawing.FontStyle.Bold);
this.labelTitleEquipmentType.Font = new System.Drawing.Font("새굴림", 11F, System.Drawing.FontStyle.Bold);
this.labelTitleEquipmentType.ForeColor = System.Drawing.Color.White;
this.labelTitleEquipmentType.InitVisible = true;
this.labelTitleEquipmentType.LineSpacing = 0F;

View File

@ -53,14 +53,16 @@
this.buttonLogin = new SmartX.SmartButton();
this.labelEquipmentID = new SmartX.SmartLabel();
this.labelTitleEquipmentID = new SmartX.SmartLabel();
this.labelChattering = new SmartX.SmartLabel();
this.labelSensorChattering = new SmartX.SmartLabel();
this.labelRelayOnTime = new SmartX.SmartLabel();
this.labelBuzzerOnTime = new SmartX.SmartLabel();
this.labelTitleChattering = new SmartX.SmartLabel();
this.labelTitleSensorChattering = new SmartX.SmartLabel();
this.labelTitleRelayRunTime = new SmartX.SmartLabel();
this.labelTitleBuzzerONTime = new SmartX.SmartLabel();
this.comboBoxLanguage = new System.Windows.Forms.ComboBox();
this.labelTitleLanguage = new SmartX.SmartLabel();
this.labelSwitchChattering = new SmartX.SmartLabel();
this.labelTitleSwitchChattering = new SmartX.SmartLabel();
this.smartGroupBox1.SuspendLayout();
this.SuspendLayout();
//
@ -69,6 +71,8 @@
this.smartGroupBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(46)))), ((int)(((byte)(46)))));
this.smartGroupBox1.BackPictureBox = null;
this.smartGroupBox1.BackPictureBox1 = null;
this.smartGroupBox1.Controls.Add(this.labelSwitchChattering);
this.smartGroupBox1.Controls.Add(this.labelTitleSwitchChattering);
this.smartGroupBox1.Controls.Add(this.smartLabel8);
this.smartGroupBox1.Controls.Add(this.labelEntryNotDetectedIgnoreTime);
this.smartGroupBox1.Controls.Add(this.labelTitleEntryNotDetectedIgnoreTime);
@ -92,10 +96,10 @@
this.smartGroupBox1.Controls.Add(this.buttonLogin);
this.smartGroupBox1.Controls.Add(this.labelEquipmentID);
this.smartGroupBox1.Controls.Add(this.labelTitleEquipmentID);
this.smartGroupBox1.Controls.Add(this.labelChattering);
this.smartGroupBox1.Controls.Add(this.labelSensorChattering);
this.smartGroupBox1.Controls.Add(this.labelRelayOnTime);
this.smartGroupBox1.Controls.Add(this.labelBuzzerOnTime);
this.smartGroupBox1.Controls.Add(this.labelTitleChattering);
this.smartGroupBox1.Controls.Add(this.labelTitleSensorChattering);
this.smartGroupBox1.Controls.Add(this.labelTitleRelayRunTime);
this.smartGroupBox1.Controls.Add(this.labelTitleBuzzerONTime);
this.smartGroupBox1.Controls.Add(this.comboBoxLanguage);
@ -123,7 +127,7 @@
this.smartLabel8.ForeColor = System.Drawing.Color.White;
this.smartLabel8.InitVisible = true;
this.smartLabel8.LineSpacing = 0F;
this.smartLabel8.Location = new System.Drawing.Point(577, 229);
this.smartLabel8.Location = new System.Drawing.Point(576, 249);
this.smartLabel8.Name = "smartLabel8";
this.smartLabel8.Size = new System.Drawing.Size(30, 28);
this.smartLabel8.TabIndex = 238;
@ -143,7 +147,7 @@
this.labelEntryNotDetectedIgnoreTime.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelEntryNotDetectedIgnoreTime.InitVisible = true;
this.labelEntryNotDetectedIgnoreTime.LineSpacing = 0F;
this.labelEntryNotDetectedIgnoreTime.Location = new System.Drawing.Point(471, 229);
this.labelEntryNotDetectedIgnoreTime.Location = new System.Drawing.Point(470, 249);
this.labelEntryNotDetectedIgnoreTime.Name = "labelEntryNotDetectedIgnoreTime";
this.labelEntryNotDetectedIgnoreTime.Size = new System.Drawing.Size(100, 28);
this.labelEntryNotDetectedIgnoreTime.TabIndex = 237;
@ -163,7 +167,7 @@
this.labelTitleEntryNotDetectedIgnoreTime.ForeColor = System.Drawing.Color.White;
this.labelTitleEntryNotDetectedIgnoreTime.InitVisible = true;
this.labelTitleEntryNotDetectedIgnoreTime.LineSpacing = 0F;
this.labelTitleEntryNotDetectedIgnoreTime.Location = new System.Drawing.Point(110, 229);
this.labelTitleEntryNotDetectedIgnoreTime.Location = new System.Drawing.Point(109, 249);
this.labelTitleEntryNotDetectedIgnoreTime.Name = "labelTitleEntryNotDetectedIgnoreTime";
this.labelTitleEntryNotDetectedIgnoreTime.Size = new System.Drawing.Size(355, 28);
this.labelTitleEntryNotDetectedIgnoreTime.TabIndex = 236;
@ -182,7 +186,7 @@
this.smartLabel7.ForeColor = System.Drawing.Color.White;
this.smartLabel7.InitVisible = true;
this.smartLabel7.LineSpacing = 0F;
this.smartLabel7.Location = new System.Drawing.Point(577, 297);
this.smartLabel7.Location = new System.Drawing.Point(576, 317);
this.smartLabel7.Name = "smartLabel7";
this.smartLabel7.Size = new System.Drawing.Size(30, 28);
this.smartLabel7.TabIndex = 235;
@ -201,7 +205,7 @@
this.smartLabel6.ForeColor = System.Drawing.Color.White;
this.smartLabel6.InitVisible = true;
this.smartLabel6.LineSpacing = 0F;
this.smartLabel6.Location = new System.Drawing.Point(338, 297);
this.smartLabel6.Location = new System.Drawing.Point(337, 317);
this.smartLabel6.Name = "smartLabel6";
this.smartLabel6.Size = new System.Drawing.Size(30, 28);
this.smartLabel6.TabIndex = 234;
@ -220,7 +224,7 @@
this.smartLabel5.ForeColor = System.Drawing.Color.White;
this.smartLabel5.InitVisible = true;
this.smartLabel5.LineSpacing = 0F;
this.smartLabel5.Location = new System.Drawing.Point(577, 87);
this.smartLabel5.Location = new System.Drawing.Point(576, 71);
this.smartLabel5.Name = "smartLabel5";
this.smartLabel5.Size = new System.Drawing.Size(30, 28);
this.smartLabel5.TabIndex = 233;
@ -239,7 +243,7 @@
this.smartLabel4.ForeColor = System.Drawing.Color.White;
this.smartLabel4.InitVisible = true;
this.smartLabel4.LineSpacing = 0F;
this.smartLabel4.Location = new System.Drawing.Point(577, 161);
this.smartLabel4.Location = new System.Drawing.Point(576, 181);
this.smartLabel4.Name = "smartLabel4";
this.smartLabel4.Size = new System.Drawing.Size(30, 28);
this.smartLabel4.TabIndex = 232;
@ -258,7 +262,7 @@
this.labelUnit.ForeColor = System.Drawing.Color.White;
this.labelUnit.InitVisible = true;
this.labelUnit.LineSpacing = 0F;
this.labelUnit.Location = new System.Drawing.Point(577, 195);
this.labelUnit.Location = new System.Drawing.Point(576, 215);
this.labelUnit.Name = "labelUnit";
this.labelUnit.Size = new System.Drawing.Size(30, 28);
this.labelUnit.TabIndex = 231;
@ -277,7 +281,7 @@
this.smartLabel2.ForeColor = System.Drawing.Color.White;
this.smartLabel2.InitVisible = true;
this.smartLabel2.LineSpacing = 0F;
this.smartLabel2.Location = new System.Drawing.Point(577, 263);
this.smartLabel2.Location = new System.Drawing.Point(576, 283);
this.smartLabel2.Name = "smartLabel2";
this.smartLabel2.Size = new System.Drawing.Size(30, 28);
this.smartLabel2.TabIndex = 230;
@ -296,7 +300,7 @@
this.labelJudgmentValue2.ForeColor = System.Drawing.Color.White;
this.labelJudgmentValue2.InitVisible = true;
this.labelJudgmentValue2.LineSpacing = 0F;
this.labelJudgmentValue2.Location = new System.Drawing.Point(512, 297);
this.labelJudgmentValue2.Location = new System.Drawing.Point(511, 317);
this.labelJudgmentValue2.Name = "labelJudgmentValue2";
this.labelJudgmentValue2.Size = new System.Drawing.Size(59, 28);
this.labelJudgmentValue2.TabIndex = 229;
@ -314,7 +318,7 @@
this.labelTitleJudgmentDelay2.ForeColor = System.Drawing.Color.White;
this.labelTitleJudgmentDelay2.InitVisible = true;
this.labelTitleJudgmentDelay2.LineSpacing = 0F;
this.labelTitleJudgmentDelay2.Location = new System.Drawing.Point(374, 297);
this.labelTitleJudgmentDelay2.Location = new System.Drawing.Point(373, 317);
this.labelTitleJudgmentDelay2.Name = "labelTitleJudgmentDelay2";
this.labelTitleJudgmentDelay2.Size = new System.Drawing.Size(132, 28);
this.labelTitleJudgmentDelay2.TabIndex = 228;
@ -333,7 +337,7 @@
this.labelJudgmentValue1.ForeColor = System.Drawing.Color.White;
this.labelJudgmentValue1.InitVisible = true;
this.labelJudgmentValue1.LineSpacing = 0F;
this.labelJudgmentValue1.Location = new System.Drawing.Point(273, 297);
this.labelJudgmentValue1.Location = new System.Drawing.Point(272, 317);
this.labelJudgmentValue1.Name = "labelJudgmentValue1";
this.labelJudgmentValue1.Size = new System.Drawing.Size(59, 28);
this.labelJudgmentValue1.TabIndex = 227;
@ -351,7 +355,7 @@
this.labelTitleJudgmentDelay1.ForeColor = System.Drawing.Color.White;
this.labelTitleJudgmentDelay1.InitVisible = true;
this.labelTitleJudgmentDelay1.LineSpacing = 0F;
this.labelTitleJudgmentDelay1.Location = new System.Drawing.Point(135, 297);
this.labelTitleJudgmentDelay1.Location = new System.Drawing.Point(134, 317);
this.labelTitleJudgmentDelay1.Name = "labelTitleJudgmentDelay1";
this.labelTitleJudgmentDelay1.Size = new System.Drawing.Size(132, 28);
this.labelTitleJudgmentDelay1.TabIndex = 226;
@ -371,7 +375,7 @@
this.labelSensorErrorDetectingTime.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelSensorErrorDetectingTime.InitVisible = true;
this.labelSensorErrorDetectingTime.LineSpacing = 0F;
this.labelSensorErrorDetectingTime.Location = new System.Drawing.Point(471, 263);
this.labelSensorErrorDetectingTime.Location = new System.Drawing.Point(470, 283);
this.labelSensorErrorDetectingTime.Name = "labelSensorErrorDetectingTime";
this.labelSensorErrorDetectingTime.Size = new System.Drawing.Size(100, 28);
this.labelSensorErrorDetectingTime.TabIndex = 225;
@ -391,7 +395,7 @@
this.labelTitleSensorErrorDetectingTime.ForeColor = System.Drawing.Color.White;
this.labelTitleSensorErrorDetectingTime.InitVisible = true;
this.labelTitleSensorErrorDetectingTime.LineSpacing = 0F;
this.labelTitleSensorErrorDetectingTime.Location = new System.Drawing.Point(110, 263);
this.labelTitleSensorErrorDetectingTime.Location = new System.Drawing.Point(109, 283);
this.labelTitleSensorErrorDetectingTime.Name = "labelTitleSensorErrorDetectingTime";
this.labelTitleSensorErrorDetectingTime.Size = new System.Drawing.Size(355, 28);
this.labelTitleSensorErrorDetectingTime.TabIndex = 224;
@ -411,7 +415,7 @@
this.labelEntryNotDetected.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelEntryNotDetected.InitVisible = true;
this.labelEntryNotDetected.LineSpacing = 0F;
this.labelEntryNotDetected.Location = new System.Drawing.Point(471, 195);
this.labelEntryNotDetected.Location = new System.Drawing.Point(470, 215);
this.labelEntryNotDetected.Name = "labelEntryNotDetected";
this.labelEntryNotDetected.Size = new System.Drawing.Size(100, 28);
this.labelEntryNotDetected.TabIndex = 223;
@ -431,7 +435,7 @@
this.labelTitleEntryNotDetected.ForeColor = System.Drawing.Color.White;
this.labelTitleEntryNotDetected.InitVisible = true;
this.labelTitleEntryNotDetected.LineSpacing = 0F;
this.labelTitleEntryNotDetected.Location = new System.Drawing.Point(110, 195);
this.labelTitleEntryNotDetected.Location = new System.Drawing.Point(109, 215);
this.labelTitleEntryNotDetected.Name = "labelTitleEntryNotDetected";
this.labelTitleEntryNotDetected.Size = new System.Drawing.Size(355, 28);
this.labelTitleEntryNotDetected.TabIndex = 222;
@ -502,7 +506,7 @@
this.labelTitleLogin.ForeColor = System.Drawing.Color.White;
this.labelTitleLogin.InitVisible = true;
this.labelTitleLogin.LineSpacing = 0F;
this.labelTitleLogin.Location = new System.Drawing.Point(110, 331);
this.labelTitleLogin.Location = new System.Drawing.Point(109, 351);
this.labelTitleLogin.Name = "labelTitleLogin";
this.labelTitleLogin.Size = new System.Drawing.Size(355, 30);
this.labelTitleLogin.TabIndex = 135;
@ -523,7 +527,7 @@
this.buttonLogin.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonLogin.DownImage")));
this.buttonLogin.GroupID = 0;
this.buttonLogin.InitVisible = true;
this.buttonLogin.Location = new System.Drawing.Point(471, 331);
this.buttonLogin.Location = new System.Drawing.Point(470, 351);
this.buttonLogin.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonLogin.Name = "buttonLogin";
this.buttonLogin.NestedClickEventPrevent = false;
@ -553,7 +557,7 @@
this.labelEquipmentID.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelEquipmentID.InitVisible = true;
this.labelEquipmentID.LineSpacing = 0F;
this.labelEquipmentID.Location = new System.Drawing.Point(471, 51);
this.labelEquipmentID.Location = new System.Drawing.Point(470, 35);
this.labelEquipmentID.Name = "labelEquipmentID";
this.labelEquipmentID.Size = new System.Drawing.Size(100, 30);
this.labelEquipmentID.TabIndex = 133;
@ -573,7 +577,7 @@
this.labelTitleEquipmentID.ForeColor = System.Drawing.Color.White;
this.labelTitleEquipmentID.InitVisible = true;
this.labelTitleEquipmentID.LineSpacing = 0F;
this.labelTitleEquipmentID.Location = new System.Drawing.Point(110, 51);
this.labelTitleEquipmentID.Location = new System.Drawing.Point(109, 35);
this.labelTitleEquipmentID.Name = "labelTitleEquipmentID";
this.labelTitleEquipmentID.Size = new System.Drawing.Size(355, 30);
this.labelTitleEquipmentID.TabIndex = 132;
@ -582,26 +586,26 @@
this.labelTitleEquipmentID.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelTitleEquipmentID.Wordwrap = false;
//
// labelChattering
// labelSensorChattering
//
this.labelChattering.BackColor = System.Drawing.SystemColors.Window;
this.labelChattering.BackPictureBox = null;
this.labelChattering.BackPictureBox1 = null;
this.labelChattering.BackPictureBox2 = null;
this.labelChattering.BorderColor = System.Drawing.Color.Black;
this.labelChattering.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labelChattering.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelChattering.InitVisible = true;
this.labelChattering.LineSpacing = 0F;
this.labelChattering.Location = new System.Drawing.Point(471, 123);
this.labelChattering.Name = "labelChattering";
this.labelChattering.Size = new System.Drawing.Size(100, 30);
this.labelChattering.TabIndex = 129;
this.labelChattering.Text = "100";
this.labelChattering.TextHAlign = SmartX.SmartLabel.TextHorAlign.Right;
this.labelChattering.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelChattering.Wordwrap = false;
this.labelChattering.Click += new System.EventHandler(this.labelChattering_Click);
this.labelSensorChattering.BackColor = System.Drawing.SystemColors.Window;
this.labelSensorChattering.BackPictureBox = null;
this.labelSensorChattering.BackPictureBox1 = null;
this.labelSensorChattering.BackPictureBox2 = null;
this.labelSensorChattering.BorderColor = System.Drawing.Color.Black;
this.labelSensorChattering.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labelSensorChattering.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelSensorChattering.InitVisible = true;
this.labelSensorChattering.LineSpacing = 0F;
this.labelSensorChattering.Location = new System.Drawing.Point(470, 107);
this.labelSensorChattering.Name = "labelSensorChattering";
this.labelSensorChattering.Size = new System.Drawing.Size(100, 30);
this.labelSensorChattering.TabIndex = 129;
this.labelSensorChattering.Text = "100";
this.labelSensorChattering.TextHAlign = SmartX.SmartLabel.TextHorAlign.Right;
this.labelSensorChattering.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelSensorChattering.Wordwrap = false;
this.labelSensorChattering.Click += new System.EventHandler(this.labelSensorChattering_Click);
//
// labelRelayOnTime
//
@ -614,7 +618,7 @@
this.labelRelayOnTime.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelRelayOnTime.InitVisible = true;
this.labelRelayOnTime.LineSpacing = 0F;
this.labelRelayOnTime.Location = new System.Drawing.Point(471, 159);
this.labelRelayOnTime.Location = new System.Drawing.Point(470, 179);
this.labelRelayOnTime.Name = "labelRelayOnTime";
this.labelRelayOnTime.Size = new System.Drawing.Size(100, 30);
this.labelRelayOnTime.TabIndex = 130;
@ -635,7 +639,7 @@
this.labelBuzzerOnTime.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelBuzzerOnTime.InitVisible = true;
this.labelBuzzerOnTime.LineSpacing = 0F;
this.labelBuzzerOnTime.Location = new System.Drawing.Point(471, 87);
this.labelBuzzerOnTime.Location = new System.Drawing.Point(470, 71);
this.labelBuzzerOnTime.Name = "labelBuzzerOnTime";
this.labelBuzzerOnTime.Size = new System.Drawing.Size(100, 30);
this.labelBuzzerOnTime.TabIndex = 131;
@ -645,24 +649,24 @@
this.labelBuzzerOnTime.Wordwrap = false;
this.labelBuzzerOnTime.Click += new System.EventHandler(this.labelBuzzerOnTime_Click);
//
// labelTitleChattering
// labelTitleSensorChattering
//
this.labelTitleChattering.BackPictureBox1 = null;
this.labelTitleChattering.BackPictureBox2 = this.smartGroupBox1;
this.labelTitleChattering.BorderColor = System.Drawing.Color.Black;
this.labelTitleChattering.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitleChattering.Font = new System.Drawing.Font("새굴림", 11F, System.Drawing.FontStyle.Bold);
this.labelTitleChattering.ForeColor = System.Drawing.Color.White;
this.labelTitleChattering.InitVisible = true;
this.labelTitleChattering.LineSpacing = 0F;
this.labelTitleChattering.Location = new System.Drawing.Point(110, 123);
this.labelTitleChattering.Name = "labelTitleChattering";
this.labelTitleChattering.Size = new System.Drawing.Size(355, 30);
this.labelTitleChattering.TabIndex = 127;
this.labelTitleChattering.Text = "채터링감지";
this.labelTitleChattering.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.labelTitleChattering.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelTitleChattering.Wordwrap = false;
this.labelTitleSensorChattering.BackPictureBox1 = null;
this.labelTitleSensorChattering.BackPictureBox2 = this.smartGroupBox1;
this.labelTitleSensorChattering.BorderColor = System.Drawing.Color.Black;
this.labelTitleSensorChattering.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitleSensorChattering.Font = new System.Drawing.Font("새굴림", 11F, System.Drawing.FontStyle.Bold);
this.labelTitleSensorChattering.ForeColor = System.Drawing.Color.White;
this.labelTitleSensorChattering.InitVisible = true;
this.labelTitleSensorChattering.LineSpacing = 0F;
this.labelTitleSensorChattering.Location = new System.Drawing.Point(109, 107);
this.labelTitleSensorChattering.Name = "labelTitleSensorChattering";
this.labelTitleSensorChattering.Size = new System.Drawing.Size(355, 30);
this.labelTitleSensorChattering.TabIndex = 127;
this.labelTitleSensorChattering.Text = "센서채터링";
this.labelTitleSensorChattering.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.labelTitleSensorChattering.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelTitleSensorChattering.Wordwrap = false;
//
// labelTitleRelayRunTime
//
@ -674,7 +678,7 @@
this.labelTitleRelayRunTime.ForeColor = System.Drawing.Color.White;
this.labelTitleRelayRunTime.InitVisible = true;
this.labelTitleRelayRunTime.LineSpacing = 0F;
this.labelTitleRelayRunTime.Location = new System.Drawing.Point(110, 159);
this.labelTitleRelayRunTime.Location = new System.Drawing.Point(109, 179);
this.labelTitleRelayRunTime.Name = "labelTitleRelayRunTime";
this.labelTitleRelayRunTime.Size = new System.Drawing.Size(355, 30);
this.labelTitleRelayRunTime.TabIndex = 126;
@ -693,7 +697,7 @@
this.labelTitleBuzzerONTime.ForeColor = System.Drawing.Color.White;
this.labelTitleBuzzerONTime.InitVisible = true;
this.labelTitleBuzzerONTime.LineSpacing = 0F;
this.labelTitleBuzzerONTime.Location = new System.Drawing.Point(110, 87);
this.labelTitleBuzzerONTime.Location = new System.Drawing.Point(109, 71);
this.labelTitleBuzzerONTime.Name = "labelTitleBuzzerONTime";
this.labelTitleBuzzerONTime.Size = new System.Drawing.Size(355, 30);
this.labelTitleBuzzerONTime.TabIndex = 128;
@ -705,7 +709,7 @@
// comboBoxLanguage
//
this.comboBoxLanguage.Font = new System.Drawing.Font("새굴림", 14F, System.Drawing.FontStyle.Bold);
this.comboBoxLanguage.Location = new System.Drawing.Point(471, 367);
this.comboBoxLanguage.Location = new System.Drawing.Point(470, 387);
this.comboBoxLanguage.Name = "comboBoxLanguage";
this.comboBoxLanguage.Size = new System.Drawing.Size(100, 28);
this.comboBoxLanguage.TabIndex = 120;
@ -721,7 +725,7 @@
this.labelTitleLanguage.ForeColor = System.Drawing.Color.White;
this.labelTitleLanguage.InitVisible = true;
this.labelTitleLanguage.LineSpacing = 0F;
this.labelTitleLanguage.Location = new System.Drawing.Point(110, 367);
this.labelTitleLanguage.Location = new System.Drawing.Point(109, 387);
this.labelTitleLanguage.Name = "labelTitleLanguage";
this.labelTitleLanguage.Size = new System.Drawing.Size(355, 30);
this.labelTitleLanguage.TabIndex = 117;
@ -730,6 +734,46 @@
this.labelTitleLanguage.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelTitleLanguage.Wordwrap = false;
//
// labelSwitchChattering
//
this.labelSwitchChattering.BackColor = System.Drawing.SystemColors.Window;
this.labelSwitchChattering.BackPictureBox = null;
this.labelSwitchChattering.BackPictureBox1 = null;
this.labelSwitchChattering.BackPictureBox2 = null;
this.labelSwitchChattering.BorderColor = System.Drawing.Color.Black;
this.labelSwitchChattering.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labelSwitchChattering.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelSwitchChattering.InitVisible = true;
this.labelSwitchChattering.LineSpacing = 0F;
this.labelSwitchChattering.Location = new System.Drawing.Point(470, 143);
this.labelSwitchChattering.Name = "labelSwitchChattering";
this.labelSwitchChattering.Size = new System.Drawing.Size(100, 30);
this.labelSwitchChattering.TabIndex = 240;
this.labelSwitchChattering.Text = "100";
this.labelSwitchChattering.TextHAlign = SmartX.SmartLabel.TextHorAlign.Right;
this.labelSwitchChattering.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelSwitchChattering.Wordwrap = false;
this.labelSwitchChattering.Click += new System.EventHandler(this.labelSwitchChattering_Click);
//
// labelTitleSwitchChattering
//
this.labelTitleSwitchChattering.BackPictureBox1 = null;
this.labelTitleSwitchChattering.BackPictureBox2 = this.smartGroupBox1;
this.labelTitleSwitchChattering.BorderColor = System.Drawing.Color.Black;
this.labelTitleSwitchChattering.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitleSwitchChattering.Font = new System.Drawing.Font("새굴림", 11F, System.Drawing.FontStyle.Bold);
this.labelTitleSwitchChattering.ForeColor = System.Drawing.Color.White;
this.labelTitleSwitchChattering.InitVisible = true;
this.labelTitleSwitchChattering.LineSpacing = 0F;
this.labelTitleSwitchChattering.Location = new System.Drawing.Point(109, 143);
this.labelTitleSwitchChattering.Name = "labelTitleSwitchChattering";
this.labelTitleSwitchChattering.Size = new System.Drawing.Size(355, 30);
this.labelTitleSwitchChattering.TabIndex = 239;
this.labelTitleSwitchChattering.Text = "스위치채터링";
this.labelTitleSwitchChattering.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.labelTitleSwitchChattering.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelTitleSwitchChattering.Wordwrap = false;
//
// ControlCenterEquipFunctionSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@ -747,10 +791,10 @@
private SmartX.SmartGroupBox smartGroupBox1;
private System.Windows.Forms.ComboBox comboBoxLanguage;
private SmartX.SmartLabel labelTitleLanguage;
public SmartX.SmartLabel labelChattering;
public SmartX.SmartLabel labelSensorChattering;
public SmartX.SmartLabel labelRelayOnTime;
public SmartX.SmartLabel labelBuzzerOnTime;
private SmartX.SmartLabel labelTitleChattering;
private SmartX.SmartLabel labelTitleSensorChattering;
private SmartX.SmartLabel labelTitleRelayRunTime;
private SmartX.SmartLabel labelTitleBuzzerONTime;
public SmartX.SmartLabel labelEquipmentID;
@ -776,5 +820,7 @@
private SmartX.SmartLabel smartLabel8;
public SmartX.SmartLabel labelEntryNotDetectedIgnoreTime;
private SmartX.SmartLabel labelTitleEntryNotDetectedIgnoreTime;
public SmartX.SmartLabel labelSwitchChattering;
private SmartX.SmartLabel labelTitleSwitchChattering;
}
}

View File

@ -53,7 +53,8 @@ namespace ITC81DB_2.Controls
{
this.labelTitleEquipmentID.Text = "Equipment ID";
this.labelTitleBuzzerONTime.Text = "Buzzer ON time";
this.labelTitleChattering.Text = "Chattering";
this.labelTitleSensorChattering.Text = "Sensor Chattering";
this.labelTitleSwitchChattering.Text = "Switch Chattering";
this.labelTitleRelayRunTime.Text = "Relay Run time";
this.labelTitleEntryNotDetected.Text = "Entry Not Detected";
this.labelTitleEntryNotDetectedIgnoreTime.Text = "Entry Not Detected(Ignore Time)";
@ -81,7 +82,8 @@ namespace ITC81DB_2.Controls
{
this.labelTitleBuzzerONTime.Text = "蜂鸣器开启时间";
this.labelTitleRelayRunTime.Text = "继电器接通时间";
this.labelTitleChattering.Text = "颤振";
this.labelTitleSensorChattering.Text = "传感器抖动";
this.labelTitleSwitchChattering.Text = "开关喋喋不休";
this.labelTitleLanguage.Text = "语言";
this.labelTitleEquipmentID.Text = "设备编号";
this.labelTitleEntryNotDetected.Text = "未检测到产品条目";
@ -112,7 +114,8 @@ namespace ITC81DB_2.Controls
{
this.labelTitleEquipmentID.Text = "ID de equipo";
this.labelTitleBuzzerONTime.Text = "Zumbador a tiempo";
this.labelTitleChattering.Text = "Chapoteo";
this.labelTitleSensorChattering.Text = "Vibración del sensor";
this.labelTitleSwitchChattering.Text = "Cambiar de charla";
this.labelTitleRelayRunTime.Text = "Relé a tiempo";
this.labelTitleEntryNotDetected.Text = "Entrada no detectada";
this.labelTitleEntryNotDetectedIgnoreTime.Text = "Entrada no detectada (Ignorar hora)";
@ -140,7 +143,8 @@ namespace ITC81DB_2.Controls
{
this.labelTitleBuzzerONTime.Text = "부저 ON 시간";
this.labelTitleRelayRunTime.Text = "릴레이 동작 시간";
this.labelTitleChattering.Text = "채터링감지";
this.labelTitleSensorChattering.Text = "센서채터링";
this.labelTitleSwitchChattering.Text = "스위치채터링";
this.labelTitleLanguage.Text = "언어설정";
this.labelTitleEquipmentID.Text = "장비 ID";
this.labelTitleEntryNotDetected.Text = "제품진입 미감지";
@ -205,10 +209,15 @@ namespace ITC81DB_2.Controls
if (this.labelRelayOnTime.Text != value)
this.labelRelayOnTime.Text = value;
// 채터링감지
value = system.Chattering.Trim();
if (this.labelChattering.Text != value)
this.labelChattering.Text = value;
// 센서채터링
value = system.SensorChattering.Trim();
if (this.labelSensorChattering.Text != value)
this.labelSensorChattering.Text = value;
// 스위치채터링
value = system.SwitchChattering.Trim();
if (this.labelSwitchChattering.Text != value)
this.labelSwitchChattering.Text = value;
value = Helper.StringToDecimalPlaces(system.EntryNotDetectedWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
if (this.labelEntryNotDetected.Text != value)
@ -332,10 +341,10 @@ namespace ITC81DB_2.Controls
}
}
}
private void labelChattering_Click(object sender, EventArgs e)
private void labelSensorChattering_Click(object sender, EventArgs e)
{
string value = "";
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelChattering.Text, 4, 0, false, this.ParentForm.ParentForm.SystemConfig.Language);
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelSensorChattering.Text, 4, 0, false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK)
{
@ -347,12 +356,36 @@ namespace ITC81DB_2.Controls
}
else
{
this.labelChattering.Text = myKeyPad.StringValue;
this.labelSensorChattering.Text = myKeyPad.StringValue;
value = Helper.StringZeroFillDigits4(this.labelChattering.Text);
this.ParentForm.ParentForm.CurrentSystemParameter9507.Chattering = myKeyPad.StringValue;
value = Helper.StringZeroFillDigits4(this.labelSensorChattering.Text);
this.ParentForm.ParentForm.CurrentSystemParameter9507.SensorChattering = myKeyPad.StringValue;
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._6006_Chattering, value);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._6006_SensorChattering, value);
}
}
}
private void labelSwitchChattering_Click(object sender, EventArgs e)
{
string value = "";
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelSwitchChattering.Text, 4, 0, false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK)
{
if (myKeyPad.doubleValue < 0 || myKeyPad.doubleValue > 500)
{
// 입력범위를 확인하세요
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.Language);
myMsg.ShowDialog();
}
else
{
this.labelSwitchChattering.Text = myKeyPad.StringValue;
value = Helper.StringZeroFillDigits4(this.labelSwitchChattering.Text);
this.ParentForm.ParentForm.CurrentSystemParameter9507.SwitchChattering = myKeyPad.StringValue;
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._6012_SwitchChattering, value);
}
}
}

View File

@ -63,7 +63,7 @@ namespace ITC81DB_2.Controls
private void DefaultSetting()
{
this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig.SerialNumber;
this.labelDisplayVer.Text = "3.1.5";
this.labelDisplayVer.Text = "3.2.0";
}
public void UpdateMainBoardVersionDisplay(string version)

View File

@ -163,13 +163,13 @@ namespace ITC81DB_2.Controls
public void DisplayRefresh(SystemStatus status)
{
this.comboBoxPort.Items.Clear();
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f5_Modbus)
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f99_Modbus)
this.comboBoxPort.Items.Add("COM1");
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f5_Modbus)
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f99_Modbus)
this.comboBoxPort.Items.Add("COM3");
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f5_Modbus)
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f99_Modbus)
this.comboBoxPort.Items.Add("COM4");
if (this.ParentForm.ParentForm.SystemConfig.EthernetCommMode == (int)Define.E_CommMode.f5_Modbus)
if (this.ParentForm.ParentForm.SystemConfig.EthernetCommMode == (int)Define.E_CommMode.f99_Modbus)
this.comboBoxPort.Items.Add("TCP");
this.comboBoxPort.SelectedIndex = 0;

View File

@ -339,13 +339,15 @@ namespace ITC81DB_2
// 옵션 - 이중진입사용여부
public static readonly string _6005_DoubleEnter = "6005";
// 옵션 - 채터링감지 설정
public static readonly string _6006_Chattering = "6006";
public static readonly string _6006_SensorChattering = "6006";
// 옵션 - 외부 NG 입력 사용
public static readonly string _6007_ExternalInput = "6007";
// 옵션 - 제품진입 미감지
public static readonly string _6010_EntryNotDetectedWeight = "6010";
// 옵션 - 센서에러 감지시간
public static readonly string _6011_SensorErrorDetectingTime = "6011";
// 옵션 - 스위치채터링 설정
public static readonly string _6012_SwitchChattering = "6012";
// 옵션 - OPT1_샘플링개수
public static readonly string _6201_OPT1SamplingCount = "6201";
// 옵션 - OPT1_지연개수
@ -482,8 +484,6 @@ namespace ITC81DB_2
// SystemConfig
private bool m_IsDataBackup;
private bool m_IsLogin;
private bool m_IsPrint1Enable;
private bool m_IsPrint2Enable;
private int m_EquipmentID;
private int m_DecimalPlaces;
@ -514,8 +514,6 @@ namespace ITC81DB_2
private Define.E_LanguageID m_Language;
// SystemConfig
private bool m_IsModbus;
private bool m_IsPart11;
private bool m_IsEthernetPingTimer;
@ -530,6 +528,7 @@ namespace ITC81DB_2
private bool m_IsModbusRTUUsingConverterCOM1;
private bool m_IsModbusRTUUsingConverterCOM3;
private bool m_IsModbusRTUUsingConverterCOM4;
private bool m_IsPrintPerProductEnable;
private int m_TransmissionDelayTimeCOM1;
private int m_TransmissionDelayTimeCOM3;
@ -577,15 +576,10 @@ namespace ITC81DB_2
get { return this.m_IsLogin; }
set { this.m_IsLogin = value; }
}
public bool IsPrint1Enable
public bool IsPrintPerProductEnable
{
get { return this.m_IsPrint1Enable; }
set { this.m_IsPrint1Enable = value; }
}
public bool IsPrint2Enable
{
get { return this.m_IsPrint2Enable; }
set { this.m_IsPrint2Enable = value; }
get { return this.m_IsPrintPerProductEnable; }
set { this.m_IsPrintPerProductEnable = value; }
}
public int EquipmentID
@ -930,8 +924,7 @@ namespace ITC81DB_2
// SystemConfig1
this.IsDataBackup = false;
this.IsLogin = false;
this.IsPrint1Enable = false;
this.IsPrint2Enable = false;
this.IsPrintPerProductEnable = false;
this.EquipmentID = 1;
this.DecimalPlaces = 1;
@ -954,7 +947,7 @@ namespace ITC81DB_2
this.SelectLaneCOM3 = 0;
this.SelectLaneCOM4 = 0;
this.SelectLaneEthernet = 0;
this.SerialNumber = "24L000";
this.MainBoardVersion = "000";
this.Unit = "g";
@ -1035,7 +1028,7 @@ namespace ITC81DB_2
public bool DummyBool2;
public bool DummyBool3;
public bool DummyBool4;
public bool DummyBool5;
public bool IsPrintPerProductEnable;
public int DummyInt1;
public int DummyInt2;
@ -3118,7 +3111,7 @@ namespace ITC81DB_2
string temp = "", ret = "";
temp = string.Format("{0:f0}", this.UnderSumWeight);
ret = string.Format("{0}", int.Parse(temp) / 1000);
ret = string.Format("{0:0.00}", int.Parse(temp) / 1000);
return ret;
}
@ -3169,7 +3162,7 @@ namespace ITC81DB_2
string temp = "", ret = "";
temp = string.Format("{0:f0}", this.PassSumWeight);
ret = string.Format("{0}", int.Parse(temp) / 1000);
ret = string.Format("{0:0.00}", int.Parse(temp) / 1000);
return ret;
}
@ -3220,7 +3213,23 @@ namespace ITC81DB_2
string temp = "", ret = "";
temp = string.Format("{0:f0}", this.OverSumWeight);
ret = string.Format("{0}", int.Parse(temp) / 1000);
ret = string.Format("{0:0.00}", int.Parse(temp) / 1000);
return ret;
}
}
// Under + Over
public double NGAverage
{
get
{
double ret = 0.0;
if (this.OverCount + this.UnderCount == 0)
ret = 0.0;
else
ret = (this.OverSumWeight + this.UnderSumWeight) / (this.OverCount + this.UnderCount);
return ret;
}
@ -3382,6 +3391,18 @@ namespace ITC81DB_2
{
get { return this.UnderCount + this.OverCount + this.ETCExNGCount; }
}
public string TotalSumWeightKG
{
get
{
string temp = "", ret = "";
temp = string.Format("{0:f0}", this.OverSumWeight + this.PassSumWeight + this.UnderSumWeight + this.ExNGSumWeight);
ret = string.Format("{0:0.00}", double.Parse(temp) / 1000);
return ret;
}
}
/// <summary>
/// Under+Pass+Over+ExNG
@ -3979,12 +4000,12 @@ namespace ITC81DB_2
#region Field
private string m_BuzzerOnTime;
private string m_RelayOnTime;
private string m_Chattering;
private string m_SensorChattering;
private string m_SorterDoubleEntry;
private string m_EntryNotDetectedWeight;
private string m_OptionBoard;
private string m_Dummy1;
private string m_OptionBoard;
private string m_SwitchChattering;
private string m_Dummy2;
private string m_Dummy3;
private string m_Dummy4;
@ -4015,10 +4036,10 @@ namespace ITC81DB_2
get { return this.m_RelayOnTime; }
set { this.m_RelayOnTime = value; }
}
public string Chattering
public string SensorChattering
{
get { return this.m_Chattering; }
set { this.m_Chattering = value; }
get { return this.m_SensorChattering; }
set { this.m_SensorChattering = value; }
}
public string SorterDoubleEntry
{
@ -4035,12 +4056,12 @@ namespace ITC81DB_2
get { return this.m_OptionBoard; }
set { this.m_OptionBoard = value; }
}
public string Dummy1
public string SwitchChattering
{
get { return this.m_Dummy1; }
set { this.m_Dummy1 = value; }
get { return this.m_SwitchChattering; }
set { this.m_SwitchChattering = value; }
}
public string Dummy2
{
get { return this.m_Dummy2; }
@ -4098,12 +4119,12 @@ namespace ITC81DB_2
{
this.BuzzerOnTime = "1000";
this.RelayOnTime = "500";
this.Chattering = "0";
this.SensorChattering = "0";
this.SorterDoubleEntry = "0";
this.EntryNotDetectedWeight = "0";
this.OptionBoard = "0";
this.Dummy1 = "0";
this.OptionBoard = "0";
this.SwitchChattering = "200";
this.Dummy2 = "0";
this.Dummy3 = "0";
this.Dummy4 = "0";
@ -4131,7 +4152,7 @@ namespace ITC81DB_2
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
public string RelayOnTime;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
public string Chattering;
public string SensorChattering;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
public string SorterDoubleEntry;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
@ -4152,9 +4173,9 @@ namespace ITC81DB_2
public string OptionBoard;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
public string EntryNotDetectedWeight;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
public string Dummy1;
public string SwitchChattering;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
public string Dummy2;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]

View File

@ -264,7 +264,8 @@ namespace ITC81DB_2
f2_Remote,
f3_Printer,
f4_STD2,
f5_Modbus,
f5_imaje_9028_OPT2,
f99_Modbus,
}
public enum E_ModbusFunction

View File

@ -296,7 +296,7 @@ namespace ITC81DB_2.Forms
{
switch (this.SystemConfig.EthernetCommMode)
{
case (int)Define.E_CommMode.f5_Modbus:
case (int)Define.E_CommMode.f99_Modbus:
this.ChildFormMainDisplay.MainBottomModbusIconAdd(true);
break;
default:
@ -630,14 +630,14 @@ namespace ITC81DB_2.Forms
{
this.TransferSerialCOM1("\n--------------------------------");
this.TransferSerialCOM1(" NO LANE GRADE WEIGHT COUNT");
this.TransferSerialCOM1("--------------------------------");
this.TransferSerialCOM1("\n--------------------------------");
}
if (this.SystemConfig.SerialCOM3Mode == 3)
{
this.TransferSerialCOM3("\n--------------------------------");
this.TransferSerialCOM3(" NO LANE GRADE WEIGHT COUNT");
this.TransferSerialCOM3("--------------------------------");
this.TransferSerialCOM3("\n--------------------------------");
}
}
public void PrintingWeight(WeightData data1, WeightData data2, ProductItem pItem1, ProductItem pItem2)
@ -646,168 +646,204 @@ namespace ITC81DB_2.Forms
if (this.SystemConfig.SerialCOM1Mode == 3)
{
this.TransferSerialCOM1("##############################");
this.TransferSerialCOM1(" TOTAL PRINT LINE1 ");
this.TransferSerialCOM1("##############################");
this.TransferSerialCOM1(string.Format(" PART = {0}", pItem1.Number));
if (data1.StartTime.Year == 1111 || data1.StopTime.Year == 1111)
data1.StartTime = data1.StopTime = DateTime.Now;
this.TransferSerialCOM1(string.Format(" START = {0}", data1.StartTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM1(string.Format(" END = {0}", data1.StopTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM1("\n################################");
this.TransferSerialCOM1("\n TOTAL PRINT LANE 1 ");
this.TransferSerialCOM1("\n################################");
this.TransferSerialCOM1(string.Format("\nPART = {0}", pItem1.Number));
this.TransferSerialCOM1(string.Format("\nSTART = {0}", data1.StartTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM1(string.Format("\nEND = {0}", data1.StopTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM1(string.Format("\n UNDER = {0}g",
Helper.StringToDecimalPlaces(pItem1.UnderRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" COUNT = {0}", data1.UnderCount));
this.TransferSerialCOM1(string.Format(" TOTAL.W = {0}kg", data1.UnderSumWeightKG));
this.TransferSerialCOM1(string.Format(" AVG = {0}g",
Helper.DoubleToString(data1.UnderAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" RATIO = {0}%", data1.UnderRatio));
this.TransferSerialCOM1(string.Format("\n\nUNDER = {0}{1}",
Helper.StringToDecimalPlaces(pItem1.UnderRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data1.UnderCount));
this.TransferSerialCOM1(string.Format("\n TOTAL.WT = {0}kg", data1.UnderSumWeightKG));
this.TransferSerialCOM1(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data1.UnderAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n RATIO = {0}%", data1.UnderRatio));
this.TransferSerialCOM1(string.Format("\n PASS = {0}g",
Helper.StringToDecimalPlaces(pItem1.PassRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" COUNT = {0}", data1.PassCount));
this.TransferSerialCOM1(string.Format(" TOTAL.W = {0}kg", data1.PassSumWeightKG));
this.TransferSerialCOM1(string.Format(" AVG = {0}g",
Helper.DoubleToString(data1.PassAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" RATIO = {0}%", data1.PassRatio));
this.TransferSerialCOM1(string.Format("\n\nPASS = {0}{1}",
Helper.StringToDecimalPlaces(pItem1.PassRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data1.PassCount));
this.TransferSerialCOM1(string.Format("\n TOTAL.WT = {0}kg", data1.PassSumWeightKG));
this.TransferSerialCOM1(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data1.PassAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n RATIO = {0}%", data1.PassRatio));
this.TransferSerialCOM1(string.Format("\n OVER = {0}g",
Helper.StringToDecimalPlaces(pItem1.OverRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" COUNT = {0}", data1.OverCount));
this.TransferSerialCOM1(string.Format(" TOTAL.W = {0}kg", data1.OverSumWeightKG));
this.TransferSerialCOM1(string.Format(" AVG = {0}g",
Helper.DoubleToString(data1.OverAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" RATIO = {0}%", data1.OverRatio));
this.TransferSerialCOM1(string.Format("\n\nOVER = {0}{1}",
Helper.StringToDecimalPlaces(pItem1.OverRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data1.OverCount));
this.TransferSerialCOM1(string.Format("\n TOTAL.WT = {0}kg", data1.OverSumWeightKG));
this.TransferSerialCOM1(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data1.OverAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n RATIO = {0}%", data1.OverRatio));
this.TransferSerialCOM1(string.Format("\n TARE = {0}g",
Helper.StringToDecimalPlaces(pItem1.TareRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1("\n TOTAL");
this.TransferSerialCOM1(string.Format(" COUNT = {0}", data1.TotalCount));
this.TransferSerialCOM1(string.Format("\n\nTARE = {0}{1}",
Helper.StringToDecimalPlaces(pItem1.TareRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1("##############################\n\n\n\n");
this.TransferSerialCOM1(string.Format("\n\nFAULTY(WEIGHT NG : Over+Under)"));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data1.TotalUnderOverCount));
this.TransferSerialCOM1(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data1.NGAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1("##############################");
this.TransferSerialCOM1(" TOTAL PRINT LINE2 ");
this.TransferSerialCOM1("##############################");
this.TransferSerialCOM1(string.Format(" PART = {0}", pItem2.Number));
if (data2.StartTime.Year == 1111 || data2.StopTime.Year == 1111)
data2.StartTime = data2.StopTime = DateTime.Now;
this.TransferSerialCOM1(string.Format(" START = {0}", data2.StartTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM1(string.Format(" END = {0}", data2.StopTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM1(string.Format("\n\nOTHER FAULTY(ExNG)"));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data1.ExNGCount));
this.TransferSerialCOM1(string.Format("\n TOTAL.WT = {0}kg", data1.ExNGSumWeightKG));
this.TransferSerialCOM1(string.Format("\n UNDER = {0}g",
Helper.StringToDecimalPlaces(pItem2.UnderRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" COUNT = {0}", data2.UnderCount));
this.TransferSerialCOM1(string.Format(" TOTAL.W = {0}kg", data2.UnderSumWeightKG));
this.TransferSerialCOM1(string.Format(" AVG = {0}g",
Helper.DoubleToString(data2.UnderAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" RATIO = {0}%", data2.UnderRatio));
this.TransferSerialCOM1(string.Format("\n\nTOTAL.COUNT = {0}", data1.TotalCount));
this.TransferSerialCOM1(string.Format("\nTOTAL.WT = {0}kg", data1.TotalSumWeightKG));
this.TransferSerialCOM1(string.Format("\n PASS = {0}g",
Helper.StringToDecimalPlaces(pItem2.PassRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" COUNT = {0}", data2.PassCount));
this.TransferSerialCOM1(string.Format(" TOTAL.W = {0}kg", data2.PassSumWeightKG));
this.TransferSerialCOM1(string.Format(" AVG = {0}g",
Helper.DoubleToString(data2.PassAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" RATIO = {0}%", data2.PassRatio));
this.TransferSerialCOM1("\n################################\n\n\n\n");
this.TransferSerialCOM1(string.Format("\n OVER = {0}g",
Helper.StringToDecimalPlaces(pItem2.OverRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" COUNT = {0}", data2.OverCount));
this.TransferSerialCOM1(string.Format(" TOTAL.W = {0}kg", data2.OverSumWeightKG));
this.TransferSerialCOM1(string.Format(" AVG = {0}g",
Helper.DoubleToString(data2.OverAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1(string.Format(" RATIO = {0}%", data2.OverRatio));
//////////////////////////////////////////////////////////////////////////////////
this.TransferSerialCOM1(string.Format("\n TARE = {0}g",
Helper.StringToDecimalPlaces(pItem2.TareRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM1("\n TOTAL");
this.TransferSerialCOM1(string.Format(" COUNT = {0}", data2.TotalCount));
this.TransferSerialCOM1("\n################################");
this.TransferSerialCOM1("\n TOTAL PRINT LANE 2 ");
this.TransferSerialCOM1("\n################################");
this.TransferSerialCOM1(string.Format("\nPART = {0}", pItem2.Number));
this.TransferSerialCOM1(string.Format("\nSTART = {0}", data2.StartTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM1(string.Format("\nEND = {0}", data2.StopTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM1("##############################\n\n\n\n");
this.TransferSerialCOM1(string.Format("\n\nUNDER = {0}{1}",
Helper.StringToDecimalPlaces(pItem2.UnderRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data2.UnderCount));
this.TransferSerialCOM1(string.Format("\n TOTAL.WT = {0}kg", data2.UnderSumWeightKG));
this.TransferSerialCOM1(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data2.UnderAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n RATIO = {0}%", data2.UnderRatio));
this.TransferSerialCOM1(string.Format("\n\nPASS = {0}{1}",
Helper.StringToDecimalPlaces(pItem2.PassRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data2.PassCount));
this.TransferSerialCOM1(string.Format("\n TOTAL.WT = {0}kg", data2.PassSumWeightKG));
this.TransferSerialCOM1(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data2.PassAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n RATIO = {0}%", data2.PassRatio));
this.TransferSerialCOM1(string.Format("\n\nOVER = {0}{1}",
Helper.StringToDecimalPlaces(pItem2.OverRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data2.OverCount));
this.TransferSerialCOM1(string.Format("\n TOTAL.WT = {0}kg", data2.OverSumWeightKG));
this.TransferSerialCOM1(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data2.OverAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n RATIO = {0}%", data2.OverRatio));
this.TransferSerialCOM1(string.Format("\n\nTARE = {0}{1}",
Helper.StringToDecimalPlaces(pItem2.TareRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n\nFAULTY(WEIGHT NG : Over+Under)"));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data2.TotalUnderOverCount));
this.TransferSerialCOM1(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data2.NGAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM1(string.Format("\n\nOTHER FAULTY(ExNG)"));
this.TransferSerialCOM1(string.Format("\n COUNT = {0}", data2.ExNGCount));
this.TransferSerialCOM1(string.Format("\n TOTAL.WT = {0}kg", data2.ExNGSumWeightKG));
this.TransferSerialCOM1(string.Format("\n\nTOTAL.COUNT = {0}", data2.TotalCount));
this.TransferSerialCOM1(string.Format("\nTOTAL.WT = {0}kg", data2.TotalSumWeightKG));
this.TransferSerialCOM1("\n################################\n\n\n\n");
}
if (this.SystemConfig.SerialCOM3Mode == 3)
{
this.TransferSerialCOM3("##############################");
this.TransferSerialCOM3(" TOTAL PRINT LINE1 ");
this.TransferSerialCOM3("##############################");
this.TransferSerialCOM3(string.Format(" PART = {0}", pItem1.Number));
if (data1.StartTime.Year == 1111 || data1.StopTime.Year == 1111)
data1.StartTime = data1.StopTime = DateTime.Now;
this.TransferSerialCOM3(string.Format(" START = {0}", data1.StartTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM3(string.Format(" END = {0}", data1.StopTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM3("\n################################");
this.TransferSerialCOM3("\n TOTAL PRINT LANE 1 ");
this.TransferSerialCOM3("\n################################");
this.TransferSerialCOM3(string.Format("\nPART = {0}", pItem1.Number));
this.TransferSerialCOM3(string.Format("\nSTART = {0}", data1.StartTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM3(string.Format("\nEND = {0}", data1.StopTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM3(string.Format("\n UNDER = {0}g",
Helper.StringToDecimalPlaces(pItem1.UnderRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" COUNT = {0}", data1.UnderCount));
this.TransferSerialCOM3(string.Format(" TOTAL.W = {0}kg", data1.UnderSumWeightKG));
this.TransferSerialCOM3(string.Format(" AVG = {0}g",
Helper.DoubleToString(data1.UnderAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" RATIO = {0}%", data1.UnderRatio));
this.TransferSerialCOM3(string.Format("\n\nUNDER = {0}{1}",
Helper.StringToDecimalPlaces(pItem1.UnderRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data1.UnderCount));
this.TransferSerialCOM3(string.Format("\n TOTAL.WT = {0}oz", data1.UnderSumWeight));
this.TransferSerialCOM3(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data1.UnderAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n RATIO = {0}%", data1.UnderRatio));
this.TransferSerialCOM3(string.Format("\n PASS = {0}g",
Helper.StringToDecimalPlaces(pItem1.PassRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" COUNT = {0}", data1.PassCount));
this.TransferSerialCOM3(string.Format(" TOTAL.W = {0}kg", data1.PassSumWeightKG));
this.TransferSerialCOM3(string.Format(" AVG = {0}g",
Helper.DoubleToString(data1.PassAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" RATIO = {0}%", data1.PassRatio));
this.TransferSerialCOM3(string.Format("\n\nPASS = {0}{1}",
Helper.StringToDecimalPlaces(pItem1.PassRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data1.PassCount));
this.TransferSerialCOM3(string.Format("\n TOTAL.WT = {0}oz", data1.PassSumWeight));
this.TransferSerialCOM3(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data1.PassAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n RATIO = {0}%", data1.PassRatio));
this.TransferSerialCOM3(string.Format("\n OVER = {0}g",
Helper.StringToDecimalPlaces(pItem1.OverRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" COUNT = {0}", data1.OverCount));
this.TransferSerialCOM3(string.Format(" TOTAL.W = {0}kg", data1.OverSumWeightKG));
this.TransferSerialCOM3(string.Format(" AVG = {0}g",
Helper.DoubleToString(data1.OverAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" RATIO = {0}%", data1.OverRatio));
this.TransferSerialCOM3(string.Format("\n\nOVER = {0}{1}",
Helper.StringToDecimalPlaces(pItem1.OverRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data1.OverCount));
this.TransferSerialCOM3(string.Format("\n TOTAL.WT = {0}oz", data1.OverSumWeight));
this.TransferSerialCOM3(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data1.OverAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n RATIO = {0}%", data1.OverRatio));
this.TransferSerialCOM3(string.Format("\n TARE = {0}g",
Helper.StringToDecimalPlaces(pItem1.TareRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3("\n TOTAL");
this.TransferSerialCOM3(string.Format(" COUNT = {0}", data1.TotalCount));
this.TransferSerialCOM3(string.Format("\n\nTARE = {0}{1}",
Helper.StringToDecimalPlaces(pItem1.TareRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3("##############################\n\n\n\n");
this.TransferSerialCOM3(string.Format("\n\nFAULTY(WEIGHT NG : Over+Under)"));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data1.TotalUnderOverCount));
this.TransferSerialCOM3(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data1.NGAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3("##############################");
this.TransferSerialCOM3(" TOTAL PRINT LINE2 ");
this.TransferSerialCOM3("##############################");
this.TransferSerialCOM3(string.Format(" PART = {0}", pItem2.Number));
if (data2.StartTime.Year == 1111 || data2.StopTime.Year == 1111)
data2.StartTime = data2.StopTime = DateTime.Now;
this.TransferSerialCOM3(string.Format(" START = {0}", data2.StartTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM3(string.Format(" END = {0}", data2.StopTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM3(string.Format("\n\nOTHER FAULTY(ExNG)"));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data1.ExNGCount));
this.TransferSerialCOM3(string.Format("\n TOTAL.WT = {0}kg", data1.ExNGSumWeightKG));
this.TransferSerialCOM3(string.Format("\n UNDER = {0}g",
Helper.StringToDecimalPlaces(pItem2.UnderRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" COUNT = {0}", data2.UnderCount));
this.TransferSerialCOM3(string.Format(" TOTAL.W = {0}kg", data2.UnderSumWeightKG));
this.TransferSerialCOM3(string.Format(" AVG = {0}g",
Helper.DoubleToString(data2.UnderAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" RATIO = {0}%", data2.UnderRatio));
this.TransferSerialCOM3(string.Format("\n\nTOTAL.COUNT = {0}", data1.TotalCount));
this.TransferSerialCOM3(string.Format("\nTOTAL.WT = {0}kg", data1.TotalSumWeightKG));
this.TransferSerialCOM3(string.Format("\n PASS = {0}g",
Helper.StringToDecimalPlaces(pItem2.PassRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" COUNT = {0}", data2.PassCount));
this.TransferSerialCOM3(string.Format(" TOTAL.W = {0}kg", data2.PassSumWeightKG));
this.TransferSerialCOM3(string.Format(" AVG = {0}g",
Helper.DoubleToString(data2.PassAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" RATIO = {0}%", data2.PassRatio));
this.TransferSerialCOM3("\n################################\n\n\n\n");
this.TransferSerialCOM3(string.Format("\n OVER = {0}g",
Helper.StringToDecimalPlaces(pItem2.OverRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" COUNT = {0}", data2.OverCount));
this.TransferSerialCOM3(string.Format(" TOTAL.W = {0}kg", data2.OverSumWeightKG));
this.TransferSerialCOM3(string.Format(" AVG = {0}g",
Helper.DoubleToString(data2.OverAverage, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3(string.Format(" RATIO = {0}%", data2.OverRatio));
//////////////////////////////////////////////////////////////////////////////////
this.TransferSerialCOM3(string.Format("\n TARE = {0}g",
Helper.StringToDecimalPlaces(pItem2.TareRange, this.SystemConfig.DecimalPlaces)));
this.TransferSerialCOM3("\n TOTAL");
this.TransferSerialCOM3(string.Format(" COUNT = {0}", data2.TotalCount));
this.TransferSerialCOM3("\n################################");
this.TransferSerialCOM3("\n TOTAL PRINT LANE 2 ");
this.TransferSerialCOM3("\n################################");
this.TransferSerialCOM3(string.Format("\nPART = {0}", pItem2.Number));
this.TransferSerialCOM3(string.Format("\nSTART = {0}", data2.StartTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM3(string.Format("\nEND = {0}", data2.StopTime.ToString("yyyy-MM-dd HH:mm:ss")));
this.TransferSerialCOM3("##############################\n\n\n\n");
this.TransferSerialCOM3(string.Format("\n\nUNDER = {0}{1}",
Helper.StringToDecimalPlaces(pItem2.UnderRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data2.UnderCount));
this.TransferSerialCOM3(string.Format("\n TOTAL.WT = {0}oz", data2.UnderSumWeight));
this.TransferSerialCOM3(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data2.UnderAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n RATIO = {0}%", data2.UnderRatio));
this.TransferSerialCOM3(string.Format("\n\nPASS = {0}{1}",
Helper.StringToDecimalPlaces(pItem2.PassRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data2.PassCount));
this.TransferSerialCOM3(string.Format("\n TOTAL.WT = {0}oz", data2.PassSumWeight));
this.TransferSerialCOM3(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data2.PassAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n RATIO = {0}%", data2.PassRatio));
this.TransferSerialCOM3(string.Format("\n\nOVER = {0}{1}",
Helper.StringToDecimalPlaces(pItem2.OverRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data2.OverCount));
this.TransferSerialCOM3(string.Format("\n TOTAL.WT = {0}oz", data2.OverSumWeight));
this.TransferSerialCOM3(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data2.OverAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n RATIO = {0}%", data2.OverRatio));
this.TransferSerialCOM3(string.Format("\n\nTARE = {0}{1}",
Helper.StringToDecimalPlaces(pItem2.TareRange, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n\nFAULTY(WEIGHT NG : Over+Under)"));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data2.TotalUnderOverCount));
this.TransferSerialCOM3(string.Format("\n MEAN = {0}{1}",
Helper.DoubleToString(data2.NGAverage, this.SystemConfig.DecimalPlaces), this.SystemConfig.Unit));
this.TransferSerialCOM3(string.Format("\n\nOTHER FAULTY(ExNG)"));
this.TransferSerialCOM3(string.Format("\n COUNT = {0}", data2.ExNGCount));
this.TransferSerialCOM3(string.Format("\n TOTAL.WT = {0}kg", data2.ExNGSumWeightKG));
this.TransferSerialCOM3(string.Format("\n\nTOTAL.COUNT = {0}", data2.TotalCount));
this.TransferSerialCOM3(string.Format("\nTOTAL.WT = {0}kg", data2.TotalSumWeightKG));
this.TransferSerialCOM3("\n################################\n\n\n\n");
}
}
@ -1651,16 +1687,16 @@ namespace ITC81DB_2.Forms
this.CurrentSystemParameter9507.BuzzerOnTime = receiveData.Substring(0, 4).Trim();
this.CurrentSystemParameter9507.RelayOnTime = receiveData.Substring(4, 4).Trim();
this.CurrentSystemParameter9507.SorterDoubleEntry = receiveData.Substring(8, 4).Trim();
this.CurrentSystemParameter9507.Chattering = receiveData.Substring(12, 4).Trim();
this.CurrentSystemParameter9507.SensorChattering = receiveData.Substring(12, 4).Trim();
this.CurrentSystemParameter9507.EntryNotDetectedWeight = receiveData.Substring(16, 7).Trim();
this.CurrentSystemParameter9507.Dummy1 = receiveData.Substring(23, 7).Trim();
this.CurrentSystemParameter9507.Dummy2 = receiveData.Substring(30, 7).Trim();
this.CurrentSystemParameter9507.Dummy3 = receiveData.Substring(37, 7).Trim();
this.CurrentSystemParameter9507.Dummy2 = receiveData.Substring(23, 7).Trim();
this.CurrentSystemParameter9507.Dummy3 = receiveData.Substring(30, 7).Trim();
this.CurrentSystemParameter9507.Dummy4 = receiveData.Substring(37, 7).Trim();
if(receiveData.Substring(44, 4).Trim().StartsWith("-") == true)
this.CurrentSystemParameter9507.OptionBoard = "0";
else
this.CurrentSystemParameter9507.OptionBoard = receiveData.Substring(44, 4).Trim();
this.CurrentSystemParameter9507.Dummy4 = receiveData.Substring(48, 4).Trim();
this.CurrentSystemParameter9507.SwitchChattering = receiveData.Substring(48, 4).Trim();
this.CurrentSystemParameter9507.Dummy5 = receiveData.Substring(52, 4).Trim();
this.CurrentSystemParameter9507.Dummy6 = receiveData.Substring(56, 4).Trim();
this.CurrentSystemParameter9507.Dummy7 = receiveData.Substring(60, 4).Trim();
@ -1942,7 +1978,7 @@ namespace ITC81DB_2.Forms
this.CurrentWeightData1.WeightString = receiveData.Substring(5, 5);
this.CurrentWeightData1.ADCValue = receiveData.Substring(10, 5);
this.CurrentWeightData1.ProductionSpeed = int.Parse(receiveData.Substring(15, 4).Trim());
this.CurrentWeightData1.WeightSum(this.CurrentWeightData1.JudgmentStatus);
#endregion
// 통신 제대로 받으면 ACK
@ -1970,13 +2006,21 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneCOM1 != (int)Define.E_Lane.Lane2)
if (this.SystemConfig.IsPrint1Enable == true)
this.TransferSerialCOM1(this.Transfer_3_Print(this.SystemConfig.IsCharToFillZeroCOM1, Define.E_Lane.Lane1, this.CurrentWeightData1, this.CurrentProductItem1));
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM1("\n" + this.Transfer_3_Print(this.SystemConfig.IsCharToFillZeroCOM1, Define.E_Lane.Lane1, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case 4:
if (this.SystemConfig.SelectLaneCOM1 != (int)Define.E_Lane.Lane2)
this.TransferSerialCOM1(this.Transfer_4_STD2(this.SystemConfig.IsCharToFillZeroCOM1, Define.E_Lane.Lane1, this.SystemConfig, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneCOM1 != (int)Define.E_Lane.Lane2)
{
this.TransferSerialCOM1(this.SendChar(Define.E_CharValue.ENQ)); // ACK
Thread.Sleep(30);
this.TransferSerialCOM1(this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroCOM1, this.CurrentWeightData1));
}
break;
default:
break;
}
@ -1997,13 +2041,21 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneCOM3 != (int)Define.E_Lane.Lane2)
if (this.SystemConfig.IsPrint1Enable == true)
this.TransferSerialCOM3(this.Transfer_3_Print(this.SystemConfig.IsCharToFillZeroCOM3, Define.E_Lane.Lane1, this.CurrentWeightData1, this.CurrentProductItem1));
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM3("\n" + this.Transfer_3_Print(this.SystemConfig.IsCharToFillZeroCOM3, Define.E_Lane.Lane1, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case 4:
if (this.SystemConfig.SelectLaneCOM3 != (int)Define.E_Lane.Lane2)
this.TransferSerialCOM3(this.Transfer_4_STD2(this.SystemConfig.IsCharToFillZeroCOM3, Define.E_Lane.Lane1, this.SystemConfig, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneCOM3 != (int)Define.E_Lane.Lane2)
{
this.TransferSerialCOM3(this.SendChar(Define.E_CharValue.ENQ)); // ACK
Thread.Sleep(30);
this.TransferSerialCOM3(this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroCOM3, this.CurrentWeightData1));
}
break;
default:
break;
}
@ -2024,13 +2076,21 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneCOM4 != (int)Define.E_Lane.Lane2)
if (this.SystemConfig.IsPrint1Enable == true)
this.TransferSerialCOM4(this.Transfer_3_Print(this.SystemConfig.IsCharToFillZeroCOM4, Define.E_Lane.Lane1, this.CurrentWeightData1, this.CurrentProductItem1));
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM4("\n" + this.Transfer_3_Print(this.SystemConfig.IsCharToFillZeroCOM4, Define.E_Lane.Lane1, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case 4:
if (this.SystemConfig.SelectLaneCOM4 != (int)Define.E_Lane.Lane2)
this.TransferSerialCOM4(this.Transfer_4_STD2(this.SystemConfig.IsCharToFillZeroCOM4, Define.E_Lane.Lane1, this.SystemConfig, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneCOM4 != (int)Define.E_Lane.Lane2)
{
this.TransferSerialCOM4(this.SendChar(Define.E_CharValue.ENQ)); // ACK
Thread.Sleep(30);
this.TransferSerialCOM4(this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroCOM4, this.CurrentWeightData1));
}
break;
default:
break;
}
@ -2061,17 +2121,22 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane2)
if (this.SystemConfig.IsPrint1Enable == true)
this.EthernetServerSendMessage(client, this.Transfer_3_Print
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.EthernetServerSendMessage(client, "\n" + this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane1, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case 4:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane2)
this.EthernetServerSendMessage(client,
this.Transfer_4_STD2
this.EthernetServerSendMessage(client, this.Transfer_4_STD2
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane1, this.SystemConfig, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case 5:
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane2)
{
this.EthernetServerSendMessage(client, this.SendChar(Define.E_CharValue.ENQ));
Thread.Sleep(30);
this.EthernetServerSendMessage(client, this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroEthernet, this.CurrentWeightData1));
}
break;
default:
break;
@ -2096,8 +2161,8 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane2)
if (this.SystemConfig.IsPrint1Enable == true)
this.EthernetWeightData(this.Transfer_3_Print
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.EthernetWeightData("\n" + this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane1, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case (int)Define.E_CommMode.f4_STD2:
@ -2105,7 +2170,15 @@ namespace ITC81DB_2.Forms
this.EthernetWeightData(this.Transfer_4_STD2
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane1, this.SystemConfig, this.CurrentWeightData1, this.CurrentProductItem1));
break;
case (int)Define.E_CommMode.f5_Modbus: // 22, Modbus TCP
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane2)
{
this.EthernetWeightData(this.SendChar(Define.E_CharValue.ENQ));
Thread.Sleep(30);
this.EthernetWeightData(this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroEthernet, this.CurrentWeightData1));
}
break;
case (int)Define.E_CommMode.f99_Modbus: // 22, Modbus TCP
if (this.SystemConfig.ModbusTCPSelectFunction == (int)Define.E_ModbusFunction._16_WriteMultipleRegister)
{
byte[] sendData = this.Modbus.MakeTCPSendAllData(this.Transfer_5_Modbus_Write_1Lane(), this.SystemConfig.ModbusTCPStartAddress);
@ -2134,7 +2207,7 @@ namespace ITC81DB_2.Forms
this.DataBackup1(this.CurrentWeightData1);
// 표준분포
this.CurrentWeightData1.SetNormalDistribution(this.CurrentProductItem1.CollectionNormalDistributionRange, this.CurrentWeightData1.WeightString);
this.CurrentWeightData1.SetNormalDistribution(this.CurrentProductItem1.CollectionNormalDistributionRange, this.CurrentWeightData1.WeightString);
#endregion
break;
default:
@ -2179,15 +2252,23 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneCOM1 != (int)Define.E_Lane.Lane1)
if (this.SystemConfig.IsPrint2Enable == true)
this.TransferSerialCOM1(this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroCOM1, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM1("\n" + this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroCOM1, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case 4:
if (this.SystemConfig.SelectLaneCOM1 != (int)Define.E_Lane.Lane1)
this.TransferSerialCOM1(this.Transfer_4_STD2
(this.SystemConfig.IsCharToFillZeroCOM1, Define.E_Lane.Lane2, this.SystemConfig, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneCOM1 != (int)Define.E_Lane.Lane1)
{
this.TransferSerialCOM1(this.SendChar(Define.E_CharValue.ENQ)); // ACK
Thread.Sleep(30);
this.TransferSerialCOM1(this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroCOM1, this.CurrentWeightData2));
}
break;
default:
break;
}
@ -2210,19 +2291,27 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneCOM3 != (int)Define.E_Lane.Lane1)
if (this.SystemConfig.IsPrint2Enable == true)
this.TransferSerialCOM3(this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroCOM3, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM3("\n" + this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroCOM3, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case 4:
if (this.SystemConfig.SelectLaneCOM3 != (int)Define.E_Lane.Lane1)
this.TransferSerialCOM3(this.Transfer_4_STD2
(this.SystemConfig.IsCharToFillZeroCOM3, Define.E_Lane.Lane2, this.SystemConfig, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneCOM3 != (int)Define.E_Lane.Lane1)
{
this.TransferSerialCOM3(this.SendChar(Define.E_CharValue.ENQ)); // ACK
Thread.Sleep(30);
this.TransferSerialCOM3(this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroCOM3, this.CurrentWeightData2));
}
break;
default:
break;
}
#endregion
#endregion
}
if (this.SystemConfig.SerialCOM4Mode != 0)
{
@ -2241,15 +2330,23 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneCOM4 != (int)Define.E_Lane.Lane1)
if (this.SystemConfig.IsPrint1Enable == true)
this.TransferSerialCOM4(this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroCOM4, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM4("\n" + this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroCOM4, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case 4:
if (this.SystemConfig.SelectLaneCOM4 != (int)Define.E_Lane.Lane1)
this.TransferSerialCOM4(this.Transfer_4_STD2
(this.SystemConfig.IsCharToFillZeroCOM4, Define.E_Lane.Lane2, this.SystemConfig, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneCOM4 != (int)Define.E_Lane.Lane1)
{
this.TransferSerialCOM4(this.SendChar(Define.E_CharValue.ENQ)); // ACK
Thread.Sleep(30);
this.TransferSerialCOM4(this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroCOM4, this.CurrentWeightData2));
}
break;
default:
break;
}
@ -2280,9 +2377,9 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane1)
if (this.SystemConfig.IsPrint1Enable == true)
this.EthernetServerSendMessage(client, this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.EthernetServerSendMessage(client, "\n" + this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case 4:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane1)
@ -2290,7 +2387,13 @@ namespace ITC81DB_2.Forms
this.Transfer_4_STD2
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane2, this.SystemConfig, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case 5:
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane1)
{
this.EthernetServerSendMessage(client, this.SendChar(Define.E_CharValue.ENQ));
Thread.Sleep(30);
this.EthernetServerSendMessage(client, this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroEthernet, this.CurrentWeightData2));
}
break;
default:
break;
@ -2315,16 +2418,24 @@ namespace ITC81DB_2.Forms
break;
case 3:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane1)
if (this.SystemConfig.IsPrint1Enable == true)
this.EthernetWeightData(this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.EthernetWeightData("\n" + this.Transfer_3_Print
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane2, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case (int)Define.E_CommMode.f4_STD2:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane1)
this.EthernetWeightData(this.Transfer_4_STD2
(this.SystemConfig.IsCharToFillZeroEthernet, Define.E_Lane.Lane2, this.SystemConfig, this.CurrentWeightData2, this.CurrentProductItem2));
break;
case (int)Define.E_CommMode.f5_Modbus: // 22, Modbus TCP
case (int)Define.E_CommMode.f5_imaje_9028_OPT2:
if (this.SystemConfig.SelectLaneEthernet != (int)Define.E_Lane.Lane1)
{
this.EthernetWeightData(this.SendChar(Define.E_CharValue.ENQ));
Thread.Sleep(30);
this.EthernetWeightData(this.Transfer_5_imaje9028OPT2(this.SystemConfig.IsCharToFillZeroEthernet, this.CurrentWeightData2));
}
break;
case (int)Define.E_CommMode.f99_Modbus: // 22, Modbus TCP
if (this.SystemConfig.ModbusTCPSelectFunction == (int)Define.E_ModbusFunction._16_WriteMultipleRegister)
{
byte[] sendData = this.Modbus.MakeTCPSendAllData(this.Transfer_5_Modbus_Write_1Lane(), this.SystemConfig.ModbusTCPStartAddress);
@ -2652,7 +2763,7 @@ namespace ITC81DB_2.Forms
value = Helper.DoubleToString(weight.Weight, this.SystemConfig.DecimalPlaces);
sb.Append(value.PadLeft(8, ' '));
value = weight.TotalCount.ToString();
sb.Append(value.PadLeft(11, ' '));
sb.Append(value.PadLeft(12, ' '));
return sb.ToString();
}
@ -2718,6 +2829,61 @@ namespace ITC81DB_2.Forms
return sb.ToString();
}
private byte[] Transfer_5_imaje9028OPT2(bool isFillZero, WeightData weight)
{
int tempStringLength = 0;
string tempString = "";
byte[] byteArray = new byte[11];
byte[] weightBytes = new byte[5];
// 중량발송 : 0x99
byteArray[0] = 0x99;
// Length : 0x00, 0x02 고정값
byteArray[1] = 0x00;
byteArray[2] = 0x07;
byteArray[3] = 0x12;
if (weight.JudgmentStatus == Define.E_JudgmentStatus.Pass)
{
tempStringLength = weight.Weight.ToString().Trim().Length;
if (tempStringLength > 5)
{
tempString = weight.Weight.ToString().Trim().Substring(tempStringLength - 5, 5).Replace(".", "");
if (isFillZero == true)
tempString = Helper.StringZeroFillDigits5(Helper.StringToDecimalPlaces(tempString, this.SystemConfig.DecimalPlaces));
else
tempString = this.PadLeft(5, Helper.StringToDecimalPlaces(tempString, this.SystemConfig.DecimalPlaces));
}
else
{
if (isFillZero == true)
tempString = Helper.StringZeroFillDigits5(Helper.DoubleToString(weight.Weight, this.SystemConfig.DecimalPlaces));
else
tempString = this.PadLeft(5, Helper.DoubleToString(weight.Weight, this.SystemConfig.DecimalPlaces));
}
weightBytes = new UTF8Encoding().GetBytes(tempString);
for (int i = 0; i < weightBytes.Length; i++)
{
byteArray[i + 4] = weightBytes[i];
}
}
else
{
for (int i = 0; i < 5; i++)
{
byteArray[i + 4] = 0x20;
}
}
byteArray[9] = 0x12;
byteArray[10] = 0x00;
byteArray[10] = Helper.ChecksumCalculator(byteArray);
return byteArray;
}
public byte[] Transfer_5_Modbus_Write_1Lane()
{
byte[] madeData = new byte[ModbusTotalBytes];
@ -3916,6 +4082,28 @@ namespace ITC81DB_2.Forms
#endregion
#region Serial Communication
public string SendChar(Define.E_CharValue sendChar)
{
StringBuilder temp = new StringBuilder();
switch (sendChar)
{
case Define.E_CharValue.ENQ:
temp.Append((char)0x05);
break;
case Define.E_CharValue.ACK:
temp.Append((char)0x06);
break;
case Define.E_CharValue.NAK:
temp.Append((char)0x15);
break;
case Define.E_CharValue.Space:
temp.Append((char)0x20);
break;
}
return temp.ToString();
}
public string PadLeft(int length, string sValue)
{
string temp;
@ -4072,7 +4260,7 @@ namespace ITC81DB_2.Forms
// return;
// 통신 포트 설정
this.CloseSerialCOM1();
//this.CloseSerialCOM1();
if (type == Define.E_SeparateType.ETXONLY)
{
@ -4100,7 +4288,7 @@ namespace ITC81DB_2.Forms
}
this.smartSerialPort1.Open();
//this.smartSerialPort1.Open();
}
#endregion
#region Serial COM3
@ -4269,7 +4457,7 @@ namespace ITC81DB_2.Forms
// return;
// 통신 포트 설정
this.CloseSerialCOM3();
//this.CloseSerialCOM3();
if (type == Define.E_SeparateType.ETXONLY)
{
@ -4297,7 +4485,7 @@ namespace ITC81DB_2.Forms
}
this.smartSerialPort3.Open();
//this.smartSerialPort3.Open();
}
public void ChangeSerialCOM3ReceiveDetect(SmartSerialPort.RECEIVEDETECTTYPE detectType)
{
@ -4425,7 +4613,7 @@ namespace ITC81DB_2.Forms
// return;
// 통신 포트 설정
this.CloseSerialCOM4();
//this.CloseSerialCOM4();
if (type == Define.E_SeparateType.ETXONLY)
{
@ -4453,7 +4641,7 @@ namespace ITC81DB_2.Forms
}
this.smartSerialPort4.Open();
//this.smartSerialPort4.Open();
}
#endregion
@ -6010,7 +6198,7 @@ namespace ITC81DB_2.Forms
structItem.DummyBool2 = false;
structItem.DummyBool3 = false;
structItem.DummyBool4 = false;
structItem.DummyBool5 = false;
structItem.IsPrintPerProductEnable = this.SystemConfig.IsPrintPerProductEnable;
structItem.DummyInt1 = 1;
structItem.DummyInt2 = 1;
structItem.EntryNotDetectedIgnoreTime = this.SystemConfig.EntryNotDetectedIgnoreTime;
@ -6068,7 +6256,7 @@ namespace ITC81DB_2.Forms
structItem.DummyBool2 = false;
structItem.DummyBool3 = false;
structItem.DummyBool4 = false;
structItem.DummyBool5 = false;
structItem.IsPrintPerProductEnable = item.IsPrintPerProductEnable;
structItem.DummyInt1 = 1;
structItem.DummyInt2 = 1;
structItem.EntryNotDetectedIgnoreTime = item.EntryNotDetectedIgnoreTime;
@ -6111,6 +6299,7 @@ namespace ITC81DB_2.Forms
this.SystemConfig.IsDataBackup = structItem.IsDataBackup;
this.SystemConfig.IsLogin = structItem.IsLogin;
this.SystemConfig.IsPrintPerProductEnable = structItem.IsPrintPerProductEnable;
this.SystemConfig.EquipmentID = structItem.EquipmentID;
this.SystemConfig.DecimalPlaces = structItem.DecimalPlaces;
@ -8606,7 +8795,7 @@ namespace ITC81DB_2.Forms
switch (this.SystemConfig.EthernetCommMode)
{
case (int)Define.E_CommMode.f5_Modbus:
case (int)Define.E_CommMode.f99_Modbus:
#region Modbus TCP
if (this.smartTCPMultiServer.ClientInfoList != null)
{
@ -8752,7 +8941,7 @@ namespace ITC81DB_2.Forms
try
{
receiveDataState = this.smartSerialPort1.ReadQueue(out readByte);
if (this.SystemConfig.SerialCOM1Mode != (int)Define.E_CommMode.f5_Modbus)
if (this.SystemConfig.SerialCOM1Mode != (int)Define.E_CommMode.f99_Modbus)
{
strTemp = Encoding.Default.GetString(readByte, 0, readByte.Length);
@ -8783,7 +8972,7 @@ namespace ITC81DB_2.Forms
switch (this.SystemConfig.SerialCOM1Mode)
{
case (int)Define.E_CommMode.f5_Modbus:
case (int)Define.E_CommMode.f99_Modbus:
#region Modbus RTU
this.ChildFormMainDisplay.MainModbus.UpdateReceiveCount();
@ -8932,7 +9121,7 @@ namespace ITC81DB_2.Forms
{
receiveDataState = this.smartSerialPort3.ReadQueue(out readByte);
if (this.SystemConfig.SerialCOM3Mode != (int)Define.E_CommMode.f5_Modbus)
if (this.SystemConfig.SerialCOM3Mode != (int)Define.E_CommMode.f99_Modbus)
{
strTemp = Encoding.Default.GetString(readByte, 0, readByte.Length);
@ -8962,7 +9151,7 @@ namespace ITC81DB_2.Forms
switch (this.SystemConfig.SerialCOM3Mode)
{
case (int)Define.E_CommMode.f5_Modbus:
case (int)Define.E_CommMode.f99_Modbus:
#region Modbus RTU
this.ChildFormMainDisplay.MainModbus.UpdateReceiveCount();
@ -9092,7 +9281,7 @@ namespace ITC81DB_2.Forms
try
{
receiveDataState = this.smartSerialPort4.ReadQueue(out readByte);
if (this.SystemConfig.SerialCOM4Mode != (int)Define.E_CommMode.f5_Modbus)
if (this.SystemConfig.SerialCOM4Mode != (int)Define.E_CommMode.f99_Modbus)
{
strTemp = Encoding.Default.GetString(readByte, 0, readByte.Length);
@ -9122,7 +9311,7 @@ namespace ITC81DB_2.Forms
switch (this.SystemConfig.SerialCOM4Mode)
{
case (int)Define.E_CommMode.f5_Modbus:
case (int)Define.E_CommMode.f99_Modbus:
#region Modbus RTU
this.ChildFormMainDisplay.MainModbus.UpdateReceiveCount();

View File

@ -40,7 +40,6 @@
this.buttonProductNo = new SmartX.SmartButton();
this.buttonClear = new SmartX.SmartButton();
this.buttonZero = new SmartX.SmartButton();
this.buttonPrint1 = new SmartX.SmartButton();
this.pictureBoxStart = new System.Windows.Forms.PictureBox();
this.pictureBoxCommunicationStatus = new System.Windows.Forms.PictureBox();
this.timerPrinting = new System.Windows.Forms.Timer();
@ -62,7 +61,6 @@
this.pictureBoxIconUsbEnable = new System.Windows.Forms.PictureBox();
this.pictureBoxIconUsbDesable = new System.Windows.Forms.PictureBox();
this.buttonConveyorUpDown = new SmartX.SmartButton();
this.buttonPrint2 = new SmartX.SmartButton();
this.labelAlarmWindow = new SmartX.SmartLabel();
this.pictureBoxFeedbackEnable = new System.Windows.Forms.PictureBox();
this.pictureBoxFeedbackDisable = new System.Windows.Forms.PictureBox();
@ -77,6 +75,7 @@
this.pictureBoxCOM3Disable = new System.Windows.Forms.PictureBox();
this.labelBarcode = new SmartX.SmartLabel();
this.timerServerMainDisplay = new System.Windows.Forms.Timer();
this.buttonPrint = new SmartX.SmartButton();
((System.ComponentModel.ISupportInitialize)(this.smartForm1)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
@ -304,38 +303,6 @@
this.buttonZero.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonZero.UpImage")));
this.buttonZero.Click += new System.EventHandler(this.buttonZero_Click);
//
// buttonPrint1
//
this.buttonPrint1.BackPictureBox = null;
this.buttonPrint1.BackPictureBox1 = null;
this.buttonPrint1.BackPictureBox2 = null;
this.buttonPrint1.ButtonColor = System.Drawing.Color.Gray;
this.buttonPrint1.ButtonImageAutoSize = true;
this.buttonPrint1.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonPrint1.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint1.DisableImage")));
this.buttonPrint1.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint1.DownImage")));
this.buttonPrint1.GroupID = 0;
this.buttonPrint1.InitVisible = false;
this.buttonPrint1.Location = new System.Drawing.Point(710, 308);
this.buttonPrint1.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonPrint1.Name = "buttonPrint1";
this.buttonPrint1.NestedClickEventPrevent = false;
this.buttonPrint1.OutlinePixel = 1;
this.buttonPrint1.RepeatInterval = 200;
this.buttonPrint1.RepeatIntervalAccelerate = null;
this.buttonPrint1.SafeInterval = 200;
this.buttonPrint1.Size = new System.Drawing.Size(45, 57);
this.buttonPrint1.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonPrint1.TabIndex = 447;
this.buttonPrint1.TextColor = System.Drawing.Color.White;
this.buttonPrint1.TextDownColor = System.Drawing.Color.White;
this.buttonPrint1.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonPrint1.TextLocation = new System.Drawing.Point(0, 0);
this.buttonPrint1.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonPrint1.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint1.UpImage")));
this.buttonPrint1.Visible = false;
this.buttonPrint1.Click += new System.EventHandler(this.buttonPrint1_Click);
//
// pictureBoxStart
//
this.pictureBoxStart.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxStart.Image")));
@ -790,38 +757,6 @@
this.buttonConveyorUpDown.Visible = false;
this.buttonConveyorUpDown.Click += new System.EventHandler(this.buttonConveyorUpDown_Click);
//
// buttonPrint2
//
this.buttonPrint2.BackPictureBox = null;
this.buttonPrint2.BackPictureBox1 = null;
this.buttonPrint2.BackPictureBox2 = null;
this.buttonPrint2.ButtonColor = System.Drawing.Color.Gray;
this.buttonPrint2.ButtonImageAutoSize = true;
this.buttonPrint2.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonPrint2.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint2.DisableImage")));
this.buttonPrint2.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint2.DownImage")));
this.buttonPrint2.GroupID = 0;
this.buttonPrint2.InitVisible = false;
this.buttonPrint2.Location = new System.Drawing.Point(755, 308);
this.buttonPrint2.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonPrint2.Name = "buttonPrint2";
this.buttonPrint2.NestedClickEventPrevent = false;
this.buttonPrint2.OutlinePixel = 1;
this.buttonPrint2.RepeatInterval = 200;
this.buttonPrint2.RepeatIntervalAccelerate = null;
this.buttonPrint2.SafeInterval = 200;
this.buttonPrint2.Size = new System.Drawing.Size(45, 57);
this.buttonPrint2.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonPrint2.TabIndex = 561;
this.buttonPrint2.TextColor = System.Drawing.Color.White;
this.buttonPrint2.TextDownColor = System.Drawing.Color.White;
this.buttonPrint2.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonPrint2.TextLocation = new System.Drawing.Point(0, 0);
this.buttonPrint2.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonPrint2.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint2.UpImage")));
this.buttonPrint2.Visible = false;
this.buttonPrint2.Click += new System.EventHandler(this.buttonPrint2_Click);
//
// labelAlarmWindow
//
this.labelAlarmWindow.BackColor = System.Drawing.Color.DarkRed;
@ -956,12 +891,45 @@
this.timerServerMainDisplay.Interval = 1000;
this.timerServerMainDisplay.Tick += new System.EventHandler(this.timerServerMainDisplay_Tick);
//
// buttonPrint
//
this.buttonPrint.BackPictureBox = null;
this.buttonPrint.BackPictureBox1 = null;
this.buttonPrint.BackPictureBox2 = null;
this.buttonPrint.ButtonColor = System.Drawing.Color.Gray;
this.buttonPrint.ButtonImageAutoSize = true;
this.buttonPrint.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonPrint.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint.DisableImage")));
this.buttonPrint.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint.DownImage")));
this.buttonPrint.GroupID = 0;
this.buttonPrint.InitVisible = false;
this.buttonPrint.Location = new System.Drawing.Point(710, 308);
this.buttonPrint.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonPrint.Name = "buttonPrint";
this.buttonPrint.NestedClickEventPrevent = false;
this.buttonPrint.OutlinePixel = 1;
this.buttonPrint.RepeatInterval = 200;
this.buttonPrint.RepeatIntervalAccelerate = null;
this.buttonPrint.SafeInterval = 200;
this.buttonPrint.Size = new System.Drawing.Size(90, 57);
this.buttonPrint.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonPrint.TabIndex = 605;
this.buttonPrint.TextColor = System.Drawing.Color.White;
this.buttonPrint.TextDownColor = System.Drawing.Color.White;
this.buttonPrint.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonPrint.TextLocation = new System.Drawing.Point(0, 0);
this.buttonPrint.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonPrint.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonPrint.UpImage")));
this.buttonPrint.Visible = false;
this.buttonPrint.Click += new System.EventHandler(this.buttonPrint_Click);
//
// FormMainDisplay
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(800, 600);
this.Controls.Add(this.buttonPrint);
this.Controls.Add(this.labelBarcode);
this.Controls.Add(this.pictureBoxCOM1Enable);
this.Controls.Add(this.pictureBoxCOM3Enable);
@ -975,7 +943,6 @@
this.Controls.Add(this.pictureBoxFeedbackEnable);
this.Controls.Add(this.pictureBoxFeedbackDisable);
this.Controls.Add(this.labelAlarmWindow);
this.Controls.Add(this.buttonPrint2);
this.Controls.Add(this.buttonConveyorUpDown);
this.Controls.Add(this.pictureBoxIconUsbEnable);
this.Controls.Add(this.pictureBoxIconUsbDesable);
@ -989,7 +956,6 @@
this.Controls.Add(this.pictureBoxStart);
this.Controls.Add(this.buttonMenu);
this.Controls.Add(this.buttonClear);
this.Controls.Add(this.buttonPrint1);
this.Controls.Add(this.labelTime);
this.Controls.Add(this.labelLotNo);
this.Controls.Add(this.labelProductName);
@ -1017,7 +983,6 @@
private SmartX.SmartButton buttonProductNo;
private SmartX.SmartButton buttonClear;
private SmartX.SmartButton buttonZero;
private SmartX.SmartButton buttonPrint1;
private System.Windows.Forms.PictureBox pictureBoxStart;
public System.Windows.Forms.PictureBox pictureBoxCommunicationStatus;
private System.Windows.Forms.Timer timerPrinting;
@ -1037,7 +1002,6 @@
private System.Windows.Forms.PictureBox pictureBoxIconUsbEnable;
private System.Windows.Forms.PictureBox pictureBoxIconUsbDesable;
private SmartX.SmartButton buttonConveyorUpDown;
private SmartX.SmartButton buttonPrint2;
private SmartX.SmartLabel labelAlarmWindow;
private SmartX.SmartButton buttonFeedback;
private System.Windows.Forms.PictureBox pictureBoxFeedbackEnable;
@ -1054,5 +1018,6 @@
public SmartX.SmartLabel labelBarcode;
private SmartX.SmartButton buttonModbus;
public System.Windows.Forms.Timer timerServerMainDisplay;
private SmartX.SmartButton buttonPrint;
}
}

View File

@ -76,6 +76,9 @@ namespace ITC81DB_2.Forms
this.buttonUser.DisableImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayLogOffDisable));
this.buttonUser.DownImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayLogOffDown));
this.buttonUser.UpImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayLogOffUp));
this.buttonPrint.DisableImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayPrintDisable));
this.buttonPrint.DownImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayPrintDown));
this.buttonPrint.UpImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayPrintUp));
}
else if (this.ParentForm.SystemConfig.Language == Define.E_LanguageID.Chinese)
{
@ -90,6 +93,9 @@ namespace ITC81DB_2.Forms
this.buttonUser.DisableImage = new Bitmap(images.GetImage(Class1.ButtonImages.chnMainLogOffDisable));
this.buttonUser.DownImage = new Bitmap(images.GetImage(Class1.ButtonImages.chnMainLogOffDown));
this.buttonUser.UpImage = new Bitmap(images.GetImage(Class1.ButtonImages.chnMainLogOffUp));
this.buttonPrint.DisableImage = new Bitmap(images.GetImage(Class1.ButtonImages.chnMainPrintDisable));
this.buttonPrint.DownImage = new Bitmap(images.GetImage(Class1.ButtonImages.chnMainPrintDown));
this.buttonPrint.UpImage = new Bitmap(images.GetImage(Class1.ButtonImages.chnMainPrintUp));
}
else if (this.ParentForm.SystemConfig.Language == Define.E_LanguageID.Spanish)
{
@ -104,6 +110,9 @@ namespace ITC81DB_2.Forms
this.buttonUser.DisableImage = new Bitmap(images.GetImage(Class1.ButtonImages.spnFormMainDisplayLogOffDisable));
this.buttonUser.DownImage = new Bitmap(images.GetImage(Class1.ButtonImages.spnFormMainDisplayLogOffDown));
this.buttonUser.UpImage = new Bitmap(images.GetImage(Class1.ButtonImages.spnFormMainDisplayLogOffUp));
this.buttonPrint.DisableImage = new Bitmap(images.GetImage(Class1.ButtonImages.spnFormMainDisplayPrintDisable));
this.buttonPrint.DownImage = new Bitmap(images.GetImage(Class1.ButtonImages.spnFormMainDisplayPrintDown));
this.buttonPrint.UpImage = new Bitmap(images.GetImage(Class1.ButtonImages.spnFormMainDisplayPrintUp));
}
else
{
@ -118,6 +127,9 @@ namespace ITC81DB_2.Forms
this.buttonUser.DisableImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayLogOffDisable));
this.buttonUser.DownImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayLogOffDown));
this.buttonUser.UpImage = new Bitmap(images.GetImage(Class1.ButtonImages.engFormMainDisplayLogOffUp));
this.buttonPrint.DisableImage = new Bitmap(images.GetImage(Class1.ButtonImages.korFormMainDisplayPrintDisable));
this.buttonPrint.DownImage = new Bitmap(images.GetImage(Class1.ButtonImages.korFormMainDisplayPrintDown));
this.buttonPrint.UpImage = new Bitmap(images.GetImage(Class1.ButtonImages.korFormMainDisplayPrintUp));
}
if (this.ParentForm.CurrentSystemStatus.CurrentWeightInputMode == Define.E_WeightInputMode.Deviation)
@ -367,13 +379,11 @@ namespace ITC81DB_2.Forms
{
if (system.SerialCOM1Mode == 3 || system.SerialCOM3Mode == 3)
{
this.buttonPrint1.Visible = true;
this.buttonPrint2.Visible = true;
this.buttonPrint.Visible = true;
}
else
{
this.buttonPrint1.Visible = false;
this.buttonPrint2.Visible = false;
this.buttonPrint.Visible = false;
}
}
public void UpdateIcomDisplay()
@ -453,7 +463,7 @@ namespace ITC81DB_2.Forms
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f5_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
if (this.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f99_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM1Enable.Visible = false;
this.pictureBoxCOM1Disable.Visible = true;
@ -473,7 +483,7 @@ namespace ITC81DB_2.Forms
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f5_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
if (this.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f99_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM3Enable.Visible = false;
this.pictureBoxCOM3Disable.Visible = true;
@ -493,7 +503,7 @@ namespace ITC81DB_2.Forms
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f5_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
if (this.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f99_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM4Enable.Visible = false;
this.pictureBoxCOM4Disable.Visible = true;
@ -1014,6 +1024,11 @@ namespace ITC81DB_2.Forms
this.MainWeightScreen.DisplayRefresh(status);
this.ProductChange(this.ParentForm.SystemConfig.ProductNumber);
if (this.ParentForm.SystemConfig.IsPrintPerProductEnable == true)
this.buttonPrint.ButtonDown();
else
this.buttonPrint.ButtonUp();
}
#endregion
@ -1113,28 +1128,32 @@ namespace ITC81DB_2.Forms
this.PopUpWarningClose();
}
private void buttonPrint1_Click(object sender, EventArgs e)
private void buttonPrint_Click(object sender, EventArgs e)
{
if (this.buttonPrint1.ButtonStatus == SmartButton.BUTSTATUS.DOWN)
if (this.buttonPrint.ButtonStatus == SmartButton.BUTSTATUS.DOWN)
{
this.ParentForm.SystemConfig.IsPrint1Enable = true;
this.ParentForm.SystemConfig.IsPrintPerProductEnable = true;
if (this.buttonPrint2.ButtonStatus != SmartButton.BUTSTATUS.DOWN)
this.ParentForm.PrintingHeadLine();
this.ParentForm.PrintingHeadLine();
}
else
{
this.ParentForm.SystemConfig.IsPrint1Enable = false;
this.ParentForm.SystemConfig.IsPrintPerProductEnable = false;
if (this.buttonPrint2.ButtonStatus != SmartButton.BUTSTATUS.DOWN)
if (this.ParentForm.SystemConfig.SerialCOM1Mode == 3)
{
if (this.ParentForm.SystemConfig.SerialCOM1Mode == 3)
this.ParentForm.TransferSerialCOM1("\n\n\n\n");
else if (this.ParentForm.SystemConfig.SerialCOM3Mode == 3)
this.ParentForm.TransferSerialCOM3("\n\n\n\n");
this.ParentForm.TransferSerialCOM1("\n--------------------------------");
this.ParentForm.TransferSerialCOM1("\n\n\n\n\n\n");
}
else if (this.ParentForm.SystemConfig.SerialCOM3Mode == 3)
{
this.ParentForm.TransferSerialCOM3("\n--------------------------------");
this.ParentForm.TransferSerialCOM3("\n\n\n\n\n\n");
}
}
this.ParentForm.SaveSystemConfigurationFile1(this.ParentForm.SystemConfig);
//this.buttonPrint.Enabled = false;
//this.buttonClear.Enabled = false;
//this.timerPrinting.Interval = 10000;
@ -1142,28 +1161,6 @@ namespace ITC81DB_2.Forms
//this.ParentForm.PrintingWeight(this.ParentForm.CurrentWeightData, this.ParentForm.CurrentProductItem);
}
private void buttonPrint2_Click(object sender, EventArgs e)
{
if (this.buttonPrint2.ButtonStatus == SmartButton.BUTSTATUS.DOWN)
{
this.ParentForm.SystemConfig.IsPrint2Enable = true;
if (this.buttonPrint1.ButtonStatus != SmartButton.BUTSTATUS.DOWN)
this.ParentForm.PrintingHeadLine();
}
else
{
this.ParentForm.SystemConfig.IsPrint2Enable = false;
if (this.buttonPrint1.ButtonStatus != SmartButton.BUTSTATUS.DOWN)
{
if (this.ParentForm.SystemConfig.SerialCOM1Mode == 3)
this.ParentForm.TransferSerialCOM1("\n\n\n\n");
else if (this.ParentForm.SystemConfig.SerialCOM3Mode == 3)
this.ParentForm.TransferSerialCOM3("\n\n\n\n");
}
}
}
private void buttonClear_Click(object sender, EventArgs e)
{
DialogFormYesNo myDlg = new DialogFormYesNo(this.ParentForm.SystemConfig.Language, 8);

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,19 @@
2열 기본형 컨베어 계량기
*/
@ Ver 3.2.0 by CJY
- 2025.11.27
- Ver 3.1.6 Modify
- (버그수정) Print 통신 선택 시 포맷 깨지는 부분 수정
- 메인화면 [인쇄] 버튼 1, 2열 동시 사용(개별출력기능)
- 기능설정 - 스위치 채터링 추가
@ Ver 3.1.6 by CJY
- 2025.09.25
- Ver 3.1.5 Modify
- (버그수정)Communication mode 저장 시 에러 발생하는 버그 수정 <- Modbus 추가하면서 문제생긴 듯
- imaje 9028 OPT2 프로토콜 추가
@ Ver 3.1.5 by CJY
- 2025.09.02
- Ver 3.1.4 Modify

Binary file not shown.

Binary file not shown.