Skip to content

Commit

Permalink
Add information about not compliant devices (closes stephane#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Mar 7, 2016
1 parent b476340 commit 1e62dd0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions doc/modbus_set_slave.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ The behavior depends of network and the role of the device:
*RTU*::
Define the slave ID of the remote device to talk in master mode or set the
internal slave ID in slave mode. According to the protocol, a Modbus device must
only accept message holing its slave number or the special broadcast number.
only accept message holding its slave number or the special broadcast number.

*TCP*::
The slave number is only required in TCP if the message must reach a device
on a serial network. The special value `MODBUS_TCP_SLAVE` (0xFF) can be used in TCP mode to restore
the default value.
The slave number is only required in TCP if the message must reach a device on a
serial network. Some not compliant devices or software (such as modpoll) uses
the slave ID as unit identifier, that's incorrect (cf page 23 of Modbus
Messaging Implementation Guide v1.0b) but without the slave value, the faulty
remote device or software drops the requests! The special value
`MODBUS_TCP_SLAVE` (0xFF) can be used in TCP mode to restore the default value.

The broadcast address is `MODBUS_BROADCAST_ADDRESS`. This special value must be
use when you want all Modbus devices of the network receive the request.
Expand Down

0 comments on commit 1e62dd0

Please sign in to comment.