We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61bc0a0 commit 2afeefbCopy full SHA for 2afeefb
canopen/objectdictionary/eds.py
@@ -36,6 +36,17 @@ def import_eds(source, node_id):
36
od.node_id = int(eds.get("DeviceComissioning", "NodeID"))
37
38
for section in eds.sections():
39
+ # Match dummy definitions
40
+ match = re.match(r"^[D|d]ummy[U|u]sage$", section)
41
+ if match is not None:
42
+ for i in range(1,8):
43
+ key = "Dummy%04d" % i
44
+ if eds.getint(section,key) == 1:
45
+ var = objectdictionary.Variable(key, i, 0)
46
+ var.data_type = i
47
+ var.access_type = "const"
48
+ od.add_object(var)
49
+
50
# Match indexes
51
match = re.match(r"^[0-9A-Fa-f]{4}$", section)
52
if match is not None:
0 commit comments