diff --git a/SlnMesnac.Plc/PlcPool.cs b/SlnMesnac.Plc/PlcPool.cs index 81d43fa..1b523fd 100644 --- a/SlnMesnac.Plc/PlcPool.cs +++ b/SlnMesnac.Plc/PlcPool.cs @@ -33,11 +33,11 @@ namespace SlnMesnac.Plc } public void Init() { - if (!HslCommunication.Authorization.SetAuthorizationCode("ed1415f8-e06a-43ad-95f7-c04f7ae93b41")) + if (!HslCommunication.Authorization.SetAuthorizationCode("1839541f-8fb4-42c4-a13f-733b027fe5af")) { _logger.LogInformation("HslCommunication激活失败,可用时长24小时"); } - _logger.LogInformation("HslCommunication 11.0.6.0激活成功"); + _logger.LogInformation("HslCommunication 11.8.1.0激活成功"); try { diff --git a/SlnMesnac.Plc/SlnMesnac.Plc.csproj b/SlnMesnac.Plc/SlnMesnac.Plc.csproj index 9f89a4f..4074e53 100644 --- a/SlnMesnac.Plc/SlnMesnac.Plc.csproj +++ b/SlnMesnac.Plc/SlnMesnac.Plc.csproj @@ -6,7 +6,7 @@ - + diff --git a/SlnMesnac.WPF/appsettings.json b/SlnMesnac.WPF/appsettings.json index 4235900..6a0c7e1 100644 --- a/SlnMesnac.WPF/appsettings.json +++ b/SlnMesnac.WPF/appsettings.json @@ -25,7 +25,7 @@ { "configId": 1, "plcType": "MelsecBinaryPlc", - "plcIp": "127.0.0.1", //192.168.1.71 + "plcIp": "127.0.0.1", "plcPort": 6000, "plcKey": "mcs" },