
Public Member Functions | |
| def | __init__ |
| def | setValues |
Public Attributes | |
| pub | |
| reading_start | |
| sub | |
| writing_start | |
Private Member Functions | |
| def | __updateWriteableRegisters |
Definition at line 67 of file modbus_wrapper_server.py.
| def modbus.modbus_wrapper_server.CustomHoldingRegister.__init__ | ( | self, | |
| address, | |||
| value, | |||
| sub_topic, | |||
| pub_topic | |||
| ) |
Creates a custom holding register to add a publisher and subscriber to the modbus server
:param address: The starting address of the holding register
:type address: int
:param values: The initial values for the holding registers
:type values: list[int]
:param sub_topic: ROS topic name for the subscriber that updates the modbus registers
:type sub_topic: string
:param pub_topic: ROS topic name for the publisher that publishes a message, once there is something written to the writeable modbus registers
:type pub_topic: string
Definition at line 68 of file modbus_wrapper_server.py.
| def modbus.modbus_wrapper_server.CustomHoldingRegister.__updateWriteableRegisters | ( | self, | |
| msg | |||
| ) | [private] |
Definition at line 108 of file modbus_wrapper_server.py.
| def modbus.modbus_wrapper_server.CustomHoldingRegister.setValues | ( | self, | |
| address, | |||
| value | |||
| ) |
Sets the requested values to the holding registers
and publishes they new values on a rostopic
:param address: The starting address
:type address: int
:param values: The new values to be set
:type values: list[int]
Definition at line 89 of file modbus_wrapper_server.py.
Definition at line 79 of file modbus_wrapper_server.py.
Definition at line 79 of file modbus_wrapper_server.py.
Definition at line 79 of file modbus_wrapper_server.py.
Definition at line 79 of file modbus_wrapper_server.py.