User manual

MAN0051-01 30 JUN 2000 PAGE 31
APPENDIX B
APPENDIX B: PIF DOCUMENTATION
Included on every PC CPU Hard Drive are two demonstration programs (written in Visual C++
Version
4.2 and Visual Basic
32-Bit Version 4.0), 32-bit DLL libraries and DOS libraries. These programs are
available to the customer as
examples
of programs that may be written to interface with modules on the
Series 90-30 backplanes. Descriptions of these programs are included in this chapter for the customer to
examine. Also included are instructions for installing the PIF300 32-Bit DLL.
In order for the customer to create their own programs, several steps will be necessary. To begin with, a
programming package, such as Visual C++
or Visual Basic
, will be necessary. We recommend
installing these on a different computer system other than the PC CPU (due to the large memory
requirements of some programs). After obtaining a programming package, the installation of 32- Bit DLL
libraries or DOS libraries onto this system will be required (Horner APG provides these libraries on a
floppy disk, which is included with the PC CPU package). This is required in order to link your program to
the libraries.
After you have all of the necessary software and files on your separate computing system, it will be
possible to create PIF 90-30 interface programs. When programming, you will use variables in the
libraries in order to manipulate the PIF or to assign procedures in your program. This process will enable
you to manipulate the
MODULES
on the Series 90-30 backplane. Once your executable program has
been written, you will need to transfer the
compiled
program to the PC CPU (using direct cable
connection, floppy, CD-ROM, or network connection). Horner APG has included the libraries on the Hard
Drive so you will not be required to transfer these. Finally, in order to run your Visual Basic
program,
the PIF DLL, Visual Basic
DLL and the Visual Basic
executable files will be required. In order to run
your Visual C++
program, the PIF DLL and the Visual C++
executible files will be required.
B.1 Visual C++ Demo
This program was written in Visual C++
Version 4.2. The purpose of the program is to demonstrate
how Visual C++
can be used in a practical application. The Visual C++
source code is included with
the demonstration software. Visual C++
Version 4.2 is needed to open the source code file.
The Visual C++
demonstration software (PIF300Demo.exe) allows the user to view various
characteristics of each module on an expansion rack. It is important to remember that the PIF300 can
only detect the characteristics of certain modules, one module at a time. It cannot detect parameters and
settings for the entire chain or rack. Characteristics tested by the demonstration software include the
following:
1.0.1. Rack number
: Specifies what rack is being tested on the chain. Up to eight racks
on a chain can be tested.
Rack 0 is reserved for the rack supporting the
HE693CPUxxx.
1.0.2. Slot number
: Specifies what slot on a rack is being tested.
1.0.3 PIF card number
: Specifies the PIF card being used. Up to four PIF cards can be
configured at a time (HE693CPUxxx contains 1, at address 300).
1.0.4 Module Information
: Reads the type of module, type of rack, speed of rack, and
the number of %Is, %Qs, %AIs, %AQs, %RIs, and %RQs.
1.0.5 Module data
: Reports to user what data is in the register of the specified module.