HP-71B and PILBox - How to transfer Program
|
10-12-2018, 09:23 AM
Post: #1
|
|||
|
|||
HP-71B and PILBox - How to transfer Program
I finally got arround to building and connecting my PILBox.
It is a straight forward process and I am really greatfull that both PILBox and ILPer have been made available to us! Now I am trying to find out how to do things. Printing to ILPer was straight forward. So it was easy to get a Program from the 71B to the PC. Now I would like to do the oposite. I have a listing of a program on the PC and I would like to transfer that to the 71B. How do I go about that? And how do I transfer lex files? Can anyone help me get started? Cheers, Harald |
|||
10-12-2018, 09:40 AM
Post: #2
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
Until someone comes with a detailed how-to, you'll find here some instructions that should help you transferring your program listing to an executable program in your HP-71B.
|
|||
10-12-2018, 12:34 PM
Post: #3
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
Here is a thread where I use a USB GPIB along with the HPIB to HPIL interface to move files to my 71B. http://www.hpmuseum.org/forum/thread-3870.html
|
|||
10-12-2018, 02:04 PM
Post: #4
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
(10-12-2018 09:23 AM)Harald Wrote: And how do I transfer lex files? Transferring a DOS text file to a 71B BASIC programs is possible, but it requires several steps, which I will try to detail later today. But transferring a LEX file is very quick and easy, assuming the LEX file you have is in a 'LIF image' file, such as those found in the OLDP. 1. Connect 71B to PIL-Box 2. In ILPer, open the LIF image 3. Confirm the filename, etc. by listing the image file contents: CAT :TAPE(1), then down-arrow to step through the files 4. When you have found the file to transfer, copy it to the 71B: COPY FILENAME:TAPE(1) TO FILENAME:MAIN. 5. If you want to retain the same filename and copy the file to main RAM, you may shorten this to: COPY FILENAME:TAPE(1); the filename is retained and the default target location is main RAM. 6. If you wanted to copy the LEX file to an IRAM (e.g. in port-2), do this: COPY FILENAME:TAPE(1) TO :PORT(2) 7. You can also rename the file in the copy process: COPY OLDFILE:TAPE(1) TO NEWFILE:PORT(2). The above process will also work to copy a text file, if the source file is already in a LIF image, but that is unlikely. Once this is done and FILENAME has been copied as a LIF text file, you would have to TRANSFORM FILENAME INTO BASIC, to have the 71B convert it. Lines with any syntax errors are converted into comments so you can correct them. --Bob Prosperi |
|||
10-13-2018, 12:29 AM
(This post was last modified: 10-13-2018 12:30 AM by Sylvain Cote.)
Post: #5
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
(10-12-2018 09:23 AM)Harald Wrote: So it was easy to get a Program from the 71B to the PC. Now I would like to do the oposite. I have a listing of a program on the PC and I would like to transfer that to the 71B. How do I go about that?You will need EMU71.EXE, ASC71MAC.EXE and ILPER.EXE to do it, available here: Emu71 and Virtual-IL
|
|||
10-13-2018, 12:44 AM
Post: #6
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
(10-13-2018 12:29 AM)Sylvain Cote Wrote: You will need EMU71.EXE, ASC71MAC.EXE and ILPER.EXE to do it, available here... Interesting solution Sylvain, something I never considered! I've not explored the EMU71 macro language capability at all; can it process and convert an already complete BASIC program ('complete' here meaning with line numbers prefixed, and full 71B BASIC syntax) ? --Bob Prosperi |
|||
10-13-2018, 01:19 AM
Post: #7
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
(10-13-2018 12:44 AM)rprosperi Wrote: ... can it process and convert an already complete BASIC program ('complete' here meaning with line numbers prefixed, and full 71B BASIC syntax) ?The macro solution works at a lower level, the utility convert characters into equivalent keystrokes, then emu71 playback those keystrokes, nothing more. Because it can be used anywhere (runtime, programs, etc) I use this facility to automate frequent tasks or like the demo macro, mix and match runtime commands with program entry. |
|||
10-13-2018, 02:09 AM
Post: #8
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
(10-13-2018 01:19 AM)Sylvain Cote Wrote:(10-13-2018 12:44 AM)rprosperi Wrote: ... can it process and convert an already complete BASIC program ('complete' here meaning with line numbers prefixed, and full 71B BASIC syntax) ?The macro solution works at a lower level, the utility convert characters into equivalent keystrokes, then emu71 playback those keystrokes, nothing more. Thanks. So although intended for different goals, it can indeed be used to process an tire text file into a BASIC program as Harald is inquiring about. Very clever to see this solution hidden within the existing tools. I was dreading having to explain the alihdr utility and DOSLink import procedure. Not rocket science to be sure, but big steps when first beginning HP-IL use. We'll wait for Harald to weigh-in on your solution. --Bob Prosperi |
|||
10-13-2018, 07:28 AM
Post: #9
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
(10-12-2018 09:23 AM)Harald Wrote: I have a listing of a program on the PC and I would like to transfer that to the 71B. How do I go about that? The easiest is to get programs and LEX files from an archive LIF image. Just set the disc image file to one of the ILPer virtual drives and do a COPY as you would do with a legacy drive. There is no immediate, built-in command to import a text file from an external device (your PC). You need to import the file line per line using ENTER statements and this is the purpose of the DOSLINK device. A short program can do it. You can find an example of such program in this presentation (using Emu71 but the principle is the same with a HP71 and the PIL-Box - and ILPer of course): http://www.jeffcalc.hp41.eu/hpil/files/doslink.pdf The document also describes how to import a LEX file built on PC, but most of the time the need is to load LEX files from an existing archive as explained above. There are other ways to import a text file, but this is my preferred solution (since I designed it :-) J-F |
|||
10-17-2018, 09:21 AM
Post: #10
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
Thank you for all your help on this, it is very much appreciated!
I got draged away from this by "real" work, but will try and work through all those solutions presented here as soon as possible. Thanks again, Harald |
|||
01-10-2020, 03:09 PM
Post: #11
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
I would like to say thank you to all of you for taking the time to post on this thread. I use the 71B a lot less frequently than I would like. So I keep forgetting things - and then I come back here to remind myself.
Cheers, Harald |
|||
01-10-2020, 10:14 PM
(This post was last modified: 01-10-2020 10:17 PM by Dave Frederickson.)
Post: #12
|
|||
|
|||
RE: HP-71B and PILBox - How to transfer Program
To summarize:
If the file resides on a LIF disc image then copying the file is easy - just use the COPY command. If the file resides on a PC then a LIF file header needs to be added to the file before it can be copied to the 71 or a LIF disc image. Refer to Dan McDonald's article, HP-IL Files: Where, What, Why, How, etc., for a description of LIF headers. 1. Using DOSLINK as described by J-F, above. a. Add a LIF file header to the file using aLIFhdr. b. Copy the file from the DOSLINK virtual device. 2. Using HPDir. HPDir was originally developed for the 9845, but it works well for the handheld calculator files as well. Copy the desired file to a LIF disc image using HPDir. HPDir can convert between DOS text and HP text files. 3. Using pyILPER and lifutils. If a LIF disc image is mounted and the Device enabled box is unchecked, pyILPER will work nicely as a front end for lifutils. lifutils (based on Tony Duell's LIF Utilities for linux) contains many tools for viewing and manipulating 41, 71, and 75 file types. 4. Using macros. See Sylvain's description, above. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)