|
|
|
@ -42,10 +42,13 @@ namespace SlnMesnac.Plc
|
|
|
|
|
if (_appConfig.plcConfig != null)
|
|
|
|
|
{
|
|
|
|
|
foreach (var item in _appConfig.plcConfig)
|
|
|
|
|
{
|
|
|
|
|
if (item.isFlage)
|
|
|
|
|
{
|
|
|
|
|
AddPlc(item.plcType, item.plcIp, item.plcPort, item.plcKey);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_logger.LogInformation("PLC配置信息为空");
|
|
|
|
|