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