Martel Electronics 3001 User Manual
Page 49
Table 8 - Terminator Characters
Terminator Function
ASCII Character
Control
Language
Command
Command
Number Program
Terminator
Terminator
Carriage Return (CR)
13
Chr(13)
\n
Line Feed (LF)
10
Chr(10)
\r
Backspace (BS)
8
Chr(8)
\b
Form Feed (FF)
12
Chr(12)
\f
Examples:
RS-232 Mode, terminal:
OUT 1 V
RS-232 Mode, program:
Comm1.Output = "OUT 1 V" + Chr(10)
IEEE-488 Mode:
OUT 1 V
IEEE-488 interface:
The 3001 sends the ASCII character Carriage Return with the EOI control line
held high as the terminator for response messages. The 3001 recognizes the
following as terminators when encountered in incoming data:
• ASCII CR character
• Any ASCII character sent with the EOI control line asserted
RS-232 interface:
The 3001 sends a Carriage Return (CR) character as the terminator for response
messages. The 3001 recognizes the following as terminators when encountered in
incoming data:
• ASCII CR character
• ASCII LF character
e) Incoming Character Processing
The 3001 processes all incoming data as follows:
• The most significant data bit (DIO8) is ignored
• All data is taken as 7-bit ASCII
• Lower case or upper case characters are accepted, with lower case converted to
upper case before processing
f)
Response Message Syntax
In the detailed command descriptions in section 10, the responses from the 3001 are
described wherever appropriate. In order to know what type of data to read in, refer
to the beginning of the response description for the command.
9.7 Checking 3001 Status
Figure 33 shows the status registers, enable registers, and queues in the 3001 which
indicate various conditions in the instrument. Some registers and queues are defined by
the IEEE-488.2 standard, while the rest are specific to the 3001. In addition to the status
registers, the Service Request (SRQ) control line and a 16-element buffer called the Error
Queue provide also status information.
45