equal
deleted
inserted
replaced
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 |