contact@webdyn.com | webdyn.com
V2.05 subject to changes | Webdyn © by Flexitron Group
Info3 Variable type. The authorised types are the following:
•U8: unsigned integer on 8 bits (1 byte)
•U16: unsigned integer on 16 bits (2 bytes, or 1 register)
•U32: unsigned integer on 32 bits (4 bytes, or 2 registers)
•U64: unsigned integer on 64 bits (8 bytes, or 4 registers)
•I8: signed integer on 8 bits (1 byte)
•I16: signed integer on 16 bits (2 bytes, or 1 register)
•I32: signed integer on 32 bits (4 bytes, or 2 registers)
•I64: signed integer on 64 bits (8 bytes, or 4 registers)
•F32: oating on 32 bits (4 bytes, or 2 registers)
•F64: oating 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” eld
•Bits: the variable is of the bit eld type. In that case the “Address_1st bit_
Number of bits” notation should be used for the “Info2” eld
•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 modied by adding a sufx. The authorised
modiers 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 modiers 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.
Info4 Scale Factor: when the variable was generated automatically by SunSpec,
this eld contains the variable name that determines its scale factor when
applicable.
When the congured 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 * 10sf” 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”.