90088262 MCS130B
CORNERSTONE 130B MONOCHROMATORS
49
15.5 HANDSHAKE MODE
In Handshake mode the CS130B sends a status byte after every Statement it receives on the
RS232 bus. For queries, the CS130B sends the status byte after the response. This mode may be
useful when developing an application using RS232 or when troubleshooting RS232
communication problems
. Use the command: “HANDSHAKE 1” to put the CS130B into
Handshake mode. Handshake mode does not apply to USB.
In Handshake mode, Statements received on the RS232 port are handled as follows:
Commands
If Echo is enabled, the CS130B echoes every character it receives on the RS-232 port. In
Handshake mode the CS130B 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 CS130B 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 CS130B echoes every character it receives on the RS-232 port.
Additionally, it sends a Response to that query. With Handshake enabled, the CS130B 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):
Send : WAVE?[cr][lf]
Response: WAVE?[cr][lf]500.01[cr][lf]00[cr][lf]
Example (RS-232, echo off, handshake on):
Send : WAVE?[cr][lf]
Response: 500.01[cr][lf]00[cr][lf]
For queries received on the USB port, the CS130B 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]
Discussion
In general, Handshake and Echo are only useful when troubleshooting an RS232 connection.
Otherwise they require an application to collect a significant amount of unused information.
Also, when first getting familiar with the command set, it is useful to send the “system:error?” query
after
each Statement to make sure the spelling and parameter types are correct: see the “Error
Codes” section in this appendix.
Содержание Cornerstone 130B
Страница 1: ...90088262MCS130B Rev B s 1 8m Monochromator Family User s Manual Cornerstone 130B...
Страница 32: ...90088262 MCS130B CORNERSTONE 130B MONOCHROMATORS 32 Figure 23 Model 74010 Filter Wheel...
Страница 42: ...90088262 MCS130B CORNERSTONE 130B MONOCHROMATORS 42 14 13BDIMENSIONS Figure 30 Cornerstone 130B Dimensions...
Страница 44: ...90088262 MCS130B CORNERSTONE 130B MONOCHROMATORS 44 Figure 33 Model 74006 Mounting Plate...