1
0
Fork 0

Compare commits

...

2 Commits

@ -37,7 +37,7 @@ namespace HighWayIot.Plc
IsPersistentConnection = true, IsPersistentConnection = true,
}; };
var reslt = plc.ConnectServer(); var reslt = plc.ConnectServer();
logHelper.Info($"Plc连接 信息:[{reslt.Message}] 是否成功:[{reslt.IsSuccess.ToString()}] 错误代码:[{reslt.ErrorCode}]"); logHelper.Info($"Plc连接 信息:[{reslt.Message}] 是否成功:[{reslt.IsSuccess.ToString()}] 错误代码:[{reslt.ErrorCode}]");
if (!reslt.IsSuccess) if (!reslt.IsSuccess)
{ {
logHelper.Info("链接失败:"+reslt.Message); logHelper.Info("链接失败:"+reslt.Message);

@ -36,6 +36,9 @@
<StartupObject /> <StartupObject />
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="HslCommunication">
<HintPath>..\HighWayIot.Library\HslCommunication.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />

Loading…
Cancel
Save