Cmd_query_state527 – GBS Elektronik MCA-527 Firmware Commands User Manual
Page 35

Description of the MCA527 Firmware Commands
Command name
CMD_QUERY_STATE527
Compatibility
New MCA527 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
01
01
00
00
00
00
00
00
B9
9B
Result data array
Byte offset 0
MCA hardware version (hexadecimal)
unsigned short High byte:
major version
Low byte:
minor version
Byte offset 2
MCA firmware version (hexadecimal)
unsigned short High byte:
major version
Low byte:
minor version
Byte offset 4
MCA hardware modification
unsigned short Full version
= 0
Lite version
= 1
OEM version
= 2
Byte offset 6
MCA firmware modification
unsigned short
Byte offset 8
MCA features
unsigned long See remarks at the end of the
table (2
nd
continuation)
Byte offset 12
Time on internal clock
32 bits
See CMD_SET_TIME
Byte offset 16
reserved
4 bytes
Byte offset 20
Testing phase [sec]
unsigned long 0
= expired
0xFFFFFFFF
= without
other value
= remaining
Byte offset 24
MCA temperature [ * 0.0078125 °C]
short
0x8000 = not available
Byte offset 26
General MCA mode
unsigned short
See CMD_SET_GENERAL_MODE
Byte offset 28
Discarded cycles
unsigned long 1 discarded cycle = 400 µsec
Byte offset 32
Core clock [ * 100 MHz]
unsigned short
Byte offset 34
Trigger filter for low shaping time
unsigned char
See CMD_SET_TRIGGER_FILTER
Byte offset 35
Trigger filter for high shaping time
unsigned char
See CMD_SET_TRIGGER_FILTER
Byte offset 36
Expander flags
unsigned short
Byte offset 38
Offset DAC
unsigned short
Byte offset 40
Detector temperature [ * 0.0078125 °C]
short
0x8000 = not available
Byte offset 42
Power module temperature [ * 0.0078125 °C]
short
0x8000 = not available
Byte offset 44
MCA serial number
unsigned short
Byte offset 46
Am I right holder?
short
0 = no, -1 = yes
Byte offset 48
Right holder IP address
unsigned char [4]
0.0.0.0 = USB or RS232
Byte offset 52
Right holder UDP port
unsigned short 0
= USB or RS232
Byte offset 54
Execution right
short
-1
= not granted
0
= reserved
1 … 15 = granted
Byte offset 56
Maximum MCA channels provided by this MCA
unsigned short
35