fix: s7连接错误

This commit is contained in:
2248356998 qq.com
2025-10-16 12:00:08 +08:00
parent 6f9ec2e24b
commit fe9ec6ad10
2 changed files with 6 additions and 6 deletions

View File

@@ -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>

View File

@@ -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
}; };
} }