Command Int32 Feature Pseudo-Code

void ACTION(int32 arg)

  • The Feature takes one 32-bit integer argument.
  • The Feature do not return anything.
  • The ACTION is performed on target.


Command Int32 Panel



Command Int32 Macro

Description:

Macro

Identifier

Displayed Name

Function Identifier

Group*

Unit*

Range Min*

Range Max*


Example using all options:

define_int_command(

cmdSetDac1,

"Set DAC1",

SetDac1,

2,

"steps",

0,

1023

);

Example without options:

define_int_command(

cmdSetCounter,

"Set Counter",

SetCounter,

,

,

,


);


*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.



Command Int32 XML Definition

Description

XML

Feature Root: Start

<F>

Command Int32: Start

<Ci>

ID

<I>BYTE</I>

SUB ID

<Is>BYTE</Is>

GROUP

<Gr>BYTE</Gr>

NAME

<N>STRING</N>

UNIT (optional)

<U>STRING</U>

Range MIN (optional)

<Mn>INT</Mn>

Range MAX (optional)

<Mx>INT</Mx>

Command Int32: End

</Ci>

Feature Root: End

</F>




Command 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