HBM DMP41 User manual

Interface description and command set
English
DMP41
Digital precicion measuring device

Hottinger Baldwin Messtechnik GmbH
Im Tiefen See 45
D-64293 Darmstadt
Tel. +49 6151 803-0
Fax +49 6151 803-9100
www.hbm.com
Mat.: 7-0102.0003
DVS: A03474_04_E00_00 HBM: public
03.2020
EHottinger Baldwin Messtechnik GmbH.
Subject to modifications.
All product descriptions are for general information only.
They are not to be understood as a guarantee of quality or
durability.

Table of Contents
DMP41 A03474_04_E00_00 HBM: public 3
Table of Contents
1 Documentation overview 5...............................................................
1.1 How to work with this manual 5........................................................
1.1.1 Operation with PC 6..........................................................
1.1.2 Chapter and appendix overview 7...............................................
2 Interface comparison 9..................................................................
3 Communication with the DMP 11..........................................................
3.1 Ethernet interface 11..................................................................
3.1.1 Ports and addresses used 13...................................................
3.1.2 Setting the Ethernet interface 13.................................................
3.2 USB HOST interface 15...............................................................
3.3 RS‐232 interface 15...................................................................
3.3.1 Activation of the RS‐232 interface 16.............................................
3.3.2 Setting the interface 17.........................................................
4 Program creation 19......................................................................
4.1 Communication via the Ethernet interface / Test program 19................................
5 Command set of the HBM interpreter 23...................................................
5.1 Important agreements 23..............................................................
5.1.1 Command structure 24.........................................................
5.1.2 Command structure 25.........................................................
5.1.3 Data output structure 26........................................................
5.1.4 Individual command descriptions 27..............................................
5.1.5 Administrator rights 28.........................................................
5.2 Communication 30....................................................................
5.2.1 Addressing 30.................................................................
5.2.2 Computer-DMP41 communication 33.............................................
5.2.3 Error control, status register 37..................................................

Table of Contents
4A03474_04_E00_00 HBM: public DMP41
5.2.4 Identification 38...............................................................
5.3 Amplifier settings 39...................................................................
5.3.1 Amplifier input 39..............................................................
5.3.2 Filter setting 42................................................................
5.3.3 Measuring range 45............................................................
5.3.4 Taring 49.....................................................................
5.3.5 Transfer of amplifier settings and comments 52....................................
5.4 Amplifier functions 56..................................................................
5.4.1 Output format, measured value output 56.........................................
5.4.2 Display functions 66...........................................................
5.5 Multi‐Client 72........................................................................
5.6 Other 75.............................................................................
Glossary 81....................................................................................
Functional command overview 83................................................................
Index 87........................................................................................

Documentation overview
How to work with this manual
DMP41 A03474_04_E00_00 HBM: public 5
1 Documentation overview
The complete production documentation of the precision measuring devices
DMP41 (DMP41-T2; DMP41-T6) comprises the following publications:
SThe operating manual 'Digital precision measuring device DMP41-T2,
DMP41-T6' (A3463)
explains the manual operation of the device
SThe operating manual 'Digital precision measuring device DMP41
Interface description and command set (A3462) explains programming
and measurement via terminal or computer, including all HBM interpreter
commands
Important
You are currently reading the ’Interface description and command set’
operating manual.
For operation as a ’stand-alone device’, please use the general operating
manual ’Digital precision measuring device DMP41−T2, DMP41−T6’
(A3470)
1.1 How to work with this manual
Before putting the device into operation please note the following
information:
Important
Please comply with the safety instructions in the operating manual Digital
precision measuring device DMP41 (document number A3470).
This manual - Operation with computer or terminal - is intended to help you
operate the DMP device via a computer as rapidly as possible. It is both
suitable for beginners without PC experience and for experts with computer
experience.

Documentation overview
How to work with this manual
6A03474_04_E00_00 HBM: public DMP41
Various guides are available to help you:
SThe table of contents at the beginning of the manual provide an initial
overview.
SThe header shows you which chapter or sub‐chapter you are currently
reading.
SExample:
SThe footer displays the name of the manual (Operating with computer or
terminal, Operating manual, etc.)
SThe page numbers are coupled with capital letters according to the
chapter designations. Each chapter starts with Page 1.
SIf you are looking for individual commands, it is best to refer to the
command overview in Appendix IV or Appendix V.
SThe keyword index contains an index register to help you orientate
yourself rapidly in the manual.
1.1.1 Operation with PC
This manual explains the operation of your HBM device with a computer.
SYou can implement all device settings by sending an appropriate
command sequence from the computer. Automation of repetitive
measurement sequences is possible with a computer and the
corresponding programs.
In order to match up the signals output from or required by the various
devices (computer, plotter, printer, measuring device, etc.), the devices
must be connected together via interfaces.
Interfaces are standardized so that devices from various manufacturers can
be used.
The DMP device can be operated via the following standardized interfaces:
SEthernet interface
SUSB port for RS232
Administrator rights are required for all measurement‐relevant settings
(see also Page 28)

Documentation overview
How to work with this manual
DMP41 A03474_04_E00_00 HBM: public 7
Administrator rights belong to:
SThe person who entered the password
SThe person working directly (stand‐alone) on the DMP41 (default)
1.1.2 Chapter and appendix overview
Chapter A
Introduction
General information for using this manual. A documentation overview shows
you which documents are part of the DMP device.
Chapter B
Comparison of the Ethernet, RS‐232‐C
This shows which interfaces are included in the DMP device and what their
primary differences are.
Chapter C
Communication with the DMP device
This shows you how to activate the various interfaces and how to connect
the DMP device to your computer.
Chapter D
Program creation
This contains routines for programming interfaces to create your own
programs.
Chapter E
Command set of the HBM interpreter
Important agreements about command syntax, command structure and the
command notation are listed at the start of this chapter. The complete
command set of the HBM interpreter completes the chapter.
Appendix I
Glossary
The glossary describes the main technical terms used in this manual in
dictionary format.
Appendix II
Alphabetic command overview
Command overview sorted alphabetically for rapid orientation.

Documentation overview
How to work with this manual
8A03474_04_E00_00 HBM: public DMP41
Appendix hang III
Functional command overview
You can also search for commands sorted by function.
Appendix IV
Keyword index

Interface comparison
DMP41 A03474_04_E00_00 HBM: public 9
2 Interface comparison
The DMP41 has four different interfaces:
SEthernet
SUSB Host
SRS232 (external adapter on USB Host)
The device can be operated simultaneously via all interfaces, but can only
be parameterized over one connection at the same time.
The HBM Interpreter “translates" the command and corresponding
character string received from an interface into a code understood by the
DMP41.
You can call up the Interpreter via the above‐mentioned interfaces.
All HBM Interpreter commands are shown in Chapter
“5Command set of the HBM interpreter".
This chapter is to help you determine which interface to use. How the
interfaces function can be found in the corresponding Chapter.
Interface Connection
options
Cable Distance max. Transmission
speed
Comments
Ethernet Direct to PC,
network
Ethernet
(Cat-5 or higher) 100 m 10/100 Mbit/s Dependent on
PC
USB HOST Keyboard, stick,
RS232 adapter USB 2.0 5 m 60 Mbyte/s
RS232 External adapter
on USB Host
3-wire cable for
transmission in
both directions
20 m 115200 baud Just one adapter
per device

Interface comparison
10 A03474_04_E00_00 HBM: public DMP41

USB HOST
ETHERNET
Communication with the DMP
Ethernet interface
DMP41 A03474_04_E00_00 HBM: public 11
3 Communication with the DMP
3.1 Ethernet interface
The DMP41 can be included in an Ethernet network, and thus directly to the
TCP/IP world, via the Ethernet connection RJ45 socket. This means that
visualization and control are not only possible on site, but also, with relevant
safety devices, anywhere in the world.
The Internet Protocol (IP) applies correct addressing and routing of the data
packets, while the Transport Control Protocol (TCP) set up on it is
responsible for data transport and security.
The Ethernet network supports speeds of 10 Mbit/s and 100 Mbit/s, as well
as half and full duplex mode. The transmission mode and speed are
automatically adapted to the existing network.
Cable
Category 5 (Cat-5) or higher cables must be used for this purpose. This
enables line lengths of 100 m to be implemented. When operating several
devices in an Ethernet network, we recommend the use of industrial
Ethernet switches.
Parameterisation
Each DMP41 has an individual MAC address. A logical IP address is
assigned to this.

Communication with the DMP
Ethernet interface
12 A03474_04_E00_00 HBM: public DMP41
IP addresses are 32‐bit long binary strings (4 bytes), which for greater
clarity are specified as four decimal numbers separated by periods (octets)
(e.g. 192.156.168.10).
The IP address can be assigned automatically (default setting) in the
DMP41 (DHCP) or entered via the device keyboard.
Standard addresses
Choose Start -> Run from the Windows start menu and enter “CMD", you
can then use “Ping IP" in the DOS window to test whether the connected
device is communicating.
If the DMP41is to be operated in a cross‐network segment and the device
accessed via Ethernet, a Gateway address must be set.
The Gateway address is necessary so that access from outside, e.g.
Internet, is possible via a router in the network.
However, an existing firewall or managed switch in the network must be set
for this remote access so that access is permitted (see Chapter 3.1.1).
If necessary, contact the responsible network administrator.
Notes on operation in an Ethernet network
In order to avoid network problems, you should check the following points
before connection to an Ethernet network:
SAre the connected device addresses unique, i.e. no identical IP
addresses?
SDoes the network have sufficient reserves for the transmission of the
planned data or could the network load become too great?
SAre there nodes that could load the network through broadcasts, i.e. data
sent to all nodes?
In order to avoid disturbance of measurement operation by other network
nodes, you can also operate the devices in a separate network
disconnected from your company network.
When operating several devices in an Ethernet network, we recommend the
use of industrial Ethernet switches.
In order to achieve the best possible separation between the network with
the measuring instruments and the remaining company network, you can

Communication with the DMP
Ethernet interface
DMP41 A03474_04_E00_00 HBM: public 13
also use a router that separates both networks and only transmits
messages between the two networks when necessary.
3.1.1 Ports and addresses used
TCP server on DMP41:
IP : as set, or DHCP = Default
Port: 1234
Multicast server for device scan:
IP : 239.255.77.76
Port : 31416
Important
The ports must be enabled for access to the server (firewall).
Important
Cable connection for Ethernet interface !
If the interface cable for the interface is not connected, an IP address
cannot be set.
Ensure that the interface cables for the Ethernet interface are always
connected before setting up the DMP41.
3.1.2 Setting the Ethernet interface
When the Ethernet interface is set to DHCP (Dynamic Host Configuration
Protocol), the addresses assigned by the DHCP server to DMP41 are dis
played in the address fields.
It is also possible to set fixed addresses directly in the DMP41
(IP address, network mask, Gateway, DHCP).

Communication with the DMP
Ethernet interface
14 A03474_04_E00_00 HBM: public DMP41

Communication with the DMP
USB HOST interface
DMP41 A03474_04_E00_00 HBM: public 15
3.2 USB HOST interface
The DMP41 enables connection to a USB HOST interface.
A USB Device (e.g. keyboard) is always connected to a USB HOST
(controller).
The DMP41 can be connected via the USB HOST socket to
Sa USB stick
Sa keyboard
San RS232 adapter
3.3 RS‐232 interface
START 0 1 2 3 4 5 6 PARITY STOP
Logic 1
Logic 0
Line level of the Y character with negative logic
A START bit is set before each character (data byte). It is followed by the
data bits and a STOP bit. As the data are transferred serially, the speed of
transmission must match the speed of reception.
The number of bits per second is called the baud rate. The exact baud rate
of the receiver is synchronized with the START bit for each byte transferred.
Next come the data bits, each with the same length. When the STOP bit is
reached, the receiver goes to the wait state, until it is reactivated by the next
START bit.
USB HOST
ETHERNET

Communication with the DMP
RS‐232 interface
16 A03474_04_E00_00 HBM: public DMP41
Serial interface characteristics (default settings)
Word length 8 bit
Stop bit 1
Parity Even
Baud rate 300, 600, 1200, 24002), 48002), 96001),
19 200, 38400, 576000, 115200
1) Factory setting
2) Can only be set with command BDR
Baud rate, parity and stop bits can be set in the settings menu or by
command.
3.3.1 Activation of the RS‐232 interface
The HBM interpreter is activated by the control character:
SCTRL B (STX) - Computer operation
SCTRL R (DC2) - Computer operation
Entering one of these control characters puts the device into the remote
control state “Computer Control" so that, apart from the display functions of
the display, it can still be operated but no longer set.
With the RS-232-C interface, all information generated is immediately output
once fully present in the output buffer.
You can deactivate the remote control state with the following commands:
DCL or
CTRL A (SOH) or
with the RES and RST commands
Important
An RS232 interface can only be operated with the DMP41 via an adapter
(USB -> RS232).
A USB-RS232 adapter is included in the scope of delivery of the DMP41
(1-KAB297).

Communication with the DMP
RS‐232 interface
DMP41 A03474_04_E00_00 HBM: public 17
3.3.2 Setting the interface
The menu (Hardware -> RS232) or the commands (BDR) can be used to
set
Sthe baud rate
Sthe parity and
Sthe number of stop bits
Baud rates
300, 600, 1200, 2400, 4800, 9600 *), 19200, 38400, 57600, 115200
Parity
Even *), odd, none
Stop bit
11), 2
1) Factory setting

Communication with the DMP
RS‐232 interface
18 A03474_04_E00_00 HBM: public DMP41

Program creation
Communication via the Ethernet interface / Test program
DMP41 A03474_04_E00_00 HBM: public 19
4 Program creation
4.1 Communication via the Ethernet interface / Test
program
To facilitate your entry into program creation, routines are provided here for
programming the DMP41 via Ethernet interfaces.
The applicable demo program is on the supplied system CD under
“DMP41Demo".
In order to use the demo program, you need the free program “Microsoft
Visual Studio Express"1).
► Connect the DMP41 and PC, then switch both on
► Install “Microsoft Visual Studio Express"
► Open the program DMP41Demo.sln on the system CD
► Press “RUN"
The screen display of the demo program will appear.
1) Visual Studio®is a registered brand and patented technology, licensed by Microsoft.

Program creation
Communication via the Ethernet interface / Test program
20 A03474_04_E00_00 HBM: public DMP41
User interface DMP41Demo:
SEnter the IP address of your DMP41
SClick in sequence from 1to 4
Jump to the appropriate point (1‐4) in the program with a double click (see
following page).
Extract from the example program
Connection DMP41 via TCP
namespace DMPDemo
public partial class Form1: Form
TCPClient myTCPClient;
public Form1()
InitializeComponent();
Other manuals for DMP41
1
Table of contents
Other HBM Measuring Instrument manuals
Popular Measuring Instrument manuals by other brands

Cannon
Cannon Densi-H Operator's manual

PCB Piezotronics
PCB Piezotronics J357B04 Installation and operating manual

Furuno
Furuno WV-100 installation manual

Hach
Hach sensION+ EC5 user manual

Keysight Technologies
Keysight Technologies N9000B Configuration guide

TA Instruments
TA Instruments TGA5500 Getting started guide

Beta industries
Beta industries BetaColor S2 XPress instruction manual

Ocean Optics
Ocean Optics OCEAN FX-UV-VIS user manual

Southwire
Southwire 40120N operating instructions

LaserLiner
LaserLiner SuperSquare-Laser manual

Presys
Presys DMY-2030-CC Technical manual

Pentax
Pentax 36141 - Digital Spot Meter operating instructions