client.common — Twisted Async Modbus Client

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

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

API Documentation

class pymodbus.client.common.ModbusClientMixin

This is a modbus client mixin that provides additional factory methods for all the current modbus methods. This can be used instead of the normal pattern of:

# instead of this
client = ModbusClient(...)
request = ReadCoilsRequest(1,10)
response = client.execute(request)

# now like this
client = ModbusClient(...)
response = client.read_coils(1, 10)
read_coils(address, count=1)
Returns:A deferred response handle
read_discrete_inputs(address, count=1)
Returns:A deferred response handle
read_holding_registers(address, count=1)
Returns:A deferred response handle
read_input_registers(address, count=1)
Returns:A deferred response handle
readwrite_registers(*arguments)
Returns:A deferred response handle
write_coil(address, value)
Returns:A deferred response handle
write_coils(address, values)
Returns:A deferred response handle
write_register(address, value)
Returns:A deferred response handle
write_registers(address, values)
Returns:A deferred response handle

Table Of Contents

Previous topic

bit_write_message — Bit Write Modbus Messages

Next topic

client.sync — Twisted Synchronous Modbus Client

This Page