Public Member Functions | Public Attributes | Private Member Functions
modbus.modbus_wrapper_server.CustomHoldingRegister Class Reference
Inheritance diagram for modbus.modbus_wrapper_server.CustomHoldingRegister:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def setValues

Public Attributes

 pub
 reading_start
 sub
 writing_start

Private Member Functions

def __updateWriteableRegisters

Detailed Description

Definition at line 67 of file modbus_wrapper_server.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


modbus
Author(s): Sven Bock
autogenerated on Thu Jun 6 2019 17:39:35