Solar Lattice

Protocol

Modbus

ID
proto:modbus
IRI
https://solarlattice.org/kb/proto/modbus
Status
active
Also known as
Modbus protocol
Category
Communication
Protocol kind
application

Modbus is an application-layer messaging protocol at level 7 of the OSI model. It provides client/server communication between devices connected on buses or networks. The protocol defines a simple protocol data unit that does not depend on the communication layers underneath. When Modbus is carried on a specific bus or network, extra fields are added to form the application data unit, and a function code tells the server what action to take. Modbus started as the common language of Modicon controllers. It sets the message structure, how a device recognizes its own address and messages sent to it, and how errors are detected and reported. On a serial line the master acts as the client and the slave nodes act as servers. Two-wire RS485 is the most common wiring, and RS232 can be used for short point-to-point links. On a serial bus only the slaves have addresses, and each address must be unique on that bus. Address 0 is reserved for broadcast. Inverter Modbus maps from CPS and Yaskawa Solectria contain read/write registers for remote dispatch enable and for the reactive power control mode. Tesla controls manuals list Modbus registers for the maximum active power limit, closed-loop control enable and power factor enable. Every SunSpec information model carried over Modbus begins with an ID register and a length register. This lets a client scan through the models and skip any it does not recognize.

<!-- review notes

Parts

Referenced by

Data