The text of a manual · part 18 of 42
DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755): 11 - Configuration: Host Message Format
Pages 155 to 162 of 361, from DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755)
The original document is the PDF (1.4 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 Allen-Bradley 2755-DD and Allen-Bradley 2755-DS
Page 155
Configuration: Host Message Format Host Message Format
Function 6 on the Select Operation menu accesses the Host Message Format configuration screen. Use this function to configure the message format of bar code data sent to the host. The screen displays with the first field highlighted.
The default settings are displayed the first time you access this screen. Make changes appropriate for your application. If the factory defaults are satisfactory, you can exit the configuration software by pressing [Esc] twice, or move on to the Host Communications configuration screen by pressing [Esc][Return] The parameters are grouped by function on the screen. The following pages describe each group of parameters.
Introduction to Host Message Format
Bar code data is sent to the host at the end of a trigger or after a valid package (see Send Message to Host). The data is sent to the host as an ASCII string. The figure below shows the structure of the string. For each field in the string, the figure shows: • the type of data in each field • length of the field (in parentheses)
Publication 2755-833
Page 156
11–2
Configuration: Host Message Format
Some of the fields are controlled by the bar code itself. However, most of the fields are controlled by the host message configuration parameters. In addition, many of these same functions can be performed using the Host Replacement Rules described earlier in this manual.
Bar Code Host Message Format ASCII BAR CODE DATA
12. Transmission Check (0 to 2) 11. End Message (0 to 3) 10. Performance Indicators. (0 or 6) 9. Package Count (0 or 6–DD, 0 or 3–DS) 8. Field Delimiter (0 or 1) 7. Field Delimiter (0 or 1) 6. Bar Code Data or No-Read Message (0 to 64 characters, including start, stop, and check characters. Up to 64 characters will be sent for each field read. (Codabar Stop Character follows Codabar Check Characters (if sent).)
5. Symbology (0 or 2) 4. Field Delimiter (0 or 1) 3. Header Message (0 to 32) 2. Source Identifier (0 to 4) 1. Start Character (0 or 1)
In messages containing multiple bar code data strings, each string will be separated by a single field delimiter. A double delimiter follows the final string. Below are some sample host messages to help you configure your decoder. The examples show data transmitted by the decoder. The configuration parameters for the message were set up as follows:
Publication 2755-833
Page 157
Configuration: Host Message Format
11–3
Note: A double delimiter (two quotation marks in this example) indicate the end of bar code data. Example 1: If one Code 39 label is decoded, the decoder transmits: #L7–AData From Scanner A ” 01001122334455 ” ” 000013CRLF
Header Message Source Identifier Start Character
End Message Characters Package Count End of Package Double Delimiter Bar Code Data Code 39 Symbology Type Indicator Field Delimiter
Example 2: If two Code 39 labels are scanned on a single package, the decoder transmits: #L7-AData From Scanner A ” 01998877665 ” 01001122334 ” ” 000014CRLF
Header Message Source Identifier Start Character
End Message Characters Package Count End of Package Double Delimiter Bar Code Data Code 39 Symbology Type Indicator Field Delimiter Bar Code Data Code 39 Symbology Type Indicator Field Delimiter
Publication 2755-833
Page 158
11–4
Configuration: Host Message Format
Example 3: If a No-Read occurs, the decoder transmits: #L7–AData From Scanner A ” NO-READ ” ” 000015CRLF
Header Message Source Identifier Start Character
End Message Characters Package Count End of Package Double Delimiter No-Read Message Field Delimiter
Note: Message packages can consist of both bar code strings and no-read strings.
Host Message Parameters
The parameters listed below include those used to control the message format of bar code data that is sent to the host. Each parameter is defined below. The options for each parameter are summarized in a table, and explained more fully in the text. Where appropriate, the default setting for each parameter is displayed in bold letters in the table.
Start Character Field Type Options Edit Numeric
ASCII Numeric (1 – 255) 255 = None
Defines the three digit decimal ASCII starting character for every bar code message sent to the host. The default is None or 255, which indicates no start character.
Source Identifier for AUX, A, and B Field Type Options Edit Text
Any ASCII Character String (4 chars max) Blank
Defines a 1 to 4 character identifier to include in each message sent to the host. The string identifies the source device for the data contained in the message. The default for each field is Blank, which means a source identifier is not defined. Example source identifiers are SCNA, SCNB, and AUX.
Publication 2755-833
Page 159
Configuration: Host Message Format
11–5
The source identifier may be unique for Scanner A, Scanner B and the AUX terminal to identify the data source.
Header Message Field Type Options Any ASCII Character String Edit Text (32 chars max) Blank
Defines a 1 to 32 character header message to include in each message sent to the host. The default is Blank, which means a header message is not defined. An example header message is BAR CODE DATA.
Field Delimiter Field Type Options Edit Numeric
ASCII Numeric (1 – 255) 255 = None
Defines the three digit decimal ASCII character that will indicate the beginning and end of bar code label data. If multiple symbols are being read, the delimiter also separates each field in the message. A double delimiter (two consecutive occurrences of a delimiter character) indicates the end of a package. The default is None or 255, which means no delimiter is defined. When choosing a delimiter, be careful to select a character that will not appear in the bar code data.
Number of Fields in Message Field Type Options Edit Numeric
1 through 16 0 = All
Determines the number of bar code symbols to include in each message. The default All sets the value to equal the number of symbols per package. The values 1 through 16 will set this value to a specific number of fields. (See Symbols Per Package, Chapter 7, and Host Replacement Rules: Host Message Field Number, Chapter 10, for more information.)
Publication 2755-833
Page 160
11–6
Configuration: Host Message Format
Send Symbology Field Type Options Select
Yes No
Controls whether the symbology type of the bar code is included in the message sent to the host. The default is No, which means the symbology type is not sent to the host. If you select Yes, the symbology type is transmitted as a two digit code: 00 01 02 03 04 05 06 07 08 09
Keyboard Data from AUX Terminal Code 39 Interleaved 2-of-5 Codabar UPC-A UPC-E EAN-8 EAN-13 Code 128 Pharma-Code
Send Package Count Field Type Options Select
Yes No
Controls whether the package count is included in the message sent to the host. The default is No, the package count is not sent to the host. The six digit package count is maintained by the package counter. Counter data can also be sent to the host when requested by a host command as described elsewhere in this manual.
Send Bar Code Strings Field Type Options Select
Yes No
Controls whether bar code data is sent to the host. The default of Yes sends bar code data to the host.
Publication 2755-833
Page 161
Configuration: Host Message Format
11–7
Send Decoder Performance Field Type Options Select
Yes No
Controls whether the performance indicators for Scanners A and B are included in the message sent to the host. The default is No, the performance indicators are not sent to the host. The performance indicator is a three digit value for DS units, and a six digit value for DD units. The first three digits apply to Scanner A, and the last three digits apply to Scanner B.
End Message Field Type Options None CRLF CR LF Select ETX CRETX LFETX CRLFETX
Defines an ASCII control code to terminate or end each message sent to the host. The default is CRLF, which terminates each message with a carriage return and line feed.
Default No-Read Message Field Type Options Any ASCII Character String Edit Text (32 chars max) Blank
Defines a 1 to 32 character no-read message to include in each message sent to the host when a no-read occurs and a specific no-read message has not been defined for that field (see below). The default is Blank, which means a default no-read message string is not defined. An example no-read message is NO-READ.
Publication 2755-833
Page 162
11–8
Configuration: Host Message Format
No-Read Replacement Strings Field Type Options Any ASCII Character String Edit Text (32 chars max) Blank
If the rules are active (See Chapter 10), defines a 1 to 32 character string to include in the message sent to the host. These strings are sent when a no-read or a specific host replacement rule is not satisfied for a specific field (1 through 16). The default is Blank, which means a no-read replacement string is not defined for that field. If a no-read does occur, or a replacement rule fails, the default no-read message (if one is defined) will be sent.
Publication 2755-833