추가수정
							parent
							
								
									ee2012b82e
								
							
						
					
					
						commit
						471f0e81cc
					
				|  | @ -280,8 +280,6 @@ namespace INT_PT002.Controls | ||||||
|         { |         { | ||||||
|             if (this.ParentForm.ParentForm.SystemConfig.ETHERNET_COMM_MODE == 1) |             if (this.ParentForm.ParentForm.SystemConfig.ETHERNET_COMM_MODE == 1) | ||||||
|             { |             { | ||||||
|                 this.ParentForm.ParentForm.ChildFormMainDisplay.InitialEthernetIcon(); |  | ||||||
| 
 |  | ||||||
|                 if (this.ParentForm.ParentForm.SystemConfig.ETHERNET_OP_MODE == 1) |                 if (this.ParentForm.ParentForm.SystemConfig.ETHERNET_OP_MODE == 1) | ||||||
|                 { |                 { | ||||||
|                     this.ParentForm.ParentForm.ChildFormMainDisplay.MainButtonModbusAdd(true); |                     this.ParentForm.ParentForm.ChildFormMainDisplay.MainButtonModbusAdd(true); | ||||||
|  | @ -316,6 +314,8 @@ namespace INT_PT002.Controls | ||||||
|                 this.ParentForm.ParentForm.ChildFormMainDisplay.MainButtonModbusAdd(false); |                 this.ParentForm.ParentForm.ChildFormMainDisplay.MainButtonModbusAdd(false); | ||||||
|                 this.groupBoxModbusSetting.Visible = false; |                 this.groupBoxModbusSetting.Visible = false; | ||||||
|             } |             } | ||||||
|  | 
 | ||||||
|  |             this.ParentForm.ParentForm.ChildFormMainDisplay.InitialEthernetIcon(); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         public void DisplayRefresh() |         public void DisplayRefresh() | ||||||
|  |  | ||||||
|  | @ -115,6 +115,7 @@ | ||||||
|             // timerClientTryConnect |             // timerClientTryConnect | ||||||
|             //  |             //  | ||||||
|             this.timerClientTryConnect.Interval = 2000; |             this.timerClientTryConnect.Interval = 2000; | ||||||
|  |             this.timerClientTryConnect.Tick += new System.EventHandler(this.timerClientTryConnect_Tick); | ||||||
|             //  |             //  | ||||||
|             // FormMain |             // FormMain | ||||||
|             //  |             //  | ||||||
|  |  | ||||||
|  | @ -1539,6 +1539,13 @@ namespace INT_PT002.Forms | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 this.Update30000ModbusItem(); |                 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 |             catch | ||||||
|             { |             { | ||||||
|  | @ -4360,6 +4367,11 @@ namespace INT_PT002.Forms | ||||||
|         { |         { | ||||||
|             this.timerUserList.Enabled = false; |             this.timerUserList.Enabled = false; | ||||||
|             UserManager.UserManager_GetUserListName(); |             UserManager.UserManager_GetUserListName(); | ||||||
|  |         }        | ||||||
|  |         private void timerClientTryConnect_Tick(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             this.DelegateTimerTryConnect(false); | ||||||
|  |             this.EthernetClientConnect(); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         #region UserManagerEvent |         #region UserManagerEvent | ||||||
|  | @ -4565,11 +4577,6 @@ namespace INT_PT002.Forms | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         #endregion |         #endregion | ||||||
| 
 |  | ||||||
|         private void timerClientTryConnect_Tick(object sender, EventArgs e) |  | ||||||
|         { |  | ||||||
| 
 |  | ||||||
|         } |  | ||||||
|         #endregion |         #endregion | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | @ -1302,8 +1302,8 @@ namespace INT_PT002.Forms | ||||||
| 
 | 
 | ||||||
|             this.buttonRecipeNo.ButtonText = this.ParentForm.CurrentRecipe.NUMBER.ToString(); |             this.buttonRecipeNo.ButtonText = this.ParentForm.CurrentRecipe.NUMBER.ToString(); | ||||||
|             this.InitializeProcessStatus(); |             this.InitializeProcessStatus(); | ||||||
|             if (this.ChildModbus.Visible == true) | 
 | ||||||
|                 this.ChildModbus.Visible = false; |             this.ChildModbus.Visible = false; | ||||||
| 
 | 
 | ||||||
|             this.UpdateDisplayUser(this.ParentForm.CurrentSystemStatus.CurrentUser); |             this.UpdateDisplayUser(this.ParentForm.CurrentSystemStatus.CurrentUser); | ||||||
|         } |         } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue