Skip to content

Commit

Permalink
Max Write: Increase to 19 items + adjust write overhead for PDU
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavulescu committed Nov 8, 2024
1 parent 245e6e0 commit 2865c04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ project(
LANGUAGES CXX
)

set(PROJECT_VERSION 1.0.1)
set(PROJECT_VERSION 1.0.2)

configure_file(config.h.in configured/config.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/configured)
Expand Down
2 changes: 1 addition & 1 deletion RAMS7200LibFacade.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void RAMS7200LibFacade::WriteToPLC() {
}
}
if(!addresses.empty()){
RAMS7200ReadWriteMaxN(addresses, items, 10, PDU_SIZE, OVERHEAD_WRITE_VARIABLE, OVERHEAD_WRITE_MESSAGE, Common::S7Utils::Operation::WRITE);
RAMS7200ReadWriteMaxN(addresses, items, 19, PDU_SIZE, OVERHEAD_WRITE_VARIABLE, OVERHEAD_WRITE_MESSAGE, Common::S7Utils::Operation::WRITE);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion RAMS7200LibFacade.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#define OVERHEAD_READ_MESSAGE 13
#define OVERHEAD_READ_VARIABLE 5
#define OVERHEAD_WRITE_MESSAGE 12
#define OVERHEAD_WRITE_MESSAGE 24
#define OVERHEAD_WRITE_VARIABLE 16
#define PDU_SIZE 240

Expand Down

0 comments on commit 2865c04

Please sign in to comment.