Remote Operation
Using Commands
5
5-35
5-39. Terminators
Table 5-9 summarizes the terminator characters for both the IEEE-488 and RS-232
remote interfaces.
Table 5-9. Terminator Characters
Terminator ASCII Character Control Command
Language
Command
Function Number Program Terminator Terminator
Carriage Return (CR) 13 Chr(13) <Cntl> M \n
Line Feed (LF) 10 Chr(10) <Cntl> J \r
Backspace (BS) 8 Chr(8) <Cntl> H \b
Form Feed (FF) 12 Chr(12) <Cntl> L \f
Examples:
RS-232 Terminal Mode OUT 1 V, 60 Hz <Enter>
UUT_SEND “REMS\n” <Enter>
UUT_SEND #205REMS^M <Enter> (^M means <Cntl> M)
RS-232 Computer Mode Comm1.Output = “OUT 1 V, 60 HZ” + Chr(10)
(typical to Visual Basic) Comm1.Output = “UUT_SEND ““REMS\n”” “ + Chr(10)
IEEE-488 Mode OUT 1 V, 60 Hz
(command only)UUT_SEND “REMS\n”
IEEE-488 Interface The Calibrator sends the ASCII character Line Feed with the EOI
control line held high as the terminator for response messages. The calibrator recognizes
the following as terminators when encountered in incoming data:
• ASCII LF character
• Any ASCII character sent with the EOI control line asserted
RS-232 Interface The Calibrator returns an EOL (End of Line) character with each
response to the PC. This is selectable as Carriage Return (CR), Line Feed (LF) or both
CRLF. (See “RS-232 Host Port Setup Procedure” earlier in this chapter.) Commands
sent to the Calibrator must end in either a CR or LF, or both. (See Table 5-9 above.)
5-40. Incoming Character Processing
The Calibrator processes all incoming data as follows (except Binary Block Data as
described under Parameter Syntax Rules):
1. The most significant data bit (DIO8) is ignored.
2. All data is taken as 7-bit ASCII.
3. Lower-case or upper-case characters are accepted.
4. ASCII characters whose decimal equivalent is less than 32 (Space) are discarded,
except for characters 10 (LF) and 13 (CR) and in the *PUD command argument.
Binary Block Data allows all characters in its argument and terminates in a special
way.