Ocean Optics SAD500 Communications and Control User Manual
Page 12
12
Query Error Code
Description: Returns and clears the current error code.
Command Syntax:
q
Response:
ACK followed by {
DATA WORD
}
Default value:
N/A
The following table describes the specific error condition for a specific bit being set. An error code of zero
indicates normal operation.
Bit
Description
15 (0x8000)
Error while loading boot table from slow memory
14 (0x4000)
Slow memory is full
13 (0x2000)
Can't create boot table in slow memory
12 (0x1000)
Must move boot table -- clear slow memory first
11 (0x0800)
Error while reading previously written block of slow memory
10 (0x0400)
Can't find start of next scan in slow memory
9 (0x0200)
Bad format in slow memory -- mainly pixel mode value
8 (0x0100)
Can't write to previously good block of slow memory
7 (0x0080)
Reserved
6 (0x0040)
Reserved
5 (0x0020)
Reserved
4 (0x0010)
Reserved
3 (0x0008)
Reserved
2 (0x0004)
Reserved
1 (0x0002)
Reserved
0 (0x0001)
Reserved
Read Integration Counter
Description: Returns the value of the current integration time counter. This value is the number of
integration cycles used since power-up. This 16-bit counter wraps around from 65535 to 0.
Command Syntax:
t
Response:
ACK followed by {
DATA WORD
}
Default value:
N/A
Version Number Query
Description: Returns the version number of the code running on the microcontroller. A returned value of
1020 is interpreted as 1.02.0.
Command Syntax:
v
Response:
ACK followed by {
DATA WORD
}
Default value
N/A
Query Variable
Description: Returns the current value of the parameter specified. The syntax of this command requires two
ASCII characters. The second ASCII character corresponds to the command character which sets the
parameter of interest (acceptable values are P, B, M, A, N, I, H, F, K, T, J, h, k, G). A special case of this
command is ?p (lower case) which returns the complete parameters of the Pixel Mode command. The
returned format starts with an ACK, then the pixel mode value, and finally the data required to specify
pixel mode (see Pixel Mode command for details).
Command Syntax:
?{ASCII character}
Response:
ACK followed by {
DATA WORD
}
Default value:
N/A