Programming
—
DM 5010
MESSAGES
AND
COMMUNICATION
PROTOCOL
Command
Separator
A
message consists of one command or a series of com
mands,
followed by a message terminator.
Messages con
sisting
of
multiple commands must have the commands
separated by
semicolons. A semicolon at the end of a mes
sage is optional,
For example,
each line below is a message.
INIT
TEST;INIT;RQS
ON;USER
OFF;ID?;SET?
TEST;
Message
Terminator
Messages
may be terminated with EOI or the ASCII line
feed
(LF) character. Some controllers assert EOI concur
rently
with
the last data
byte; others use
only the LF charac
ter
as
a terminator.
The
instrument can be internally set to
accept
either terminator. With EOI ONLY selected as the
terminator, the
instrument interprets a data byte received
with
EOI asserted as the end of the input message;
it also
asserts EOI
concurrently
with the last byte of the output
message.
With the LF/EOI setting, the instrument interprets
the
LF
character without EOI asserted (or any data byte
received
with
EOI asserted) as the end of an input message;
^transmits carriage return (CR) followed by
line feed (the LF
with
EOI
asserted) to terminate
output messages. Refer
service
personnel
to the
Maintenance section of the manual
for information
on setting the message terminator. TM 5000
instruments
are shipped with EOI
ONLY selected.
Formatting A Message
Commands
sent to
TM 5000 instruments must have the
proper format
(syntax) to be understood; however, this for
mat
is flexible in that many variations are acceptable. The
following
describes
this format and the acceptable
variations.
The instruments expect all commands to be
encoded in
ASCII;
however,
they accept
both
upper
and lower case
ASCII
characters.
All data output is
in upper case.
As
previously
discussed, a command
consists of a
head
er
followed, if
necessary, by arguments. A command with
arguments
must have a header delimiter that is the space
character (SP)
between
the header and the argument. The
space character
(SP). carriage return (CR). and line feed
(LF) are
shown as subscript
in the following examples.
RQSSPON
If extra formatting characters SP,
CR, and LF
(the LF can
not
be
used for format in the LF/EOI terminator mode) are
added
between the
header delimiter
and the argument, they
are ignored by the
instrument.
Example
1: RQSSpON;
Example
2:
RQSSPSpON;
Example
3:
RQS
spcr
LF
In general, these formatting characters are ignored after any
delimiter and at the
beginning and
end of a message.
sp
RQS
sp
ON,
cr
lf
SpUSER
sp
OFF
In the command
list, some headers and arguments are
listed
in two forms, a full-length version and
an abbreviated
version.
The
instrument accepts
any header or argument
containing
at least the characters listed in the short form;
any
characters
added to the abbreviated version must be
those
given in the full-length version.
For documentation of
programs,
the
user may add alpha characters to the full-
length
version. Alpha characters may also be added to a
query header,
provided the question mark is at the
end.
USER?
USERE?
USEREQ?
USEREQUEST?
Multiple
arguments are separated by
commas; however, the
instrument will also accept
a space or spaces as a delimiter.
2,3
NOTE
in
the last example,
the space is treated as a format
character
because it follows the comma (the argument
delimiter).
Number
Formats
The
instrument
accepts the following
kinds of numbers
for any of the
numeric arguments.
•
Signed or
unsigned integers (inc0 and — 0).
Unsigned integers
are interpreted as
positive. Exam
ples:
+
1,2,
-1, -10
•
Signed or unsigned
decimal numbers.
Unsigned deci
mal
numbers are interpreted to be positive. Examples:
-3.2, -5.0.
1.2
3-21
Summary of Contents for DM 5010
Page 14: ...DM 5010 2994 00 DM 5010 Programmable Digital Multimeter xii ADD JUL 1986...
Page 27: ...Operating Instructions DM 5010 2994 03 Fig 2 3 DM 5010 front panel controls and connectors 2 3...
Page 38: ......
Page 134: ......
Page 208: ......
Page 222: ......
Page 250: ......
Page 251: ...Section 8 DM 5010 OPTIONS No options are available 8 1...
Page 252: ......
Page 270: ......
Page 272: ...DM 5010 2994 37 Fig 10 2 Location of DM 5010 adjustments and test points...
Page 273: ......
Page 274: ......
Page 275: ......
Page 276: ...DM 5010 2994 112 DM 5010 BLOCK DIAGRAM...
Page 281: ......
Page 282: ......
Page 291: ......
Page 293: ......
Page 294: ......
Page 297: ......
Page 298: ......
Page 303: ......
Page 304: ...I...
Page 305: ......
Page 310: ......
Page 311: ......
Page 315: ......
Page 318: ......
Page 321: ......
Page 323: ......
Page 326: ......
Page 332: ...2994 57...
Page 334: ......
Page 335: ......
Page 336: ......
Page 337: ...63 REV JUN 1986...
Page 338: ...FIG 1 EXPLODED DM 5010...
Page 339: ......
Page 340: ......
Page 341: ......
Page 347: ......