
8-5
IM DR231-11E
Sample Program
8
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
8.2 RS-232-C Sample Programs
Comentários a estes Manuais