[RT.EquipmentLibrary]

PLC连接对象添加注释
This commit is contained in:
hanqiangqiang 2023-09-14 17:33:18 +08:00
parent 168f3f4402
commit 7d4eef2cbc
1 changed files with 3 additions and 1 deletions

View File

@ -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()
{