<< Click to Display Table of Contents >>
ReconnectPeriod |
Controls the period of connection to the OPC Server. If connection is lost, OPC Driver stops and restarts until this action returns success. The period is configured in milliseconds and when its value is set to 0 (zero), reconnection is disabled. Because the OPC Driver is stopped and started, BeforeStart and AfterStop events are generated. When connection is lost, all related Tags are disconnected from their current status (bad/quality/null value). Example:
Sub OPCDriver1_AfterStart()
Application.GetObject("OPCDriver1.OPCGroup1")._
ReconnectPeriod = 0
End Sub