No. 99MAM016B
1-4
*
Sample program (press any key to acquire data, press "0" to terminate) with NEC's
N88BASIC (MS-DOS version).
1.1.5
PC software for importing data
IMPORTANT
・
One of the following ways can be chosen:
1.Creating software by yourself.
2.Purchasing MITUTOYO software which can import
the data stated in item
1.2.5.
3.Choosing software on the market.
* For information about the applicable software for RS-232C communication, contact the
following.
Orange house Co.,Ltd.
Phone: 81-820-74-3887
Facsimile: 81-820-74-2187
http://www.orangehousejapan.com/
100 '<SAMPLE PROGRAM>
' baud rate is fixed at 2400 bps.
110 OPEN "COM1:N81NN" AS #1 ' opening the RS-232C
communication line
120 INPUT WAIT 30," 0 = END ";B$ ' 3-second power accumulation,
display of operation method
130 A$=INKEY$ ' wait for key input
140 WHILE A$<>"0" ' "0" for termination
150
A$=""
160 WHILE A$=""
170 A$=INKEY$
180
IF LOC(1)>0 THEN A$="1"
190 WEND
200 CNT=CNT+1
' count up starts if any key is
pressed.
210 PRINT #1,"1"
' sends a DATA request signal.
220 INPUT #1,B$ ' receives DATA.
230 WHILE LEFT$(B$,3)<>"01A" ' error handling
240
B$=MID$(B$,2)
' if the DATA button is pressed.
250
WEND
260 PRINT CNT,B$,VAL(MID$(B$,4,9)) ' screen display
270 WEND
280 CLOSE #1
290 END ' end of program