MCS260B
CORNERSTONE 260B MONOCHROMATORS
46
Queries
If Echo is enabled, the CS260B echoes back all characters it receives on the RS-232 port.
Additionally, it sends the response to the query. After sending a Query, the application must read
back both the echo (if enabled) and the answer.
Example (RS-232, echo on):
Send: WAVE?[cr][lf]
Response: WAVE?[cr][lf]500.01[cr][lf]
Example (RS-232, echo off):
Send : WAVE?[cr][lf]
Response: 500.01[cr][lf]
For queries received on the USB port, the CS260B sends only the query response. The query
response can be read back by itself.
Example (USB):
Send : WAVE?[cr][lf]
Response: 500.01[cr][lf]
15.5 HANDSHAKE MODE
In Handshake mode the CS260B sends a status byte after every Statement it receives on the RS-
232 bus. For queries, the CS260B sends the status byte after the response. This mode may be
useful when developing an application using RS-232 or when troubleshooting RS-232
communication problems
. Use the command: “HANDSHAKE 1” to put the CS260B into
Handshake mode. Handshake mode does not apply to USB.
In Handshake mode, Statements received on the RS-232 port are handled as follows:
Commands
If Echo is enabled, the CS260B echoes every character it receives on the RS-232 port. In
Handshake mode the CS260B also reports the status byte after the command is received. Thus,
after sending a command
with both Echo and Handshake enabled, the customer’s application
must read back both the echoed statement and the status byte.
Example (RS-232, echo on):
Send: GOWAVE 500[cr][lf]
Response: GOWAVE 500[cr][lf]00[cr][lf]
Example (RS-232, echo off):
Send: GOWAVE 500[cr][lf]
Response: 00[cr][lf]
For commands received on the USB port, the CS260B sends no echo and no other response to a
command.
Example (USB):
Send: GOWAVE 500[cr][lf]
Response: (none)
Queries
If Echo is enabled, the CS260B echoes every character it receives on the RS-232 port.
Additionally, it sends a Response to that query. With Handshake enabled, the CS260B also sends
the status byte. After sending a Query
with Echo and Handshake enabled, the customer’s
application must read back a three-part answer: the echo, the Response, and the status byte.
Example (RS-232, echo on, handshake on):