Skip to content

Commit

Permalink
update readme with addressing info
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Dec 23, 2024
1 parent 49b7453 commit a11a0f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ composer require aldas/modbus-tcp-client
## Intention
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)

## Addresses

This library uses PDU / protocol level address numbers (`0` is very first register/coil). This is different from numbering
schemes (`0xxxxx`, `1xxxxx`, `3xxxxx`, and `4xxxxx`). The `x` denotes coil or register address starting from `1`.

So when your documentation gives you address as `300102` you should interpret it in this library context as: FC3, address `101`

## Endianness
Applies to multibyte data that are stored in Word/Double/Quad word registers basically everything
that is not (u)int16/byte/char.
Expand Down

0 comments on commit a11a0f9

Please sign in to comment.