diff --git a/BPASmartClient.MORKSM.BK.PLC/PLCMachine.cs b/BPASmartClient.MORKSM.BK.PLC/PLCMachine.cs index 163671be..300d607d 100644 --- a/BPASmartClient.MORKSM.BK.PLC/PLCMachine.cs +++ b/BPASmartClient.MORKSM.BK.PLC/PLCMachine.cs @@ -16,6 +16,15 @@ namespace BPASmartClient.PLC public override void Init() { modbusTcp.IsReconnect = true; + modbusTcp.Show += new Action((s) => + { + if (s != null) MessageLog.GetInstance.Show(s); + }); + + modbusTcp.ShowEx += new Action((s) => + { + if (s != null) MessageLog.GetInstance.ShowEx(s); + }); Task.Run(new Action(() => { modbusTcp.ConnectOk = new Action(() =>