Modified initial value of 1014h to 0x80 + nodeid when 1014 is not included explicitly in the OD.
authorluis
Tue, 01 Jul 2008 15:21:03 +0200
changeset 493 a204a86a71f1
parent 492 b919a24a45cb
child 494 aa36efce6e78
Modified initial value of 1014h to 0x80 + nodeid when 1014 is not included explicitly in the OD.
objdictgen/gen_cfile.py
--- a/objdictgen/gen_cfile.py	Sat Jun 28 18:43:15 2008 +0200
+++ b/objdictgen/gen_cfile.py	Tue Jul 01 15:21:03 2008 +0200
@@ -372,7 +372,7 @@
         entry_infos = Node.GetEntryInfos(0x1014)
         texts["EntryName"] = entry_infos["name"]
         indexContents[0x1014] = """\n/* index 0x1014 :   %(EntryName)s */
-                    UNS32 %(NodeName)s_obj1014 = 0x0;   /* 0 */
+                    UNS32 %(NodeName)s_obj1014 = 0x80 + 0x%(NodeID)02X;   /* 128 + NodeID */
 """%texts
 
     if 0x1016 in communicationlist: