Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 5 of 18

8840A Digital Multimeter Instruction Manual, pages 41 to 50

Pages 41 to 50 of 180

The original document is the PDF (42 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Fluke 8840A

Page 41 read from a scan by OCR; it may hold reading errors

Remote Programming DEVICE-DEPENDENT COMMAND:

TRIGGER MODE COMMANDS TO Continuous Trigger T1-T4 External Trigger

DISPLAY COMMANDS TRIGGER COMMANDS

DO Normal Display 2 Trigger Measurement ; D1 Blank Display GET Trigger and Execute “READING RATE. “COMMANDS SUFFIX COMMANDS | SO Slow YO = Disable Suffix 'S1 Medium

Y1 Enable Suffix $2. Fast

DA Mucins ter eosin, en, a Sensed by G5 RANGE COMMANDS || . SELF-TEST RO Autorange On COMMAND R1 200 mv, 2009 | 20 Begins R2 2V.2kn Self-Tests FUNCTION COMMANDS R3 20V, 20 kn F1 VDC R4 200V, 200 ka GTL Go To Local F2 VAC R5 1000V dc, 700V ac, F3 2WIREKQ 2 MQ, 2000 mA DEVICE-CLEAR COMMAND | F4 4WIREkQ R6 20MQ * Reset 8840A to power-up state F5 mADC R7 Autorange Off

F6 mA AC OFFSET COMMANDS

BO Offset Off B1 Offset On

Figure 3-4. Commands Which Correspond to the Front Panel

Page 42 read from a scan by OCR; it may hold reading errors

Remote Programming DEVICE-DEPENDENT COMMAND SET

FUNCTION COMMANDS

F1 VDC (Default) F2 VAC

F3. 2 WIRE kQ Fa 4 WIRE kQ)

F5 mADC

Fé mAAC

RANGE COMMANDS

RO Autorange On (Default)

R1 200 mV, 2000

R2 2V,2kQ

R3. 20V, 20 kQ

R4 200V, 200 kQ

R5 1000V de, 700V ac, 2 MQ, 2000 mA R6 20MQ

R7 = Autorange Off

READING RATE COMMANDS

SO Slow (Default) $1 Medium $2. Fast

TRIGGER MODE COMMANDS

COMMAND | TRIGGER | REAR PANEL | SETTLING MODE TRIGGER DELAY TO (Default) Internal Disabled, 71 External Enabled On T2 External Disabled On T3 External Enabled Off T4 External Disabled Off

Note: Delay is enabled by entering EX TRIG mode while in local.

OFFSET COMMANDS

BO Offset Off (Default)

B1 Offset On

DISPLAY COMMANDS

DO Normal! Display (Default) D1 Blank Display

SUFFIX COMMANDS

YO Disable Output Suffix (Default if talker/listener) Y1 Enabie Output Suffix (Default in talk-only mode)

TERMINATOR COMMANDS

WO Enable CR LF EO! (Default) Wi Enable CRLF Only |

W2 Enabie CR EO! Only

W3_ Enabie CR Only

W4 Enable LF EOI Only

W5 Enable LF Only

W6 Enable EO! Only

W7 Disable All Output Terminators

CLEAR COMMANDS

. Device Clear (Resets aB40A to default coneltions) XO. Clear Error Register

SINGLE-TRIGGER COMMAND

? Trigger Measurement

GET COMMANDS

GO... Get Instrument Configuration (F,R,S, and T

G1. Get SRQ Mask

G2 Get Calibration Input Prompt

G3 Get User-Defined Message

G4 Get Calibration Status

G5. Get IAB Status (Input F/R, Autorange On/Off, Offset On/Off)

G6 Get YW Status (Suffix EAabiew/Disalea, Terminator Selection)

G7 Get Error Status

G8 Get.Instrument Identification

Note: G2 valid only in calibration mode.

PUT COMMANDS

PO . Put Instrument Configuration (F,R,S, and T P1 Put SRQ Mask

P2 Put Variable Calibration Value

P3. Put User-Defined Message

Note: P2 and P3 valid only in calibration: mode.

PUT COMMAND FORMAT

N <value) PO N <value) P1 N <value) P2 P3 (16 ASCII characters)

3-6

Figure 3-5. Device-Dependent Command Set

Page 43 read from a scan by OCR; it may hold reading errors

_.. Remote Pro ramming ; DEVICE-DEPENDENT COMMAND SET

SRQ MASK VALUES

00 for SRQ Disabled (Default)

01 for SRQ On Overrange

04 for SRQ On Front Panel SRQ 08 for SRQ On Cal Step Complete 16 for SRQ On Data Available

32 for SRQ On Any Error

Note: Add SRQ mask values for combinations. Example: 33 for SRQ:on overrange or any error. SELF-TEST COMMAND

ZO = Begin Self-Tests

CALIBRATION COMMANDS

CO Store Present input as Calibration Value

Ci. Begin A/D Calibration

C2. Begin HF AC Calibration

C3 Enter Erase Mode (CAUTION! The command string “C3 CO” erases the entire calibration memory. A complete calibration must then'be performed. Note: CO through C3 are valid only in calibration mode

TERMINATORS CR (Carriage Return) Execute LF (Line Feed) Execute EO! (Erid Or identify) Execute GET (Group Execute Trigger) Trigger and execute

Note: GET is an interface message.

Figure 3-5. Device-Dependent Command Set (cont)

The Get commands are described further in the following paragraphs. For more information about output data, see paragraph 3-40.

3-12. GO (Get instrument Configuration)

The GO command copies the 8840A function, Tange, reading rate, and trigger mode into the output buffer in the format shown in Figure 3-6. The four digits returned Tepresent the arguments for the equivalent F, R, S, and T commands, as shown in Table 3-1. An example output string follows.

Example

3410 CR LF

Meaning

3: F3 (2 WIRE kQ function)

4: R4 (200 kQ range)

1: S1 (Medium reading rate)

0: TO (Continuous trigger)

The second digit, which can vary from 1 to 6, indicates what measurement range the 8840A is in regardless of whether the 8840A is in autorange or manual range.

The output string from a GO command is acceptable as an argument for an “N” command. This allows you to configure the 8840A from the front panel and then record the configuration over the bus for future use with a PO command. However, 9mmm (meaning self-test) can not be used with the PO command.

3-13. G1 (Get SRQ Mask)

The G1 command copies the present SRQ mask into the output buffer in the format shown in Figure 3-6. The SRO

33 CR LF mask values are explained in Table 3-1. An example output string follows. For more about the SRQ mask, see patagraph 3-51.

Example Meaning Enable SRQ on any error or over- Tange |

3-14. G2 (Get Calibration Prompt)

The G2 command is used when calibrating the 8840A under remote control. The command loads the output buffer with a calibration prompt that represents the inp expected at the analog inputs. The calibration prompt is formatted as a signed decimal with exponent, as shown in Figure 3-6. The suffix may be enabled with the Y1 command. Example output strings follow.

Examples

+1.00000E+0 CR LF +190.000E-3 CR LF +1.90000E+0, VDC CR LF

Meaning Calibration prompt Calibration prompt

Calibration prompt (Suffix enabled)

If an error has occurred, the G2 command loads the output buffer with an error message instead of the prompt. (See paragraph 3-40.)

The G2 command is valid only when the calibration mode is enabled by pressing the front panel CAL ENABLE switch. If the 8840A is not in the calibration mode, the G command generates an error message.

3-7

Page 44 read from a scan by OCR; it may hold reading errors

Remote Programming DEVICE-DEPENDENT COMMAND SET

OUTPUT DATA TYPE FORMAT

NUMERIC DATA sn.nnnnnExtnn{suffix}[CR](Lf}[EO!]

(from trigger or G2) EXAMPLES: +12.3456E+6 Measured value +12.3456E+6, OHM Measured value: -9.99999E+9 Overrange (> 200,000 counts) +9.99999E+9,>VDC Overrange (= 200,000 counts) +1.0032E+21 Error message, INSTRUMENT nnnn. [CR] [LF] [EO]

CONFIGURATION DATA

(From GO, G4, G5, EXAMPLE:

G6, and G7) 1100 Default GO value

SRQ MASK DATA nn [CR] {LF} [EO]

(From G1) EXAMPLE: 32 SRQ on any error

USER-DEFINED MESSAGE aaaaaaaaaaaaaaaa [CR] [LF] [EO!]

(From G3) EXAMPLE: FL8840A:01-25-84 lf no messages have ever been stored, a string of 16 nulis (Hex 00) will be returned.

INSTRUMENT FLUKE, mmmmm, 0, Vn,n{CR][LF][EO] FLUKE 8840A with IEEE-488 IDENTIFICATION interface software version (From G8) EXAMPLE:

FLUKE, 8840A, 0, V4.0

® Numeric data is always in volts, amps, or ohms. @ The terminators CR, LF, and EOI are selected with the Terminator Commands (Wn). © The suffix, defined below, is enabled with the Y1 command and disabled with the YO command. (Default = YO., SUFFIX FORMAT

; > vpbc VAC. OHM IDC IAC

Function indicator

> Reading is overrange (2 200,000 counts) <space> Reading is not overrange but can be over voltage (> 1000 Vdc or 700 Vat)

Leading Comma (Always present in suffix). Most versions of BASIC expect multiple input values to be separated by commas. i.e., input @ |, N, S$ to acquire the numeric portion and suffix String.

Figure 36. Output Data Format

Page 45 read from a scan by OCR; it may hold reading errors

Remote Programming DEVICE-DEPENDENT COMMAND SET

3-15. G3 (Get User-Defined Message)

The G3 command loads the output buffer with the user-defined message stored in calibration memory during the calibration procedure. The message consists of 16 ASCII characters, as shown in Figure 3-6.

The message is stored in calibration memory during calibration using the P3 command. If fewer than 16 characters have been stored, the remaining characters returned are spaces. If no message has ever been stored, a string of 16 null characters (hex 00) will be returned. Some example output strings follow.

Example.

FL8840A.12-17-83 CR LF

Meaning

Identifies instrument and gives cal date.

01-25-84 CR LF Gives cal date. The last eight characters are blank.

3-16. G4 (Get Calibration Status)

The G4 command is used when calibrating the 8840A under remote control. The command loads the output buffer with the instrument’s calibration status in the format shown in Figure 3-6. The status is represented by a four-digit integer which is interpreted in Table 3-1.

The first two digits: are always 1 and 0. ‘The third digit indicates whether or not the calibration verification mode is enabled. (This mode is enabled only when the calibration mode is enabled.) The fourth digit indicates whether or not the calibration mode is enabled, and if so, which part of the calibration procedure the 8840A is in. Example output strings follow.

Meaning _ 1000 CR LF 1: Leading 1 0: Leading 0 0: Not in cal verification 0: Cal mode disabled 1001 CR LF 1: Leading 1 0: Leading 0 0: Not in cal verification 1: Cal mode enabled; A/D cal selected

Example

3-17. G5 (Get IAB Status)

The G5 command loads the output buffer with the [AB Status in the format shown in Figure 3-6. As Table 3-1 explains, the IAB status is a four-character string which indicates the status of the FRONT/REAR switch (front or rear analog inputs selected), the autorange feature (autorange on or off), and the OFFSET feature (OFFSET on or off). The first digit is always 1. An example output String follows.

Example 1011 CR LF

Meaning

1: Leading 1

0: FRONT inputs

1: Autorange off

1: OFFSET feature on

It is useful to know whether autorange is on or off because this information is not available from the GO command. For example, the GO command could indicate that the 8840A was in the 200 mV range, but it would not indicate whether the 8840A was in autorange or manual range.

3-18. G6 (Get YW Status)

The G6 command loads the output buffer with the YW Status in the format shown in Figure 3-6. The YW status is a four-character string which indicates which terminators are selected and whether the output suffix is enabled or disabled, as shown in Table 3-1. The first two digits are always 1 and 0. An example output string follows.

Example Meaning 1015 LF CR 1: Leading 1 0: Leading 0

1: Y1 (enable output suffix) 5: WS (enable LF only)

3-19. G7 (Get Error Status)

The G7 command copies the error status register into the output buffer in the format shown in Figure 3-6. The first two digits are always 1 and 0. The second two digits represent the appropriate error code, if an error has

’ occurred. (Error codes are listed in Table 2-1, Section 2).

If an error has not occurred, the second two digits are 00. An example output string follows.

Example _ Meaning . 1071 CR LF 1: Leading 1 0: Leading 0

71: Syntax error in device-dependent command string

The G7 command gives the error status as it exists when the command is executed at its position in the input string. The G7 command does not clear the error status register. For more information about error messages, see paragraph 3-40.

3-20. G8 (Get Instrument Identification)

The G8 command copies the 8840A instrument identification into the output buffer in the format shown in Figure 3-6. The identification is represented by four comma- Separated fields that are interpreted in Table 3-1.

The first field indicates the manufacturer, the second indicates the instrument model number, the third is always

3-9

Page 46 read from a scan by OCR; it may hold reading errors

Remote. Programming... DEVICE-DEPENDENT COMMAND SET zero, and the fourth indicates the version number of the IEEE-488 interface software.

Example Explanation

FLUKE,8840A,0,V4.0 CF This instrument is a Fluke LF 8840A with IEEE-488 inter- face software version 4.0

3-21. N (Numeric Entry Command)

Format Explanation

N<numeric entry> Where <numeric entry> is one of the following: <signed integer> <signed real number without exponent> <signed real number>E<signed exponent> Example Explanation “N12001” Enters the five-digit integer 12001 “N-1.23E2” Enters -1.23 x 107

“N+154.33E-1” Enters 1.5433 x 10!

The N command enters numeric values for use with subsequent Put commands. The interpretation of the numeric value depends on which Put command it is used with.

The E can be used within an N command for entering an exponent of 10. The N can be used without an E, but an E requires a prior N. The exponent can be any integer from 9 to +9.

The mantissa may exceed 5-1/2 digits. The 8840A accurately calculates the appropriate exponent and then disregards al] but the first 5-1/2 digits of the mantissa. However, a syntax error will occur if the numeric entry overflows the input buffer.

Example “N123456789”

_ Explanation Enters +1.23456 x 10°

3-22. Put Commands

The Put commands PO through P3 set up the 8840A’s configuration and operating modes by entering (“putting”) information in the appropriate registers. The put commands are described further in the following paragraphs.

3-23. PO (Put instrument Configuration), Format Explanation

N<frst>P0 Where <frst> is a four-digit integer interpreted as arguments for the F, R, S, and T commands.

Example Explanation

3-10

“N3120 PO” Identical to F3 R1 S2 TO. Selects 2

WIRE kQ function, 20092. range, | fast sample rate, continuous trigger.

The PO command allows broadside loading of the Function, Range, Reading Rate, and Trigger Mode commands (F, R, S, and T). The codes for these commands are li ted in Figure 3-5.

A numeric entry for PO must bé within +1000 and +6724. Each of the four digits must not exceed its maximum allowed value (6, 7, 2, and 4, respectively) or an error message will occur and the instrument configuration will remain unchanged. The entry may be expressed as an integer, real number, or real number with exponent, as described under the N command. Any fractional Part is ignored.

Explanation

Example

*N3112 PO” Sets the 8840A to F3, R1, S1, and T2. 3-24. P1 (Put SRQ Mask) | Format Explanation |

N<SROQ mask>P1 Where SRQ mask is a rwortigit integer from 00 to 63. |

The P1 command is used to program the 8840A to make service. requests. on user-specified conditions. The two-digit code for the SRQ mask is interpreted in Table 3-1 under the G1 command. For more about the SRQ mask, see paragraph 3-47. |

Numeric entries for the P1 command must be between 0 and +63 (inclusive), or an error will occur and the sro mask will remain unchanged. The entry may be expr as an integer, real number, or real number with exponent, as described under the N command. Any fractional part is ignored.

Example

“NO.17E+2. P1”

Explanation

Sets SRQ mask to 17. Enables SRQ on data available or overrange.

“N1 P1” Sets SRQ mask to 01. (A leading|zero is assumed.) Enables. SRQ on over- range.

3-25. P2 (Put Calibration Value)

Format Explanation

N<value>P2 Where <value> can bean integer, real number, or real number: with € nent, as described under the N com- mand.

Example Explanation

“N1 P2” If the 8840A is in VDC, the’ next calibration input expected is 1,00000V dc.

The P2 command is used to enter variable input calibration cept values just like the front panel VAR IN button. To

Page 47 read from a scan by OCR; it may hold reading errors

___ Remote Programming DEVICE-DEPENDENT COMMAND SET

Table 3-1. Status Data OUTPUT COMMAND ( STRING MEANING GO frst f = 1 - 6 as in Function commands (Fn) 9 for Self-Test ros 1 - 6 as in Range commands (Rn) S = 0 - 2 as in Reading Rate commands (Sn) t= 0 - 4 as in Trigger Mode commands (Tn) G1 nn nn = 00 for SRQ disabled (default) 01 for SRQ on overrange 04 for SRQ on front panel SRQ 08 for SRQ on cal step complete 16 for SRQ on data available 32 for SRQ on any error Note: SRQ mask values may be added for combinations. Example: 33 for SRQ on overrange or any error. G3 aaaaaaaaaaaaaaaa 16 user-defined ASCII characters G4 10vm Vo= 0 Not in cal verification. 1 Cal verification m = 0 Not in calibration mode 1 A/D calibration

2 Offset and gain calibration 4 HF-AC calibration G5 tiab li = 0 FRONT inputs selected 1 REAR inputs selected a= 0 Autorange on 1 Autorange off (Manual range) b= 0 OFFSET off 1 OFFSET on G6 10yw y= 0 output suffix disabled - 1 output suffix enabled we 0 - 7 as in Terminator commands (Wn) G7 10nn nn represents error code (See Tabie 2-1). . Gg FLUKE, mmmmm, mmmmm = 8840A. | 0,Vn.n Vn.n = IEEE-488 Interface software version number the P2 command, the 8840A must be in the calibration is coming from the controller, the value can be specified mode (enabled by pressing the front panel CAL ENABLE using any valid format (signed integer, real number, or real Switch). Otherwise, the P2 command will generate an error number with exponent). For example, if the 8840A message. prompts for an input value of 100Q for the next calibration Step, but the available source is 98.972, the variable input can be specified as “N+9.897E+1”, “N0Q.9897E2”, “N9897E-2”, etc. All of these strings result in the same

The variable input is a measurement value that is to be used as the calibration value for the next calibration step. Its format is the same as a measurement value. But since it

Page 48 read from a scan by OCR; it may hold reading errors

Remote Programming DEVICE-DEPENDENT COMMAND SET value being used for the next calibration step. For complete information about remote calibration, refer to the Maintenance section.

Numeric values exceeding full scale and negative values for ohms and AC generate error messages.

3-26. P3 (Put User-Defined Message)

Format Explanation

P3<value> Where <value> is a string of up to 16 ASCII characters.

Example Explanation

“P3FL.8840.12-17-83” Loads the message “FL.8840.12-17-83” into cali- bration memory.

Loads the message “HIMOM” into calibration memory. The remaining eleven characters are assumed to be blank.

“P3HIMOM”

The P3 command stores a user-defined message in the internal calibration memory during remote calibration. The message may be read. with a subsequent G3 command.

The message may consist of up to 16 ASCII characters, and typically represents the instrument’s identification, calibration date, calibration facility, etc. If fewer than 16 characters are specified, spaces are appended to fill the message to 16 characters. Spaces and commas in the 16-character input string are suppressed. Lower-case letters are converted to upper-case.

NOTE

If fewer than 16 characters are specified, the P3 command must not be followed by other commands in the same input command string. Otherwise, the subsequent commands will be misinterpreted as part of the 16-character string.

To accept the P3 command, the 8840A must be in the calibration mode (enabled by pressing the front panel CAL ENABLE switch). Otherwise, the P3 command will generate an error message.

3-27. Rn (Range Commands)

The Range commands duplicate the front panel range buttons. For example, RO selects autorange, and R4 selects the 200V/200 kQ range.

The R7 command turns autorange off, just as the AUTO button does when it is toggled. Command R7 puts the 8840A into manual range, selecting whatever range the instrument is in when the command is received.

The 8840A defaults to RO on power-up and any device-clear command (*, DCL, or SDC). The range setting can be read using the GO command.

3-12

3-28. Sn (Reading Rate Commands)

The Reading Rate commands duplicate the front panel RATE button. Like the RATE button, the reading] rate command also selects the number of digits displayed and the filter setting. (Filter settings are shown in| the specifications in Section 1). . |

The 8840A defaults to SO on power-up and any device-clear command (*, DCL, or SDC). The reading rate can be read using the GO command.

3-29. Tn (Trigger Mode Commands)

The Trigger Mode commands duplicate the front panel EX TRIG button. In addition, the commands can enable or disable the rear panel trigger and the automatic settling time delay. |

Figure 3-7 illustrates how to select among the five t of triggers: continuous trigger, front panel trigger, rear panel trigger, and two bus triggers. Note that the front panel TRIG button is enabled only while the instrument is under local control. S|

In the continuous trigger mode (TO), triggers are initiated at the selected reading rate. Each new reading is loaded into the output buffer as it becomes available, unless the instrument is busy sending previous output data.

The trigger mode can be read using the GO command. The 8840A defaults to TO on both power-up and any device-clear command (*, DCL, or SDC). |

3-30. Wn (Terminator Commands)

The Terminator: commands select what terminators the 8840A appends to every output string. The available terminators are: Carriage Return (CR), Line Feed (LF), and End. Or Identify (EOI).

CR and LF are ASCII control codes, sent over the | data lines just like output data. EOI is a uniline message which is sent simultaneously with the last character in the opt string. Normally, each output string is terminated with CR followed by LF and EOI.

The terminator selection can be read using the G6 command. The 8840A defaults to WO on power-up and any device-clear command.

3-31. XO (Clear Error Register Command)

The XO command clears the 8840A’s error status register. After an X0' command is executed, a G7 command (Get | Error Status) would return 1000 (no errors).

Note that the error status register is also cleared when any device-clear command (*, DCL, or SDC) is executed. However, X0 is useful for clearing the error status register without forcing a complete instrument clear (as do the device-clear commands).

3-32. Yn (Suffix Commands)

The Suffix commands enable or disable a suffix which the 8840A can append to all numeric data (the data in

Page 49 read from a scan by OCR; it may hold reading errors

5 Remote Programming DEVICE-DEPENDENT COMMAND SET

TRIGGER METHOD

CONTINUOUS TRIGGER [> DEVICE CLEAR TO TOGGLED BY & | MEASUREMENT EX TRIG BUS TRIGGER BUTTON CIRCUITRY ?orGeTt) = 71,72 REMOTE nor (oe) oO] LOCAL* LOCAL FRONT PANEL | TRIGGER SETTLING M1, T2 DELAY = fT" W13, 14 72,74 | re) ° * With EXTRIG enabied. REAR PANEL sO ' ena TRIGGER 71.73

DEVICE CLEAR, EX TRIG BUTTON

© Switches represent effect of indicated commands, buttons, and remote/local status. | @ Instrument shown in power-up state (TO, local, rear panel trigger enabled).

TRIGGER METHOD DESCRIPTION

1. Continuous Trigger Continuous trigger generated by 8840A in internal trigger mode (TO).

2. 2 Command Single trigger initiated by ? command from controller. 3. GET Command Single trigger initiated by GET command (an interface message) from controller. .

4. Front Panel Trigger Single trigger initiated by front panel TRIG button.

5. Rear Panel Trigger | Single trigger initiated fromrear panel EXTTRIG input. (Disabled by TO, T2, T4|)

Figure 3-7. Trigger Selection Logic Diagram response to G2 or trigger commands). The suffix includes convert the numeric part into a numeric variable. However, a comma, an overrange indicator (>), anda function it is much easier to read the numeric part ‘directly into a indicator (VDC, VAC, OHM, IDC, or IAC). The suffix is numeric variable and the suffix into a string variate. The illustrated in Figure 3-6. An example of suffixed data is leading comma of the suffix serves as a co venient given in paragraph 3-43. delimiter. For example, a BASIC program statement might be:

To read suffixed data with a controller using BASIC, one can read the whole line into a string variable and then ° INPUT €1,A, BS

Page 50 read from a scan by OCR; it may hold reading errors

Remote Programming DEVICE-DEPENDENT COMMAND. SET

The suffix status can be read using the G6 command. The 8840A defaults to YO on power-up and any device-clear command (*, DCL or SDC), unless in talk-only mode.

3-33. ZO (Self-Test Command), The ZO command initiates the diagnostic self-tests as does pressing the front panel SRQ: button for 3 seconds. The 8840A then runs through the tests in sequence. (For a description of the self-tests, see the Maintenance section.) If the 8840A detects an error, an error message is. loaded into the output buffer and displayed on the front panel. After the last test, the 8840A is reset to the power-up configuration, and it begins taking readings.

It is an error to send the 8840A device-dependent commands during the self-tests. However, the controller can still make the 8840A a talker to read the output buffer during the test, and thus record each error that occurs, except that only the last of the digital self-test errors can be read. After the tests, only the last error is stored in the output buffer if more than one error occurred.

Error messages are indicated by an exponent of +21. For more about error messages, see paragraph 3-40.

Since the 8840A is reset at the end of the self-tests, the ZO command should be the last command in a given command string. The 8840A will ignore any subsequent commands in the same command string.

When the self-tests are complete and no errors have occurred, the serial poll register will have bit 5 (Data Available) true and bit 6 (Any Error) false. See paragraph 3-50 for more about the serial poll register.

3-34. * (Device-Clear Command)

The asterisk command (*) is a device-dependent message which resets the 8840A to the power-up default settings and clears all registers and buffers except for the input buffer. The remote/local status remains unchanged. The asterisk command performs the following:

1. Implements the default settings F1, RO, SO, TO, DO, BO, YO, WO. 2. Clears the error status register (equivalent to XO).

3. Zeros the SRQ mask, prohibiting service requests (equivalent to NO P1).

4. Zeros the numeric entry register (equivalent to NO). 5. Zeros the serial poll register. 6. Sets the SRQ line false.

The asterisk command is executed in its proper turn in a String, just like any other command, without affecting the contents of the input buffer. All commands which precede the asterisk command are performed.

The asterisk command is useful to ensure that the 8840A is initialized to the same state each time a program is run. By contrast, the similar interface messages DCL (Device Clear) and SDC (Selected Device Clear) cause the entire input buffer to be cleared immediately.

DCL, SDC, and the asterisk command are all considered to be device-clear commands because the results are so

3-14 similar; however, DCL and SDC are not identical to the asterisk command described here. DCL and SDC) are discussed further in the paragraph on interface messages.

3-35. ? (Single-Trigger Command)

The Single-Trigger command (7) causes the 8840A to take a reading and place the result into the output buffer. To: accept this. command, the 8840A must be in external trigger mode (selected by the T1, T2, T3, or T4 command).

The Single-Trigger command is one of five ‘ways to trigger a reading. (See Figure 3-7.) Of these, only the Single- Trigger command (7) and the Group Execute ia command (GET) are loaded into the input buffer.

3-36. INPUT SYNTAX The following paragraphs describe how to construct

- groups. of commands. for the 8840A. A few definitions are presented first, followed bya description of how) the 8840A Processes input commands. Guidelines are thea summarized in four syntax rules.

3-37. Definitions

* Output commands: Commands which load data into’ the output buffer. The output commands are: the Get commands (GO through G8); the Single-Trigger mand (7); the Continuous Trigger command (TO); and Group Execute Trigger (GET), not to be co with the Get commands.

¢ Input terminator: An ASCII control code sent by the controller which tells the 8840A to execute al] device-dependent commands since the previous terminator. Terminators are CR (Carriage Return), LF (Line Feed), EOI (End Or Identify), and GET (Group xe cute Trigger).

¢ Input command string: One or more cevice- dependent commands followed by a terminator.

3-38. Input Processing

When the 8840A receives commands from the bus, it stores them in a 31-character input buffer as a continuous string of characters. Commands in the input buffer are not executed or checked for syntax until an input terminator is received or the input buffer becomes full. The only valid input terminators are CR, LF, GET (Group Execute Trigger), and/or EOI.

When the 8840A receives an input terminator, it executes the previous commands in the order in which they were received. As input characters are processed and executed, space is made available in the input buffer for new cljarac-ters.

If the input buffer becomes full, the 8840A stops acc ting characters from the bus until all complete command strings currently in the input buffer have been executed. In this way, characters sent to the 8840A are never lost que to buffer overflow.