The text of a manual · part 2 of 28
6400 PSK Reference Manual, pages 11 to 20
Pages 11 to 20 of 272
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 11
Contents
Full ASCII Bar Code Chart C-6 Control Characters C-6 Symbols and Punctuation Marks C-7 Numbers C-8 Uppercase Letters C-9 Lowercase Letters C-10
I
Index xi
Page 12
nugget
39 helconital
Page 13
Before You Begin
Before You Begin This section introduces you to standard warranty provisions, cautions and notes, document formatting conventions, and sources of additional product information.
Warranty Information To receive a copy of the standard warranty provision for this product, contact your local Intermec sales organization. In the U.S. call 1-800-755-5505, and in Canada call 1-800-688-7043. If you live outside the U.S. or Canada, you can find your local Intermec support services organization on the Intermec Web site at www.intermec.com.
Cautions and Notes The cautions and notes in this manual use this format. Caution A caution alerts you to an operating procedure, practice, condition, or statement that must be strictly observed to prevent equipment damage or destruction, or corruption or loss of data. Conseil Une précaution vous alerte d’une procédure de fonctionnement, d’une méthode, d’un état ou d’un rapport qui doit être strictement respecté pour empêcher l’endommagement ou la destruction de l’équipement, ou l’altération ou la perte de données. Note: Notes are statements that either provide extra information about a topic or contain special instructions for handling a particular condition or set of circumstances.
About This Manual This manual describes the special features and methods needed for programming the 6400 computers with Microsoft C. Use this manual in conjunction with Part II, 6400 Application Simulator User’s Manual, which describes the software that lets you test and debug 6400 applications on a normal PC.
Intended Audience This manual is intended for experienced PC programmers who already understand return values, know how to program in C, and know how to use the Microsoft Visual C/C++ and Microsoft CodeView for DOS debugger.
xiii
Page 14
6400 PSK Reference Manual
How This Manual Is Organized This manual is organized as follows: Chapter
What You'll Find
1
Getting Started Explains how to install the PSK Language.
2
Programming Guidelines Describes the types of functions included in the library. It lists the certified and uncertified Microsoft C/C++ functions.
3
Building Applications Explains how to build, link, compile, and debug applications.
4
Converting Trakker Antares and JANUS Applications to 6400 Applications Explains the differences between the Trakker Antares, JANUS, and 6400 PSK functions. It provides guidelines for converting your applications.
5
PSK Function Descriptions Explains the purpose and syntax for each function. The functions are in alphabetical order.
6
Reader Command Reference Explains the purpose and syntax for each reader command. The commands are grouped by purpose, such as operation or file management.
7
Configuration Command Reference Explains the purpose and syntax for each configuration command. The commands are in alphabetical order.
A
Status Codes Lists the status codes returned by the PSK functions.
B
Microsoft Visual C/C++ Settings Shows the project and compiler settings dialog boxes from Microsoft Visual C/C++ version 1.5.
C
Full ASCII Charts Lists supported ASCII characters and provides bar codes for ASCII characters.
Terminology You should be aware of how these terms are used in this manual.
xiv
Term
Meaning
6400
The term refers to the 6400 computer.
DCS 30X
The term refers to the DCS 30X data collection server that replaces the Model 200 Controller. Unless otherwise noted, you can use either the DCS 30X or the Model 200 Controller.
Page 15
Before You Begin
Term
Meaning keypad
The term refers to the custom Trakker Antares, JANUS, or 6400 keyboard. Throughout this manual, specific references to the Trakker Antares, JANUS, or 6400 keyboard use the term keypad.
keyboard buffer
The term refers to machine-level buffer that stores key strokes and scanned labels. Throughout this manual, specific references to this buffer and its status flags use the term keyboard.
library functions
The term refers to Intermec-specific functions provided in the language libraries for programming the computer, terminal, or reader.
PC
The term refers to DOS-based PC 386 or higher, with a hard disk, monitor, standard PC keyboard, disk drives, and at least two communications ports.
Programmer’s Software Kit Language Libraries
The term refers to the disk containing sample programs and library functions.
PSK
The term refers to Programmer’s Software Kit. PSK refers to the language libraries and the associated manuals.
operator
The term refers to anyone who runs applications on the 6400.
Conventions for Input From a Keyboard or Keypad You should be aware of these formatting conventions for representing input from a keyboard or keypad. Convention
Meaning
Bold
Keys that you press on a PC keyboard are shown in bold. For example, “press Enter” means you press the key labeled “Enter” on the keyboard. The first letter of a key name is always capitalized.
Ctrl-Alt-Del
When a series of keys are shown with a dash between them, you must press and hold the keys in the order shown and then release them all. For example, to boot a PC, you press and hold Ctrl, press and hold Alt, press and hold Del, and then release the keys.
Italic
Identifies a syntax parameter in text. Italic type also indicates the title of a manual.
xv
Page 16
6400 PSK Reference Manual
Conventions for Commands You should be aware of these formatting conventions for entering commands. Convention
Meaning
Courier text
Commands are printed in Courier, exactly as you must type them. For example: a: setup.exe
Italics
A command may include variable parameters. Variables are shown in italics. You must enter a real value for the variable. For example: copy filname.mak a:
sample listings
Code examples are printed in 9-point Courier. For example: if(step != 0) level = step; if(level >= 31) level = 0;
0xnnnn
Hexadecimal numbers in C language code segments begin with 0x. For example: AX_REG = 0x5300.
00H
Hexadecimal numbers in text are followed by an uppercase H. For example, 03 hex is shown as 03H.
Other Intermec Manuals You may need additional information when working with the PSK in a data collection system and for programming the 6400 computers, Trakker Antares terminals, and JANUS readers. Please visit our Web site at www.intermec.com to download many of our current manuals in PDF format. To order printed versions of the Intermec manuals, contact your local Intermec representative or distributor. For additional programming information, see the software development kit manuals provided with your version of C/C++. Also, you should see the README file provided on the Programmer’s Software Kit Language Libraries disk. This README file may contain important information that was not available when this manual was printed.
xvi
Page 17
nugget
39 helconital
1 Getting Started
Page 18
39 helconital nugget blank
Page 19
Getting Started
1
This chapter introduces the PSK, explains how to install the PSK, and helps you decide what to read next.
What Is the 6400 PSK? The 6400 Programmer’s Software Kit (PSK) is a set of C language functions for programming Intermec’s programmable 6400s. You use the PSK to design and build applications on a PC, and then you download the application to a 6400. To learn more about your 6400, see the 6400 Hand-Held Computer User’s Guide, Part No. 961-047-093.
Installing the Programmer’s Software Kit You need the following items to install the PSK: •
PSK Language Libraries disk
•
Windows 95, Windows 98, or Windows NT
•
Microsoft Visual C/C++ Professional Edition, v1.0, v1.5x, or v4.x
•
1MB of free disk space
The setup program installs the following files and utilities from the PSK Language Libraries disk: •
PSK functions library
•
Header files
•
Example files
•
FileCopy utility
Note: Install Microsoft Visual C/C++ v1.5x before you install the PSK library. For instructions, see your Microsoft documentation. To install the PSK library files, Application Simulator, and FileCopy 1. Start Windows. 2. Insert the PSK Language Libraries disk into the disk drive on your PC. 3. Click the Start button and choose Run. 4. Enter this command and choose OK:
drive:setup.exe where drive is the appropriate disk drive. 5. Follow the setup instructions on your screen.
1-3
Page 20
6400 PSK Reference Manual
6. When Setup prompts you to view the README file, choose Yes. This file may contain information that was not available when this manual was printed. 7. When the installation is complete, exit Windows and reboot. You are ready to use the PSK, the Application Simulator, and FileCopy. Setup creates a 6400 Sim Editor group in Windows. For details, see Part II, 6400 Application Simulator User’s Manual. Setup also creates and fills these subdirectories: •
INTERMEC\IMT6400\LIB
Intermec library files, EXE2ABS.EXE
•
INTERMEC\IMT6400\INCLUDE
Include files
•
INTERMEC\IMT6400\EXAMPLES
Sample programs
•
INTERMEC\IMT6400\SIM
Supported files for simulation
•
INTERMEC\TOOLS
FileCopy utility
To copy the FileCopy utility to another computer 1. Install the PSK on the first PC. 2. Copy these files to a diskette: C:\INTERMEC\IMT6400\FILECOPY\FILECOPY.EXE C:\INTERMEC\IMT6400\FILECOPY\FILECOPY.HLP 3. Create these directories on the second PC: C:\INTERMEC\IMT6400\FILECOPY C:\INTERMEC\IMT6400\LIB 4. Insert the diskette in the second PC and copy the files from the diskette to the appropriate directories on the PC.
Note: You may copy the FileCopy utility and EXE2ABS.EXE to more than one PC. You may not copy the PSK library.
Microsoft C/C++ Version Requirements The PSK requires Microsoft Visual C/C++ Professional Edition v1.0 or v1.5x, which can create 16-bit DOS applications. If you are using a different version, you must also install either v1.0 or v1.5x. The Microsoft Visual C/C++ Professional Edition v4.x package includes a disk for v1.5. However, the Microsoft Visual C/C++ Professional Edition v5.0 does not contain the 16-bit version of C.
1-4