I'm trying to read the status registers of my 82164A HP-IL to RS232 interface from BASIC on the 71. On page 35 of the 82164A manual, I see a pseudo-code sequence of HP-IL messages to accomplish this:
Unlisten
Talk Address 3
Device Dependent Talker 0
Send Data
.. Data ..
EOT
Untalk
I've been experimenting with implementing that on my 71B, using the HP-IL interface manual. The best I can come up with is this:
10 D=DEVADDR("%66")
20 LOCAL
30 SEND UNL MLA TALK D DDT 0
40 FOR I=1 TO 14 @ ENTER :LOOP USING "#,B";C0 @ DISP I @ NEXT I
50 SEND UNT
The motivation for this form of the code is that any attempt to read more than one byte at a time hangs with the T/R lite on the serial interface constantly lit. Consistent with that, the above code displays "1" and then hangs.
Can anyone suggest what I'm doing wrong?
Thanks,
Howard