Skip to content

Commit

Permalink
Merge pull request #100 from Nick135/master
Browse files Browse the repository at this point in the history
BugFix PDU Size Area FeedDrive
  • Loading branch information
jogibear9988 committed May 28, 2018
2 parents a9b731d + 9a17271 commit 5296c63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LibNoDaveConnectionLibrary/Communication/PLCConnection.cs
Expand Up @@ -2762,6 +2762,11 @@ public void ReadValues(IEnumerable<PLCTag> valueList, bool useReadOptimization)
//Get the Maximum Answer Len for One PDU
int maxReadSize = GetPduSize() - 32; //32 = Header

// Die NC akzeptiert im Drive Bereich nicht die ausgehandelte PDU Größe
// maximal 240 - 32 (Header) => 208
if (maxReadSize > 208 && readTagList.First() is PLCNckTag && ((PLCNckTag)readTagList.First()).NckArea == NCK_Area.AreaFeedDrive)
maxReadSize = 208;

//int maxReadVar = maxReadSize / 12; //12 Header Größe Variablenanfrage

List<int> readenSizes = new List<int>(50);
Expand Down

0 comments on commit 5296c63

Please sign in to comment.