The text of a manual · part 8 of 17
PT2000 & Top Gun Portable Data Terminals User's Guide, pages 71 to 80
Pages 71 to 80 of 168
The original document is the PDF (3.9 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 PSC PT-2000, PSC TopGun, Datalogic PT-2000 and Datalogic TopGun
Page 71
Using Programming Utilities
Figure 4-3: The Program File window
User’s Guide
6.
Select the application to be installed in the portable, and click OK. z The message Programming the portable will appear in the programmer window. Additional messages and the percentage of completion will be displayed as the programming progresses. z When programming is completed, the message Portable successfully programmed will appear in the window, and the name of the program file will be displayed in the window’s title bar.
7.
Select File > Exit to close the PSC Portable Programmer window.
61
Page 72
Programming the PT2000 and Top Gun
PDPROG PDPROG is the utility used to program a PSC portable through DOS. Using PDPROG involves entering commands on the DOS command line. The command line syntax is as follows: pdprog filename[.hex] [-¦/][port] where filename = the name of the file for the application to install in the portable (The file has a .hex extension. Do not include the extension in the command line.) port = 1¦2¦3¦4 to specify the serial port (default=COM2)
The port setting is optional and can be entered either before or after the file name. If used, precede it with a hyphen (-) or a slash (/). For example, use the command pdprog descript -1 to transfer the description program to a portable over the COM1 serial port.
62
PT2000 & Top Gun PDTs
Page 73
Using Predefined Defaults
Using Predefined Defaults Top Gun and the PT2000 have the following three sets of parameter defaults: Predefined Default 0 (D0) : turns every on/off parameter off and sets all minimum and maximum lengths to zero. Predefined Default 1 (D1): turns every on/off parameter on, sets all minimum lengths as low as possible, and sets all maximum lengths as high as possible. Predefined Default 2 (D2) : is the default set that was installed in the portable at the factory. This default set will work for most applications. Note:
To restore the default settings for serial communications, scan Serial Communications Parameter (default) bar code on page 81.
Reset the portable to a predefined default set by scanning one of the following bar codes: D0 D1 D2
User’s Guide
*$+$-D0EE* *$+$-D1EE* *$+$-D2EE*
63
Page 74
Programming the PT2000 and Top Gun
Using Bar Codes To program the PT2000 and Top Gun, scan Code 39 bar codes that contain the desired parameters and settings. Appendix G on page 127 provides several programming bar codes. Custom bar codes can be made using any bar code printing software that supports Code 39.
Guidelines for Creating Programming Bar Codes Keep the following in mind when creating bar codes for programming the portable: z Create custom programming bar codes using the standard Code 39 character set, not the extended (full ASCII) Code 39 character set. (However, bar codes must be read using extended Code 39.) z The first and last character of each bar code must be an asterisk (*), the start and stop character for Code 39. z The first asterisk of the programming bar code must be followed immediately by the characters $+$-. z The programming bar code must end with EE and an asterisk. The portable will treat multiple bar codes of programming information as one entry as long as *$+$- appears at the beginning of the first bar code and EE* does not appear until the end of the last bar code. Scanning the following sample bar code will enable Code 39 scanning and set the maximum length for Code 39 to 35 characters: Enable Code 39; set max length to 35 characters
Note:
64
*$+$-0010235EE*
The human readable portion of the barcode symbol, as shown here and elsewhere in this manual is optional and not required for scanning purposes.
PT2000 & Top Gun PDTs
Page 75
Using Bar Codes
Like all Code 39 bar codes, this sample starts and ends with an asterisk (*). $+$- starts programming mode. 00 is the ID number for the parameter that enables Code 39, and 1 turns it on. 02 specifies the Code 39 maximum-length parameter, and 35 sets it to 35 characters per label. EE saves the new settings and exits programming mode.
Using Multiple Bar Codes Create multiple bar codes to program the portable. After making the settings in the first bar code (which must begin with *$+$-), the portable waits for additional programming bar code entry if the first bar code does not include EE*. Scanning the following two bar codes provides the same result as scanning the single one on page 64: *$+$-
*$+$-001*
EE*
*0235EE*
Commands cannot be split between two or more bar codes. It is not possible to have a parameter ID number at the end of one bar code and its setting or string at the beginning of the next.
User’s Guide
65
Page 76
Programming the PT2000 and Top Gun
General Programming Parameters Table 4-1 describes some of the general parameters for programming the
PT2000 or Top Gun. For descriptions of serial parameters, refer to Table 4-2. For a complete list of parameters and defaults, refer to Appendix A.
Table 4-1: Selected Programming Parameters
66
ID #
Parameter
Description
05
Code 39 full ASCII
Supports the Code 39 extended ASCII character set (refer to Appendix B on page 93). For example, a character string encoded in Code 39 as +A is transmitted as a lowercase a. This allows every key of the keyboard to be encoded in a Code 39 bar code.
06
Code 39 accumulate
Treats multiple bar codes as a single bar code, provided that all bar codes except the last begin with a space. The last code must not begin with a space. Up to 128 characters (not including preamble, postamble, and symbology identifiers) can be accumulated before transmission.
0B
I 2 of 5 enable checksum
Enables use of checksums in Interleaved 2 of 5 bar codes. This parameter should be set to On to read Interleaved 2 of 5 bar codes.
33, 36
UPC conversion
Converts UPC-A bar codes to EAN-13 (ID #33), and converts UPC-E bar codes to UPC-A (ID #36).
3B–3E UPC/EAN/ JAN extensions
Reads two-digit (ID #3C) and five-digit (ID #3D) extensions if the portable is programmed to allow them (ID #3B). Doesn’t read UPC, EAN, or JAN bar codes if the portable is programmed to require extensions (ID #3E) and no extensions are present.
PT2000 & Top Gun PDTs
Page 77
General Programming Parameters
Setting the Hour Format, Time, and Date Time: Turn parameter ID D8 on to set the portable's real-time clock display to 24-hour (military-style) format. When this parameter is set to Off, the time is displayed in 12-hour format. The default time display is
24-hour format. Use the 12- and 24-hour bar codes to change the format. To set the time on the portable’s clock, scan the Time bar code. Date: Turn parameter ID D9 on to set the portable’s date display to international format (day/month/year) or off to set it to U.S. format (month/day/year). The default format is U.S. Format. To set the date in the portable, scan the Date bar code. Use the International Format bar codes to change the format.
*$+$-D80EE* 24-Hour Format *$+$-D81EE* Time *%-* Date *%.* U.S. Format *$+$-D90EE* International Format *$+$-D91EE*
12-Hour Format
Use the portable’s keyboard to enter the hour, time and date in the current format. Note:
User’s Guide
When finished setting the date and time formats, press any function key to return to the program.
67
Page 78
Programming the PT2000 and Top Gun
Serial Parameters Use bar codes to set parameters for using the PT2000 or Top Gun as a serial device. Table 4-2 describes the serial parameters; bar codes for setting them begin on Serial Parameters on page 143. (For a complete listing of parameters and defaults, refer to Appendix A.) This section also includes a table of Code 39 and ASCII equivalents for serial characters (refer to Table 4-3 on page 70). Use the Code 39 equivalents when creating bar codes for programming. Table 4-2: Serial Parameters ID #
Parameter
Description
C1
Baud rate
Determines the communication speed. The setting for the portable must match the setting that the host computer uses.
C2
Data bits
Specifies the number of data bits in each character.
C3
Parity
Specifies the parity of the data characters.
C4
Stop bits
Selects the minimum space between data characters.
C5
Xon/Xoff handshaking
Used for software data-flow control. With this option enabled, the portable transmits an Xoff character when its serial input buffer has fewer than ten characters of free space. Once all the data in the serial buffer is processed, the portable transmits an Xon character.
Xmodem Protocol The PT2000 and Top Gun support the Xmodem (checksum) filetransfer protocol for serial communication, which is available in many commercially marketed products. 68
PT2000 & Top Gun PDTs
Page 79
Serial Parameters
Xmodem is a simple send-and-wait-for-response protocol using a fixedlength data field. The data field is embedded in an Xmodem packet, which also contains a packet number and a single-byte arithmetic checksum. The protocol link is established by the receiver transmitting a NAK character until the sender responds. The sender responds by transmitting an Xmodem packet. The sender then waits for either an ACK signal, in which case it transmits the next packet, or a NAK signal, in which case it retransmits the packet. Once all packets are transmitted, the sender transmits an EOT signal, indicating the end of transmission. Scan the following bar code to set a portable to use the Xmodem protocol: XModem protocol
User’s Guide
*$+$-CA02EE*
69
Page 80
Programming the PT2000 and Top Gun
Code 39 and ASCII Equivalents for Serial Characters Table 4-3 provides Code 39 and ASCII equivalents for serial characters.
For Code 39, ASCII, and mnemonic equivalents of keyboard keys, refer to Appendix B. Table 4-3: Code 39 and ASCII Equivalents for Serial Characters
Character
Code 39
ASCII Value
Character
Code 39
ASCII Value
NUL
%U
80
DLE
$P
10
SOH
$A
01
DC1
$Q
11
STX
$B
02
DC2
$R
12
ETX
$C
03
DC3
$S
13
EOT
$D
04
DC4
$T
14
ENQ
$E
05
NAK
$U
15
ACK
$F
06
SYN
$V
16
BEL
$G
07
ETB
$W
17
BS
$H
08
CAN
$X
18
HT
$I
09
EM
$Y
19
LF
$J
0A
SUB
$Z
1A
VT
$K
0B
ESC
%A
1B
FF
$L
0C
FS
%B
1C
CR
$M
0D
GS
%C
1D
SO
$N
0E
RS
%D
1E
SI
$O
0F
US
%E
1F
Terminate string: //
70
PT2000 & Top Gun PDTs