Browse Source

日志添加

煮面机(新)
pry 1 year ago
parent
commit
08628bef31
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      BPASmartClient.MORKSM.BK.PLC/PLCMachine.cs

+ 9
- 0
BPASmartClient.MORKSM.BK.PLC/PLCMachine.cs View File

@@ -16,6 +16,15 @@ namespace BPASmartClient.PLC
public override void Init()
{
modbusTcp.IsReconnect = true;
modbusTcp.Show += new Action<string>((s) =>
{
if (s != null) MessageLog.GetInstance.Show(s);
});

modbusTcp.ShowEx += new Action<string>((s) =>
{
if (s != null) MessageLog.GetInstance.ShowEx(s);
});
Task.Run(new Action(() =>
{
modbusTcp.ConnectOk = new Action(() =>


Loading…
Cancel
Save