The text of a manual · part 2 of 25
JANUS PSK for Ada Reference Manual, pages 11 to 20
Pages 11 to 20 of 250
The original document is the PDF (415 KB). 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 J2020, Intermec J2010 and Intermec J2050
Page 11
Before You Begin
Before You Begin This section introduces you to standard warranty provisions, safety precautions, warnings and cautions, 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 (800) 7555505, and in Canada call (800) 688-7043. Otherwise, refer to the Worldwide Sales & Service list shipped with this manual for the address and telephone number of your Intermec sales organization.
Cautions The cautions in this manual use the following format.
CAUTION
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.
xi
Page 12
JANUS PSK for Ada Reference Manual
About This Manual This manual is part of the JANUS Programmer's Software Kit manual set. It describes the special features and methods needed for programming the JANUS family of PC-compatible readers. If you plan to write programs in Ada, the information in this manual is very valuable. You may also refer to one of the other books listed under “Other Intermec Manuals” later in this section.
Organization The JANUS Programmer’s Software Kit for Ada Reference Manual is divided into three chapters and one appendix as described below:
xii
Chapter
What You Will Find
1
Getting Started This chapter describes the capabilities and programming methods applicable to the Intermec family of PC-compatible readers. It also explains how to install the Programmer’s Software Kit Language Libraries disk that is provided with this manual.
2
Working With Ada This chapter describes how to write applications in Ada using the library functions.
3
Ada Library This chapter explains the purpose and syntax for each Ada function and provides samples.
Appendix A
Status Codes This appendix lists status codes that are returned by the PSK functions.
Appendix B
Sample Programs This appendix lists sample applications written in the Ada language.
Page 13
Before You Begin
Terms and Conventions • A reader is the JANUS 2010, 2020, or 2050 PC-compatible bar code reader. • An operator is anyone who runs applications on the reader. • A programmer is anyone who writes applications for the reader. • A normal PC is assumed to be a DOS-based PC/AT-compatible 386, with a hard disk, 14-inch monitor, full-size keyboard, floppy disk drives, and at least two communication ports. • Reader services are the functional abilities that distinguish the Intermec family of PC-compatible readers from a normal PC. For example, the reader’s ability to decode bar code data as if it came from a PC keyboard is a typical reader service. • Software interrupts are the synchronous triggering of interrupts used for application program interfaces. • Library functions are the specialized Ada functions provided in the language libraries that you use to invoke various reader services. • PSK means the Programmer’s Software Kit and refers to both the language libraries and this manual. • The Programmer’s Software Kit Language Libraries is the disk shipped with this manual. It contains sample programs and library functions for interfacing with the reader. • The keypad is the custom JANUS keyboard. Throughout this manual, specific references to the JANUS keyboard use the term keypad. • The keyboard buffer is the machine-level buffer that stores key presses and scanned labels. Throughout this manual, specific references to this buffer and its status flags use the term keyboard.
xiii
Page 14
JANUS PSK for Ada Reference Manual
Keypad Input • Keys that you press on the keypad are emphasized in bold. For example, “press Enter” means you press the key labeled “Enter” on the reader keypad. • All key names use first-letter capitalization. For example: Ctrl = Control key Enter = Enter key F3 = F3 key • When you are required to press and release a series of keys in order, the keys are listed in order with no connectors. For example, to enter the uppercase character A, press Shift A. To enter this character, you press and release the Shift key, and then press the key marked A. • When you are required to press more than one key at the same time, the keys are connected by a dash in the text. For example, press Ctrl-Alt-Del to perform a warm boot on a standard PC. When the keys are connected by a dash, it is important that you press and hold the keys in the order they are listed in the text.
Commands • DOS commands are printed in Courier, exactly as you must type them. For example: COPY INTERMEC.* E:\ • Code examples are printed in 8-point Courier. For example: if(step != 0) level = step; if(level >= 31) level = 0;
// use step value if provided // keep level within bounds
Other Conventions • Italic type identifies a syntax parameter where it is defined in text. Italic type is also used to indicate references to other manuals and to indicate important terminology. • Hexadecimal numbers in text are followed by an uppercase H. For example, 03 hex is shown as 03H. • Hexadecimal numbers in C language code segments begin with 0x. For example, AX_REG = 0x5300.
xiv
Page 15
Before You Begin
Other Intermec Manuals You may need additional information for working with the PSK in a data collection system. To order additional manuals, contact your local Intermec representative or distributor. The following publications contain useful information for programming the Intermec family of PC-compatible readers:
Manual
Intermec Part No.
JANUS Programmer’s Software Kit for C/C++ Reference Manual
062133
JANUS Programmer’s Software Kit for Basic Reference Manual
063191
JANUS 2010 Hand-Held Computer User’s Manual
058426
JANUS 2020 Hand-Held Computer User’s Manual
059951
JANUS 2050 Vehicle Mount Unit User's Guide
062874
JANUS Application Simulator User's Manual
062778
IRL Programming Reference Manual
048609
Data Communications Reference Manual
044737
The Bar Code Book
051241
For additional programming information, see the software development kit manuals provided with your language. Note: The Programmer’s Software Kit Language Libraries disk accompanying this manual includes a file called README.TXT. This file contains updates to this document and errata of specific importance to programmers.
xv
Page 16
Page 17
nugget code39 helconital
1 Getting Started
Page 18
nugget code39 helconital
Page 19
Getting Started
1
This chapter briefly describes the programming methods and capabilities that apply to the JANUS family of readers and explains how to install the PSK.
What Your JANUS Reader Can Do
JR2010 JR2020
Your JANUS reader is a portable, programmable bar code reader and a 386-based computer in one. Each reader has the Intermec controlled BIOS and Microsoft ROM DOS 5.0. The reader behaves and functions like a normal PC with 640K of memory, with these exceptions: • The JANUS 2010 and 2020 are hand-held, with a small LCD display, custom keyboard, and either a port for a bar code input device or a built-in scanner.
I/O
Co nn Da ta
Ct rl Al t
Sh ift Ca ps
• The JANUS 2050 is mounted to a vehicle, such as a forklift, and has a monochrome CGA display, custom keyboard, built-in RF, and a port for a bar code input device.
f
TM
~
A
_
G
-
`
"
B
+
H
=
F6
{
C
M
[
I
' \
J
]
P
>
V
.
<
O T
Y
}
F7
E
N S
F1
D
,
U Z Ctr l Alt
F2
: F8
F K
;
Q
?
W
/ ho &
Cap s
F3 me F9
7
L
+
F4
*
-
8
$
R
4 en
* % d
X
5
! en
1
@ f ter ins sp ac e
2
)
0 pg
F1
0 up
( pg
6 dn
#
3 de l
Es
> c
.
J2050
F5
9 / ^ nu m loc k en ter
JPSK.001
• The operating system and protocol support programs reduce the memory available for your application to about 450K.
You can run batch programs and copy, name, or move files in the same manner as you would with any normal PC. The only difference is that the JANUS reader has ROM and RAM drives and a PC card drive. You can also run DOS-based programs on the reader the same as you can on a PC. When you do, the reader behaves like a PC, but has the advantage of accepting bar code input as if it came from the keypad. If you are an experienced PC programmer, you have already written programs that will run on the reader.
1-3
Page 20
JANUS PSK for Ada Reference Manual
Virtual Wedge The Virtual Wedge feature of the reader allows application programs to receive decoded bar codes from the keyboard buffer. The Virtual Wedge makes the reader functionally equivalent to a reader wedge connected to a PC. Bar code input is inserted into the PC keyboard buffer as if entered from the keypad. The Virtual Wedge also allows rapid porting of PC applications to the reader. Note: If your PC application follows DOS programming conventions, it should run correctly on the JANUS reader. Not all programming languages, especially database languages, follow these conventions. If your PC application does not follow DOS programming conventions, your scanned input will be incorrect. Valid configuration commands and reader commands are not put into the keyboard buffer. Bar code configuration commands beginning with $+ are tagged as configuration commands by the Virtual Wedge and sent to the configuration manager to reconfigure the reader. The command parser in the Virtual Wedge software recognizes and processes reader commands. You can run applications that use the Virtual Wedge (instead of Intermec interrupt extensions or function libraries) on either the reader or on your PC.
1-4