Functions | Variables
modbus_server Namespace Reference

Functions

def callback
 Example 3 Listen for the writeable modbus registers in any node.

Variables

tuple msg = HoldingRegister()
tuple msg2 = HoldingRegister()
tuple mws = ModbusWrapperServer(port)
int port = 1234
tuple pub = rospy.Publisher("modbus_server/write_to_registers",HoldingRegister,queue_size=500)
 Example 4 Publisher to write first 20 modbus registers from any node.
tuple result = mws.waitForCoilOutput(0,5)
 Example 1 write to the Discrete Input.
tuple sub = rospy.Subscriber("modbus_server/read_from_registers",HoldingRegister,callback,queue_size=500)

Function Documentation

def modbus_server.callback (   msg)

Example 3 Listen for the writeable modbus registers in any node.

Definition at line 76 of file modbus_server.py.


Variable Documentation

tuple modbus_server::msg = HoldingRegister()

Definition at line 88 of file modbus_server.py.

tuple modbus_server::msg2 = HoldingRegister()

Definition at line 90 of file modbus_server.py.

Definition at line 52 of file modbus_server.py.

tuple modbus_server::port = 1234

Definition at line 45 of file modbus_server.py.

tuple modbus_server::pub = rospy.Publisher("modbus_server/write_to_registers",HoldingRegister,queue_size=500)

Example 4 Publisher to write first 20 modbus registers from any node.

Definition at line 86 of file modbus_server.py.

tuple modbus_server::result = mws.waitForCoilOutput(0,5)

Example 1 write to the Discrete Input.

Definition at line 66 of file modbus_server.py.

tuple modbus_server::sub = rospy.Subscriber("modbus_server/read_from_registers",HoldingRegister,callback,queue_size=500)

Definition at line 79 of file modbus_server.py.



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