SNVT_reg_val

Overview:

Register value.  (raw value, unit code, number of decimals.) .   

Used to send a value and appropriate unit of measure to a recording or displaying device that would use the unit field to properly handle the 32-bit value.

The reg_val_unit_t enumeration is a fixed list and will not be modified nor extended due to its self-defining use in SNVT_reg_val, and SNVT_reg_val_ts.

EXAMPLES

raw = 123456
unit = RVU_KWH
nr_decimals = 2
Physical value = 1234.56 kWh

Details:

Resource Set: Standard 00:00:00:00:00:00:00:00-0
Index: 136
Obsolete: no
Size: 6
Programmatic Name: SNVT_reg_val
Neuron C Type:
Structure
rawRaw value..   
 
s32_type
Minimum: -2147483648
Maximum: 2147483647
Scaling (A,B,C): 1,  0,  0
Scaled value: 1 *10 0 *(Raw+0)
Resolution: 1
unitUnit code.  (defines unit of measure.) .   
 
reg_val_unit_t
nr_decimalsNumber of decimals.  (digits to right of decimal point.) .   
 
bitfield
Signed: no
Width: 3
Offset: 0
Minimum: 0
Maximum: 7
Scaling (A,B,C): 1,  0,  0
Scaled value: 1 *10 0 *(Raw+0)
Resolution: 1
Formats:

SNVT_reg_val:  text("%d %m %d", raw, unit, nr_decimals)

Used by:

SCPTbaseValue  SFPTutilityDataLoggerRegister