MCS260 
CORNERSTONE 260 MONOCHROMATORS 
51 
 
 
 
16.4 HANDSHAKE MODE 
 
This communications mode is most useful for methods development, troubleshooting or in the 
early stages of programming. Use the command: “HANDSHAKE 1[lf]” to put Cornerstone 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 Cornerstone 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 Cornerstone 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]