The text of a manual · part 8 of 16
Bulletin 2755 Hand-Held Scanner with RS-232 Option User Manual: 7 - Message Format Parameters
Pages 54 to 63 of 104, from Bulletin 2755 Hand-Held Scanner with RS-232 Option User Manual
The original document is the PDF (662 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 Allen-Bradley 2755-G3
Page 54
Chapter
7
A–B
Message Format Parameters Chapter Objectives
This chapter defines parameters that control the format of transmitted bar code messages including:
• Prefix and Suffix • Scanner Identifier • Code Identifier • Preamble and Postamble
Message Format Prefix
Scanner Identifier
A message transmitted from the scanner upon a successful decode has the following format: Preamble
Code Identifier
Data
Postamble
Suffix
Some of these message parameters may not be required or may vary from one host system to another. You select parameters based on the requirements of your application and the host system. To select message parameters, you scan the appropriate bar code labels in each section. Note: Throughout this chapter, default settings for parameters are flagged by an * (asterisk).
7–1
Page 55
Chapter 7 Message Format Parameters
Prefix
A prefix is a subset of the preamble normally formatted to some industry standard. It is represented by a specific ASCII code. An example of a prefix is the STX (Start of Transmission) code. Scan the appropriate prefix label.
7–2
IA
Prefix=None *
IB
Prefix=STX
IC
Prefix=SOH
Page 56
Chapter 7 Message Format Parameters
Suffix
A suffix is a subset of the postamble. Like the prefix, it is normally assigned to a specific ASCII code. Examples of suffixes are CR (Carriage Return) and LF (Line Feed). Scan the suffix appropriate for your application.
MA
Suffix=None
MB
Suffix=ETX
MC
Suffix=CR
MD
Suffix=LF
ME
Suffix=HT
MF
Suffix=CR and LF *
7–3
Page 57
Chapter 7 Message Format Parameters
Scanner Identifier
Scanner 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. Scanning label JA disables the scanner identifier.
JA
Disable Scanner Identifier *
To enter a scanner ID, scan label JB and then two separate digits from Appendix B. The ID character cannot exceed 99.
JB
+ Enable Scanner Identifier plus two characters
For example, to enter a scanner ID of 01, scan the JB label, then scan codes 0 and 1 in Appendix B.
7–4
Page 58
Chapter 7 Message Format Parameters
Code Identifier
A single-character code identifier may optionally be transmitted with a message. This option allows the host computer to identify the type of bar code scanned, as well as the encoded information. Scan option FA to disable the code identifier.
FA
Disable Code Identifier *
Scan option FB to enable the code identifier.
FB
Enable Code Identifier
Table 7.A shows the code identifier character assignments. Table 7.A Code Identifier Characters Symbology Code 39 Interleaved 2 of 5 Standard 2 of 5 UPC/EAN/JAN Code 128 Codabar
Code Identifier a b c d f h
7–5
Page 59
Chapter 7 Message Format Parameters
Preamble or Postamble
Preambles and postambles consist of up to four ASCII characters. Each ASCII character is encoded as two hexadecimal characters. Use Table 7.B, Hexadecimal Conversion Table, to look up the hexadecimal equivalent. To use the conversion table: 1. Find each ASCII character in the table and locate the corresponding bold hexadecimal equivalent character in the top row and the left column of the table. For example, the ASCII character ”Q” is represented by the hexadecimal numbers 5 (top) and 1 (left). 2. Scan the bar code symbols that correspond to the hexadecimal equivalent characters. First scan the bar code symbol that corresponds to the bold hex character at the top. Then scan the bar code symbol that corresponds to the bold hex character at the left. For example, for the ASCII character ”Q”, first scan the bar code symbol labeled 5, then scan the bar code symbol labeled 1. If your preamble or postamble contains an ”N”, first scan 4 and then E. 3. Repeat this procedure for each ASCII character you want to enter. Note: If you select a preamble or postamble you must scan four ASCII characters, even if the preamble or postamble is less than four characters in length. Do this by scanning null (NUL) characters for the additional characters. For example, if your preamble is ”AB” (in ASCII code), enter A, B, and two null characters by scanning the hexadecimal characters 4,1 4,2 0,0 0,0. Because each ASCII character is represented by two hexadecimal characters, you need eight scans.
7–6
Page 60
Chapter 7 Message Format Parameters
Preamble
A preamble is a string of characters that prefixes a message that is transmitted to the host. The preamble may be used to identify the scanner that sent the message. The maximum preamble length is four ASCII characters.
KA
Preamble=None*
To enter a preamble, scan the KB label, then refer to Table 7.B to enter the four ASCII characters. The procedure on the previous page explains how to enter preamble characters.
+
KB
Preamble = 4 ASCII (8 Hex) characters
Postamble
A postamble is similar to a preamble, except it is appended to the message which is transmitted to the host. Its maximum length is four ASCII characters.
LA
Postamble=None *
To enter a postamble, scan the LB label, then refer to Table 7.B to enter the four ASCII characters. The procedure on the previous page explains how to enter preamble characters.
LB
+ Postamble = 4 ASCII (8 Hex) characters
7–7
Page 61
Chapter 7 Message Format Parameters
0
1
2
3
4
5
6
7
7–8
Table 7.B Hexadecimal Conversion Table
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI
1 DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
2 SP ! ” # $ % & ’ ( ) * + , – . /
3 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
Page 62
Chapter 7 Message Format Parameters
|: Table 7.B (continued) Hexadecimal Conversion Table
9 ae Il
0 @ P ‘ p 1 A Q a q 2 B R b r A 3 C Ss Cc s 4 D T d t 5 E U e U ee) UM 7 G W g w 8 H Xx h Xx 9 | Y i y A J Z j z Cc B K [ k { Cc L \ | | D M ] m } E N n n ~ D F O _ fe) DEL
|:
|
7-9
Page 63
Chapter 7 Message Format Parameters
No Read Message
When the scanner is triggered, the scan beam is active until: 1. a label is decoded 2. the trigger is released 3. the scan beam timeout period has elapsed If the No Read Message is enabled, case 2 and 3 will cause the scanner to substitute NR (No Read) for the bar code data in the host message. No Read Message disabled Bar code data ”12345” transmitted in host message
Prefix
Scanner Identifier
Preamble
Code Identifier
12345
Postamble
Suffix
No Read Message enabled NR substituted for bar code data in host message Prefix
Scanner Identifier
Preamble
Code Identifier
NR
Postamble
Suffix
The No Read Message is disabled as the default state. Scan label NY to enable the No Read Message.
NY
Enable No Read Message
Scan label NX to disable the No Read Message.
NX
7–10
Disable No Read Message*