plcopen/structures.py
changeset 1749 d73b64672238
parent 1747 6046ffa2280f
child 1758 845ca626db09
equal deleted inserted replaced
1748:ba5f64fe0e00 1749:d73b64672238
    49 def GetSubTypes(type):
    49 def GetSubTypes(type):
    50     """
    50     """
    51     Returns list of all types that correspont to the ANY* meta type
    51     Returns list of all types that correspont to the ANY* meta type
    52     """
    52     """
    53     return [typename for typename, parenttype in TypeHierarchy.items() if not typename.startswith("ANY") and IsOfType(typename, type)]
    53     return [typename for typename, parenttype in TypeHierarchy.items() if not typename.startswith("ANY") and IsOfType(typename, type)]
       
    54 
    54 
    55 
    55 DataTypeRange = dict(DataTypeRange_list)
    56 DataTypeRange = dict(DataTypeRange_list)
    56 
    57 
    57 """
    58 """
    58 Ordered list of common Function Blocks defined in the IEC 61131-3
    59 Ordered list of common Function Blocks defined in the IEC 61131-3
   263             else:
   264             else:
   264                 raise "First function must be in a category"
   265                 raise "First function must be in a category"
   265 
   266 
   266     return Standard_Functions_Decl
   267     return Standard_Functions_Decl
   267 
   268 
       
   269 
   268 StdBlckLst.extend(get_standard_funtions(csv_file_to_table(open(StdFuncsCSV))))
   270 StdBlckLst.extend(get_standard_funtions(csv_file_to_table(open(StdFuncsCSV))))
   269 
   271 
   270 # Dictionary to speedup block type fetching by name
   272 # Dictionary to speedup block type fetching by name
   271 StdBlckDct = OrderedDict()
   273 StdBlckDct = OrderedDict()
   272 
   274