stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.44k stars 1.75k forks source link

modbus/tcp server #85

Closed matoscarvalho closed 11 years ago

matoscarvalho commented 11 years ago

Good evening,

Does someone can send me (or indicate me where find it) a very simple a source code of a program that implement a modbus/tcp server publishing a value in a coil (address 0x 01, for example)?

I want to read this value remotelly using a generic SCADA software or simulator (like modscan).

Thanks!

vikulov commented 11 years ago

http://freemodbus.berlios.de/ - free implementation on modbus server

stephane commented 11 years ago

Don't need to look elsewhere :) Libmodbus provides test servers in tests/ directory:

https://github.com/stephane/libmodbus/tree/master/tests