Cmd_query_state – GBS Elektronik MCA-527 Firmware Commands User Manual

Page 32

Advertising
background image

MCA527

Command name

CMD_QUERY_STATE

Compatibility

Compatible to the MCA166 command.

Execution right

Not necessary

Description

The command reads the state.

Format

integer

integer

integer

long

integer

Parameter

preamble

command

0

0

end flag

Byte string (HEX)

A5

5A

5A

00

00

00

00

00

00

00

B9

9B

Result data array

Byte offset 0

MCA acquire mode

unsigned short MODE_MCA

= 0

MODE_MCS

= 1

Byte offset 2

Preset (automatic stop condition)

31

unsigned short PRESET_NONE = 0

PRESET_REAL

= 1

PRESET_LIVE

= 2

PRESET_INT

= 3

PRESET_AREA

= 4

Byte offset 4

Preset value

unsigned long

Byte offset 8

MCA mode: elapsed preset
MCS mode: elapsed MCS channels

32

unsigned long

Byte offset 12

Repeat value

unsigned short

Byte offset 14

Elapsed sweeps

unsigned short

Byte offset 16

MCS time per channel [ *

10 msec]

unsigned short

Byte offset 18

Elapsed time per channel [ * 10 msec]

unsigned short

Byte offset 20

Real time [sec]

unsigned long

The fractional digits of the real time are
returned by CMD_QUERY_STATE527_EX,
byte offset 80.

Byte offset 24

MCA mode: counts per second
MCS mode: counts per channel

33

unsigned long

Byte offset 28

Dead time [msec]

unsigned long

Byte offset 32

Busy time [msec]

unsigned long always 0 at MCA527

Byte offset 36

MCA channels

unsigned short

Byte offset 38

Threshold [%]

unsigned short

See CMD_QUERY_STATE527 and
CMD_SET_THRESHOLD

Byte offset 40

LLD

unsigned short

Byte offset 42

ULD

unsigned short

Byte offset 44

ROI begin (preset integral/area)

unsigned short

Byte offset 46

ROI end (preset integral/area)

unsigned short

31 For general mode 3 and 4 (see CMD_SET_GENERAL_MODE), only PRESET_REAL is supported, PRESET_LIVE,

PRESET_INT and PRESET_AREA are unsupported and mean the same like PRESET_NONE.

32 Since firmware version 13.00.
33 Older applications for the MCS mode used the counts per channel to calculate the counts per second. However, this is inexact.

For this reason, since firmware version 13.00, the 'counts per second' for both modes are (additionally) returned at byte offset
116. Newer applications for the MCS mode should use this parameter.

32

Advertising