Cmd_query_voltage_current, Cmd_query_centroid – GBS Elektronik MCA-527 Firmware Commands User Manual

Page 46

Advertising
background image

MCA527

Command name

CMD_QUERY_VOLTAGE_CURRENT

Compatibility

Identical to the MCA166 command.

Execution right

Not necessary

Description

The command reads the voltages and currents.

Format

integer

integer

integer

integer

integer

integer

Parameter

preamble

command

0

0

0

end flag

Byte string (HEX)

A5

5A

05

00

00

00

00

00

00

00

B9

9B

Result data array

Byte offset 0

Charger current [mA]

unsigned long

Byte offset 4

HV primary current [mA]

unsigned long

Byte offset 8

Battery current [mA]

unsigned long

Byte offset 12

Battery voltage [mV]

unsigned long

Byte offset 16

HV reference voltage [V]

unsigned long

Byte offset 20

HV control voltage [V]

unsigned long

Byte offset 24

+12V primary current [mA]

unsigned long

Byte offset 28

+24V primary current [mA]

unsigned long

Byte offset 32

-24V primary current [mA]

unsigned long

Byte offset 36

-12V primary current [mA]

unsigned long

Byte offset 40

unused

66 bytes

Byte offset 106

Command flag and parameters

8 bytes

Byte offset 114

unused

12 bytes

Byte offset 126

Checksum

unsigned short

Byte offset 128

unused

4 bytes

Command name

CMD_QUERY_CENTROID

Compatibility

Identical to the MCA166 command.

Execution right

Not necessary

Description

The command reads the centroid of a ROI (beg<end, LLD<=beg, end<=ULD, end-beg<250).

Format

integer

integer

integer

integer

integer

integer

Parameter

preamble

command

beg

end

0

end flag

Byte string (HEX)

A5

5A

5F

00

beg

l

beg

h

end

l

end

h

00

00

B9

9B

Result data array

Byte offset 0

Peak centroid within the given ROI

float

Byte offset 4

unused

102 bytes

Byte offset 106

Command flag and parameters

8 bytes

Byte offset 114

unused

12 bytes

Byte offset 126

Checksum

unsigned short

Byte offset 128

unused

4 bytes

46

Advertising