• F32: floating on 32 bits (4 bytes, or 2 registers)
• F64: floating on 64 bits (8 bytes, or 4 registers)
• String: the variable is a character string. In that case the
“Address_Size” notation should be used for the “Info2” field
• Bits: the variable is of the bit field type. In that case the “Address_1
st
bit_Number of bits” notation should be used for the “Info2” field
• IP: the variable is of the IP V4 address type and is therefore coded
on 4 bytes (2 registers)
• IPV6: the variable is of the IP V6 address type and is therefore coded
on 16 bytes (8 registers)
• MAC: the variable is of the MAC address type in “EUI48” format. It
is therefore coded on 6 bytes (3 registers)
Note that the integer types can be modified by adding a suffix. The
authorised modifiers are:
• _W: the words are exchanged, i.e. the variable register content is
exchanged in 2 byte blocks
• _B: the bytes are exchanged, i.e. the variable register content is
exchanged in at byte level, one by one
• _WB: the words AND the bytes are exchanged. The 2 previous
modifiers are applied.
Thus, for example, the “I32_W” notation indicates that it is a variable of
which bytes 1 and 2 will be exchanged with bytes 3 and 4.
Similarly, the “U16_B” notation indicates that bytes 1 and 2 of the variable
are exchanged. This is a “Little endian/Big endian” conversion.
Scale Factor
When the variable was generated automatically by SunSpec, this field
contains the variable name that determines its scale factor when
applicable.
When the configured variable value is calculated, the read variable will have
its decimal point position offset by as many digits as the value of its “scale
factor”.
The formula is var * 10
sf
” with “var” being the variable value that is read
and “sf” the variable value indicated by the “scale factor”.
For example, for a variable “var1” with scale factor variable “sf var1”.
If “var1” is equal to “1234” and “sf var1” equal to “3”, the decimal point for
“var1” will be offset by 3 digits to the right to obtain “1234000”.
If “var1” is equal to “1234” and “sf var1” equal to “-2”, the decimal point
for “var1” will be offset by 2 digits to the left to obtain “12.34”