2023-10-23 19:21:37 +02:00
|
|
|
==================================
|
2023-10-23 18:58:34 +02:00
|
|
|
``modbus`` FreeModbus demo example
|
|
|
|
==================================
|
2023-10-21 12:24:43 +02:00
|
|
|
|
|
|
|
This is a port of the FreeModbus Linux demo. It derives from the demos/LINUX
|
|
|
|
directory of the FreeModBus version ``1.5.0`` (June 6, 2010) that can be
|
|
|
|
downloaded in its entirety from
|
|
|
|
http://developer.berlios.de/project/showfiles.php?group_id=6120.
|
|
|
|
|
|
|
|
- ``CONFIG_EXAMPLES_MODBUS_PORT``, Default ``0`` (for ``/dev/ttyS0``).
|
|
|
|
- ``CONFIG_EXAMPLES_MODBUS_BAUD``, Default B``38400``.
|
|
|
|
- ``CONFIG_EXAMPLES_MODBUS_PARITY``, Default ``MB_PAR_EVEN``.
|
|
|
|
- ``CONFIG_EXAMPLES_MODBUS_REG_INPUT_START``, Default ``1000``.
|
|
|
|
- ``CONFIG_EXAMPLES_MODBUS_REG_INPUT_NREGS``, Default ``4``.
|
|
|
|
- ``CONFIG_EXAMPLES_MODBUS_REG_HOLDING_START``, Default ``2000``.
|
|
|
|
- ``CONFIG_EXAMPLES_MODBUS_REG_HOLDING_NREGS``, Default ``130``.
|
|
|
|
|
|
|
|
The FreeModBus library resides at ``apps/modbus``. See ``apps/modbus/README.txt``
|
|
|
|
for additional configuration information.
|