PLCGenerator.py
changeset 1831 56b48961cc68
parent 1782 5b6ad7a7fd9d
child 1832 0f1081928d65
equal deleted inserted replaced
1830:e598d1acf354 1831:56b48961cc68
    97 # -------------------------------------------------------------------------------
    97 # -------------------------------------------------------------------------------
    98 #                           Generator of PLC program
    98 #                           Generator of PLC program
    99 # -------------------------------------------------------------------------------
    99 # -------------------------------------------------------------------------------
   100 
   100 
   101 
   101 
   102 class ProgramGenerator:
   102 class ProgramGenerator(object):
   103 
   103 
   104     # Create a new PCL program generator
   104     # Create a new PCL program generator
   105     def __init__(self, controler, project, errors, warnings):
   105     def __init__(self, controler, project, errors, warnings):
   106         # Keep reference of the controler and project
   106         # Keep reference of the controler and project
   107         self.Controler = controler
   107         self.Controler = controler
   503             "simultaneousConvergence", "simultaneousDivergence"]]
   503             "simultaneousConvergence", "simultaneousDivergence"]]
   504 TransitionObjClass = PLCOpenParser.GetElementClass("transition", "transitions")
   504 TransitionObjClass = PLCOpenParser.GetElementClass("transition", "transitions")
   505 ActionObjClass = PLCOpenParser.GetElementClass("action", "actions")
   505 ActionObjClass = PLCOpenParser.GetElementClass("action", "actions")
   506 
   506 
   507 
   507 
   508 class PouProgramGenerator:
   508 class PouProgramGenerator(object):
   509 
   509 
   510     # Create a new POU program generator
   510     # Create a new POU program generator
   511     def __init__(self, parent, name, type, errors, warnings):
   511     def __init__(self, parent, name, type, errors, warnings):
   512         # Keep Reference to the parent generator
   512         # Keep Reference to the parent generator
   513         self.ParentGenerator = parent
   513         self.ParentGenerator = parent