src/Bro.Device.Common/DeviceBase/PLCBase.cs
@@ -79,7 +79,7 @@
                    }
                    catch (Exception ex)
                    {
                        OnLog?.Invoke(DateTime.Now, this, "PLC监听异常:" + ex.GetExceptionMessage());
                        OnLog?.Invoke(DateTime.Now, this, $"{Name}监听异常:{ex.GetExceptionMessage()}");
                    }
                }
            }
@@ -141,13 +141,13 @@
                              return tempNew[index];
                          }).ToList();
                        OnMonitorInvoke?.BeginInvoke(DateTime.Now, m, OnMethodInvoked, m);
                        OnMonitorInvoke?.BeginInvoke(DateTime.Now, this, m, OnMethodInvoked, m);
                    }
                }
            });
        }
        private void OnMethodInvoked(IAsyncResult ar)
        protected virtual void OnMethodInvoked(IAsyncResult ar)
        {
            MonitorSet monitorSet = ar.AsyncState as MonitorSet;
@@ -186,7 +186,7 @@
                        if (repeatTime <= 0)
                        {
                            new ProcessException("PLC反馈写入异常", ex);
                            new ProcessException("PLC反馈写入异常", ExceptionLevel.Info, ex);
                        }
                    }
                } while (repeatTime > 0);
@@ -234,13 +234,13 @@
        [Description("超时设置,单位:ms")]
        public int Timeout { get; set; } = 500;
        [Category("输出设置")]
        [Description("是否日志输出")]
        public bool IsEnabelLog { get; set; } = false;
        //[Category("输出设置")]
        //[Description("是否日志输出")]
        //public bool IsEnabelLog { get; set; } = false;
        [Category("输出设置")]
        [Description("输出文件路径")]
        public string LogPath { get; set; } = @"D:\PLCLog.txt";
        //[Category("输出设置")]
        //[Description("输出文件路径")]
        //public string LogPath { get; set; } = @"D:\PLCLog.txt";
        #region 地址设置
        [Category("事件地址设置")]