diff -r 24db1e592e20 -r e40f3914e55f etherlab/EthercatMaster.py --- a/etherlab/EthercatMaster.py Fri Sep 28 19:25:18 2018 +0300 +++ b/etherlab/EthercatMaster.py Fri Sep 28 19:30:16 2018 +0300 @@ -95,6 +95,7 @@ # Ethercat MASTER # -------------------------------------------------- + EtherCATConfigParser = GenerateParserFromXSD(os.path.join(os.path.dirname(__file__), "EtherCATConfig.xsd")) @@ -103,6 +104,7 @@ return cmp(x["Subindex"], y["Subindex"]) return cmp(x["Index"], y["Index"]) + cls = EtherCATConfigParser.GetElementClass("Slave", "Config") if cls: