factory — Request/Response Decoders

Module author: Galen Collins <bashwork@gmail.com>

Section author: Galen Collins <bashwork@gmail.com>

API Documentation

Modbus Request/Response Decoder Factories

class pymodbus.factory.ServerDecoder

Request Message Factory (Server)

To add more implemented functions, simply add them to the list

decode(message)

Wrapper to decode a request packet

Parameters:message – The raw modbus request packet
Returns:The decoded modbus message or None if error
f

alias of ReadWriteMultipleRegistersRequest

class pymodbus.factory.ClientDecoder

Response Message Factory (Client)

To add more implemented functions, simply add them to the list

decode(message)

Wrapper to decode a response packet

Parameters:message – The raw packet to decode
Returns:The decoded modbus message or None if error
f

alias of ReadWriteMultipleRegistersResponse

Table Of Contents

Previous topic

device — Modbus Device Representation

Next topic

interfaces — System Interfaces

This Page