--- a/modbus/modbus.py Wed Apr 10 21:36:12 2019 +0200
+++ b/modbus/modbus.py Thu Apr 11 08:40:17 2019 +0200
@@ -122,7 +122,7 @@
"type": LOCATION_VAR_MEMORY,
"size": datasize,
"IEC_type": datatype,
- "var_name": "var_name",
+ "var_name": "MB_" + "".join([w[0] for w in dataname.split()]) + "_" + str(offset),
"location": datatacc + ".".join([str(i) for i in current_location]) + "." + str(offset),
"description": "description",
"children": []})
@@ -227,7 +227,7 @@
"type": LOCATION_VAR_MEMORY,
"size": datasize,
"IEC_type": datatype,
- "var_name": "var_name",
+ "var_name": "MB_" + "".join([w[0] for w in dataname.split()]) + "_" + str(offset),
"location": datatacc + ".".join([str(i) for i in current_location]) + "." + str(offset),
"description": "description",
"children": []})