Skip to content

Commit a11a0f9

Browse files
committed
update readme with addressing info
1 parent 49b7453 commit a11a0f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ composer require aldas/modbus-tcp-client
4444
## Intention
4545
This library is influenced by [phpmodbus](https://github.com/adduc/phpmodbus) library and meant to be provide decoupled Modbus protocol (request/response packets) and networking related features so you could build modbus client with our own choice of networking code (ext_sockets/streams/Reactphp/Amp asynchronous streams) or use library provided networking classes (php Streams)
4646

47+
## Addresses
48+
49+
This library uses PDU / protocol level address numbers (`0` is very first register/coil). This is different from numbering
50+
schemes (`0xxxxx`, `1xxxxx`, `3xxxxx`, and `4xxxxx`). The `x` denotes coil or register address starting from `1`.
51+
52+
So when your documentation gives you address as `300102` you should interpret it in this library context as: FC3, address `101`
53+
4754
## Endianness
4855
Applies to multibyte data that are stored in Word/Double/Quad word registers basically everything
4956
that is not (u)int16/byte/char.

0 commit comments

Comments
 (0)