From 7d4eef2cbcb9f2a3585ac18ce7aca966756bcc86 Mon Sep 17 00:00:00 2001 From: hanqiangqiang <1364346467@qq.com> Date: Thu, 14 Sep 2023 17:33:18 +0800 Subject: [PATCH] =?UTF-8?q?[RT.EquipmentLibrary]=20PLC=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MECF.Framework.RT.EquipmentLibrary/Devices/TcAds.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MECF.Framework.RT.EquipmentLibrary/Devices/TcAds.cs b/MECF.Framework.RT.EquipmentLibrary/Devices/TcAds.cs index fb6d65e..76f5fdd 100644 --- a/MECF.Framework.RT.EquipmentLibrary/Devices/TcAds.cs +++ b/MECF.Framework.RT.EquipmentLibrary/Devices/TcAds.cs @@ -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 } /// - /// 实时检测PLC是否断线,断线延时2秒重连 + /// 事件触发线程启动,PLC断线延时2秒重连,连接后才会退出线程 /// protected void Reconnection() {