The text of a manual · part 25 of 31
MS-890 Industrial Automation Scanner User's Manual, pages 241 to 250
Pages 241 to 250 of 308
The original document is the PDF (3.0 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 Microscan MS-890
Page 241
13 Output Format Contents Output Format Serial Commands............................................................................................... 13-2 Output Format Status ................................................................................................................. 13-3 Format Assign ............................................................................................................................ 13-4 Format Extract............................................................................................................................ 13-5 Format Insert .............................................................................................................................. 13-7 Output Filter Configuration ......................................................................................................... 13-9 Number of Filters..................................................................................................................... 13-14
This section explains how to control the formatting and filtering of decoded symbol data for output.
MS-890 Industrial Automation Scanner User’s Manual
13-1
Page 242
Output Format Serial Commands
Output Format Serial Commands Command Title Format Extract Format Insert Format Assign Format Status Output Filter Configuration Number of Filters
13-2
Command Format <K740,output index,start location,length> <K741,output index,length,hex string> <K742,symbol number,status> <K743,output format status> <K744,filter number,symbology,length,wildcard,placeholder,data,decode direction,database index> <K745,number of filters>
MS-890 Industrial Automation Scanner User’s Manual
Page 243
Output Format
Output Format Status Definition:
This is a global enable/disable parameter. In order to use formatting you must set up the format using the insert and extract commands, and you must also assign a symbol to format using the Format Assign command.
Serial Cmd:
<K743,output format status>
Default:
Disabled
Options:
0 = Disabled 1 = Enabled
Output Format Status Disabled When Format Status is set to Disabled, output formatting is globally disabled.
Output Format Status Enabled When Format Status is set to Enabled, output formatting is enabled. However, Format Assign, Format Insert, and Format Extract must be properly set up as well.
Output Format Status by ESP On the Output Format tab, check the Enable Output Format box.
MS-890 Industrial Automation Scanner User’s Manual
13-3
Page 244
Format Assign
Format Assign Symbol Number Definition:
Symbol Number refers to the number of the symbol to which output formatting will apply. For example, if you wish to enable user-defined formatting to symbol # 2 in a multisymbol read cycle, you would send the command <K742,2,1>. Note that the number of symbols may exceed the format capabilities.
Serial Cmd:
<K742,symbol number,status>
Options:
1 to 12 1 = Formatted output status for symbol # 1. 2 = Formatted output status for symbol # 2. ... 12 = Formatted output status for symbol # 12.
Format Assign Status Definition:
Status refers to the user-defined formatting of a selected symbol position in the read cycle result. Note that there is also a global formatting “enable” command that must be set for the formatting to be applied.
Serial Cmd:
<K742,symbol number,status>
Default:
Disabled
Options:
0 = Disabled 1 = Enabled (Assign parameters to specified symbol)
Format Assign by ESP Use the Set Number of Symbols spin box to determine the number of symbols to be included in the output phrase.
Then check the Parse boxes beneath the symbols that you wish to format for user-defined output.
13-4
MS-890 Industrial Automation Scanner User’s Manual
Page 245
Output Format
Format Extract Output Index Definition:
Output Index refers to the database entry you wish to modify with this command. A formatted output is built by extracting data from a symbol’s original data output and/or inserting user-defined characters. It may be helpful to think of individual indexes as positions in the final formatted output you wish to build. Starting with index # 1, enter either an extract or insert command to begin building your desired output string. Then, with the next index number, enter either an extract or insert command to continue building the output string. Continue this process until you are finished building the string.
Serial Cmd:
<K740,output index,start location,length>
Options:
1 to 100
Start Location Definition:
Defines the location within the symbol data where the character extraction will begin. The first character extracted will also be the first character in the sequence displayed in user-defined output.
Serial Cmd:
<K740,output index,start location,length>
Default:
0
Options:
1 to n (maximum number of characters in symbol data)
Length Definition:
Defines the length (in consecutive characters) that will be extracted and placed in user-defined output.
Serial Cmd:
<K740,output index,start location,length>
Default:
0 (disabled; end of format cell array)
Options:
1 to n (maximum number of characters in symbol data)
MS-890 Industrial Automation Scanner User’s Manual
13-5
Page 246
Format Assign
Format Extract by ESP
The Extract Range function corresponds to the Start Location and Length parameters in the Format Extract serial command.
You can extract and insert several character sequences using ESP’s Symbol Parse feature. In this example, the selected extraction range is characters 2-4. The “Sample Symbol” example on the Symbol Parse dialog shows the selected character positions extracted and output as desired. Simultaneously, the data string from the actual selected symbol is displayed at the bottom left of the Parse Table, followed by the user-defined extracted output.
13-6
MS-890 Industrial Automation Scanner User’s Manual
Page 247
Output Format
Format Insert Output Index Definition:
Output Index refers to the database entry you wish to modify with this command. A formatted output is built by extracting data from a symbol’s original data output and/or inserting user-defined characters. It may be helpful to think of individual indexes as positions in the final formatted output you wish to build. Starting with index # 1, enter either an extract or insert command to begin building your desired output string. Then, with the next index number, enter either an extract or insert command to continue building the output string. Continue this process until you are finished building the string.
Serial Cmd:
<K741,output index,length,hex string>
Options:
1 to 100
Length Definition:
Specifies the length of the user-defined character string that will be inserted. This function is limited to 4 characters per output index, so multiple indexes must be entered in order to insert longer character sequences. For example, if you wish to insert a 10 character sequence in user-defined output, you would need three commands with consecutive index numbers, where the first two character sequence lengths were 4 and the third was 2.
Serial Cmd:
<K741,output index,length,hex string>
Default:
0 (disabled; end of format cell array)
Options:
1 to 4
Hex String Definition:
Specifies a character string that represents ASCII characters to be inserted in the database entry. Two hex characters are required for every ASCII character to be inserted in the user-defined output string. These two characters comprise the hex (base 16) value of the ASCII character. For example, if you wanted to enter the three-character sequence “Hi!” you would enter 3 for the length of the string, and a hex sequence of 486921 for the ASCII sequence to be inserted. (48 = H; 69 = i; 21 = !) Important: Each pair of hex characters represents one ASCII character. Hex character pairs range from 00 to FF. Since you are limited to 4 ASCII characters per insertion per database entry, you are likewise limited to 8 hex characters per insertion per database entry.
Serial Cmd:
<K741,output index,length,hex string>
Default:
NUL (00 in hex)
Options:
00 to FF (As many as 4 bytes, or hex pairs.)
MS-890 Industrial Automation Scanner User’s Manual
13-7
Page 248
Format Insert
Format Insert by ESP
The Format Insert process is very similar to the Format Extract process, except that Insert allows you to enter characters using the Insertion Calculator (shown above).
Notice that Extract and Insert share the same Parse Table.
13-8
MS-890 Industrial Automation Scanner User’s Manual
Page 249
Output Format
Output Filter Configuration Definition:
Output filtering is a method of providing a set of good read qualifiers and also providing ordered output. There is a filter for up to the first 10 positions in a multisymbol output. The first filter corresponds to the first symbol output at the end of the read cycle. Each filter has has settings for the following four parameters: Symbology Type, Symbol Length, Data, and Configuration Database Number.
Serial Cmd:
<K744,filter number,symbology,length,wildcard,placeholder,data,decode direction,database index>
Rules for Output Filter Configuration Output Filter Configuration Rule # 1 Each symbol that is decoded must match one of the filters before it can be saved to a read cycle record. There is an exception to this rule, however, when the number of symbols required for a read cycle exceeds the number of active filters. In such a case, unfiltered symbols can be placed into unfiltered output positions. For example, if the number of symbols required is 6 but there are only 4 active filters, the last 2 positions can be filled by any (unfiltered) qualified symbol.
Output Filter Configuration Rule # 2 The same filter setup can be used multiple times. For example, filters 1, 2, and 3 can be set up to filter Data Matrix symbols, and the output will occur in the order the symbols are decoded.
Output Filter Configuration Rule # 3 All qualified symbols will be sorted and output in the matching filter position. If a symbol matches filter 3, it will be output as the third symbol. If a filter does not have a matching qualified symbol, a No Read message will be output in place of the symbol (assuming the No Read message is enabled). For example, if there is not a symbol that meets filter 3’s requirements, then a No Read message will be output in the third output position.
MS-890 Industrial Automation Scanner User’s Manual
13-9
Page 250
Output Filter Configuration
Filter Number Definition:
This is the filter index number that represents the position of the symbol in the data output at the end of the read cycle. This index number should be entered along with the following filter settings for the predetermined symbol position.
Serial Cmd:
<K744,filter number,symbology,length,wildcard,placeholder,data,decode direction,database index>
Options:
1 to 12
Symbology Definition:
Specifies the symbology type allowed to occupy this location in multisymbol output. Note: To filter or order a symbol, the symbol must meet all the requirements of the selected filter index.
Serial Cmd:
<K744,filter number,symbology,length,wildcard,placeholder,data,decode direction,database index>
Default:
0 (any symbology type)
Options:
0 = Any type 1 = Interleaved 2 of 5 2 = Code 39 3 = Code 128 4 = Codabar 5 = UPC 6 = PDF417 7 = EAN 128 8 = Code 93 9 = Pharmacode
13-10
MS-890 Industrial Automation Scanner User’s Manual