Automatic SDO server added when creating new slave node.
authoretisserant
Wed, 25 Jun 2008 17:04:21 +0200
changeset 487 7292e686f1ab
parent 486 edf526bd34b5
child 488 01ab26d29117
Automatic SDO server added when creating new slave node.
objdictgen/nodemanager.py
--- a/objdictgen/nodemanager.py	Wed Jun 25 17:02:17 2008 +0200
+++ b/objdictgen/nodemanager.py	Wed Jun 25 17:04:21 2008 +0200
@@ -225,6 +225,9 @@
                     AddIndexList.extend([0x1010, 0x1011, 0x1020])
                 elif option == "StoreEDS":
                     AddIndexList.extend([0x1021, 0x1022])
+            if type == "slave":
+                # add default SDO server
+                AddIndexList.extend([0x1280])
             # Add a new buffer 
             index = self.AddNodeBuffer(self.CurrentNode.Copy(), False)
             self.SetCurrentFilePath("")