beautypg.com

Data format, 3 data format – INFICON Helium Leak Detector Modul1000 Interface description User Manual

Page 17

background image

Binary Protocol

1-15

jin

s

80

e.f

m

Op

er

at

in

g M

a

nua

l

(1

01

1)

Example 1: Get trigger level 2 in mbarl/s

PC

Î leak detector

leak detector

Î PC:

4.3

Data Format

5

6

56

2

0

69

0x05

0x06

0x38

0x02

0x00

0x45

Start

Length Command

Para0

Para1

Checksum

Trigger

Trig. 2

mbarl/s

7

57

52

0

217

89

166

0x07

0x39

0x34

0x00

0xD9

0x59

0xA6

Length Command Data

Data

Data

Data

Checksum

1.2E-7 (4-Byte float)

float

4 bytes, after IEEE754 (± 10

±38

), 3 bytes mantissa, 1 byte

exponent / sign

unsigned long int [ulint]:

4 bytes, integral number without sign MSB … LSB
(0 … 4294967295)

unsigned short int [usint]: 2 bytes, integral number without sign MSB, LSB

(0 … 65535)

signed short int

2 bytes, integral number with sign MSB, LSB
(-32768…32767)

unsigned char [uchar]:

1 byte, integral number without sign (0…255)