Variables & Data Points

Variable Types

Supported data types and unit codes for variables.

Data types

Every variable has a data type that defines what kind of value it holds. The data type is set when the variable is created and determines how values are stored and displayed.

Data TypeDescriptionExample ValuesCommon Use Cases
BooleanTrue or falsetrue, falseAlarm states, switch positions, status flags
Int3232-bit signed integer-2147483648 to 2147483647Counters, error codes, discrete states
UInt3232-bit unsigned integer0 to 4294967295Positive counters, identifiers
Float32-bit floating point123.45Most sensor readings — temperature, pressure, speed
Double64-bit floating pointHigh-precision decimalsEnergy totals, precise calculations, cumulative values
StringText"Running", "FAULT"Status messages, labels, identifiers
DateTimeTimestampISO 8601 formatEvent timestamps, last-update times

Default: Float is the default data type when creating variables. It is suitable for the majority of industrial sensor readings.

Variable libraries use a slightly different set of type names (capitalized: Float, Double, Int32, etc.). The platform normalizes these automatically when cloning from libraries.

Choosing the right data type

  • Use Float for most analog sensor values (temperature, power, wind speed, voltage)
  • Use Double for values that require high precision or large magnitude (energy totals in MWh, cumulative production)
  • Use Int32 or UInt32 for discrete values (counter readings, error codes, operational states)
  • Use Boolean for binary states (alarm active, switch on/off, breaker open/closed)
  • Use String for textual status codes or identifiers
  • Use DateTime for timestamp values from the data source

Unit codes

Variables can have an optional unit code that describes the unit of measurement. Unit codes are free-text strings — you can enter any unit abbreviation that fits your data.

Common unit codes

CategoryUnit Codes
PowerkW, MW, W, VA, kVA
EnergykWh, MWh, Wh
VoltageV, kV, mV
CurrentA, mA
Temperature°C, °F, K
Speedm/s, km/h, rpm
FrequencyHz
Percentage%
PressurePa, bar, psi
Angle°, rad
Times, ms, min, h

Best practices

  • Use standard SI unit abbreviations where possible
  • Be consistent across variables of the same measurement type
  • Include the unit code to avoid ambiguity — a value of 100 could be watts, kilowatts, or megawatts depending on the source
  • If your data source provides values in a different unit than you need, use the binding transform parameters (scale and offset) to convert at the data acquisition level

On this page