Event Double Feature Pseudo-Code

double ACTION(void)

  • The Feature takes no arguments.
  • The Feature returns a double value.
  • The ACTION is performed on target.


Event Double Panel



Event Double Macro

Description:

Macro

Identifier

Displayed Name

Group*

Unit*

Range Min*

Range Max*

Value Formatter*


Example using all options:

define_double_event(

eventAirTemperature,

"Air Temperature",

4,

"°C",

0.0,

90.0,

"F2"

);

Example without options:

define_double_event(

eventPercentage,

"Percentage",

,

,

,

,


);


*optional argument. If Group is omitted the Group-Number will default to 0.

The unique message id is derived from the row number, in source file where the macro is used.



Event Double XML Definition

Description

XML

Feature Root: Start

<F>

Event Double: Start

<Ed>

ID

<I>BYTE</I>

SUB ID

<Is>BYTE</Is>

GROUP

<Gr>BYTE</Gr>

NAME

<N>STRING</N>

UNIT (optional)

<U>STRING</U>

MIN (optional)

<Mn>DECIMAL</Mn>

MAX (optional)

<Mx>DECIMAL</Mx>

Value text format (optional)

<Vf>FORMAT_STRING</Vf>

Event Double: End

</Ed>

Feature Root: End

</F>




Event Double Data Message

IEEE 754 double-precision binary floating-point format: binary64

The value is represented by 8 bytes in the message, starting with the Least Significant Byte (Big-Endian).


Byte#

0

1

2

3

4

5

6

7

8

9

10

11

12

13

Name

START

ID

SUB ID

DOUBLE VALUE

CRC MSB

CRC LSB

END

Value

0xAA

[0..255]

[0..255]

LSB







MSB

CRC16-CITT

0xBB