changeset 210 | 17ce08b81775 |
parent 208 | c70aefcadf66 |
child 230 | 45d70748e45a |
--- a/plcopen/structures.py Fri Apr 25 10:53:18 2008 +0200 +++ b/plcopen/structures.py Fri May 23 10:42:09 2008 +0200 @@ -334,6 +334,13 @@ else: return True +def GetBaseType(type): + parent_type = TypeHierarchy[type] + if parent_type.startswith("ANY"): + return type + else: + return GetBaseType(parent_type) + def GetDataTypeRange(reference): while reference is not None: if reference in DataTypeRange: