Skip to content

Update nodave.c to use 960 bytes PDU on S7-1500 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nodave.c
Original file line number Diff line number Diff line change
Expand Up @@ -4002,7 +4002,7 @@ int DECL2 _daveConnectPLCTCP(daveConnection * dc) {

0xC0, // Parameter requested TPDU-Size
1, // Length of this parameter
9, // requested TPDU-Size 8=256 Bytes, 9=512 Bytes
10, // requested TPDU-Size 8=256 Bytes, 9=512 Bytes, 10=1024 bytes needed to use 960 bytes PDU on S7-1500
};

uc b243[]={
Expand Down Expand Up @@ -5283,7 +5283,7 @@ int DECL2 _daveConnectPLC_IBH(daveConnection*dc) {
dc->ibhDstConn=20-1;
retries=0;
do {
if (daveDebug & daveDebugConnect) // show only if in debug mode
if (daveDebug & daveDebugConnect) // show only if in debug mode
LOG1("trying next ID:\n");
dc->ibhSrcConn++;
chal3[8]=dc->ibhSrcConn;
Expand Down