Post Reply 
HP71b HPIL/HPIB devices
03-26-2017, 07:00 PM
Post: #12
RE: HP71b HPIL/HPIB devices
(03-26-2017 05:19 PM)Adalin Wrote:  Now to the last subject, Is it possible to communicate HP71b - HP71b with HPIL?

Yes, it's described in the HP-IL Adapter manual; I captured that in this program, long ago:

10 ! PROG TO TAKE A FILE FROM ANOTHER HP-71
20 ! ROBERT PROSPERI 5 MAY 1984
30 ON ERROR GOTO 140
40 INPUT "Source file name? ";S$
50 INPUT "Target file name? ",S$;D$
55 IF D$="" THEN D$=S$
60 CONTROL ON
70 REMOTE :HP71
80 OUTPUT :HP71 ;"CONTROL OFF"
90 OUTPUT :HP71 ;"COPY "&S$&" TO :LOOP"
100 COPY :HP71 TO D$
110 LOCAL
120 DISP "File transferred successfully!"
130 STOP
140 E=ERRN @ E$=ERRM$ @ L=ERRL
150 DISP "Error ";E;" occurred at line ";L
160 DISP E$
170 STOP
180 END

The program is run on '71 A, used to 'take' a file from '71 B.

Steps:

0. Connect machines via HP-IL (other devices can be on the loop)
1. Turn on B
2. Turn on A
3. On B, do RESTORE IO
4. On A, do RESTORE IO
5. On A, RUN FILECOPY
6. Answer the prompts
7. Enjoy

The error handler originally did more, but I removed most of it when it was simplified; now it looks a bit silly, but it works.

The source file can be reasonably complex (FILE1, FILE2:PORT(3), FILE4:MAIN, etc.) but it's possible you could ask for something that chokes it...

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP71b HPIL/HPIB devices - Adalin - 03-25-2017, 09:11 PM
RE: HP71b HPIL/HPIB devices - Sylvain Cote - 03-25-2017, 09:56 PM
RE: HP71b HPIL/HPIB devices - Adalin - 03-26-2017, 12:40 AM
RE: HP71b HPIL/HPIB devices - rprosperi - 03-26-2017, 01:06 AM
RE: HP71b HPIL/HPIB devices - Sylvain Cote - 03-26-2017, 01:16 AM
RE: HP71b HPIL/HPIB devices - rprosperi - 03-26-2017, 02:08 AM
RE: HP71b HPIL/HPIB devices - J-F Garnier - 03-26-2017, 09:00 AM
RE: HP71b HPIL/HPIB devices - rprosperi - 03-26-2017, 03:39 PM
RE: HP71b HPIL/HPIB devices - Adalin - 03-26-2017, 05:19 PM
RE: HP71b HPIL/HPIB devices - rprosperi - 03-26-2017 07:00 PM
RE: HP71b HPIL/HPIB devices - Adalin - 03-29-2017, 06:23 PM



User(s) browsing this thread: 1 Guest(s)