Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 6 of 12

User's / Programming Guide, Handheld Laser Bar Code Scanners, Keyboard Wedge / Wand Emulation Interface: Message Formatting, pages 31 to 39

Pages 31 to 39 of 84, from User's / Programming Guide, Handheld Laser Bar Code Scanners, Keyboard Wedge / Wand Emulation Interface

The original document is the PDF (680 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.

Filed in the catalog under the PSC 5381

Page 31

AC

Beeper On; Volume Medium

AD

Beeper On; Volume Loud *#@

Message Formatting Message formatting describes how to format the data (decoded string) that is sent from the scanner to the host. The programmable options DO NOT apply in Wand Emulation. NOTE

Prefixes and Suffixes Prefix

Terminal ID

Preamble

Code ID

Data

Postamble

Suffix

Prefixes, Suffixes, Preambles and Postambles are programmable attributes that are transmitted along with the decoded label data to the host device. These attributes are handled differently whether the scanner is configured for serial mode or wedge mode. When configured for wedge mode these attributes are sent as keystrokes. The scanner automatically translates the ASCII characters into keystrokes before sending data to the host. Refer to the keystroke translation tables for non-printable ASCII characters.

06656

25

Page 32

Prefix A prefix is a subset of the preamble normally formatted to some industry standard, i.e., it is represented by a specific ASCII code. An example of a prefix is the STX (Start of Transmission) code.

IA

Prefix = None*#

IB

Prefix = STX

IC

Prefix = SOH

Suffix A suffix is a subset of the Postamble. Like the prefix, it is normally assigned a specific ASCII code. Examples of suffixes are CR (Carriage Return) and LF (Line Feed). MA

Suffix = None #

MB

Suffix = ETX

MC

Suffix = CR

MD

Suffix = LF

ME

Suffix = HT

26

User’s / Programming Guide

Page 33

MF

Suffix = CR and LF *

Users also have the ability to select any ASCII character for use as a suffix. Scan the MJ label, then scan two labels from the Hexadecimal Conversion Table representing the character needed for the suffix.

MJ

Select Programmable Suffix Character

Certain specialized applications require a two character suffix of ETB NUL. Scanning MI provides this. MI

Select Suffix = ETB NUL

Terminal ID Terminal ID characters are used to identify individual scanners when more than one scanner is interfaced with the host system. Options available are none (DISABLED) or digits 01 through 99. JA

ID Character = Disabled*#

If you scan the label below, you must also scan two of the digits from the Digit Selection page. NOTE

JB

06656

ID Character = XX

27

Page 34

Code Identifier A code identifier may optionally be transmitted with the message. This option is provided so a host computer can identify the type of bar code scanned, as well as the encoded information. Scan Option FA to disable the code identifier. FA

Disable Code ID # *

Scan Option FB to enable the code identifier. FB

Enable Code ID

The table below shows the default code-identifier character assignments. These can be changed using the procedure found in the Symbology Identifier Section.

Table 4. Code Identifier Characters SYMBOLOGY

CODE IDENTIFIER

Code 39 a

Code Interleaved 2 of 5 b

Code Standard 2 of 5 c

UPC/EAN/JAN d

Code 128 f

Codabar h

28

User’s / Programming Guide

Page 35

Preamble or Postamble Selection Preambles and Postambles are composed of up to four ASCII characters. Each ASCII character is encoded as two hexadecimal numbers. Use the Hexadecimal Conversion Table in Appendix A to look up the hexadecimal equivalent.

NOTE

If you select a Preamble or a Postamble you must scan four ASCII characters, even if the Preamble or Postamble is less than four characters in length. This is done by scanning in null (NUL) characters for the additional characters. For example, if your Preamble is “AB” (in ASCII code), scan A, then B, then two null characters, or 4,1, 4,2 0,0 0,0 hexadecimal.

Preamble A Preamble is a string of characters that prefixes a message that is transmitted to the host. The sequence and number of characters in a Preamble is determined by the type of host system. Although not all systems require a Preamble, those which do will only receive messages with the correct Preamble. The maximum preamble length is four characters. KA

Preamble = None*#

KB

Enter Preamble

IMPORTANT Scan Enter Preamble to enter a Preamble, then refer to the Hexadecimal Table in Appendix A.

Postamble A Postamble is similar to a Preamble, except that it appended to the message which is transmitted to the host. Its maximum length is also four characters.

06656

29

Page 36

LA

Postamble = None*#

LB

Enter Postamble

IMPORTANT Scan Enter Postamble to enter a Postamble, then refer to the Hexadecimal Table in Appendix A.

30

User’s / Programming Guide

Page 37

Serial Commands General Serial Command Format Serial Commands are only accepted by the PSC scanner when in serial communications mode. Serial commands take the form: STX ESC LT1 LT2 <optional parameters>ETX (Note: STX = ^B; ETX = ^C) STX, ESC, and ETX are ASCII codes whose values are 02H, 1BH, and 03H, respectively. LT1 and LT2 are uppercase ASCII letters (commercial A and @ are the same as those printed in earlier sections of this manual under their corresponding menu bar code labels). The ESC code that follows the STX code identifies this as a command. Some commands require parameters such as minimum and maximum code lengths, and strings of hexadecimal characters. When parameters are required by the command, they immediately follow LT2. There are never spaces within serial commands.

ACK/NAK The scanner provides ACK/NAK protocol during serial programming in order to provide feedback to the host computer which is programming the scanner. ACK/NAK protocol provides two vital functions. First, it provides the host with positive acknowledgment that its commands are being accepted and acted upon. Second, and perhaps more important, it ensures that the host will not issue commands to the scanner more quickly than the scanner can process them. For example, every time the scanner receives a correct command, it modifies its internal EEPROM, a function that takes about one second. At 9600 baud, the host can easily issue commands to the scanner faster than they can be processed. If after issuing each command the host waits to receive an ACK or NAK code before issuing the next command, the scanner cannot be overrun. If XON/XOFF or CTS/RTS Protocol is being used, the scanner cannot be overrun by programming commands. However, the host is not provided with feedback as to the outcome of its commands. The ACK/NAK protocol is quite simple. Whenever the scanner receives a correctly formatted command, it sends a confirmation message followed by an ACK (06H) code.

06656

31

Page 38

Beeper Off CR-LF Ack If the scanner receives an unknown or improperly formatted code, or if the required parameters are missing or out-of-range, it sends a NAK (15H) Code.

Command

Function

STX ESC PC ETX

Enable I 2 of 5 with check digit

STX ESC PD12 ETX

Set I 2 of 5 minimum length to 12

STX ESC PE14 ETX

Set I 2 of 5 maximum length to 12

STX ESC KB31323334 ETX

Set Preamble to ‘1234’

STX ESC LB61626364

Set Postamble to ‘abcd’

Serial Commands to Use with Caution Some of the commands in this manual should not be used as serial commands because of the consequences they produce. All PSC scanners use the same hardware components to implement both serial communication and wand emulation. This means that all serial communication functions are disabled during wand emulation, and vice versa. Because of this, issuing any of the commands in Table 5 causes the scanner to enter its Wand Emulation mode, thereby disabling serial communication. CB

Wand Emulation, Code 39 Output

CC

Wand Emulation, Same Code Output

Furthermore, because the scanner acts upon a command and then sends ACK or NAK, neither or these codes will be transmitted in response to any of the above commands. In Table 5 only the command letters are listed; the complete command is prefixed with STX ESC, and suffixed with ETX. Because it is not possible to set (via serial command) two Wand Emulation parameters (emulation speed and polarity, for example), scanners to be used in Wand Emulation environments must be programmed by scanning labels from this manual.

32

User’s / Programming Guide

Page 39

Power Standby and Serial Commands When the scanner is programmed for standby power operation (@B), the first character of the command is used to “wake-up” the scanner; it is not properly received by the scanner’s CPU. Therefore, when there is any possibility that the scanner is in standby mode, an extra space code should be transmitted before STX to ensure the scanner is “awake” before sending commands to it. If the scanner is not being operated in standby mode, the space has no effect on commands (space prefixed commands are properly decoded). Having sent the space code to “wake-up” the scanner, a 150 to 200 millisecond pause must be observed to allow the scanner’s CPU to complete its initialization tasks, during which time it is unable to accept serial commands before issuing the programming command. Failure to observe this delay causes the scanner to ignore the incoming command.

Communication Parameter Changes All commands which affect serial communication are acted upon immediately. Therefore, when changing communication parameters (baud rate, word length, parity, etc.), the scanner will send the ACK Code, using the newly implemented communication parameters. There should be enough of a delay from the issuance of a communication parameter setup command for the properly programmed host computer to modify its internal parameters and correctly receive the ACK code sent by the scanner. This is due to the internal, one second delay required for the scanner to update its internal EEPROM.

Manual Scanning Interaction The decoder firmware makes no attempt to resolve conflicts between serial programming commands and manually scanned menu labels. If you plan to scan menu labels from the PSC Operator’s Manual, do not attempt serial programming, and vice versa. Serial commands are given priority over pending menu labels. For example, if you scan the menu label SET I 2 of 5 MINIMUM LENGTH and the scanner is waiting for a two-digit, minimum length code when a serial command is issued, the serial command is acted upon and the pending manual command SET I 2 of 5 MINIMUM LENGTH is ignored.

06656

33