Programming
—DM 5010
Program
Example
1:
1
REM INTERACTIVE DRIVER WITH STATUS BYTE DECODER FOR DM5010
99
REM D
= ADDRESS
OF DM5010
100
D=16
110 ON SRQ THEN
500
120
$16: "INIT;USER ON;OVER ON"
130
"ENTER DM5010 COMMAND:
";
140
INPUT AS
150
PRINT $D:A$
159
REM GET QUERY
RESPONSE OR READING FROM DM5010
160 INPUT $D:AS
170
PRINT AS
200 GO
TO 130
499
REM
SERVICE REQUEST INTERRUPT SUBROUTINE
500
POLL
X,Y;D
509
REM CLEAR BUSY BIT
510
IF Y/32-INTCY/32X0.5 THEN 530
520
Y-Y-16
529
REM DECODE STATUS BYTE
530
IF Y-102 THEN
6010
540
GO
TO Y-192 OF 7010,550,7030
550
GO TO
Y-64 OF 4010,4020,4030
560
GO TO
Y-96 OF 1000,2000,3000
570
PRINT Y;"
IS AN
INVALID STATUS BYTE FOR DM5010"
580
RETURN
1000
PRINT "COmAND ERROR"
1009
RETURN
2000
PRINT "EXECUTION ERROR"
2009
RETURN
3000 PRINT
"INTERNAL
ERROR"
3009 RETURN
4010
PRINT "POWER
ON-
4019
RETURN
4020 PRINT
"OPERATION COMPLETE-
4029
RETURN
4030 PRINT
"USER
REQUEST"
4039 RETURN
6010
"OVER-RANGE"
6019 RETURN
7010
PRINT "BELOW LIMITS-
7019
RETURN
7030 PRINT
"ABOVE LIMITS"
7039 RETURN
Program Example
2:
1
REM PROGRAM TO ECHO READINGS FROM DM5010 ONTO CONTROLLER DISPLAY
2
REM ASSUTE USER WILL SET
DM5010 TO PROPER FUNCTIONS VIA FRONT PANEL
100 REM D
= ADDRESS OF
DM5010
110
D-16
120 REM READ SERVICE REQUESTS
130 POLL X, Y;D
140 IF X TI-EN 130
150
REM DISABLE
ALL OTHER
SERVICE REQUESTS
160 PRINT
$16:"RQS OFF-
170 REM
INPUT READING FROM DM5010
180
INPUT
$D:R$
190
REM CHECK FOR ERROR
200
CD:"ERR?"
210
INPUT $D:E$
220
IF E$S"ERR 0;" THEN 240
230
PRINT E$;
240
PRINT R$
250
GO TO
180
ADD
JAN
1982
3-31
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: ......