Where can one find the enumerations for the DataType OPC property? I feel like this used to be on the resource center or in the Schema, but it's nowhere to be found anymore. I ran a query to get what I needed but was curious where else we can look to find all enumerated values.
Solved! Go to Solution.
Interestingly enough it is in the resource centre, just the draft content (since 2009!) so not public 🙂
Copy and paste as below, may well be outdated though (especially given Proteus, BMS and TMX are no longer core drivers):
The DataType property, found in the CDBPoint table, details the automation VARTYPE of the point's value.
|3||VT_I4||Integer (SNMP), Meter Period (BMS)|
|4||VT_R4||Analogue, Counter, Minimum, Maximum, Mean, Rate of Change, etc.|
|17||VT_UI1||Digital, Demand Buffer (Proteus)|
|19||VT_UI4||Cardinal (SNMP), Runtime (Proteus/BMS/TMX)|
The property is read-only, so you cannot change the point type by changing it.
|A common misconception is that this allows queries, logic and other parts of ClearSCADAto determine a point type easily rather than using TypeName or TypeDesc with a list of possible classes of each type, however this will rarely work as several types of point share each data type.|
Awesome, thank you! This should make for some more efficient processes, rather than comparing string values of TypeNames.
I could've sworn these were previously enumerated somewhere. Either way -- thanks again!
Discuss challenges and get support in energy and automation with 30,000+ experts and peers.
Over 10,000+ support articles are available to help you find answers to your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!