Event Int32 Feature Pseudo-Code

Int32 ACTION(void)

  • The Feature takes no arguments.
  • The Feature returns a 32-bit integer value.
  • The ACTION is performed on target.


Event Int32 Panel



Event Int32 Macro

Description:

Macro

Identifier

Displayed Name

Group*

Unit*

Range Min*

Range Max*

Value Formatter*


Example using all options:

define_int_event(

eventWaterLevel,

"Water Level",

4,

"cm",

-30,

30,

"D"

);

Example without options:

define_int_event(

eventCounter,

"Counter",

,

,

,

,


);


*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 Int32 XML Definition

Description

XML

Feature Root: Start

<F>

Event Int32: Start

<Ei>

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>INT</Mn>

MAX (optional)

<Mx>INT</Mx>

Value text format (optional)

<Vf>FORMAT_STRING</Vf>

Event Int32: End

</Ei>

Feature Root: End

</F>




Event Int32 Data Message

The Integer value is a 32-bit signed (one’s complement) value.


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

Byte#

0

1

2

3

4

5

6

7

8

9

Name

START

ID

SUB ID

INT32 VALUE

CRC MSB

CRC LSB

END

Value

0xAA

[0..255]

[0..255]

LSB



MSB

CRC16-CITT

0xBB