• 胡萝卜8438
    了解作者
  • C/C++
    开发工具
  • 144KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 3
    下载次数
  • 2018-06-29 13:20
    上传日期
一款用于PLC嵌入式和上位机开发的modbus开源动态库
libmodbus-master.zip
  • libmodbus-master
  • m4
  • .gitignore
    63B
  • tests
  • README.md
    1.1KB
  • random-test-server.c
    1.3KB
  • version.c
    693B
  • LICENSE
    1.5KB
  • bandwidth-server-one.c
    2KB
  • unit-test.h.in
    2.2KB
  • bandwidth-client.c
    6.1KB
  • unit-tests.sh
    283B
  • random-test-client.c
    8.7KB
  • unit-test-client.c
    33KB
  • unit-test-server.c
    6.3KB
  • bandwidth-server-many-up.c
    3.8KB
  • Makefile.am
    1.3KB
  • src
  • win32
  • modbus-9.sln
    862B
  • modbus.dll.manifest.in
    528B
  • configure.js
    4.7KB
  • Make-tests
    1.6KB
  • modbus.rc
    1.4KB
  • modbus.vcproj
    9.1KB
  • README.win32
    563B
  • config.h.win32
    4.7KB
  • modbus.c
    56.7KB
  • modbus-rtu.c
    35.9KB
  • modbus-rtu-private.h
    1.6KB
  • modbus-private.h
    3.3KB
  • modbus-version.h.in
    2.2KB
  • modbus-data.c
    5.2KB
  • modbus-tcp.c
    22.1KB
  • modbus.h
    10.9KB
  • Makefile.am
    947B
  • modbus-tcp.h
    1.3KB
  • modbus-tcp-private.h
    1.2KB
  • modbus-rtu.h
    1.2KB
  • doc
  • modbus_read_input_registers.txt
    1.2KB
  • modbus_rtu_set_rts_delay.txt
    857B
  • modbus_get_byte_from_bits.txt
    764B
  • modbus_free.txt
    444B
  • modbus_write_and_read_registers.txt
    1.4KB
  • modbus_mapping_new_start_address.txt
    2.6KB
  • modbus_set_bits_from_bytes.txt
    794B
  • modbus_get_float.txt
    868B
  • modbus_get_socket.txt
    633B
  • modbus_write_register.txt
    748B
  • modbus_set_response_timeout.txt
    1.5KB
  • modbus_rtu_set_serial_mode.txt
    1.6KB
  • modbus_strerror.txt
    1.1KB
  • modbus_get_indication_timeout.txt
    1.2KB
  • modbus_mask_write_register.txt
    917B
  • modbus_write_bit.txt
    732B
  • modbus_get_float_abcd.txt
    830B
  • modbus_rtu_get_rts_delay.txt
    865B
  • modbus_set_float_abcd.txt
    763B
  • modbus_set_bits_from_byte.txt
    708B
  • modbus_set_float_cdab.txt
    800B
  • modbus_connect.txt
    965B
  • modbus_reply_exception.txt
    1.3KB
  • modbus_get_float_badc.txt
    849B
  • modbus_set_byte_timeout.txt
    1.4KB
  • modbus_set_indication_timeout.txt
    1KB
  • modbus_set_debug.txt
    954B
  • modbus_flush.txt
    564B
  • modbus_write_bits.txt
    872B
  • modbus_tcp_listen.txt
    1.5KB
  • modbus_get_float_cdab.txt
    853B
  • modbus_set_error_recovery.txt
    2.3KB
  • asciidoc.conf
    1.2KB
  • modbus_tcp_pi_accept.txt
    1.1KB
  • modbus_get_slave.txt
    664B
  • modbus_set_float.txt
    762B
  • modbus_mapping_new.txt
    1.8KB
  • modbus_get_response_timeout.txt
    1.1KB
  • modbus_get_header_length.txt
    638B
  • libmodbus.txt
    9.2KB
  • modbus_read_registers.txt
    1.6KB
  • modbus_new_tcp_pi.txt
    1.8KB
  • modbus_read_bits.txt
    996B
  • modbus_reply.txt
    1.2KB
  • modbus_read_input_bits.txt
    1KB
  • modbus_get_byte_timeout.txt
    957B
  • modbus_set_float_badc.txt
    793B
  • modbus_close.txt
    792B
  • modbus_set_socket.txt
    1.1KB
  • modbus_get_float_dcba.txt
    862B
  • modbus_rtu_get_serial_mode.txt
    1.6KB
  • modbus_receive.txt
    1KB
  • modbus_rtu_set_rts.txt
    2KB
  • modbus_receive_confirmation.txt
    1.5KB
  • modbus_tcp_accept.txt
    1.1KB
  • modbus_rtu_set_custom_rts.txt
    1.1KB
  • modbus_write_registers.txt
    822B
  • Makefile.am
    2.6KB
  • modbus_send_raw_request.txt
    1.8KB
  • modbus_tcp_pi_listen.txt
    1.4KB
内容介绍
A groovy modbus library ======================= [![Build Status](https://travis-ci.org/stephane/libmodbus.svg?branch=master)](https://travis-ci.org/stephane/libmodbus) Overview -------- libmodbus is a free software library to send/receive data with a device which respects the Modbus protocol. This library can use a serial port or an Ethernet connection. The functions included in the library have been derived from the Modicon Modbus Protocol Reference Guide which can be obtained from Schneider at [www.schneiderautomation.com](http://www.schneiderautomation.com). The license of libmodbus is *LGPL v2.1 or later*. The documentation is available as manual pages (`man libmodbus` to read general description and list of available functions) or Web pages [www.libmodbus.org/documentation/](http://libmodbus.org/documentation/). The documentation is licensed under the Creative Commons Attribution-ShareAlike License 3.0 (Unported) (<http://creativecommons.org/licenses/by-sa/3.0/>). The official website is [www.libmodbus.org](http://www.libmodbus.org). The library is written in C and designed to run on Linux, Mac OS X, FreeBSD and QNX and Windows. Installation ------------ You will only need to install automake, autoconf, libtool and a C compiler (gcc or clang) to compile the library and asciidoc and xmlto to generate the documentation (optional). To install, just run the usual dance, `./configure && make install`. Run `./autogen.sh` first to generate the `configure` script if required. You can change installation directory with prefix option, eg. `./configure --prefix=/usr/local/`. You have to check that the installation library path is properly set up on your system (*/etc/ld.so.conf.d*) and library cache is up to date (run `ldconfig` as root if required). The library provides a *libmodbus.pc* file to use with `pkg-config` to ease your program compilation and linking. If you want to compile with Microsoft Visual Studio, you need to install <https://github.com/chemeris/msinttypes> to fill the absence of stdint.h. To compile under Windows, install [MinGW](http://www.mingw.org/) and MSYS then select the common packages (gcc, automake, libtool, etc). The directory *./src/win32/* contains a Visual C project. To compile under OS X with [homebrew](http://mxcl.github.com/homebrew/), you will need to install the following dependencies first: `brew install autoconf automake libtool`. Documentation ------------- The documentation is available [online](http://libmodbus.org/documentation) or as manual pages after installation. The documentation is based on [AsciiDoc](http://www.methods.co.nz/asciidoc/). Only man pages are built by default with `make` command, you can run `make htmldoc` in *doc* directory to generate HTML files. Testing ------- Some tests are provided in *tests* directory, you can freely edit the source code to fit your needs (it's Free Software :). See *tests/README* for a description of each program. For a quick test of libmodbus, you can run the following programs in two shells: 1. ./unit-test-server 2. ./unit-test-client By default, all TCP unit tests will be executed (see --help for options). It's also possible to run the unit tests with `make check`. To report a bug or to contribute -------------------------------- See [CONTRIBUTING](CONTRIBUTING.md) document.
评论
    相关推荐