wanshenmean
8 天以前 fd18eaba5e1c086a588509371f91310e7aafff9c
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);
                    }
                }
            });