Tektronix DMM4040, DMM4050 Programmer

DMM4040 and DMM4050
Digital Multimeter
077-0363-00
Programmer Manual
Copyright © Tektronix. All rights reserved. Licensed software products are owned by Tektronix or its subsidiaries or suppliers, and are protected by national copyright laws and international treaty provisions.
Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication supersedes that in all previously published material. Specifications and price change privileges reserved.
TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
Contacting Tektronix, Inc.
Tektronix, Inc. 14200 SW Karl Braun Drive P.O. Box 500 Beaverton, OR 97077 USA
For product information, sales, service, and technical support:
- In North America, call 1-800-833-9200.
- Worldwide, visit www.tektronix.com
to find contacts in your area.

Table of Contents

Title Page
Introduction....................................................................................................... 4
Safety Information............................................................................................. 4
Symbols and Terms....................................................................................... 5
Safety and Electrical Symbols ...................................................................... 5
Local and Remote Operation........................................................................ 5
Computer Interfaces...................................................................................... 6
Optimizing System Speed for I/O Operation .................................................... 6
Selecting the Remote Interface Port.................................................................. 8
Configuring the IEEE-488 Port......................................................................... 8
IEEE-488 Operating Limitations .................................................................. 8
Setting the IEEE-488 (GPIB) Port Address.................................................. 8
Capability Commands................................................................................... 9
Interconnections............................................................................................ 9
Configuring the RS-232 Port............................................................................. 10
Setting RS-232 Baud Rate............................................................................ 10
Setting RS-232 Parity and Data Bits............................................................. 11
Setting RS-232 Stop Bits.............................................................................. 11
Setting RS-232 Flow Control........................................................................ 11
Setting RS-232 End-Of-Line Character........................................................ 11
Enabling and Disabling Fluke 45 Emulation Echo....................................... 11
RS-232 Modes of Operation......................................................................... 12
Interconnections............................................................................................ 14
Configuring the Ethernet (LAN) Port ............................................................... 16
Setting the IP Address................................................................................... 16
Setting the LAN Subnet Mask...................................................................... 17
Reading the Domain Name........................................................................... 18
Configuring the Host Name.......................................................................... 18
Reading the MAC Address........................................................................... 18
Configuring the LAN Default Gateway........................................................ 18
Configuring the General Network Socket Port............................................. 19
Establishing an Ethernet Connection ................................................................ 19
Terminating an Ethernet Connection ................................................................ 21
Selecting the Programming Language .............................................................. 21
Getting Started With an Installation Test.......................................................... 21
Installation Test for RS-232 Connections..................................................... 21
Installation Test for IEEE-488 Connections................................................. 22
i
DMM4040 and DMM4050
Programmer Manual
If the Test Fails ............................................................................................. 22
How the Meter Processes Input......................................................................... 23
Input Strings.................................................................................................. 23
Input Terminators.......................................................................................... 23
Typical IEEE-488 Input Strings.................................................................... 24
Sending Numeric Values to the Meter.......................................................... 24
Sending Command Strings to the Meter....................................................... 24
How the Meter Processes Output...................................................................... 25
Triggering Input ................................................................................................ 26
Internal Triggering........................................................................................ 26
External Triggering....................................................................................... 27
Service Requests (IEEE-488 Only) and Status Registers.................................. 27
Standard Event Status and Standard Event Status Enable Registers ............ 28
Questionable Data Event Register and Questionable Data Enable Register. 29
Status Byte Register...................................................................................... 30
Reading the Status Byte Register.................................................................. 30
Service Request Enable Register .................................................................. 31
Supported SCPI Commands.............................................................................. 31
SCPI Command Summary............................................................................ 32
SCPI Command Details................................................................................ 41
Using the MEASure? Command .................................................................. 42
Using the CONFigure Command.................................................................. 43
Using the READ? Command........................................................................ 46
Using the INITiate Command....................................................................... 46
Using the FETCh? Command....................................................................... 46
Using the SENSe Subsystem to Configure the Meter................................... 47
Programming for Math Operations............................................................... 55
Programming the Trigger System................................................................. 59
Using System-Related Commands................................................................ 63
Using Status Reporting Commands.............................................................. 66
Calibration Commands ................................................................................. 68
Using RS-232/Ethernet Interface Commands............................................... 70
Command Terminators ................................................................................. 71
Alternate Programming Language Compatibility......................................... 72
FLUKE 45 Command Emulation Summary..................................................... 73
Computer Interface Command Set................................................................ 73
IEEE-488 Capabilities and Common Commands......................................... 73
Triggering Output ......................................................................................... 80
Using NI SignalExpress, Tektronix Edition...................................................... 81
FLUKE 8842A Emulation Mode...................................................................... 81
Example Notes.............................................................................................. 81
Device-Dependent Command Set................................................................. 84
Input Syntax.................................................................................................. 92
Output Data................................................................................................... 94
Service Requests........................................................................................... 96
Introduction....................................................................................................... 99
Introduction....................................................................................................... 107
Incompatible Fluke 45 Commands.................................................................... 107
Dual Functions.............................................................................................. 107
Reading Rates ............................................................................................... 108
Ranges........................................................................................................... 108
Introduction....................................................................................................... 109
Your Meter and Your Network Administrator.................................................. 109
Network Primer................................................................................................. 110
Physical Layer Wiring Schemes Supported by the Meter ............................ 110
ii
Contents (continued)
Network Interconnection Devices................................................................. 111
Basic Network Packet and Frame Contents.................................................. 111
IP Addresses and Segmented Networks........................................................ 112
TCP/IP Protocol Stack.................................................................................. 114
Introduction....................................................................................................... 117
Device Dependent Command Set...................................................................... 117
Calibration Commands...................................................................................... 117
Dn (Display Commands)................................................................................... 118
Gn (Get Commands) ......................................................................................... 118
Tn (Trigger Mode Commands)......................................................................... 118
Wn (Terminator Commands)............................................................................ 118
Numeric Entry Command ................................................................................. 118
Talk-Only Mode................................................................................................ 118
Ranging in 8842A Emulation Mode ................................................................. 118
Operational Differences .................................................................................... 119
Index
Appendices
A Error Codes................................................................................................ 95
B Fluke 45 Emulation Limitations ................................................................. 103
C Network Consideration............................................................................... 105
D Fluke 8842A Emulation Limitations .......................................................... 113
iii
DMM4040 and DMM4050
Programmer Manual
iv

List of Tables

Table Title Page
1. IEEE-488 Compatibility Codes............................................................................. 9
2. Factory Settings of RS-232 Communications Parameters..................................... 10
3. Status Register Summary....................................................................................... 27
4. Description of Bits in ESR and ESE...................................................................... 28
5. Description of Bits in the Questionable Data Register.......................................... 29
6. Description of Bits in the Status Byte Register ..................................................... 30
7. CALibration Command Summary......................................................................... 32
8. CONFigure Command Summary.......................................................................... 32
9. IEEE-488.2 Common Command Summary.......................................................... 33
10. Math Command Summary..................................................................................... 33
11. MEASure Command Summary............................................................................. 34
12. Measurement configuration command summary .................................................. 35
13. RS-232 Interface Command Summary.................................................................. 38
14. Status Reporting Command Summary .................................................................. 39
15. System-Related Command Summary.................................................................... 40
16. Triggering Command Summary............................................................................ 41
17. Preset Conditions for the MEASure? and CONFigure Commands....................... 45
18. Allowed Math/Measurement Function Combinations........................................... 55
19. IEEE-488.2 Common Commands......................................................................... 73
20. Fluke 45 Function Commands and Queries........................................................... 75
21. Function Modifier Commands and Queries .......................................................... 76
22. Range and Measurement Rate Commands and Querie ......................................... 77
23. Measurement Queries............................................................................................ 78
24. Compare Commands and Queries......................................................................... 79
25. Trigger Configuration Commands......................................................................... 79
26. Miscellaneous Commands and Queries................................................................. 80
27. RS-232 Remote/Local Configuration Commands................................................. 80
28. Trigger Types ........................................................................................................ 81
29. 8842A Get Commands .......................................................................................... 86
30. Serial Poll Register................................................................................................ 97
31. Serial Poll Register Description............................................................................. 97
32. Execution Error Codes and Descriptions............................................................... 99
33. Ethernet/ IEEE-488 Configuration Errors ............................................................. 104
34. Calibration Errors .................................................................................................. 104
35. Non-compatible Fluke 45 Remote Commands...................................................... 107
v
DMM4040 and DMM4050
Programmer Manual
36. Fluke 45 Dual Function Compatibility Matrix...................................................... 108
37. IP Address Assignments........................................................................................ 112
38. 8842A Device Dependent Commands Not Supported .......................................... 117
39. DMM4040/4050 Commands the Fluke 8842A Doesn't Support........................... 117
40. Fluke 8842A Virtual Range Mapping ................................................................... 119
vi

List of Figures

Figure Title Page
1. RS-232 Pin-out and Cable Interconnect................................................................ 15
2. Typical IEEE-488 Input String.............................................................................. 25
3. Overview of Status Data Structure (DMM4040/4050 and Fluke 45).................... 28
4. DMM4040/4050 Triggering System ..................................................................... 60
5. Typical Command String for Fluke 8842A Emulation ......................................... 82
6. Fluke 8842A Emulation Device-Dependent Command Set.................................. 83
7. Fluke 8842A Emulation Data Output Format........................................................ 85
vii
DMM4040 and DMM4050
Programmer Manual
viii

Remote Operation

Introduction..........................................................................................................0-4
Safety Information................................................................................................0-4
Symbols and Terms ..........................................................................................0-5
Safety and Electrical Symbols .........................................................................0-5
Local and Remote Operation................................................................................0-5
Computer Interfaces.............................................................................................0-6
Optimizing System Speed for I/O Operation .......................................................0-6
Selecting the Remote Interface Port.....................................................................0-8
Configuring the IEEE-488 Port............................................................................0-8
IEEE-488 Operating Limitations..........................................................................0-8
Setting the IEEE-488 (GPIB) Port Address .........................................................0-8
Capability Commands..........................................................................................0-9
Interconnections...................................................................................................0-9
Configuring the RS-232 Port................................................................................0-10
Setting RS-232 Baud Rate....................................................................................0-10
Setting RS-232 Parity and Data Bits....................................................................0-11
Setting RS-232 Stop Bits......................................................................................0-11
Setting RS-232 Flow Control...............................................................................0-11
Setting RS-232 End-Of-Line Character...............................................................0-11
Enabling and Disabling Fluke 45 Emulation Echo ..............................................0-11
RS-232 Modes of Operation ................................................................................0-12
DMM4040/4050 Mode ........................................................................................0-12
Selecting Between Computer and Terminal Mode ..............................................0-12
Fluke 45 Mode .....................................................................................................0-12
Interconnections...................................................................................................0-14
Fluke 8842A Emulation Mode.............................................................................0-14
1
DMM4040/4050
Programmer Manual
Configuring the Ethernet (LAN) Port Error! Bookmark not defined.-Error! Bookmark not defined.
Setting the IP Address..........................................................................................0-16
Selecting Dynamic Host Configuration Protocol (DHCP)...................................0-16
Setting a Static Internet Address ..........................................................................0-17
Setting the LAN Subnet Mask..............................................................................0-17
Reading the Domain Name..................................................................................0-18
Configuring the Host Name .................................................................................0-18
Reading the MAC Address ..................................................................................0-18
Configuring the LAN Default Gateway...............................................................0-18
Configuring the General Network Socket Port ....................................................0-19
Establishing an Ethernet Connection ...................................................................0-19
Terminating an Ethernet Connection ...................................................................0-21
Selecting the Programming Language .................................................................0-21
Getting Started With an Installation Test.............................................................0-21
Installation Test for RS-232 Connections ............................................................0-21
Installation Test for IEEE-488 Connections ........................................................0-22
If the Test Fails.....................................................................................................0-22
How the Meter Processes Input............................................................................0-23
Input Strings.........................................................................................................0-23
Input Terminators.................................................................................................0-23
Typical IEEE-488 Input Strings...........................................................................0-24
Sending Numeric Values to the Meter.................................................................0-24
Sending Command Strings to the Meter ..............................................................0-24
How the Meter Processes Output.........................................................................0-25
Triggering Input ...................................................................................................0-26
Internal Triggering ...............................................................................................0-26
External Triggering..............................................................................................0-27
Service Requests (IEEE-488 Only) and Status Registers.....................................0-27
Standard Event Status and Standard Event Status Enable Registers....................0-28
Questionable Data Event Register and Questionable Data Enable Register........0-29
Status Byte Register.............................................................................................0-30
Reading the Status Byte Register.........................................................................0-30
Service Request Enable Register..........................................................................0-31
Supported SCPI Commands.................................................................................0-31
SCPI Command Summary ...................................................................................0-32
SCPI Command Details .......................................................................................0-41
Using the MEASure? Command..........................................................................0-42
Using the CONFigure Command.........................................................................0-43
Setting Range and Resolution Parameters............................................................0-46
Using the READ? Command...............................................................................0-46
Using the INITiate Command..............................................................................0-46
Using the FETCh? Command..............................................................................0-46
Using the SENSe Subsystem to Configure the Meter..........................................0-47
Programming for Math Operations ......................................................................0-55
Programming the Trigger System ........................................................................0-59
Using the Triggering Commands .........................................................................0-60
Using System-Related Commands.......................................................................0-63
Using Status Reporting Commands .....................................................................0-66
Calibration Commands.........................................................................................0-68
Using RS-232/Ethernet Interface Commands......................................................0-70
Command Terminators.........................................................................................0-71
SCPI Parameter Types .........................................................................................0-71
Numeric Parameters.............................................................................................0-71
Discrete Parameters..............................................................................................0-72
2
Digital Multimeter
Introduction
Boolean Parameters..............................................................................................0-72
String Parameters .................................................................................................0-72
Alternate Programming Language Compatibility................................................0-72
FLUKE 45 Command Emulation Summary........................................................0-73
Computer Interface Command Set.......................................................................0-73
IEEE-488 Capabilities and Common Commands................................................0-73
Function Commands and Queries ........................................................................0-75
Function Modifier Commands and Queries.........................................................0-76
Range and Measurement Rate Commands and Queries.......................................0-77
Measurement Queries...........................................................................................0-78
Compare Commands and Queries........................................................................0-79
Trigger Configuration Commands .......................................................................0-79
Miscellaneous Commands and Queries ...............................................................0-80
RS-232 Remote/Local Configurations.................................................................0-80
Triggering Output.................................................................................................0-80
Setting the Trigger Type Configuration...............................................................0-80
External Triggering..............................................................................................0-81
Using NI SignalExpress, Tektronix Edition.........................................................0-81
FLUKE 8842A Emulation Mode.........................................................................0-81
Example Notes .....................................................................................................0-81
Device-Dependent Command Set........................................................................0-84
Bn (Offset Commands) ........................................................................................0-84
Dn (Display Commands)......................................................................................0-84
Fn (Function Commands).....................................................................................0-84
Get Commands.....................................................................................................0-84
G0 (Get Instrument Configuration)......................................................................0-86
G1 (Get SRQ Mask).............................................................................................0-87
G3 (Get User-Defined Message)..........................................................................0-87
G4 (Get Calibration Status)..................................................................................0-87
G5 (Get IAB Status).............................................................................................0-87
G6 (Get YW Status).............................................................................................0-88
G7 (Get Error Status) ...........................................................................................0-88
G8 (Get Instrument Identification).......................................................................0-88
N (Numeric Entry Command)..............................................................................0-89
Put Commands .....................................................................................................0-89
P0 (Put Instrument Configuration).......................................................................0-89
P1 (Put SRQ Mask)..............................................................................................0-90
Rn (Range Commands)........................................................................................0-90
Sn (Reading Rate Commands).............................................................................0-90
Tn (Trigger Mode Commands)............................................................................0-90
Wn (Terminator Commands) ...............................................................................0-91
X0 (Clear Error Register Command) ...................................................................0-91
Yn (Suffix Commands)........................................................................................0-91
Z0 (Self-Test Command) .....................................................................................0-91
Device Clear Command .......................................................................................0-91
? (Single-Trigger Command) ...............................................................................0-92
Input Syntax .........................................................................................................0-92
Definitions 0-92
Input Processing...................................................................................................0-92
Syntax Rules 0-93
Output Data..........................................................................................................0-94
Loading Output Data............................................................................................0-94
Types of Output Data...........................................................................................0-95
Numeric Data and Error Messages.......................................................................0-95
Overrange Indication............................................................................................0-95
3
DMM4040/4050
Programmer Manual
Error Messages.....................................................................................................0-95
Status Data 0-96
Output Priority......................................................................................................0-96
Service Requests ..................................................................................................0-96
The SRQ Mask.....................................................................................................0-98
Introduction..........................................................................................................A-99
Introduction..........................................................................................................B-107
Incompatible Fluke 45 Commands.......................................................................B-107
Dual Functions .....................................................................................................2-107
Reading Rates.......................................................................................................2-108
Ranges 2-108
Introduction..........................................................................................................C-109
Your Meter and Your Network Administrator.....................................................C-109
Network Primer....................................................................................................C-110
Physical Layer Wiring Schemes Supported by the Meter....................................C-110
Network Interconnection Devices........................................................................C-111
Basic Network Packet and Frame Contents .........................................................C-111
IP Addresses and Segmented Networks ...............................................................C-112
TCP/IP Protocol Stack .........................................................................................3-114
Introduction..........................................................................................................D-117
Device Dependent Command Set.........................................................................D-117
Calibration Commands.........................................................................................4-117
Dn (Display Commands)......................................................................................4-118
Gn (Get Commands) ............................................................................................4-118
Tn (Trigger Mode Commands)............................................................................4-118
Wn (Terminator Commands)...............................................................................4-118
Numeric Entry Command ....................................................................................4-118
Talk-Only Mode...................................................................................................4-118
Ranging in 8842A Emulation Mode ....................................................................4-118
Operational Differences .......................................................................................4-119

Introduction

Remote operation of the DMM4040 or 4050 Digital Multimeter (hereafter “the Meter”) from a host, that is, a terminal, controller, PC, or computer, is accomplished by sending commands to it through one of its remote interfaces. This manual describes how to setup, configure, and operate the Meter through each of the remote interfaces.
The Meter is controlled remotely using either Standard Commands for Programmable Instruments (SCPI), Fluke 45 or Fluke 8842A (8840A and 8842A) commands. Detailed information on the SCPI command set, and how the Meter processes those commands is included in this manual. Fluke 45 command limitations are covered in Appendix B and Fluke 8842A command limitations are covered in Appendix D in this manual.
For more information regarding the SCPI programming language, visit http://www.scpiconsortium.org found at http://www.scpiconsortium.org/SCPI-99.pdf.
The level of detail in this chapter is based on the assumption that the reader is familiar with the basics of data communication interface, and the IEEE-488 bus.

Safety Information

This section addresses safety considerations and describes symbols that may appear on the Meter or in the manual.
Note
. A free copy of the SCPI standard can be
4
Digital Multimeter
Safety Information

Symbols and Terms

The following terms and safety and electrical symbols may appear in the manual or on the product:
A XW Warning statement identifies conditions or practices that could result in injury or death.
A W Caution statement identifies conditions or practices that could result in damage to the Meter or equipment to which it is connected.
XW Warning
To avoid electric shock, personal injury, or death, carefully read the information in the DMM4040 and DMM4050 User Manual under “General Safety Summary” before attempting to install, use, or service the Meter.

Safety and Electrical Symbols

Symbol Description Symbol Description
W
X
Risk of danger. Important information. See manual.
Hazardous voltage. Voltage > 30 V dc or ac peak might be present.
Π Display ON / OFF and Meter reset.
J Earth ground
B AC (Alternating Current) E Capacitance F DC (Direct Current) G Diode D
or
AC or DC (Alternating or Direct Current)
I Fuse
C R
Continuity test or continuity beeper tone
Ψ
Digital signal
Y Potentially hazardous voltage U Maintenance or Service
T Double insulated h
Measurement Category II is for
CAT II
measurements performed on circuits directly connected to the low voltage installation.
CAT I
Static awareness. Static discharge can damage parts.
Measurement Category I is for measurements not directly connected to mains.

Local and Remote Operation

When the Meter is operated from a host, it is said to be operated remotely. When operated from the front panel, it is said to be operated locally.
Most operations that can be performed locally can also be performed remotely over the remote interface. Some operations, like setting communications parameters for the
5
DMM4040/4050
Programmer Manual

Computer Interfaces

RS-232 interface, and addressing the Meter for IEEE-488 operations can only be set through the front panel.
XW Warning
To avoid electric shock, turn off the signal source to the Meter before touching the test leads. The front panel display may not indicate the true input voltage while in remote mode. Always assume lethal voltages exist on the front-panel inputs.
Both the DMM4040 and 4050 Multimeters come equipped with an RS-232, Ethernet, and IEEE-488 interface. Only one remote interface can be enabled at a time. Using any of the interfaces turns the Meter into a fully programmable instrument that can be integrated into an automated instrumentation system. For a PC with only USB ports, Tektronix provides a cable (Tektronix PN 174-5813-00) that converts between USB and RS-232 ports.
Note
The remote interface port and settings can be changed only through the Meter’s front-panel controls.
Enabling or selecting a port for remote operation is a separate process from setting the various parameters associated with a remote interface. An interface does not have to be selected to set its parameters; for example, the baud rate of the RS-232 port can be set while the Meter has the LAN port enabled as the remote control port.

Optimizing System Speed for I/O Operation

Several factors affect the remote system speed of the DMM4040/4050. To make the fastest measurements, it is best to store the measurements in internal memory before transferring across the I/O bus. This is particularly true if you want to collect a large number of samples per measurement. Set up all of the parameters (i.e. function, range, filters, etc...) prior to taking the measurements. Use the internal trigger. Set the trigger delay to zero. Turn off the display. If operating with RS-232, use the fastest baud rate available.
One example of taking fast voltage readings is:
*cls # This clears all error prior to initiating readings conf:volt:dc 0.1 # Set the DC range to manual and 100 mV. volt:dc:nplc 0.02 # Set the NPLC to faster reading rate 4 1/2 digits. zero:auto 0 # Turn Autozero off. trig:sour imm # Set immediate trigger. trig:del 0 # Set trigger delay to zero.
6
trig:coun 1 # Set trigger count to one or specify a larger number. disp off # Turn display off. This may slightly improve reading rate. syst:rem # Put the DMM4050 in remote. Only needed for RS-232 or
Ethernet #(required for READ? or MEAS?) samp:coun 100 # Set the sample count from 1 to 5000.
Digital Multimeter
Optimizing System Speed for I/O Operation
:INIT; *OPC? # "*OPC?" returns 1 indicating that the measurements have been
taken and are ready to be transferred to the computer using the FETCH? command.
:FETCH?
Note
For any sample count greater than 1, measurements are returned comma separated.
7
DMM4040/4050
Programmer Manual

Selecting the Remote Interface Port

Configuring the IEEE-488 Port

To enable or select a port for remote control of the Meter:
1. Press I.
2. Press PORT IF.
3. Press SELECT PORT.
4. Press the soft key labeled with the desired port: RS 232C, IEEE488, or LAN. Port selection is non-volatile. Therefore, the selected port will remain active until another
port is selected through the front panel.
The IEEE-488 interface is designed in compliance with supplemental standard IEEE-
488.2. Devices connected to the bus in a system are designated as talkers, listeners, talker/listeners, or controllers. The connector for connecting the Meter to the IEEE-488 bus is located on the rear panel. Under control of an instrument controller, the Meter operates exclusively as a talker/listener on the IEEE-488 bus.
The Meter conforms to the Standard Specification IEEE-488.1 – 1987: IEEE Standard
Digital Interface for Programmable Instrumentation, and to IEEE-488.2 - 2004: Codes, Formats, Protocols, and Common Commands.

IEEE-488 Operating Limitations

The following limitations govern the IEEE-488 remote interface:
A maximum of 15 instruments may be connected in a single IEEE-488 bus system.
The maximum length of IEEE-488 cable used on a single IEEE-488 system must be the
lesser of 20 meters, or 2 meters times the number of devices in the system.

Setting the IEEE-488 (GPIB) Port Address

Before the Meter will accept commands through the IEEE-488 remote interface, IEEE­488 must first be enabled or selected as the active interface port. This can only be done through the Meter’s front panel.
A controller uses an address between 1 and 32 to identify a specific instrument on the bus. The Meter is shipped from the factory with the IEEE-488 port address set to 1. To change the IEEE-488 address:
1. Press I.
2. Press PORT IF.
3. Press IEEE488.
4. Use the soft keys to set the address as follows.
Select the address digit to adjust by pressing either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit or ++ to increment the digit.
8
5. With the desired address set, press ENTER.
Digital Multimeter
Configuring the IEEE-488 Port

Capability Commands

To conform to the IEEE-488.1 standard specification, it is not essential for a device to encompass the full range of bus capabilities. The IEEE-488.1 document describes and codes the standard bus features, so that manufacturers may give brief coded descriptions of their own interfaces’ overall capability.
The codes that apply to the Meter are given in Table 1 below, together with short descriptions. These codes conform to IEEE-488.2 requirements.
Appendix C of the IEEE-488.1 document contains a complete description of each code.
Table 1. IEEE-488 Compatibility Codes
IEEE-488 Subset Interface Functions
SH1 Source Handshake Capability
AH1 Acceptor Handshake Capability
T5 Talker (basic talker, serial poll, unaddressed to talk if addressed to listen)
L4 Listener (basic listener, unaddressed to listen if addressed to talk)
SR1 Service Request Capability
RL1 Remote/Local Capability (includes local lockout)
PP0 No Parallel Poll Capability
DC1 Device Clear Capability
DT1 Device Trigger – Supports group trigger (GET).
C0 No Controller Capability
E2 Open-Collector and Three-State Drivers

Interconnections

Instruments fitted with an IEEE-488 interface communicate with each other through a standard set of interconnecting cables, as specified in the IEEE-488.1 Standard document.
The IEEE-488 interface connector is located on the Meter’s rear panel.
9
DMM4040/4050
Programmer Manual

Configuring the RS-232 Port

The RS-232 Communication Interface allows ASCII, asynchronous, serial communication between the Meter and a host or terminal. The following sections describe the process of configuring the RS-232 port. To make the RS-232 port the active port for remote operation, see the “Selecting the Remote Interface Port” section above.
Table 2 lists the RS-232 parameter settings when the Meter leaves the factory.
Table 2. Factory Settings of RS-232 Communications Parameters
Parameter Factory Setting
Baud Rate 9600
Parity None (Parity bit 0)
Number of Data Bits 8 (7 data bits plus 1 parity bit)
Number of Stop Bits 1
Flow Control None
To access the RS-232 setup menu:
1. Press I.
2. Press the PORT IF soft key.
3. Press the RS 232C soft key.
At this point, all the RS-232 settings are made available.
All RS-232 port parameter settings are non-volatile and remain set until changed.

Setting RS-232 Baud Rate

To set the baud rate:
1. With the RS-232 set up menu displayed, press BAUD RATE.
There are eight pre-defined settings: 1200, 2400, 4800, 9600, 19200 38400, 57600, 115200, and 230400. These selections are displayed in two separate menus. When first entering baud rate selection, baud rates 9600 to 1200 are displayed. To get to the next five higher baud rates, press MORE. To get back to the lower baud rates, press B.
2. With the desired baud rate displayed, press the soft key under the chosen baud rate.
Note
10
Digital Multimeter
Configuring the RS-232 Port

Setting RS-232 Parity and Data Bits

To set the data bits:
1. With the RS-232 set up menu displayed, press PARITY DATA BIT.
2. Press the soft key under the desired parity, and data bit parameter.
NONE 8B DATA = No parity with 8 data bits ODD 7B DATA = Odd parity with 7 data bits EVEN 7B DATA = Even parity with 7 data bits

Setting RS-232 Stop Bits

To set the stop bits:
1. With the RS-232 set up menu displayed, press PARITY DATA BIT.
2. Press the soft key labeled 2 STOP BITS to toggle between 1 and 2 stop bits.
Note
When 2 STOP BITS is highlighted, the interface is configured to use 2 stop bits.

Setting RS-232 Flow Control

To set flow control:
1. With the RS-232 set up menu displayed, press FLOW CONTROL.
2. Press the soft key under the desired flow control.
NONE = No flow control XON = Software flow control Xon (hex 11) and Xoff (hex 13) RTS = Hardware flow control, RTS/CTS

Setting RS-232 End-Of-Line Character

To set the End-Of-Line (EOL) character:
1. With the RS-232 set up menu displayed, press EOL.
2. Press the soft key labeled with the desired End-Of-Line character(s).
CR = Carriage return only LF = Line Feed only CR LF = Carriage Return and Line Feed
Setting the EOL character(s) in RS-232 also sets the same EOL character(s) for Ethernet operation.
Note

Enabling and Disabling Fluke 45 Emulation Echo

Although you can turn echo on or off at anytime, the selection is only used or changed when the Meter’s command mode is set to Fluke 45 emulation.
To enable or disable Echo for the RS-232 port:
1. With the RS-232 set up menu displayed, press COMP/TERM ECHO.
2. Press either the ECHO or NO ECHO soft key.
11
DMM4040/4050
Programmer Manual

RS-232 Modes of Operation

DMM4040/4050 Mode
RS-232 communication is slightly different between the DMM4040/4050 and the Fluke 45 emulation modes. Switching between these two command languages is covered in the “Selecting the Programming Language” section later in this manual. The following sections explain the differences in communications protocol and how to set the Meter and computer parameters for proper operation.
There are two modes of RS-232 operation when the Meter has the DMM4040 or 4050 command set selected: TERMINAL and COMPUTER. The terminal mode is an interactive mode where an operator inputs commands, with immediate returns for requested information (queries) and interface messages. In terminal mode, characters sent to the Meter are echoed on the host’s display screen and a command prompt (for example 3>) is returned after the CR/LF is entered by the terminal. If you send a character to the Meter over the RS-232 interface, pressing the <DELETE> or <BACKSPACE> key deletes the previous character. A backspace is echoed to the host terminal.
Note
^C (CNTRL C) is the RS-232 equivalent of IEEE-488 DCI (device clear), causing “1>” followed by a carriage return and line feed to be output.
The computer mode is used when the Meter is operated by computer program. In this mode, requested information is returned by query, and interface messages are queued and returned by command. Characters are not echoed on the host computer and command prompts are suppressed. The <DELETE> or <BACKSPACE> keys are ignored.
Selecting Between Computer and Terminal Mode
Although you can select between Computer and Terminal mode at any time, the selection is only used or changed when the Meter’s command mode is set to DMM4040/4050.
To select computer or terminal mode from the front panel:
1. Press I and then PORT IF.
Note
If the RS-232 port is not already highlighted, press SELECT PORT and then RS 232C.
2. Press either RS 232C, COMP/TERM ECHO and select either COMPUTER or
TERMINAL.
Fluke 45 Mode
In the Fluke 45 Command emulation mode, there are two modes of RS-232 operation: ECHO or NO ECHO. In Echo mode, characters sent to the Meter are echoed on the host’s display screen. In No Echo mode, characters sent are not echoed.
12
To set the echo parameter, refer to the "Enabling and Disabling RS-232 Echo" section earlier in this manual. If you send a character to the Meter over the RS-232 interface, pressing the <DELETE> or <BACKSPACE> key deletes the previous character. A backspace is echoed to the display screen if Echo On mode is set.
In either mode, when the host sends a command to the Meter over the RS-232 interface, the Meter parses and executes the command, and returns a response if appropriate, and sends one of three prompts:
Digital Multimeter
Configuring the RS-232 Port
=> No errors were detected and the command was successfully parsed and
executed.
?> A Command Error was detected. The command was not executed because it
was not understood. For instance, this prompt would be returned if the Meter was sent an input string that contained a syntax error.
!> An Execution Error was detected. The command was understood but not
executed (i.e., a device-dependent error). For instance, this prompt would be returned if you attempted to use the decibels modifier (dB) on a frequency measurement (FREQ).
Note
^C (CNTRL C) is the RS-232 equivalent of IEEE-488 DCI (device clear), causing "=>" followed by a carriage return and line feed to be output.
Terminations for the end of line can be set to carriage return (CR), line feed (LF), or both (CRLF). Terminations for the end of line can be set in the <Instr SETUP><PORT IF><RS232C> selection.
To change the Meter to Fluke 45 Emulation Mode, setup the remote interface for RS-232 or IEEE-488 (Fluke 45 mode will not work over Ethernet):
For RS-232
1. Press I
2. Press PORT IF softkey.
3. Press the SELECT PORT softkey.
4. Press the RS 232C softkey. Set the baud rate to 9600 as follows:
1. Press I
2. Press PORT IF softkey.
3. Press the RS 232C softkey.
4. Press the BAUD RATE softkey.
5. Press the 9600 softkey. Set the RS-232 port to non-echo as follows:
1. Press I
2. Press PORT IF softkey.
3. Press the RS 232C softkey.
4. Press the COMP/TERM ECHO softkey.
5. Press the NO ECHO softkey.
For IEEE-488
1. Press I
2. Press PORT IF softkey.
3.
Press the SELECT PORT softkey.
4. Press the IEEE488 softkey. Set the IEEE-488 address to a system compatible value as follows:
13
DMM4040/4050
Programmer Manual

Interconnections

1. Press I
2. Press PORT IF softkey.
3. Press the IEEE488 softkey.
4. Use the soft keys to set the address as follows.
Select the address digit to adjust by pressing either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit or ++ to increment the character.
5. With the desired address set, press ENTER. To set the Meter to Fluke 45 emulation:
1. Press I
2. Press the COMMANDS softkey.
3. Press the FLUKE 45 softkey.
The Meter communicates with a host through a DB-9 interface connector on the rear panel of the Meter. Connect the Meter to the host or terminal using a cable appropriate to your application that is less than 50 feet (15 meters) long. Longer cables are permitted, providing that the load capacitance measured at the interface point (including the signal terminator) does not exceed 2500 picofarads.
Figure Error! Reference source not found. shows the pin-out of the Meter’s RS-232 port, and two possible cable connections for communicating with a PC.
Fluke 8842A Emulation Mode
The Fluke 8842A emulation mode is only available when the Meter has the IEEE-488 port selected. To change the Meter to Fluke 8842A Emulation Mode, setup the remote interface for IEEE-488 (Fluke 8842A emulation mode will not work over RS-232 or Ethernet):
1. Press I
2. Press PORT IF softkey.
3. Press the SELECT PORT softkey.
4. Press the IEEE488 softkey. Set the IEEE-488 address to a system compatible value as follows:
1. Press I
2. Press PORT IF softkey.
3. Press the IEEE488 softkey.
4. Use the softkeys to set the address as follows.
Select the address digit to adjust by pressing either <-- or
With the desired digit selected, press the soft key labeled -- to decrement the digit or ++ to increment the character.
-->.
14
5. With the desired address set, press ENTER.
Digital Multimeter
Configuring the RS-232 Port
To set the Meter to Fluke 8842A emulation:
1. Press I.
2. Press the COMMANDS softkey.
3. Press the 8842 softkey.
4040/4050 Cable (Null Modem such as Fluke RS43) PC
Not Used
RxData
TxData
Not Used
GND
Not Used
RTS
CTS
Not Used
4040/4050
Not Used
RxData
TxData
Not Used
GND
Not Used
RTS
CTS
Not Used
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
No Connect
RxData
TxData
DTR
GND
DSR
RTS
CTS
No Connect
Cable (USB to RS-232 such as Tektronix 174-5813-00) PC
No Connect
RxData
TxData
DTR
GND
DSR
RTS
CTS
No Connect
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
DCD
RxData
TxData
DTR
GND
DSR
RTS
CTS
RI
USB
Adapter
1
2
3
4
5
6
7
8
9
DCD
RxData
TxData
DTR
GND
DSR
RTS
CTS
RI
USB
Interface
Keys
DCD
­RxData TxData DTR GND
Data Carrier Detect
-
Receive Data
-
Transmit Data
-
Data Terminal Ready
-
Circuit Ground
DSR RTS CTS RI
-
Data Set Ready
-
Request to Send
-
Clear to Send
-
Ring Indicator
gdb058.eps
Figure 1. RS-232 Pin-out and Cable Interconnect
15
DMM4040/4050
Programmer Manual

Configuring the Ethernet (LAN) Port

The Meter can be remotely controlled through the LAN port on the Meter’s rear panel. To select the LAN port as the remote control port, see the “Selecting the Remote Interface” section above.
Configuring the LAN port is accomplished through the Instrument Setup function. The selectable LAN port parameters are: DHCP (Dynamic Host Configuration Protocol), IP Address, Net mask, Host Name, Mac Address, Gateway, Port number, and Domain.
When setting IP addresses, subnet masks, and default gateways on the Meter, keep in mind they are stored as 32-bit binary numbers and expressed as four 3-digit segments in dot-notation form. For example, xxx.xxx.xxx.xxx, where xxx is a byte value, is stored as a 32-bit binary number.
To set the LAN port parameters:
1. Press I.
2. Press the PORT IF soft key.
3. Press the LAN soft key.
Note
When addressing some LAN addresses, computers will often interpret 0's in the IP address as OCTAL values. As an example, if you configure your IP address from the front panel as 129.196.017.023 and then attempt to establish a connection to the meter, you should connect using the IP address 129.196.17.23. Attempting to establish a connection to
129.196.017.023 may result in a connection request to 129.196.15.19.

Setting the IP Address

An internet (IP) address is required for all internet and TCP/IP communications. If DHCP is enabled, the Meter will use the dynamic address supplied by the DHCP server. However, if the DHCP server fails to supply the address, or DHCP is disabled, the currently configured static IP address will be used.
Selecting Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP) is a client-server protocol that eliminates having to manually set permanent/static IP addresses. The DHCP server provides configuration parameters (dynamic IP address, subnet mask, and default gateway IP addresses) which are required for a client to participate in an IP network.
Using DHCP is the easiest way to configure the Meter for remote communication through the LAN interface. DHCP is enabled when the Meter is shipped from the factory. When connected to a network, and the LAN port is enabled, the Meter will try and retrieve the parameters from a DHCP server necessary for communications. If the parameters can’t be obtained, the Meter switches to the parameters that were manually entered into the Meter.
16
To disable or enable DHCP on the Meter: From the PORT IF menu, press LAN. If DHCP is already enabled, then DHCP will
be highlighted in the display. Pressing DHCP will toggle between enabled and disabled.
Digital Multimeter
Configuring the Ethernet (LAN) Port
Note
After changing any Ethernet setting (except the socket port), the Meter must be powered off and on again, using the rear-panel power switch, to make the change active.
Setting a Static Internet Address
The Meter comes from the factory with 000.000.000.000 in the static IP address register.
Note
If you are planning to use the Meter on a corporate LAN and do not wish to use DHCP, contact your network administrator for a static IP address to be used exclusively by your Meter. DHCP must be disabled to set a static IP address.
To change the Meter’s static IP Address:
1. From the LAN Port setup menu, press the IP_ADDR soft key.
2. Use the soft keys to set the IP Address as follows:
To select the address character to adjust, press either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit or ++ to increment the digit.
3. Press the ENTER soft key.
The IP address is stored in non-volatile memory, and does not change when power is removed and reapplied to the Meter or when the Meter receives an *RST command.

Setting the LAN Subnet Mask

If communication between the host computer and the Meter passes through a router or gateway, and DHCP is disabled, you must set the subnet mask and default gateway address on both the host computer and the Meter. Get the correct subnet mask and gateway address from your network administrator.
The LAN Subnet Mask is a 32-bit number. This number is represented as four 3-digit segment numbers on the front-panel display. The default subnet mask set at the factory is
255.255.254.0. To change the Meter’s subnet mask:
1. From the LAN Port setup menu, press the NETMASK soft key.
2. Use the soft keys to set the subnet mask as follows:
To select the mask character to adjust, press either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit or ++ to increment the digit.
Note
3. Press the ENTER soft key. The new Subnet Mask will not take effect until the Meter has been powered down and
back up again using the rear-panel power switch.
17
DMM4040/4050
Programmer Manual

Reading the Domain Name

Configuring the Host Name

The Domain Name is supplied by the DHCP server and cannot be changed. To read the domain name:
1. From the LAN Port setup menu, press MORE.
2. Press the DOMAIN soft key.
3. Press B to return to the LAN Port setup menu.
The Host Name is the host portion of the domain name, which is translated into an IP address. The Meter’s default host name is “test1”.
To change the Host Name:
1. From the LAN Port setup menu, press the HOSTNAME soft key.
2. Use the soft keys to set the Host Name as follows:
To select the character to adjust, press either <-- or -->.
With the desired character selected, press the soft key labeled -- to decrement the character or ++ to increment the character.
3. Press the ENTER soft key. The new Host Name will not take effect until the Meter has been powered down and back
up again using the rear-panel power switch.

Reading the MAC Address

The MAC Address is set at the factory and cannot be changed. To read the MAC Address:
1. From the LAN Port setup menu, press MORE.
2. Press the MAC_ADDR soft key.
3. Press B to return to the LAN Port setup menu.

Configuring the LAN Default Gateway

The default gateway IP address is the IP address of a gateway (router) attached to the same network as the device. When the instrument detects that a host computer is not on the same network (using the network number), the data is sent through the gateway to reach the host computer.
The default for the Meter is “0” (no gateway, and subnetting is not being used). To set the LAN Default Gateway address:
1. From the LAN Port setup menu, press MORE.
2. Press GATEWAY.
18
3. To select the digit to adjust, press either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit or ++ to increment the digit.
4. Press the ENTER soft key.
Digital Multimeter
The new gateway address will not take effect until the Meter has been powered down and back up again using the rear-panel power switch.

Configuring the General Network Socket Port

In order to communicate with each other, a host computer and the Meter must use the same socket port number. The default port is 3490. Typically, the default port does not need to be changed. If the socket port must be changed, enter the Socket Port number supplied by your network administrator.
To change the Socket Port number:
1. From the LAN Port setup menu, press the MORE soft key.
2. Press the PORT # soft key.
3. To select the digit to adjust, press either <-- or -->.
With the desired digit selected, press the soft key labeled -- to decrement the digit or ++ to increment the digit.
4. Press the ENTER soft key. The new Network Socket Port becomes effective immediately.

Establishing an Ethernet Connection

Note
The Network Socket Port Number is stored in non-volatile memory.
Establishing an Ethernet Connection
The easiest method of establishing an Ethernet connection with the Meter is through the commonly available program: Telnet. Telnet is a client-server protocol, based on TCP. The Telnet Protocol provides a fairly general, bi-directional, eight-bit byte oriented communications facility. Telnet is available on all UNIX servers and on most PCs.
Telnet clients typically connect to hosts on socket port 23. The LAN connection to the Meter must be established using the specified Network Socket Port. See the “Configuring the General Network Socket Port” section above. When the remote interface port is changed to LAN from the Meter’s front panel, a LAN server is initiated in the Meter which listens for client connections on the socket port at the specified IP address.
To establish a LAN connection to the Meter from a computer using either UNIX, LINUX, or MS-DOS command prompts, perform the following procedure:
1. On the Meter’s front panel, change the remote interface port to LAN
2. At the command prompt on the client computer, enter: telnet <IP Address> <Socket Port> Alternatively, if you are using DHCP and would like to connect using the host name
rather than the IP address, from the computer command prompt enter: telnet <Domain Name> <Socket Port> As an example, if you know the IP address is 129.196.136.131 and the Socket Port is set
to 3490, enter the following at a command prompt from any client computer: telnet 129.196.136.131 3490 If you are using DHCP and the host name is test1 and the fully qualified domain name is
test1.na.tektronix.com and the Socket Port is set to 3490, enter the following at the computer command prompt:
19
DMM4040/4050
Programmer Manual
telnet test1.na.tektronix.com 3490 Once the internal LAN server connects with the client computer, the LAN server will
reject any other connection attempts by other computers and will “tunnel” a channel to the connected computer. This prevents multiple computers from trying to control the Meter.
20
Loading...
+ 101 hidden pages