Write the setting data to dr series, Output the unit and decimal point data – Yokogawa DR240 User Manual
Page 106

8-8
IM DR231-11E
Write the Setting Data to DR series
Read out the setting data from floppy disk, display them on CRT of the personal computer, and write
them to DR series.
10
‘
20
OPEN “COM1:E81N” AS #1
30
OPEN “TS1.DAT” FOR INPUT AS #2
40
‘
50
PRINT #1,CHR$(&H1B)+”O 01"
60
LINE INPUT #1,D$ :PRINT D$
70
LINE INPUT #2,D$
80
IF LEFT$(D$,2)=”EN” THEN GOTO 150
90
PRINT #1,D$
100
PRINT D$
110
LINE INPUT #1,D$
120
IF LEFT$(D$,2)=”E1" THEN PRINT “SYNTAX ERROR”
130
GOTO 70
140
‘
150
PRINT #1,CHR$(&H1B)+”C 01"
160
LINE INPUT #1,D$ :PRINT D$
170
CLOSE
180
END
Output the Unit and Decimal Point Data
Read out the unit and decimal point data from DR series, display them on CRT of the personal
computer, and save them to floppy disk.
10
‘
20
OPEN “COM1:E81N” AS #1
30
OPEN “TS2.DAT” FOR OUTPUT AS #2
40
‘
50
PRINT #1,CHR$(&H1B)+”O 01"
60
LINE INPUT #1,D$ :PRINT D$
70
PRINT #1,”TS2"
80
LINE INPUT #1,D$ :PRINT D$
90
PRINT #1,CHR$(&H1B)+”T”
100
LINE INPUT #1,D$ :PRINT D$
110
PRINT #1,”LF001,010"
120
LINE INPUT #1,D$
130
PRINT D$
140
PRINT #2,D$
150
IF MID$(D$,2,1)<>”E” THEN GOTO 120
160
‘
170
PRINT #1,CHR$(&H1B)+”C 01"
180
LINE INPUT #1,D$ :PRINT D$
190
CLOSE
200
END
8.3 RS-422-A/RS-485 Sample Programs