This program is used for testing modbus-tcpip configurations. https://steffen.gulpe.de/modbus-tcpip/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Steffen Pohle c6f263e3d2
some code cleanup and fixing all the warnings
1 month ago
.gitignore ignore default config file 3 years ago
Changelog some code cleanup and fixing all the warnings 1 month ago
HowTo-Cross-Compile.md cross build manual fixed. 6 months ago
LICENSE adding files 4 years ago
Makefile cross build manual fixed. 6 months ago
Makefile.rules.crosswindows preparation for testmodbus-client 2 years ago
Makefile.rules.linux preparation for testmodbus-client 2 years ago
Makefile.rules.windows preparation for testmodbus-client 2 years ago
README.md some code cleanup and fixing all the warnings 1 month ago
copydlls.sh crosscompiling works again 2 years ago
copyshare.sh crosscompiling works. 4 years ago
gui.cc some code cleanup and fixing all the warnings 1 month ago
gui.h adding bulk load, some little gui improvements. 1 month ago
guimodbusdata.cc some code cleanup and fixing all the warnings 1 month ago
guimodbusdata.h preparation for testmodbus-client 2 years ago
guivalues.cc some code cleanup and fixing all the warnings 1 month ago
guivalues.h preparation for testmodbus-client 2 years ago
json.cc some code cleanup and fixing all the warnings 1 month ago
json.h fixed windows build. missing include of stdint.h 1 year ago
mbsconfig.cc adding files 4 years ago
mbsconfig.h some code cleanup and fixing all the warnings 1 month ago
modbussrv.cc some code cleanup and fixing all the warnings 1 month ago
modbussrv.h fixed: ignore faulty requests 2 years ago
server.cc some code cleanup and fixing all the warnings 1 month ago
tcp.cc code cleanup 2 years ago
tcp.h adding files 4 years ago
test-fc15.cc fixed windows build part two. missing include of stdint.h 1 year ago
test-fc16.cc fixed windows build part two. missing include of stdint.h 1 year ago
testmodbus-server.png adding files 4 years ago
testmodbus-server.ui adding bulk load, some little gui improvements. 1 month ago

README.md

testmodbus-server

This programm is used for testing modbus-tcpip configuations. If you do not know what modbus-tcpip mean stop using this programm.

This software is written by Steffen Pohle (steffen@gulpe.de), check for a newer version of this software at https://steffen.gulpe.de/modbus-tcpip/

Image_01 Image_02

Compilation on Linux

As requirement to compile this application you need to install the gnome3-devel packages. If this is done you can compile and run the application with the following commands:

make configlinux
make
./testmodbus-server

Installation

not needed.

Cross Compilation for Windows (build on Debian, target Windows)

Configue the Makefiles.rules.crosswindows file to your needs. A little manual on my cross compilation setup can be found in HowTo-Cross-Compile.txt. Make sure you copy all needed dll files to dll in this directory.

make buildwindows

All needed files will be placed in a separate subfolder together with all needed librarys (needs to prepared, see Makefile for some hints).

For precompiled windows binarys look at this link.

some usefull functions

Bulk load of csv files works.

NAME,TYPE,FC,REGISTER,VALUE

TEST_FC3_0,FLOAT,3,0,1.5
TEST_FC3_2,FLOAT,3,2,1.6
TEST_FC4_4,FLOAT,4,4,2.6
TEST_FC4_6,FLOAT,4,6,15.6