Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.06 KB

File metadata and controls

30 lines (20 loc) · 1.06 KB

Decompose requests

Modbus requests and responses contain an Application Data Unit (ADU) which contains a Protocol Data Unit (PDU). The ADU is an envelope containing a message, the PDU is the message itself. Modbus requests can be sent via two communication layers, RTU or TCP/IP. The ADU for these layers differs. But the PDU, the message, always has the same structure, regardless of the way it's transported.

PDU

.. automodule:: umodbus.functions

ADU for TCP/IP requests and responses

.. automodule:: umodbus.client.tcp


ADU for RTU requests and responses

.. automodule:: umodbus.client.serial.rtu