
BAM 1020-9800 Manual Rev W.docx
Page 94
In addition, the BH protocol can only accommodate eight alarm types (0-7) instead of the
standard twelve, so some of the alarm states are grouped together. The BH protocol also
supports eight real-time status bits to indicate which part of the sample cycle is in progress.
Custom Query Output:
The Query output is provided to allow easier configuration of digital data logger and more
flexibility in the BAM 1020 digital output array. The Query output array is set to include only
the desired parameters in the desired order, and is accessed with a simple escape command
sequence. This eliminates much of the work associated with programming a digital data
logger to establish a command prompt, navigate the classic digital menu system, and parse
out multiple unused data parameters.
No command prompt must be established with the BAM 1020 as with the classic digital menu
access commands. Only the <Esc> escape character (hex 1B) or the <STX> character (hex
02) followed by the desired Query file and a carriage return (enter). The resulting Query
output from the BAM will consist of the last data record in the BAM memory, in comma-
separated format. The available Query commands are listed below:
Escape Command
Description
<Esc> QC <enter>
Custom Query output. Data is formatted exactly as specified in
the SETUP > QUERY screen. All values are in comma
separated format, with a fixed width of 7 characters per field
excluding commas.
<Esc> QCH <enter>
Data header for the custom Query output.
<Esc> Q <enter>
Standard Query output. Data array configured exactly like the
standard csv last data output (menu 6,4) regardless of the
Query setup screen. All values are in comma separated format,
with a fixed width of 6 characters per field excluding commas.
<Esc> QH <enter>
Data header for the standard Query output.
An example of one possible QCH (custom array header) and QC (custom Query array)
command are shown below. Each escape command is followed by the response from the
BAM 1020:
<Esc>QCH
TIME,CONC(mg/m3),FLOW(lpm),AT(C),BP(mmHg),RH(%),REF(mg),ERRORS,*4348
<Esc>QC
07/06/10 13:22, 0.0230, 16.7, 23.6, 761, 26, 0.8160, 0,*3129
An example of the QH and Q commands is shown below. This mirrors the familiar csv last
data output of the BAM 1020, and ignores the user set format of the custom Query array:
<Esc>QH
Time,Conc(mg/m3),Qtot(m3),WS(KPH),WS(MPS),WS(MPS),RH(%),Delta(C),AT(C),E,U,M,I,L,R,N,F,P,D,C,T,*6451
<Esc>Q
07/06/10 15:00, 0.023, 0.701, 0.8, 0.8, 0.8, 26, 8.6, 23.6,0,0,0,0,0,0,0,0,0,0,0,0,*4224