BNC 6040 User Manual

Page 34

Advertising
background image

34



OPERATING INFORMATION


REMOTE PROGRAMMING


Remote programming can be accomplished via either the RS-232 serial interface or the IEEE-488
GPIB. The command sets for the two buses are identical. Commands sent to the 6040
are case sensitive. Multiple commands, which must be separated by blanks or commas, maybe sent in
a single transfer. The command string, including blanks, cannot exceed 255 characters. Strings, or
single commands, must be terminated with a carriage return. Extra blank spaces are ignored. Error
messages, sent back by the 6040 in response to invalid commands or data, are listed in Table 2-4.

In all of the commands listed here, i represents an integer value, f, v, and x may be in integer, floating
point, or exponential notation, and c represents an ASCII character string. Optional parameters are
enclosed in curly brackets.

In general, if optional parameters are omitted then the current value of those parameters will be sent
back (immediately with RS-232 or upon request with GPIB). Responses sent back from the 6040 (other
than error messages) are 20 characters long and correspond to the LCD display that would appear
under manual operation. They are terminated with a carriage return. With GPIB programming, EOI is
asserted with the carriage return.

Command errors are reported in the Error Status Byte. The controller should verify that the Error Status
Byte is zero after each command string is sent: a zero value indicates no errors have been detected.

Table 1-7. GPIB/RS-232 Error Messages


Primary
PCC

Error Message

Meaning

XX

"Invalid Command"

Primary PCC not recognized.

MO

"Invalid Mode"

Mode not available for the module type, or
secondary PCC not recognized.

TR

"Invalid Trigger Command or Data"
"Invalid Module Command"
Trigger Range Error"

Secondary PCC or data not recognized.
Trigger choice not available for the module
type. Invalid trigger value.

TI

"Invalid Timing Command or Data"
"Invalid Module Command"
"Timing Range Error"

Secondary PCC or data not recognized.
Timing choice not available for the
module type. Invalid timing value.

LV

"Invalid Level Command or Data"
"Invalid Module Command"
"Level Range Error"

Secondary PCC or data not recognized.
Level choice not available for the module
type. Invalid level value

RE, ST

"Memory Range Error" "No
Memory Present"

Invalid or unrecognized memory number,
No plug-in module installed.

DS

"Invalid Display Command"

Secondary PCC not recognized.

Advertising