changeset 887 | d3c6c4ab8b28 |
parent 886 | ace92afe9100 |
child 901 | ab43f3e40b9d |
--- a/PLCControler.py Thu Nov 15 23:49:08 2012 +0100 +++ b/PLCControler.py Fri Nov 23 13:36:47 2012 +0100 @@ -1677,6 +1677,10 @@ return basetype_content["name"] == "enum" return False + def IsNumType(self, type, debug = False): + return self.IsOfType(type, "ANY_NUM", debug) or\ + self.IsOfType(type, "ANY_BIT", debug) + def GetDataTypeRange(self, type, debug = False): if type in DataTypeRange: return DataTypeRange[type]