--- a/etherlab/EthercatCIA402Slave.py Mon Jun 03 08:24:08 2013 +0200
+++ b/etherlab/EthercatCIA402Slave.py Wed Apr 02 15:03:32 2014 +0200
@@ -5,9 +5,13 @@
from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
from MotionLibrary import Headers, AxisXSD
-from EthercatSlave import _EthercatSlaveCTN
+from EthercatSlave import _EthercatSlaveCTN, _CommonSlave
from ConfigEditor import CIA402NodeEditor
+#------------------------------------------
+#from CommonSlave import _CommonSlave
+#------------------------------------------
+
NODE_VARIABLES = [
("ControlWord", 0x6040, 0x00, "UINT", "Q"),
("TargetPosition", 0x607a, 0x00, "DINT", "Q"),
@@ -102,7 +106,15 @@
"tooltip" : _("Initiate Drag'n drop of Axis ref located variable"),
"method" : "_getCIA402AxisRef",
"push": True},
- ]
+ ]
+
+#--------------------------------------------------
+# class code
+#--------------------------------------------------
+
+ def __init__(self):
+ # ----------- call ethercat mng. function --------------
+ self.CommonMethod = _CommonSlave(self)
def GetIconName(self):
return "CIA402Slave"
@@ -268,3 +280,4 @@
cia402nodefile.close()
return [(Gen_CIA402Nodefile_path, '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath()))],"",True
+
\ No newline at end of file