HP 82160A User Manual

HEWLETT-PACKARD
HP 82160A

OWNER'S MANUAL
This page is blank in original manual.
(Second cover page)
Disclaimer
HP original manual (freely available on Internet), using an
OCR program and manually reformatting its output (and
retyping some parts !). The result may thus differ from
original book in either format or content : even if I did it
with the best attention, some errors (OCR miss-recognition,
typing, formatting, …) could occur in this manual process.
Any remarks/errors discover are welcome.
I make no warranty
as to the accuracy or completeness of this document and
hereby disclaim any responsibility therefore.
This document is not reviewed; neither approved by Hewlett-Packard Company.

Mail to: pierre.hardy@swing.be
Web site: http://users.swing.be/id-phy/
Note :
The fee I ask is for the reformatting work of a publicly available document (on Internet in JPEG format).
I’ve done this because the original manual is not available anymore form HP, and more difficult to find than the HP-IL module itself. I did this for myself first, and propose it as a “S ervi ce” .
This manual and any part of it m ay not be copied, resold or tr ansferred, either in electronic or paper format. The license is gr anted to the “Service” buyer for its personal use only.
Rebuilt version 1.1, dated March 2008. © Pierre Hardy.
HP 82160A
HP-IL Module
Owner's Manual
February 1981
82160-90001
Printed in U.S.A. © Hewlett-Packard Company 1981
Contents
Section 1: Getting Started ...................................................................................................... 5
The Hewlett-Packard Interface Loop ...................................................................................................... 5
Connecting the Interface Loop ................................................................................................................ 6
Installing the Interface Module ........................................................................................................... 6
Connecting Peripheral Devices ........................................................................................................... 6
Disconnecting the Interlace Loop ........................................................................................................ 7
Using This Manual ................................................................................................................................. 7
Section 2: Printer Operations ................................................................................................................ 9
Flags and the Printer ............................................................................................................................. 9
Standard Printing Operations ............................................................................................................... 11
Using Calculator Functions That Print .............................................................................................. 11
Printing the Display .......................................................................................................................... 12
Printing Registers ............................................................................................................................. 12
Printing Programs ............................................................................................................................ 13
Printing Status and Key Assignments ............................................................................................... 14
Accumulating Printer Output ................................................................................................................ 15
Accumulating Characters ................................................................................................................. 15
Accumulating Spaces ....................................................................................................................... 18
Printing the Contents of the Print Buffer ........................................................................................... 18
Formatting the Printed Output .......................................................................................................... 19
Graphics (HP 821 62A Thermal Printer Only) ...................................................................................... 20
Specifying a Column of Dots ............................................................................................................ 20
Accumulating Columns .................................................................................................................... 20
Skipping Columns ............................................................................................................................ 21
Building Special Characters ............................................................................................................. 21
Plotting (HP 821 62A Thermal Printer Only) ......................................................................................... 23
Printer Plots ..................................................................................................................................... 23
Plotting with Special Characters ....................................................................................................... 24
Interactive Plotting ........................................................................................................................... 24
Programmable Plotting ..................................................................................................................... 26
Plotting a y-Axis .............................................................................................................................. 26
Plotting a Function Value ................................................................................................................. 27
Disabling the Printer Operations .......................................................................................................... 28
Programming and the Printer Operations .............................................................................................. 28
Printing During Program Entry ......................................................................................................... 28
Printing During Program Execution ................................................................................................. 28
Further Programming Information .................................................................................................... 29
Section 3: Mass Storage Operations ..................................................................................... 31
The Storage Medium ........................................................................................................................... 31
Storing and Retrieving Programs ......................................................................................................... 33
Storing a Program ............................................................................................................................ 33
Retrieving a Program ....................................................................................................................... 33
Storing and Retrieving Data .................................................................................................................. 34
Storing Data in a File ........................................................................................................................ 35
Reading Data from a File ..................................................................................................................... 35
2
6
Section 1: Gelling Started
Connecting the Interface Loop
The interface loop consists of your calculator, the HP 82160A HP-IL Module, and up to 30 peripheral devices. These should he connected according to the instructions below.
CAUTION
Be sure the calculator is turned off before connecting or disconnecting the module and cable connectors. If this is not done, the calculator may be damaged or the system's operation may be disrupted.
Installing the Interface Module
The HP 82160A HP-IL Module plugs into any of the calculator's ports. (If any HP 82106A Memory Modules are also plugged in, the interface module must be in a higher-numbered port than the memory modules.) Push in the module until it snaps into place. The module's switch should face down.
Connecting Peripheral Devices
The peripheral devices in the interface loop may be connected to the interface module in any order—but all of the interface cables must form a continuous loop. All connections are designed to ensure proper orientation.
To connect a peripheral device, first turn off the calculator. Then merely disconnect the loop in one place and connect the new device into the loop at that place. All devices must be turned on for the interface to operate properly.
Note: If a plug-in HP 82143A Printer is connected to the calculator system, the Print Function
Switch on the interface module must be set to DISABLE. Otherwise, the operation of the calculator could be disrupted. With this setting, primer operations will be executed by the plug-in printer only. If you want to print using the HP-IL print functions and an HP-IL printer, the Print Function Switch on the interface module must be set to ENABLE and a plug-in HP 82143A Printer must not be connected.
Section 2
Printer Operations
The HP 82160A HP-IL Module permits the calculator to generate printed output by connecting a printer to the interface loop. The interface module adds powerful printing, graphics, special character, and plotting capabilities to your system. To use the printer, all you do is follow the directions given in section 1 for installing the interface module and connecting the HP-IL printer to the loop. Be sure the Print Function Switch (located on the bottom of the interface module) is set to ENABLE and a plug-in HP 82143A Printer is not connected. Refer to the owner's manual for the printer to determine any additional preparations required for that device. The system is then ready to perform the operations described in this section.*
The printer functions described in thin section include all of the functions available on the HP82143A Printer, an earlier, plug-in accessory. Throughout this section, printer operations are illustrated using the HP 82162A Thermal Printer, an HP-IL peripheral. The operation of the interface module and the HP 82162A Thermal Printer is almost identical to the operation of the HP 82143A Printer. In fad, programs written to use the HP 82143A Printer will operate normally using the HP 82162A Thermal Printer.†
Flags and the Printer
When you start using the printer operations discussed in thia section, you will find it helpful to know how the calculator flags influence the operations.
The calculator uses up to six flags to control a printer-type device. Five of these flags (flags 12, 13,15,16, and 21) are user flags—that is, you can set, clear, and test them. The other flag (flag 55) is a system flag— it can only be tested. The effects of these flags are summarized below.
FLAG
SET
Flag 55: Printer Existence
Flag 21: Printer Enable
Flag 12: Double Wide
Flag 13: Lowercase
Flags 15 and 16: Print Mode (not used for HP82162A Thermal Printer)
*
Refer to the owner's manual for the printer to determine which types of operations, if any. cannot be performed by your printer. Other
printer-type (output) devices, such as video displays, may generate output using the printer operations described in this section.
The few operational differences between the HP 82162A Thermal Printer and the HP 82143A Printer will he noted throughout this
section.
Indicates a printer is connected to system.
Performs printer operations normally.
Prints and accumulates characters double width.
Prints and accumulates letters in lowercase.
Flag 15
clear clear
set set
Flag 16
clear
set
clear
set
Indicates no primer is connected to system.
Ignores printer operations in programs only.
Prints and accumulates characters normal width.
Prints and accumulates letters in uppercase (except
e
).
MAN (manual) NORM (normal) TRACE TRACE with stack option
CLEAR
Print Mode
a
through
9
Section 2: Printer Operations
13
bbb .eee
where bbb is the beginning data storage register address and eee is the ending data storage register address. The bbb portion can be one to three digits; the calculator uses the first three digits of the eee portion, which follows the decimal point. For example, specify registers R03 thru R07 using 3.007 in the X-register.
PR
R
1
data
ΣΣΣΣ
The
PR Σ
(print statistics registers) function enables you to print the contents of the currently defined statistics registers. (Refer to the owner's handbook for your calculator for information about how statistics registers are defined.)
Exa mple of printing registers:
Keys trokes
SIZE
017
Allocates 17 storage registers.
CLRG
Clears all storage registers.
2
STO
5 Stores 2.0000 in R05.
1.005
Specifies R01 through R05.
PRREGX
ALPHA ALPHA
PRA
Prints registers
SF
12 Sets double-wide flag.
STRECTH
Enters ALPHA string.
Prints ALPHA register.
CF
12 Specifies normal width
R
6
ΣΣΣΣ
data
PR Σ
prints the contents of all six statistics registers.
ΣREG
and
Printing Programs
Two functions print programs that are stored in program memory: determines the format in which program lines are printed. You can terminate the printing operation at any time by pressing
PRP
name
The
PRP
execute
PRP
name of the program (by pressing named program. If you press
R/S
. These two functions are not programmable.
(print program) function prints a specific program stored in program memory. When you
, the calculator prompts you for the name of the program you wish to print. Simply key in the
ALPHA
ALPHA ALPHA
name
ALPHA
) and printing will begin at the first line of the
(do not specify a program name) in response to the prompt,
the printer will print the program to which the calculator is presently positioned—beginning at its first line.
LIST
name
The
LIST
function prints a specified number of lines of a program. First, position the calculator to the desired program and then to the line where you wish printing to begin. Then execute prompted, key in a three-digit number specifying the number of lines you wish to print.
PRP
and
LIST
. The print mode
LIST
. When
Section 3
Mass Storage Operations
The mass storage operations available in the HP 82160A HP-IL Module permit you to store and retrieve information conveniently. By connecting a mass storage device to your Hewlett-Packard Interface Loop, you greatly expand the storage capacity of your calculator system. Follow the directions given in section 1 for installing the interface module and connecting the HP-IL mass storage device. Refer to the owner's manual for that device to determine any additional preparations that may be needed. The system is then ready to perform the operations described in this section.**
Throughout this section, mass storage operations are illustrated using the HP 82161A Digital Cassette Drive.
The Storage Medium
A mass storage device typically stores and retrieves information on a removable, interchangeable storage medium—such as a tape cassette. Each collection of information that is recorded on the storage medium is given an ALPHA name and is called a file. Because this information is generally transferred between the medium and registers in the calculator, the basic unit of information within a file is called a register. A record is a unit of storage capacity that is equal to from 32 to 37 registers, depending upon the type of information stored.
File names can be any string of up to seven ALPHA characters. If longer strings are used, only the first seven characters will be recognized and used by the calculator. No two files on a medium can have the same file name.
NEWM
The
NEWM
nnn
(new medium) function initializes the storage medium. Each medium must be initialized at least once to establish on the medium a directory space and a format in which information will be recorded. When you execute
NEWM
, the calculator prompts you for the number of file entries you want to allocate to the directory space on the medium—any number up to 447. Each file that you record on the medium requires one entry in the directory. The directory space created by
NEWM
consists of an integral number of records, with each record containing eight entries. However, the last entry in the directory is reserved for the system and is not available. As a result, the directory always accomodates one less than a multiple of eight file entries—and at least as many entries as you specify. In addition, two records on the medium are reserved for system use. All remaining space on the medium is available for information storage.
Not e: A smaller directory space permits faster access to files stored on the medium.
Any information previously stored on the medium will be erased when this command is executed.
NEWM
is not programmable.
* Refer to the owner's manual for the mass storage device to determine which types of operations, if any, cannot be performed by that
device.
31
34
}
Section 3: Mass Storage Operations
READSUB
The
READSUB
(read subroutine) function operates similarly to the
ALPHA
filename
READP
function, except that the program is placed in program memory after the last program. This function is particularly useful in a program that copies a subroutine program from a mass storage device, executes that subroutine, and then continues the main program.
READSUB
does not change the position of the calculator in program
memory.
Exa mple of storing and retrieving a program: After entering a program into your calculator, store it on the medium, clear it from program memory, and then recall it from the medium.
Keys trokes Disp lay
GTO  
0.0000 Creates new program space. (Display assumed cleared.)
PRGM
LBL
ALPHA
 
× PRGM ALPHA ALPHA
WRTP
CLP ALPHA
ALPHA ALPHA ALPHA
READSUB
AREA
ALPHA
x2
02 X2 . Sample program AREA
03 PI .
01 LBL
04 ×××× .
0.0000.
,ML
,ML_ Specifies current program and filename ML.
0.0000
0.0000 Program AREA stored in file ML.
AREA
AREA_
0.0000
ML
ML_ Specifies filename ML.
0.0000
0.0000 Copies program AREA at end of program

AREA .
X-register
Clears program AREA.
memory.
GTO ALPHA ALPHA PRGM PRGM
0.0000
01 LBL
0.0000.
AREA
GTO AREA_ Positions calculator to AREA.

AREA First line of retrieved program
Storing and Retrieving Data
A collection of data can conveniently be stored on the medium and recalled when needed. Using the functions described below, the entire collection—or any portion—can be stored or recalled.
CREATE
The
CREATE
function allocates a portion of the medium for a data file and fills all registers with zero
X
filesize
values. The number in the X-register specifies the number of registers to be allocated in the new data file. The contents of the ALPHA register specify the name of the file. (If a file with the specified name exists on the medium, DUP FL NAME is displayed and no new file is created.)
The
SEEKR
SEEKR
(seek register) function positions the storage medium to a specific register within a data file.
X
registger
This permits data to be stored and retrieved from individual registers within a file using the
ALPHA
ALPHA
filename
filename
WRTRX
and
Section 4
Interface Control Operations
You have seen that the HP 82160A HP-IL Module gives you the capability to perform printer and mass storage operations by using functions specifically designed for these applications. However, the Hewlett­Packard Interface Loop is a general-purpose inte rface. A third set of functions—the interface control functions—is designed to give you more complete control of interface activity—for any types of HP-IL devices connected in the loop.
It will be helpful to digress for a moment to give a brief explanation of the operation of the interface loop. This information should give you additional insight into how the devices interact and allow you to work with the loop more effectively—especially when you use the interface control operations described in this section.
Operation of the Hewlett-Packard Interface Loop
When you execute any of the functions described in this manual, the interface module translates the function into a sequence of HP-IL instructions. It then sends them around the interface loop to each device, one at a time. In the discussion that follows, you will learn how the calculator and peripherals communicate using the HP-IL instructions.
Roles of Devices
In order for the interface loop to operate in an orderly manner, the devices in the loop must operate according to their assigned roles. The role of each device is changed to suit the operation being performed. Three different roles are defined for HP-IL devices: controller, talker, and listener. Any device not assigned one of these roles is inactive.
The controller is the one device in the loop that can designate the roles of devices and control the loop's operation. The system controller (the calculator) is the device that controls and initializes the loop when it is first turned on. It can transfer control to another device, which then becomes the controller of the loop— the active controller. Similarly, an active controller can transfer control to another device. For all operations provided by the HP 82160A HP-IL Module, the calculator is always the system controller and the active controller.
A talker is a device that sends information to the interface loop. It is designated and enabled by the controller. At any time, there can be no more than one talker. The controller may be a talker. Examples of talkers are a mass storage device sending data from a stored file and a voltmeter sending voltage measurements.
A listener is a device that receives information on the interface loop. There may be more than one listener in the loop at the same time. Listeners are designated by the controller. The controller may be a listener. (A device cannot be a listener and a talker at the same time, although it can have these roles at different times.) Examples of listeners are a mass storage device receiving and storing data in a file and a printer receiving and printing information.
Device Addresses
In order to distinguish between devices in the loop, each device must have an address—a number from 1 to 30. The controller uses the addresses to specify and control the devices.
43
Section 4: Interface Control Operations
47
In both Auto and Manual modes, the interface control functions are performed in the same way. Single­device operations are carried out by the primary device—except for the
LISTEN
function, which requires
an address. Loop-control operations affect all devices, regardless of the interface mode.
The following table illustrates how Auto and Manual modes affect the operation of the interface loop:
Operation
Printer Operations Performed by first printer-type
Mass Storage Operations
Interface Control Operations
Auto Mode
device in loop starting with primary device.
Performed bv combination of all mass storage devices in loop starling with primary device.
Single-device operations performed by primary device, if possible.
Manual Mode
Performed by primary device, if possible.
Performed by primary device, if possible.
Single-device operations performed by primary device, if possible.
As an example, device #2 is selected as the primary device in the interface loop shown below. The loop operates this way:
Auto Mode with Primary Device #2
Appendi x B
Specified program or function program does not
Error Messages
This appendix contains a list of messages and errors that are related to interface operations. The messages and errors are grouped into printer, mass storage, and general interface control categories. Errors in the interface control category may occur during printer or mass storage operations. (Refer to the owner's handbook for your calculator for a list of all standard errors and messages.)
Not e: For most error conditions, the function being attempted is not performed. However, for
those conditions and functions indicated by below, the operation may be partially performed.
Printer Operations
Disp lay Fu nc tion Meaning
ALPHA DAT A -all- ALPHA characters are in a register where a number is
required—either a stack register or a data storage register.
DATA E RROR
NO PRINTER -al l- A standard printer-type device is not in the interface loop.
NONEXISTENT -all- Print Function Switch set to DISABLE. Set switch to
PRINTE R ERR - al l- The printer is out of paper, jammed, or requires service.
PRIV ATE -all- An attempt was made to list, trace, edit, or view a private
ACCHR ACCOL BLDSPEC PRAXIS
PRAXIS
PRREGX REGPLOT STKPLOT SKPCHR SKPCOL
PRP PRPLOT PRPLOTP PRREG
|x| 128.
Specified registers exceed highest numbered data storage
}
YMAX YMIN, AXIS > YMAX, AXIS < YMIN, or
|nnn | > 168.
XMAX XMIN, YMAX YMIN, AXIS > YMAX, or
AXIS < YMIN
|x| > 999.
}
|x| 24.
|x| 128.
}
YMAX YMIN, nnn =0 or |nnn| > 168.
(Occurs in Auto mode only.)
ENABLE.
exist. Check program name
register. Check
Reload paper (if required) or turn printer off and on, then check whether error recurs.
program.
bbb.eee
format in X.
65
Function Index
The operations listed below are active while the HP 82160A HP-IL Module is plugged into the calculator (and the Print Function Switch is set to ENABLE). These operations and programs containing these operations are executable only when appropriate peripherals are connected to the interface loop.
Printe r Operations:
ACA
Accumulate ALPHA register into print buffer. Page 15
ACCHR ACCOL ACSPEC ACX ADV BLDSPEC FMT LIST PRA PRAXIX PRBUF PRFLAGS PRKEYS PRP PRPOLT PRPLOTP PRREG PRREGX PR Σ PRSTK PRX REGPLOT SKPCHR SKPCOL STKPLOT
Accumulate character into print buffer. Page 17
Accumulate column into print buffer. Page 20
Accumulate special character into print buffer. Page 22 Accumulate X-register into print buffer. Page 16 Advance paper, print the print buffer right-justified. Page 18
Build special character in X- and Y-registers. Page 21
Accumulate format specifier into print buffer. Page 19
List program lines. Not programmable. Page 13
Print ALPHA register. Page 12
Print and label y-axis. Page 26
Print the print buffer left-justified. Page 18
Print flag status and other calculator information. Page 15
Print list of reassigned keys. Page 14 Print program. Not programmable. Page 13
Plot function interactively. Page 24
Plot function noninteractively. Page 26
Print contents of all storage registers. Page 12
Print contents of specified registers. Page 12
Print contents of statistics registers. Page 13
Print contents of X-, Y-, Z-, and T-registers. Page 12
Print contents of X-register. Page 12
Plot single function value using storage registers. Page 27
Accumulate skipped characters into print buffer. Page 18
Accumulate skipped dot columns into print buffer. Page 21
Plot single function value using stack registers. Page 27
Mass S torage Operati on s:
CREATE DIR NEWM PURGE READA READK READP READR READRX READS READSUB RENAME SEC
Create new data file with zero values. Page 34
Display or print a directory of stored files. Page 32
Prepare new medium for storing files. Not programmable. Page 31
Remove file from medium. Page 38 Read "write-all" file and set calculator. Page 37 Read key-assignment file and reassign keys. Page 36 Copy program file, replacing last program in memory. Page 33 Copy data file into calculator registers. Page 35
Copy part of data file according to X-register. Page 35
Read status file and set calculator status. Page 37
Copy program file after last program in memory. Page 34
Rename stored file. Page 38
Make a stored file secured. Page 37
73
Loading...