추가수정
parent
ee2012b82e
commit
471f0e81cc
|
@ -280,8 +280,6 @@ namespace INT_PT002.Controls
|
|||
{
|
||||
if (this.ParentForm.ParentForm.SystemConfig.ETHERNET_COMM_MODE == 1)
|
||||
{
|
||||
this.ParentForm.ParentForm.ChildFormMainDisplay.InitialEthernetIcon();
|
||||
|
||||
if (this.ParentForm.ParentForm.SystemConfig.ETHERNET_OP_MODE == 1)
|
||||
{
|
||||
this.ParentForm.ParentForm.ChildFormMainDisplay.MainButtonModbusAdd(true);
|
||||
|
@ -316,6 +314,8 @@ namespace INT_PT002.Controls
|
|||
this.ParentForm.ParentForm.ChildFormMainDisplay.MainButtonModbusAdd(false);
|
||||
this.groupBoxModbusSetting.Visible = false;
|
||||
}
|
||||
|
||||
this.ParentForm.ParentForm.ChildFormMainDisplay.InitialEthernetIcon();
|
||||
}
|
||||
|
||||
public void DisplayRefresh()
|
||||
|
|
|
@ -115,6 +115,7 @@
|
|||
// timerClientTryConnect
|
||||
//
|
||||
this.timerClientTryConnect.Interval = 2000;
|
||||
this.timerClientTryConnect.Tick += new System.EventHandler(this.timerClientTryConnect_Tick);
|
||||
//
|
||||
// FormMain
|
||||
//
|
||||
|
|
|
@ -1539,6 +1539,13 @@ namespace INT_PT002.Forms
|
|||
}
|
||||
|
||||
this.Update30000ModbusItem();
|
||||
|
||||
if (this.SystemConfig.MODBUS_TCP_SELECTFUNCTION == (int)Define.E_ModbusFunction._16_WriteMultipleRegister)
|
||||
{
|
||||
byte[] sendData = this.Modbus.MakeTCPSendAllData(this.Transfer_1_Modbus_Write(), this.SystemConfig.MODBUS_TCP_START_ADDRESS);
|
||||
|
||||
this.EthernetWeightDataForModbus(sendData);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
@ -4361,6 +4368,11 @@ namespace INT_PT002.Forms
|
|||
this.timerUserList.Enabled = false;
|
||||
UserManager.UserManager_GetUserListName();
|
||||
}
|
||||
private void timerClientTryConnect_Tick(object sender, EventArgs e)
|
||||
{
|
||||
this.DelegateTimerTryConnect(false);
|
||||
this.EthernetClientConnect();
|
||||
}
|
||||
|
||||
#region UserManagerEvent
|
||||
private void UserManager_UserListLogoutDataEvent(int status)
|
||||
|
@ -4565,11 +4577,6 @@ namespace INT_PT002.Forms
|
|||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void timerClientTryConnect_Tick(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -1302,7 +1302,7 @@ namespace INT_PT002.Forms
|
|||
|
||||
this.buttonRecipeNo.ButtonText = this.ParentForm.CurrentRecipe.NUMBER.ToString();
|
||||
this.InitializeProcessStatus();
|
||||
if (this.ChildModbus.Visible == true)
|
||||
|
||||
this.ChildModbus.Visible = false;
|
||||
|
||||
this.UpdateDisplayUser(this.ParentForm.CurrentSystemStatus.CurrentUser);
|
||||
|
|
Loading…
Reference in New Issue