![background image](http://html1.mh-extra.com/html/omega/dr130-series/dr130-series_user-manual_4025502082.webp)
7-5
Sample Program
7
Output the Unit and Decimal Point Data
Read out the unit and decimal point data from DR130/DR230/DR240, display them on CRT of
personal computer, and save them to floppy disk.
10
'TS2 <ESC T> LF
20
OPEN "COM1:E81N" AS #1
30
OPEN "TS2.DAT" FOR OUTPUT AS #2
40
PRINT #1,"TS2"
50
LINE INPUT #1,D$:PRINT D$
60
PRINT #1,CHR$(&H1B)+"T"
70
LINE INPUT #1,D$:PRINT D$
80
PRINT #1,"LF001,010"
90
LINE INPUT #1,D$:PRINT D$:PRINT #2,D$
100
IF MID$(D$,2,1)<>"E" THEN 90
110
CLOSE
120
END
Output the measurement data (ASCII Code)
Read out the measurement data by ASCII code from DR130/DR230/DR240, display on CRT of
personal computer, and save to floppy disc.
10
'TS0 <ESC T> FM0
20
OPEN "COM1:E81N" AS #1
30
OPEN "TS0ASC.DAT" FOR OUTPUT AS #2
40
PRINT #1,"TS0"
50
LINE INPUT #1,D$:PRINT D$
60
PRINT #1,CHR$(&H1B)+"T"
70
LINE INPUT #1,D$:PRINT D$
80
PRINT #1,"FM0,001,010"
90
LINE INPUT #1,D$:PRINT D$:PRINT #2,D$
100
IF MID$(D$,2,1)<>"E" THEN 90
110
CLOSE
120
END
7.2 RS-232-C Sample Programs
Summary of Contents for DR130 SERIES
Page 39: ...4 9 Command Format 4 4 5 Input Range Parameter This page intentionally left blank ...
Page 40: ...4 10 4 5 Input Range Parameter This page intentionally left blank ...
Page 56: ...5 15 Commands 5 This page intentionally left blank 5 5 Other Settings ...
Page 71: ...6 9 Output Format 6 This page intentionally left blank ...