Functions | Variables
modbus_client_s7_1200 Namespace Reference

Functions

def showUpdatedRegisters
 Example 2 Create a listener that show us a message if anything on the readable modbus registers change.

Variables

string host = "192.168.0.198"
tuple modclient = S7ModbusClient(host,port)
tuple output = HoldingRegister()
tuple output2 = HoldingRegister()
tuple outputs = xrange(8,14)
 Example 1 Set single registers using the python interface - yeah knight rider is coming!
tuple outputs2 = range(13,7,-1)
int port = 502
tuple pub = rospy.Publisher("modbus_wrapper/output",HoldingRegister,queue_size=500)
 Example 3 writing to modbus registers using a standard ros publisher.
tuple sub = rospy.Subscriber("modbus_wrapper/input",HoldingRegister,showUpdatedRegisters,queue_size=500)

Function Documentation

Example 2 Create a listener that show us a message if anything on the readable modbus registers change.

Definition at line 86 of file modbus_client_s7_1200.py.


Variable Documentation

tuple modbus_client_s7_1200::host = "192.168.0.198"

Definition at line 51 of file modbus_client_s7_1200.py.

Definition at line 62 of file modbus_client_s7_1200.py.

tuple modbus_client_s7_1200::output = HoldingRegister()

Definition at line 97 of file modbus_client_s7_1200.py.

tuple modbus_client_s7_1200::output2 = HoldingRegister()

Definition at line 99 of file modbus_client_s7_1200.py.

tuple modbus_client_s7_1200::outputs = xrange(8,14)

Example 1 Set single registers using the python interface - yeah knight rider is coming!

Definition at line 68 of file modbus_client_s7_1200.py.

tuple modbus_client_s7_1200::outputs2 = range(13,7,-1)

Definition at line 69 of file modbus_client_s7_1200.py.

Definition at line 52 of file modbus_client_s7_1200.py.

tuple modbus_client_s7_1200::pub = rospy.Publisher("modbus_wrapper/output",HoldingRegister,queue_size=500)

Example 3 writing to modbus registers using a standard ros publisher.

Definition at line 96 of file modbus_client_s7_1200.py.

tuple modbus_client_s7_1200::sub = rospy.Subscriber("modbus_wrapper/input",HoldingRegister,showUpdatedRegisters,queue_size=500)

Definition at line 88 of file modbus_client_s7_1200.py.



modbus_plc_siemens
Author(s): Sven Bock
autogenerated on Thu Jun 6 2019 17:39:38