
M74050
1/4M IMAGING SPECTROGRAPHS
51
16.4 HANDSHAKE MODE
This communications mode is most useful for methods development, troubleshooting or in the early
sta
ges of programming. Use the command: “HANDSHAKE 1[lf]” to put the MS260i into Handshake
Mode. This mode follows the command syntax listed in this manual, but in addition, every Statement
is acknowledged. The “handshake” that received is the status byte.
The MS260i stores errors internally in a status byte and an error byte, where each bit has a specific
meaning. Details of the status and error bytes can be found in this manual under Error Codes.
In all cases, Statements must be terminated properly with [lf] for he MS260i to take any action.
Statements that are not understood or parameters that are unacceptable generate an error code in
the status byte, i.e. status byte 0.
This status byte will be reported immediately if it contains an error, otherwise the status byte “00”
will be returned upon completion of the Statement.
Correct Statements are handled as follows:
Commands
Under RS-232, Statements are echoed back to the PC. Thus, after sending a Command, this echo
should be read back. Additionally, the status byte is reported when the action is complete.
Example:
Send: GOWAVE 500[lf]
Response: GOWAVE 500[lf]00[cr][lf]
Under IEEE-488 and USB, there is no echo. The only response will be the status byte.
Example:
Send: GOWAVE 500[lf]
Response: 00[cr][lf]
Queries
Under RS-232, Statements are echoed back to the PC. Additionally, there will be an explicit
response to that query, and the statues byte. After sending a Query, a three-part answer should be
read back.
Example:
Send : WAVE?[lf]
Response: WAVE?[lf]500[cr][lf]00[cr][lf]
Under IEEE-488 and USB, there is no echo. Thus, you will read back the Response and the status
byte.
Example:
Send : WAVE?[lf]
Response: 500[cr][lf]00[cr][lf]