parent
168f3f4402
commit
7d4eef2cbc
|
@ -20,6 +20,8 @@ namespace Aitex.Core.RT.Device.Devices
|
|||
#region IConnectionContext
|
||||
|
||||
public int RetryConnectIntervalMs => 1000;
|
||||
|
||||
//这个属性是底层库重连次数,超过重连次数,以后不在重新连接
|
||||
public int MaxRetryConnectCount => 5;
|
||||
public bool EnableCheckConnection => true;
|
||||
public virtual string Address { get; }
|
||||
|
@ -235,7 +237,7 @@ namespace Aitex.Core.RT.Device.Devices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实时检测PLC是否断线,断线延时2秒重连
|
||||
/// 事件触发线程启动,PLC断线延时2秒重连,连接后才会退出线程
|
||||
/// </summary>
|
||||
protected void Reconnection()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue