stephane / modbusino

Small Modbus slave, RTU (serial) for Arduino
http://libmodbus.org
ISC License
144 stars 93 forks source link

How do you use this LIB? #5

Closed prgrmRyC closed 11 years ago

prgrmRyC commented 11 years ago

I see no other way to post, so post issue.

This looks like it might be something I would like to use, however the documentation, what this is of it, does not explain how this LIB works with the Arduino. Can you provide a near real world example?

For example, does this LIB only handle the comms between master and slave or will it read and write arduino inputs and output? If so what function are mapped to what I/Os?

-Ryan

stephane commented 11 years ago

There is an example in https://github.com/stephane/modbusino/blob/master/examples/hello_modbusino/hello_modbusino.pde The tab_reg in example in just an array it's up to you to map it to I/O if you want (by copying input values to the array or setting outputs based on written values in the array).

As described in https://github.com/stephane/modbusino/blob/master/README.md, the libary can be used to use your Arduino as Modbus slave that supports only:

Stéphane