View Single Post
Old January 23rd, 2026   #7
ericthegeek
Task Group Member
 
Join Date: Aug 2008
Posts: 390
Default

You can use the "Prefix" field of SENSOR_DEFINITION.

For example, if you need to display 6.3 volts, then you can use PREFIX_DECI in SENSOR_DEFINITION and return the integer 63 in SENSOR_VALUE.

Depending on how much precision you need, you could also use PREFIX_MILLI and return the integer 6300.

When using prefixes, it's up to the controller's User Interface to determine how to display the data. For my second example, the controller might display "6300 mV", or it might display "6.300 V". Or it might let the user configure how the data is displayed.
ericthegeek is offline   Reply With Quote