diff --git a/SlnMesnac.Extensions/PlcFactorySetup.cs b/SlnMesnac.Extensions/PlcFactorySetup.cs index f8f6b36..ee6f7f4 100644 --- a/SlnMesnac.Extensions/PlcFactorySetup.cs +++ b/SlnMesnac.Extensions/PlcFactorySetup.cs @@ -47,6 +47,11 @@ namespace SlnMesnac.Extensions try { + if (!HslCommunication.Authorization.SetAuthorizationCode("1839541f-8fb4-42c4-a13f-733b027fe5af")) + { + Log.Information("HslCommunication激活失败,可用时长24小时"); + } + Log.Information("HslCommunication 11.8.1.0激活成功"); if (appConfig.plcConfig != null) { foreach (var item in appConfig.plcConfig)