120
────────────────────────────────────────────────────
8.9 Sample Programs
────────────────────────────────────────────────────
(4) Querying the comparator settings
Summary ・ This program queries the settings of the comparator table.
・ This program displays the buzzer mode, the external control mode, the
comparison method, and the comparison range of the comparator.
Program List
100 OUTPUT 701;":HEAD OFF"
110 OUTPUT 701;":FUNC RESI"
120 LINPUT "Table? (1‑15/A) ",T$
130 PRINT "Table Buzzer Ext ";
140 PRINT "HL/REF HIGH(REF),LOW(%)"
150 IF T$="A" THEN
160 FOR T=1 TO 15
170 CALL Display(VAL(T$))
180 NEXT T1
190 ELSE
200 CALL Display(VAL(T$))
210 END IF
220 END
230 !
240 SUB Display(T)
250 OUTPUT 701;":CSET:TABL "&VAL$(T)
260 OUTPUT 701;":CSET:USE?"
270 ENTER 701;":U$
280 IF U$="OFF" THEN
290 PRINT USING "2D,8X,7A";T,"Not Use"
300 ELSE
310 OUTPUT 701;":CSET:BEEP?"
320 ENTER 701;B$
330 OUTPUT 701;":CSET:TMOD?"
340 ENTER 701;E$
350 OUTPUT 701;":CSET:CMOD?"
360 ENTER 701;M$
370 OUTPUT 701;":CSET:PARA?"
380 ENTER 701;H$
390 PRINT USING "2D,8X,3A,7X,8A,2X,3A,7X,K";T,B$,E$,M$,H$
400 END IF
410 SUBEND