PLCGenerator.py
changeset 1751 c28db6f7616b
parent 1747 6046ffa2280f
child 1753 19f19c66b67e
equal deleted inserted replaced
1750:acf02488f37f 1751:c28db6f7616b
   693                     self.Interface.append((varTypeNames[varlist_type], option, False, variables))
   693                     self.Interface.append((varTypeNames[varlist_type], option, False, variables))
   694                 if len(located) > 0:
   694                 if len(located) > 0:
   695                     self.Interface.append((varTypeNames[varlist_type], option, True, located))
   695                     self.Interface.append((varTypeNames[varlist_type], option, True, located))
   696 
   696 
   697     LITERAL_TYPES = {
   697     LITERAL_TYPES = {
   698         "T": "TIME",
   698         "T":   "TIME",
   699         "D": "DATE",
   699         "D":   "DATE",
   700         "TOD": "TIME_OF_DAY",
   700         "TOD": "TIME_OF_DAY",
   701         "DT": "DATE_AND_TIME",
   701         "DT":  "DATE_AND_TIME",
   702         "2": None,
   702         "2":    None,
   703         "8": None,
   703         "8":    None,
   704         "16": None,
   704         "16":   None,
   705     }
   705     }
       
   706 
   706     def ComputeConnectionTypes(self, pou):
   707     def ComputeConnectionTypes(self, pou):
   707         body = pou.getbody()
   708         body = pou.getbody()
   708         if isinstance(body, ListType):
   709         if isinstance(body, ListType):
   709             body = body[0]
   710             body = body[0]
   710         body_content = body.getcontent()
   711         body_content = body.getcontent()