- 메인화면 Ethernet 아이콘 변경
- Ethernet - Client 설정 후 메인화면에서 운전 시, 메뉴버튼 클릭하면 Client 연결 조작 메뉴 팝업 - Client 연결 시나리오 수정 Booting -> Client ON 시, Timer 실행 -> Client(중량선별기)가 Server에 연결되면 Timer OFF -> Client 연결 끊김 -> Timer 실행main
parent
eed5a62b14
commit
dec7152427
BIN
ITC81DB.suo
BIN
ITC81DB.suo
Binary file not shown.
|
@ -344,7 +344,7 @@
|
|||
//
|
||||
this.pictureBoxEthernetDisconnection.BackColor = System.Drawing.Color.Black;
|
||||
this.pictureBoxEthernetDisconnection.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxEthernetDisconnection.Image")));
|
||||
this.pictureBoxEthernetDisconnection.Location = new System.Drawing.Point(306, 3);
|
||||
this.pictureBoxEthernetDisconnection.Location = new System.Drawing.Point(307, 3);
|
||||
this.pictureBoxEthernetDisconnection.Name = "pictureBoxEthernetDisconnection";
|
||||
this.pictureBoxEthernetDisconnection.Size = new System.Drawing.Size(30, 25);
|
||||
this.pictureBoxEthernetDisconnection.Visible = false;
|
||||
|
@ -353,7 +353,7 @@
|
|||
//
|
||||
this.pictureBoxEthernetConnection.BackColor = System.Drawing.Color.Black;
|
||||
this.pictureBoxEthernetConnection.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxEthernetConnection.Image")));
|
||||
this.pictureBoxEthernetConnection.Location = new System.Drawing.Point(306, 3);
|
||||
this.pictureBoxEthernetConnection.Location = new System.Drawing.Point(307, 3);
|
||||
this.pictureBoxEthernetConnection.Name = "pictureBoxEthernetConnection";
|
||||
this.pictureBoxEthernetConnection.Size = new System.Drawing.Size(30, 25);
|
||||
this.pictureBoxEthernetConnection.Visible = false;
|
||||
|
|
|
@ -88,6 +88,8 @@ namespace ITC81DB
|
|||
}
|
||||
public void UpdateSpotOrBypassImageVisibleStatus(bool check)
|
||||
{
|
||||
this.ParentForm.ParentForm.IsBypassStart = check;
|
||||
|
||||
if (check == true)
|
||||
{
|
||||
this.pictureBoxBypass.Visible = true;
|
||||
|
|
|
@ -328,7 +328,7 @@
|
|||
//
|
||||
this.pictureBoxEthernetDisable.BackColor = System.Drawing.Color.Black;
|
||||
this.pictureBoxEthernetDisable.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxEthernetDisable.Image")));
|
||||
this.pictureBoxEthernetDisable.Location = new System.Drawing.Point(306, 3);
|
||||
this.pictureBoxEthernetDisable.Location = new System.Drawing.Point(307, 3);
|
||||
this.pictureBoxEthernetDisable.Name = "pictureBoxEthernetDisable";
|
||||
this.pictureBoxEthernetDisable.Size = new System.Drawing.Size(30, 25);
|
||||
this.pictureBoxEthernetDisable.Visible = false;
|
||||
|
@ -337,7 +337,7 @@
|
|||
//
|
||||
this.pictureBoxEthernetConnection.BackColor = System.Drawing.Color.Black;
|
||||
this.pictureBoxEthernetConnection.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxEthernetConnection.Image")));
|
||||
this.pictureBoxEthernetConnection.Location = new System.Drawing.Point(306, 3);
|
||||
this.pictureBoxEthernetConnection.Location = new System.Drawing.Point(307, 3);
|
||||
this.pictureBoxEthernetConnection.Name = "pictureBoxEthernetConnection";
|
||||
this.pictureBoxEthernetConnection.Size = new System.Drawing.Size(30, 25);
|
||||
this.pictureBoxEthernetConnection.Visible = false;
|
||||
|
@ -346,7 +346,7 @@
|
|||
//
|
||||
this.pictureBoxEthernetDisconnection.BackColor = System.Drawing.Color.Black;
|
||||
this.pictureBoxEthernetDisconnection.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxEthernetDisconnection.Image")));
|
||||
this.pictureBoxEthernetDisconnection.Location = new System.Drawing.Point(306, 3);
|
||||
this.pictureBoxEthernetDisconnection.Location = new System.Drawing.Point(307, 3);
|
||||
this.pictureBoxEthernetDisconnection.Name = "pictureBoxEthernetDisconnection";
|
||||
this.pictureBoxEthernetDisconnection.Size = new System.Drawing.Size(30, 25);
|
||||
this.pictureBoxEthernetDisconnection.Visible = false;
|
||||
|
|
|
@ -89,6 +89,8 @@ namespace ITC81DB.Controls
|
|||
}
|
||||
public void UpdateSpotOrBypassImageVisibleStatus(bool check)
|
||||
{
|
||||
this.ParentForm.ParentForm.IsBypassStart = check;
|
||||
|
||||
if (check == true)
|
||||
{
|
||||
this.pictureBoxBypass.Visible = true;
|
||||
|
|
|
@ -54,6 +54,7 @@ namespace ITC81DB.Forms
|
|||
public bool IsAlarmOccured;
|
||||
public bool IsCountingOutputCrossStatus;
|
||||
private bool IsSatisfyCounting;
|
||||
public bool IsBypassStart;
|
||||
|
||||
// 재전송 기능
|
||||
public int MissingCommIDCount;
|
||||
|
@ -2571,6 +2572,11 @@ namespace ITC81DB.Forms
|
|||
{
|
||||
this.IsBootingComplete = true;
|
||||
this.TransferDataStream(CommunicationCommand.Read, CommunicationID.MainBoard, CommunicationAddress.ParameterCount, "");
|
||||
|
||||
if (this.SystemConfig2.EthernetOperationMode == 2)
|
||||
{
|
||||
this.TimerEnabled(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -8461,8 +8467,8 @@ namespace ITC81DB.Forms
|
|||
#region Client
|
||||
public void TimerEnabled(bool bValue)
|
||||
{
|
||||
if (this.CurrentSystemStatus.CurrentDisplay == DataStore.DisplayStore.MainDisplay)
|
||||
if (this.IsEthernetStartMenu == false)
|
||||
// if (this.CurrentSystemStatus.CurrentDisplay == DataStore.DisplayStore.MainDisplay)
|
||||
// if (this.IsEthernetStartMenu == false)
|
||||
this.timerClientConnect.Enabled = bValue;
|
||||
}
|
||||
|
||||
|
@ -8670,30 +8676,60 @@ namespace ITC81DB.Forms
|
|||
this.IsEthernetTransferData = true;
|
||||
this.EthernetTransferData = strTemp;
|
||||
|
||||
if (this.IsEthernetThreadStart == false)
|
||||
this.EthernetClientConnect();
|
||||
else
|
||||
this.EthernetSendMessage((string)this.EthernetTransferData);
|
||||
try
|
||||
{
|
||||
if (this.IsEthernetThreadStart == false)
|
||||
{
|
||||
this.EthernetClientConnect();
|
||||
this.EthernetSendMessage((string)this.EthernetTransferData);
|
||||
}
|
||||
else
|
||||
this.EthernetSendMessage((string)this.EthernetTransferData);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
public void EthernetWeightData(byte[] bytes)
|
||||
{
|
||||
this.IsEthernetTransferData = true;
|
||||
this.EthernetTransferData = bytes;
|
||||
|
||||
if (this.IsEthernetThreadStart == false)
|
||||
this.EthernetClientConnect();
|
||||
else
|
||||
this.EthernetSendMessage(bytes);
|
||||
try
|
||||
{
|
||||
if (this.IsEthernetThreadStart == false)
|
||||
{
|
||||
this.EthernetClientConnect();
|
||||
this.EthernetSendMessage(bytes);
|
||||
}
|
||||
else
|
||||
this.EthernetSendMessage(bytes);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
public void EthernetWeightDataForModbus(byte[] bytes)
|
||||
{
|
||||
this.IsEthernetTransferData = true;
|
||||
this.EthernetTransferData = bytes;
|
||||
|
||||
if (this.IsEthernetThreadStart == false)
|
||||
this.EthernetClientConnect();
|
||||
else
|
||||
this.EthernetSendMessage(bytes);
|
||||
try
|
||||
{
|
||||
if (this.IsEthernetThreadStart == false)
|
||||
{
|
||||
this.EthernetClientConnect();
|
||||
this.EthernetSendMessage(bytes);
|
||||
}
|
||||
else
|
||||
this.EthernetSendMessage(bytes);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue