3 high-amplitude warning flag, 4 low-frequency warning flag, 5 high-frequency warning flag – Campbell Scientific CDM-VW300 Series Dynamic Vibrating-Wire Analyzer System User Manual
Page 68: 6 interpreting the diagnostic code, High-amplitude warning flag, Low-frequency warning flag, High-frequency warning flag, Interpreting the diagnostic code, 2. diagnostic code ranges

CDM-VW300 Series Dynamic Vibrating-Wire Analyzers
LowAmpWarning = (DiagCode AND 256)
where LowAmpWarning is assigned a Boolean data type.
High-Amplitude Warning Flag
The tenth bit (2
9
or 512) corresponds to the high-amplitude warning flag. Use
the following expression to isolate the state of this bit:
(DiagCode AND 512)
Similar techniques to those described in the preceding section for the low-
amplitude warning flag can be used with this expression.
8.5.1.4.3
8.5.1.4.4
8.5.1.4.5
8.5.1.4.6
Low-Frequency Warning Flag
The eleventh bit (2
10
or 1024) corresponds to the low-frequency warning flag
and can be isolated with the expression,
(DiagCode AND 1024)
Similar techniques to those described in the preceding section for the low-
amplitude warning flag can be used with this expression.
High-Frequency Warning Flag
The twelfth bit (2
11
or 2048) corresponds to the high-frequency warning flag
and can be isolated with this expression:
(DiagCode AND 2048)
Similar techniques to those described in the preceding section for the low-
amplitude warning flag can be used with this expression.
Interpreting the Diagnostic Code
Although the above techniques constitute the preferred way for processing and
communicating the state of diagnostic parameters, examining the ranges of
values within which the returned code falls may be useful.
The following table summarizes these ranges and their meaning:
TABLE 8-2. Diagnostic Code Ranges
If diagnostic
code falls
within this
range:
Low-
amplitude
warning
flag is:
High-
amplitude
warning
flag is:
Low-
frequency
warning
flag is:
High-
frequency
warning
flag is:
0 – 255
(0 – FF Hex)
256 – 511
(100 – 1FF Hex)
True
58