Intermec 5055 Reference Guide

Page of 216
5055 Programmer’s Software Kit Reference Manual
4-10
When the JANUS reader is in Wedge mode, use standard input functions such as getch
to retrieve keypad or label input. Keypad input terminates when you press the Enter
key.
On the 5055, Wedge mode works with all of the keypad input functions.
Programmer Mode
In Programmer mode, keypad input is echoed to the screen as the keys are pressed, and
any reader commands are executed and saved. Keypad input terminates when you press
the Enter key.
JANUS devices require Programmer mode to use the PSK functions and to execute
Interactive Reader Language (IRL) commands.
Programmer mode is the default mode for 5055, and it works with all of the keypad
input functions. The 5055 does not support IRL commands.
Desktop Mode
In Desktop mode, your application is responsible for retrieving and displaying keypad
input. The input terminates with each keystroke, and Desktop mode returns detailed
information about each key pressed.
Use the input function im_receive_input to capture the keys pressed. Each character
returned uses the structure 
IM_KEYCODE
, described in 
IM20LIB.H
 and 
IM5055.H
. This
structure consists of four bytes: the ASCII code, the scan code, and two bytes of
keyboard flags (Shift, Control, Alt).
Setting Timeout Values
The 5055 PSK uses two different maximum timeout values, but the JANUS PSK uses
only one maximum value. 5055 PSK functions that access the network port use a much
larger value and use the data type 
IM_LTIME
.
JANUS PSK Values
5055 PSK Values
Numeric range: 1 to 65,534 ms
Wait forever: 
IM_INFINITE_TIMEOUT
Numeric range: 0 to 4,294,967,294 ms
Wait forever: 
IM_INFINITE_NET_TIMEOUT
To convert the JANUS PSK values to work with the 5055 PSK
• Add this line to your include file:
#define IM_INFINITE_TIMEOUT  IM_INFINITE_NET_TIMEOUT