Alarm Log 추가

master
DESKTOP-999R8N3\CJY 2021-12-13 14:48:18 +09:00
parent 05288240ca
commit a60d8224b0
17 changed files with 117 additions and 3 deletions

View File

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

View File

@ -21,6 +21,8 @@ namespace ITC81DB_2.Forms
#region Field #region Field
private FormMain m_ParentForm; private FormMain m_ParentForm;
private List<bool> AlarmListBool;
private DataStore.MainDisplayStore CurrentDisplay; private DataStore.MainDisplayStore CurrentDisplay;
public ControlMainDisplayNormal MainDisplayNormal; public ControlMainDisplayNormal MainDisplayNormal;
@ -144,6 +146,7 @@ namespace ITC81DB_2.Forms
this.pictureBoxIconAlarm.Visible = false; this.pictureBoxIconAlarm.Visible = false;
this.MainDisplayAlarm.Visible = false; this.MainDisplayAlarm.Visible = false;
this.MainDisplayAlarm.BringToFront(); this.MainDisplayAlarm.BringToFront();
this.AlarmListBool = new List<bool>();
if (this.ParentForm.SystemConfig.EquipmentType == 4) if (this.ParentForm.SystemConfig.EquipmentType == 4)
this.UpdateControlVisible(true); this.UpdateControlVisible(true);
@ -161,8 +164,35 @@ namespace ITC81DB_2.Forms
private void UpdateDisplayAlarmView(WeightData data1, WeightData data2) private void UpdateDisplayAlarmView(WeightData data1, WeightData data2)
{ {
if (data1.IsLoadCellError == true || data2.IsLoadCellError == true || data1.IsEmergencyStop == true bool flagAlarm = false;
|| data1.IsEntrySensorError == true || data2.IsEntrySensorError == true) bool flagChange = false;
if (this.AlarmListBool.Count > 0)
{
if (this.AlarmListBool[0] != data1.IsLoadCellError) flagChange = true;
if (this.AlarmListBool[1] != data2.IsLoadCellError) flagChange = true;
if (this.AlarmListBool[2] != data1.IsEmergencyStop) flagChange = true;
if (this.AlarmListBool[3] != data1.IsEntrySensorError) flagChange = true;
if (this.AlarmListBool[4] != data2.IsEntrySensorError) flagChange = true;
}
this.AlarmListBool.Clear();
this.AlarmListBool.Add(data1.IsLoadCellError);
this.AlarmListBool.Add(data2.IsLoadCellError);
this.AlarmListBool.Add(data1.IsEmergencyStop);
this.AlarmListBool.Add(data1.IsEntrySensorError);
this.AlarmListBool.Add(data2.IsEntrySensorError);
foreach (bool listBool in this.AlarmListBool)
{
if (listBool == true)
{
flagAlarm = true;
break;
}
}
if (flagAlarm == true)
{ {
if (this.pictureBoxIconAlarm.Visible == false) if (this.pictureBoxIconAlarm.Visible == false)
this.pictureBoxIconAlarm.Visible = true; this.pictureBoxIconAlarm.Visible = true;
@ -171,6 +201,7 @@ namespace ITC81DB_2.Forms
{ {
this.pictureBoxIconAlarm.Visible = false; this.pictureBoxIconAlarm.Visible = false;
this.MainDisplayAlarm.Visible = false; this.MainDisplayAlarm.Visible = false;
return; return;
} }
@ -186,6 +217,17 @@ namespace ITC81DB_2.Forms
this.MainDisplayAlarm.listBoxMessage.Items.Add("#1 Entry Sensor Error"); this.MainDisplayAlarm.listBoxMessage.Items.Add("#1 Entry Sensor Error");
if (data2.IsEntrySensorError == true) if (data2.IsEntrySensorError == true)
this.MainDisplayAlarm.listBoxMessage.Items.Add("#2 Entry Sensor Error"); this.MainDisplayAlarm.listBoxMessage.Items.Add("#2 Entry Sensor Error");
if (flagChange == true && this.MainDisplayAlarm.listBoxMessage.Items.Count > 0)
{
// 로그
if (this.ParentForm.IsCommunicationLogOpen == true)
{
for (int i = 0; i < this.MainDisplayAlarm.listBoxMessage.Items.Count; i++)
this.ParentForm.smartFileCommunicationLog.WriteString(
string.Format("Alarm ({0:yyyy-MM-dd HH:mm:ss}): {1}", DateTime.Now, this.MainDisplayAlarm.listBoxMessage.Items[i]));
}
}
} }
private void ProductChange(int productNumber) private void ProductChange(int productNumber)
{ {

View File

@ -13,6 +13,11 @@
2열 기본형 컨베어 계량기 2열 기본형 컨베어 계량기
*/ */
@ Ver 2.3.0 by CJY
- 2021.12.13
- Ver 2.2.0 Modify
- CommunicationLog - Alarm 추가
@ Ver 2.2.0 by CJY @ Ver 2.2.0 by CJY
- 2021.09.28 - 2021.09.28
- Ver 2.1.2 Modify - Ver 2.1.2 Modify

Binary file not shown.

Binary file not shown.

View File

@ -180,3 +180,63 @@ D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2\obj\Debug\ITC81DB_2.Properties.Resources.resou
D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2\obj\Debug\ITC81DB_2.csproj.GenerateResource.Cache D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2\obj\Debug\ITC81DB_2.csproj.GenerateResource.Cache
D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2\obj\Debug\ITC81DB_2.exe D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2\obj\Debug\ITC81DB_2.exe
D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2\obj\Debug\ITC81DB_2.pdb D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2\obj\Debug\ITC81DB_2.pdb
D:\Laboratory\ITC81DB_2\ITC81DB_2\bin\Debug\ITC81DB_2.exe
D:\Laboratory\ITC81DB_2\ITC81DB_2\bin\Debug\ITC81DB_2.pdb
D:\Laboratory\ITC81DB_2\ITC81DB_2\bin\Debug\ITC81DB_2_ImageDll.dll
D:\Laboratory\ITC81DB_2\ITC81DB_2\bin\Debug\SmartX_IEC1000.dll
D:\Laboratory\ITC81DB_2\ITC81DB_2\bin\Debug\SmartXCommon.dll
D:\Laboratory\ITC81DB_2\ITC81DB_2\bin\Debug\ITC81DB_2_ImageDll.pdb
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ResolveAssemblyReference.cache
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlBottomConfiguration.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlBottomEquipment.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlBottomInformation.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlBottomSystem.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterBasicHelp.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterBasicTime.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterBasicProduct.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterBasicDataBackup.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterBasicDataStatistics.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlBottomBasic.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterConfiCommunication.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterConfiHelp.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterConfiOption.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterConfiOptionBoard.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterEquipEngineer.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterEquipFunctionSetting.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterEquipHelp.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterEquipInitialize.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterEquipTest.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterEquipUpdate.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterEquipUser.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterEquipUserGroupEditor.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterInforAS.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterInforHelp.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterInforSystem.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterSystemCalibration.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterSystemAutoZero.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterSystemExternalOutput.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterSystemHelp.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterSystemIOTest.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterSystemJudgmentSetting.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlCenterSystemSorterSetting.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlUserGroupEditor.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlMainDisplayAlarm.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlMainDisplayDataStatistics.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlMainDisplayList.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlMainDisplayNormal.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlMainDisplayMenu.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Controls.ControlMainDisplayXYChart.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.DialogForms.DialogFormLogOn.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.DialogForms.DialogFormPasswordKeyPad1.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.DialogForms.DialogFormMessage.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.DialogForms.DialogFormNumKeyPad.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.DialogForms.DialogFormPasswordKeyPad.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.DialogForms.DialogFormProductList.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.DialogForms.DialogFormYesNo.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Forms.FormMain.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Forms.FormMainDisplay.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Forms.FormMenu.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.Properties.Resources.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.csproj.GenerateResource.Cache
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.exe
D:\Laboratory\ITC81DB_2\ITC81DB_2\obj\Debug\ITC81DB_2.pdb

Binary file not shown.

Binary file not shown.

View File

@ -19,3 +19,10 @@ D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_
D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.csproj.GenerateResource.Cache D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.csproj.GenerateResource.Cache
D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.dll D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.dll
D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.pdb D:\Git\ITC81DB_2_V0.0.0\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.pdb
D:\Laboratory\ITC81DB_2\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\bin\Debug\ITC81DB_2_ImageDll.dll
D:\Laboratory\ITC81DB_2\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\bin\Debug\ITC81DB_2_ImageDll.pdb
D:\Laboratory\ITC81DB_2\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ResolveAssemblyReference.cache
D:\Laboratory\ITC81DB_2\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.Resource1.resources
D:\Laboratory\ITC81DB_2\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.csproj.GenerateResource.Cache
D:\Laboratory\ITC81DB_2\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.dll
D:\Laboratory\ITC81DB_2\ITC81DB_2_ImageDll\ITC81DB_2_ImageDll\obj\Debug\ITC81DB_2_ImageDll.pdb