Cmd_set_adc_res_discr, Cmd_set_presets, Description of the mca527 firmware commands – GBS Elektronik MCA-527 Firmware Commands User Manual
Page 7
![background image](https://www.manualsdir.com/files/787577/content/doc007.png)
Description of the MCA527 Firmware Commands
MCA Setup Commands:
Command name
CMD_SET_ADC_RES_DISCR
Compatibility
Compatible to the MCA166 command.
Execution right
Necessary
Description
The command sets the ADC resolution (res: 128, 256 … 16384 ), the LLD (Low level discriminator)
and the ULD (Upper level discriminator) to the values of its three parameter.
The maximum resolution is returned by CMD_QUERY_STATE527, byte offset 56.
The LLD must be smaller than the ULD. The maximum ULD is equal ADC resolution minus 1.
The command is ignored and responded with an error value if one or more parameter are invalid or a
measurement is still running.
Format
integer
integer
integer
integer
integer
integer
Parameter
preamble
command
res
LLD
ULD
end flag
Byte string (HEX)
A5
5A
46
00
res
l
res
h
LLD
l
LLD
h
ULD
l
ULD
h
B9
9B
Command name
CMD_SET_PRESETS
Compatibility
Compatible to the MCA166 command.
Execution right
Necessary
Description
The command sets the automatic stop condition (pre) to
PRESET_NONE
= 0
(val is meaningless)
PRESET_REAL
= 1
PRESET_LIVE
= 2
(val ≤ 65535)
PRESET_INT
= 3
PRESET_AREA
= 4
PRESET_REAL_MILLISECONDS
= 5
and value (val) of the preset.
Format
integer
integer
integer
long
integer
Parameter
preamble
command
pre
val
end flag
Byte string (HEX)
A5
5A
48
00
pre
l
pre
h
val
l
...
...
val
h
B9
9B
Remarks
Except for PRESET_LIVE
and PRESET_REAL_MILLISECONDS, the MCA527 stops the
measurement always at integer real time.
For general mode 3 and 4 (see CMD_SET_GENERAL_MODE), only PRESET_REAL is supported.
PRESET_LIVE, PRESET_INT and PRESET_AREA are without effect and mean the same like
PRESET_NONE.
13 Up to firmware version 13.03, the measurement was stopped always at integer seconds real time. Since firmware version 13.04,
if preset is equal to PRESET_LIVE, the measurement is stopped according to the preset live time and the resulting real time is
no more integer. The fractional digits are returned by CMD_QUERY_STATE527_EX, byte offset 80. Besides, in consequence of
the more exact automatic stop, the maximum value for PRESET_LIVE has been limited.
14 Since firmware version 14.03.
7