Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Omron/OmronEtherNetCommunicator.cs
@@ -24,6 +24,13 @@ [Description("欧姆龙EtherNet/IP(CIP)")] public class OmronEtherNetCommunicator : BaseCommunicator { #region Constants /// <summary> /// Ping 检测间隔时间(毫秒) /// </summary> private const int PingIntervalMs = 100; #endregion Constants #region Private Member /// <summary> /// HSLCommunication的西门子的S7协议的通讯类 @@ -328,7 +335,7 @@ private void Ping() { Task.Run(() => Task.Run(async () => { while (_isPing) { @@ -342,7 +349,7 @@ } finally { Thread.Sleep(100); await Task.Delay(PingIntervalMs); } } });