
M74050
1/4M IMAGING SPECTROGRAPHS
58
16.7 ERROR CODES FOR LOW LEVEL COMMANDS
MS260i errors are stored internally in the Status byte and Error code. The Status byte is usually
empty (decimal value 0) but if an error condition occurs, bit 5 of the Status byte will be set (decimal
value 32). By checking this byte, all error conditions can be checked at once. Further information is
provided in the individual error codes. There is a detailed list of error codes later in this manual.
There are two ways to check for errors. First, one can explicitly query the Status Byte. This method
is used for most communication and programming and is described in the section for Standard
Mode.
Use the query “STB?” to get the decimal value of the Status Byte, either “00” for success or non-
zero for error. If the response is not a zero then you should check the code for that particular error
using the query “ERROR?”. Please note that reading the Status Byte and the Error Code resets
them back to “0”.
Errors may be checked for immediately in Handshake Mode. Turn this mode on with the command
“HANDSHAKE 1[lf]”. Handshaking causes the MS260i to respond to every Statement with the Status
byte. The exact syntax is discussed in the section covering Handshaking Mode. Again, if the
response is “20” then you should check the code for that particular error using the query “ERROR?”.
Likewise, the Status Byte is cleared after it is reported as the handshake.
Read Status Byte with: STB?
00 indicates no error
20 indicates error condition.
Read Error Code with:
ERROR?
Error codes are listed below.
Error code
Condition
1
Command not understood
2
Bad parameter used in Command
3
Destination position for wavelength motion not allowed
6
Accessory not present (usually filter wheel)
7
Accessory already in specified position
8
Could not home wavelength drive
9
Label too long
0
System error (miscellaneous)