mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-20 10:50:48 +08:00
fix: s7连接错误
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PluginVersion>10.11.107</PluginVersion>
|
<PluginVersion>10.11.108</PluginVersion>
|
||||||
<ProPluginVersion>10.11.107</ProPluginVersion>
|
<ProPluginVersion>10.11.108</ProPluginVersion>
|
||||||
<DefaultVersion>10.11.107</DefaultVersion>
|
<DefaultVersion>10.11.108</DefaultVersion>
|
||||||
<AuthenticationVersion>10.11.6</AuthenticationVersion>
|
<AuthenticationVersion>10.11.6</AuthenticationVersion>
|
||||||
<SourceGeneratorVersion>10.11.6</SourceGeneratorVersion>
|
<SourceGeneratorVersion>10.11.6</SourceGeneratorVersion>
|
||||||
<NET8Version>8.0.21</NET8Version>
|
<NET8Version>8.0.21</NET8Version>
|
||||||
|
@@ -118,20 +118,20 @@ public partial class SiemensS7Master : DeviceBase
|
|||||||
return new DeviceSingleStreamDataHandleAdapter<S7Message>
|
return new DeviceSingleStreamDataHandleAdapter<S7Message>
|
||||||
{
|
{
|
||||||
CacheTimeout = TimeSpan.FromMilliseconds(Channel.ChannelOptions.CacheTimeout),
|
CacheTimeout = TimeSpan.FromMilliseconds(Channel.ChannelOptions.CacheTimeout),
|
||||||
IsSingleThread = false
|
//IsSingleThread = false
|
||||||
};
|
};
|
||||||
|
|
||||||
case ChannelTypeEnum.UdpSession:
|
case ChannelTypeEnum.UdpSession:
|
||||||
return new DeviceUdpDataHandleAdapter<S7Message>()
|
return new DeviceUdpDataHandleAdapter<S7Message>()
|
||||||
{
|
{
|
||||||
IsSingleThread = false
|
//IsSingleThread = false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return new DeviceSingleStreamDataHandleAdapter<S7Message>
|
return new DeviceSingleStreamDataHandleAdapter<S7Message>
|
||||||
{
|
{
|
||||||
CacheTimeout = TimeSpan.FromMilliseconds(Channel.ChannelOptions.CacheTimeout),
|
CacheTimeout = TimeSpan.FromMilliseconds(Channel.ChannelOptions.CacheTimeout),
|
||||||
IsSingleThread = false
|
//IsSingleThread = false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user