Example Programs
D-5
D.8
Status word program
Program 4 below shows how to obtain and display status, er-
ror, and data words. The program loops through three times,
requesting, reading, and displaying each of the three word
strings on the computer screen.
Program 4. Status word program
' Program to obtain status words from Model 6512.
OPEN "IEEE" FOR OUTPUT AS #1
' Open IEEE-488 output path.
OPEN "IEEE" FOR INPUT AS #2
' Open IEEE-488 input path.
PRINT #1, "REMOTE 27"
' Put 6512 in remote.
PRINT #1, "CLEAR"
' Send DCL.
CLS
FOR I = 0 TO 2
' Loop for all 3 status words.
PRINT #1, "OUTPUT 27;U"; I; "X"
' Send status word command.
PRINT #1, "ENTER 27"
' Address 6512 to talk.
INPUT #2, S$
' Input status word string.
PRINT "U"; I; "word: "; S$
' Print status string.
NEXT I
END
Summary of Contents for 6512
Page 119: ...Maintenance 7 10 Figure 7 5 Exploded view...
Page 131: ......