From 1be2dde2ce0cc4b454f36b1ae6eab36ef8281028 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Mon, 30 Oct 2023 15:50:02 +0000 Subject: [PATCH] Fall back to 480 byte read due to failure of PDU size setup --- Directory.Build.props | 2 +- build/_build.csproj | 2 +- src/S7PlcRx/Core/S7SocketRx.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 306fb18..94c7d4e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -54,7 +54,7 @@ - + diff --git a/build/_build.csproj b/build/_build.csproj index e8a7ea1..e01672d 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/S7PlcRx/Core/S7SocketRx.cs b/src/S7PlcRx/Core/S7SocketRx.cs index f3cb334..2ce88be 100644 --- a/src/S7PlcRx/Core/S7SocketRx.cs +++ b/src/S7PlcRx/Core/S7SocketRx.cs @@ -542,7 +542,7 @@ private async Task InitialiseSiemensConnectionAsync() bSend1[14] = 2; bSend1[17] = 3; bSend1[18] = (byte)((Rack * 2 * 16) + Slot); - DataReadLength = 960; + DataReadLength = 480; break; default: