| | |
| | | }); |
| | | } |
| | | |
| | | private void OnMethodInvoked(IAsyncResult ar) |
| | | protected virtual void OnMethodInvoked(IAsyncResult ar) |
| | | { |
| | | MonitorSet monitorSet = ar.AsyncState as MonitorSet; |
| | | |
| | |
| | | |
| | | if (repeatTime <= 0) |
| | | { |
| | | new ProcessException("PLC反馈写入异常", ex); |
| | | new ProcessException("PLC反馈写入异常", ExceptionLevel.Info, ex); |
| | | } |
| | | } |
| | | } while (repeatTime > 0); |
| | |
| | | [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("事件地址设置")] |