# 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](https://steffen.gulpe.de/modbus-tcpip/screenshot-winver1-0-0-regs.PNG)
![Image_02](https://steffen.gulpe.de/modbus-tcpip/screenshot-winver1-0-0-values.PNG)

# 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](https://steffen.gulpe.de/modbus-tcpip/).


# 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



