Modbus

class SingleCoilWriteRequest
Canonical

kortex_api.autogen.messages.Modbus_pb2.SingleCoilWriteRequest

Parameters
  • address (int) – Address of coil (16-bit)

  • coil_value (bool) – Value to force/write: 0 for off and 1 for on

class MultipleCoilsWriteRequest
Canonical

kortex_api.autogen.messages.Modbus_pb2.MultipleCoilsWriteRequest

Parameters
  • address (int) – Address of first coil to force/write (16-bit)

  • coils_count (int) – Number of coils to force/write (16-bit)

  • coil_values (bool [ ]) – Coil values (8 coil values per byte)

class SingleRegisterWriteRequest
Canonical

kortex_api.autogen.messages.Modbus_pb2.SingleRegisterWriteRequest

Parameters
  • address (int) – Address of holding register to preset/write (16-bit)

  • register_value (int) – New value of the holding register (16-bit)

class MultipleRegistersWriteRequest
Canonical

kortex_api.autogen.messages.Modbus_pb2.MultipleRegistersWriteRequest

Parameters
  • address (int) – Address of first holding register to preset/write (16-bit)

  • registers_count (int) – Number of holding registers to preset/write (16-bit)

  • register_values (int [ ]) – New values of holding registers (16 bits per register)

class ReadRequest
Canonical

kortex_api.autogen.messages.Modbus_pb2.ReadRequest

Parameters
  • address (int) – Address of first data input to read (16-bit)

  • data_count (int) – Number of data inputs to read (16-bit)

class ReadCoilResponse
Canonical

kortex_api.autogen.messages.Modbus_pb2.ReadCoilResponse

Parameters

coil_values (bool [ ]) – Data input values (8 coils/discrete inputs per byte)

class ReadRegisterResponse
Canonical

kortex_api.autogen.messages.Modbus_pb2.ReadRegisterResponse

Parameters

register_values (int [ ]) – Register values (16 bits per register)

class ConnectionParameters
Canonical

kortex_api.autogen.messages.Modbus_pb2.ConnectionParameters

Parameters
  • ip_address (str) – IP address of the desired target.

  • port (int) – Port of the desired target.

  • modbus_device_id (int) – Desired target device.