Fixed bug when modifying power rail in LD Viewer
authorLaurent Bessard
Thu, 10 Oct 2013 17:04:23 +0200
changeset 1355 9183fb765f16
parent 1354 241c19ea80da
child 1356 2d4cc768a1bc
Fixed bug when modifying power rail in LD Viewer
plcopen/plcopen.py
--- a/plcopen/plcopen.py	Thu Oct 10 14:46:03 2013 +0200
+++ b/plcopen/plcopen.py	Thu Oct 10 17:04:23 2013 +0200
@@ -1943,6 +1943,9 @@
         return search_result
     setattr(cls, "Search", Search)
 
+_initElementClass("leftPowerRail", "ldObjects")
+_initElementClass("rightPowerRail", "ldObjects", "multiple")
+
 def _UpdateLDElementName(self, old_name, new_name):
     if self.variable == old_name:
         self.variable = new_name