Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Binding to use 'libmodbus' from Ruby

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 ext
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 NEWS
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
== About project

libmodbus4r –a wrapper for library libmodbus wrote in Ruby. libmodbus – a free implementation of protocol ModBus TCP\RTU for Linux and OSX operation systems. It's very fast and stable library wrote in C. Goal of project is ability writing application in Ruby that use ModBus protocol for communication with devices.

== Features

* Use only Ruby-1.9.x and Ruby-1.8.7
* Include C library *libmodbus*;
* ModBus TCP and RTU master(client);
* ModBus TCP and RTU slave(server);
* Support functions: 
  * read coil status (0x01)
  * read input status (0x02)
  * read holding registers (0x03)
  * read input registers (0x04)
  * force single coil (0x05)
  * preset single register (0x06)
  * force multiple coils (0x0F)
  * preset multiple registers (0x10)

== Installation

Importan! libmodbus4 work only in Linux и OSX

    Simplest installation is use rubygems
    $ sudo gem install libmodbus4r
    or  installation from source with command:
    $ sudo rake install

== Authors

Aleksey Timin <> 

== References 

Home page projects :

Hosting on RubyForge :

Hosting on GitHub :

Ruby site :

libmobus on Launchpad :

ModBus community:
Something went wrong with that request. Please try again.