The text of a manual · part 23 of 39
MINI Hawk Xi High Performance Imager User Manual, pages 221 to 230
Pages 221 to 230 of 388
The original document is the PDF (6.2 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 Mini Hawk Xi
Page 221
Matchcode
Matchcode Serial Commands Matchcode Type Number of Master Symbols New Master Pin Enter Master Symbol Data Request Master Symbol Data Delete Master Symbol Data Match Replace Mismatch Replace
<K223,matchcode type,sequential matching,match start position,match length,wild card character,sequence on No Read,sequence on mismatch> <K224,number of master symbols> <K225,status> <K231,master symbol number,master symbol data> <K231?,>[for all] or <K231?,master symbol number> <K231,master symbol number,> <K735,status,match replacement string> <K736,status,mismatch replacement string>
MINI Hawk Xi High Performance Imager User Manual
9-3
Page 222
Overview of Matchcode
Overview of Matchcode Definition:
Usage:
Matchcode allows the user to store master symbol data in the imager’s memory, compare that data against other symbol data, and define how symbol data and/or discrete signal output will be directed. A master symbol database can be set up for up to 10 master symbols. Note: Matchcode will function with multiple symbols; however, if Matchcode Type is set to Sequential or if Triggering Mode is set to Continuous Read 1 Output, the imager will behave as if Number of Symbols were set to 1, regardless of the user-defined configuration. Matchcode is used in applications to sort, route, or verify data based on matching the specific symbol in a variety of ways as defined in this section. For example, a manufacturer might sort a product based on dates that are embedded in the symbol.
Steps for Entering and Using Master Symbols 1. Set Triggering Mode to External or Serial. 2. Choose the method of symbol comparison that fits your application. 3. Define the output you want to achieve with your matchcode setup: a. Symbol data output b. Discrete output 4. Select the number of master symbols you want to create. 5. Decide which of 4 ways you want to enter your master symbol(s): a. Use ESP to type master symbol data directly. b. Send a serial command with symbol data in the form of <M231,master symbol#, data>. c. Send a <G> (Read Next Symbol as Master Symbol) command. d. Enable the New Master Pin command and activate the discrete input to store the next symbol read as the master symbol.
9-4
MINI Hawk Xi High Performance Imager User Manual
Page 223
Matchcode
Matchcode Type Definition:
Allows the user to choose the way that master symbols will be compared with subsequently read symbols. Note: First set Triggering Mode to External or Serial.
ESP:
Serial Cmd: Default: Options:
Disabled: Enabled: Wild Card: Sequential:
<K223,matchcode type,sequential matching,match start position, match length,wild card character,sequence on No Read,sequence on mismatch> Disabled 0 = Disabled 1 = Enabled 2 = Wild Card 3 = Sequential Has no effect on operations. Instructs the imager to compare symbols or portions of symbols with the master symbol. Allows the user to enter user-defined wild card characters in the master symbol. Instructs the imager to sequence after each match (numeric only) and compare symbols or portions of symbols for sequential numbers. Note: If Matchcode Type is set to Sequential, the imager will behave as if Number of Symbols were set to 1, regardless of the user-defined configuration.
MINI Hawk Xi High Performance Imager User Manual
9-5
Page 224
Matchcode Type
Sequential Matching Usage: Definition: Serial Cmd: Default: Options:
Useful in tracking product serial numbers that increment or decrement sequentially. With Sequential enabled, Sequential Matching determines if a count is in ascending (incremental) or descending (decremental) order. <K223,matchcode type,sequential matching,match start position,match length,wild card character,sequence on No Read,sequence on mismatch> Increment 0 = Increment 1 = Decrement
Match Start Position Usage:
Match Start Position is useful in defining specific portions of a symbol for comparison. For example, if a symbol contains a part number, manufacturing date, and lot code info, but you are only interested in the part number information, you can set the imager to sort only the part number and ignore the other characters. Definition: Match Start Position determines the portions of symbols that will be matched by defining the first character in the symbol (from left to right) that will be compared with those of the master symbol, when Matchcode Type is set to Enabled or Sequential. Function: For example, if Match Start Position is set to 3, the first 2 characters read in the symbol will be ignored and only the 3rd and subsequent characters to the right will be compared, up to the number of characters specified by Match Length. Serial Cmd: <K223,matchcode type,sequential matching,match start position, match length,wild card character,sequence on No Read,sequence on mismatch> Default: 0 Options: 0 to 3000 Note: Match Start Position must be set to 1 or greater to enable this feature. A 0 setting will disable this feature.
Match Length Usage: Definition: Serial Cmd: Default: Options: 9-6
Example: If Match Length is set to 6 in a 10-character symbol, and Match Start Position is set to 2, only the 2nd through 7th characters (from left to right) will be compared. Defines the length of the character string that will be compared with that of the master symbol when Match Start Position is set to 1 or greater. When Match Start Position is set to 0, no comparison will occur. <K223,matchcode type,sequential matching,match start position,match length,wild card character,sequence on No Read,sequence on mismatch> 1 1 to 3000 MINI Hawk Xi High Performance Imager User Manual
Page 225
Matchcode
Wild Card Character Usage:
Definition: Serial Cmd: Default: Options:
Example: With Wild Card Character defined as the default asterisk, defining CR*34 as the master symbol will result in matches for CR134 and CR234, but not CR2345. Entering URGENT** as your master symbol will result in matches for URGENT, URGENT1, and URGENT12 but not for URGENT123. This means any wild cards appended to the master symbol data will result in matches of symbols in variable lengths up to the master symbol lengths but not over. However, wild cards in the beginning or center of a symbol (e.g., UR**NT) do not allow for variable symbol lengths. Wild Card Character allows a user to define a wild card character as part of the master symbol. <K223,matchcode type,sequential matching,match start position,match length,wild card character,sequence on No Read,sequence on mismatch> * (asterisk) Any ASCII character.
Important: The ASCII characters <, >, and , can only be entered as hex pairs: For <: <K223h,,,,,3C> For >: <K223h,,,,,3E> For , : <K223h,,,,,2C>
MINI Hawk Xi High Performance Imager User Manual
9-7
Page 226
Matchcode Type
Sequence on No Read Usage: Definition: Serial Cmd: Default: Options:
Sequence on No Read is useful when the imager needs to stay in sequence even if no decode occurs. When Sequence on No Read is Enabled and Matchcode is set to Sequential, the imager sequences the master symbol on every match or No Read. When disabled, it does not sequence on a No Read. <K223,matchcode type,sequential matching,match start position,match length,wild card character,sequence on No Read,sequence on mismatch> Enabled 0 = Disabled 1 = Enabled
As an example of Sequence on No Read Enabled, consider the following decodes: Master Symbol 001 002 003 004 005 006 007
Decoded Symbol 001 002 No Read 004 No Read No Read 007
Master Symbol after Decode 002 003 004 (sequenced on No Read) 005 006 (sequenced on No Read) 007 (sequenced on No Read) 008
As an example of Sequence on No Read Disabled, consider the following series of decodes: Master Symbol 001 002 003 003 004 004 004
9-8
Decoded Symbol 001 002 No Read 003 No Read No Read 004
Master Symbol after Decode 002 003 003 (not sequenced) 004 004 (not sequenced) 004 (not sequenced) 005
MINI Hawk Xi High Performance Imager User Manual
Page 227
Matchcode
Sequence on Mismatch Note: Matchcode must be set to Sequential for this command to function. Usage:
Definition:
Serial Cmd: Default: Options:
Enable this parameter if every trigger event should have a decode and more than one consecutive mismatch may occur. Disable this parameter if every trigger event should have a decode but no more than one consecutive mismatch may occur. When set to Enabled, the master symbol sequences on every decode, match, or mismatch. When set to Disabled, the master symbol will not sequence whenever consecutive mismatches occur. <K223,matchcode type,sequential matching,match start position,match length,wild card character,sequence on No Read,sequence on mismatch> Disabled 0 = Disabled 1 = Enabled
The imager will sequence the master to one more or one less than the decoded symbol. As an example of Sequence on Mismatch Enabled, consider the following decodes: Master Symbol 001 002 003 004 005 006 007
Decoded Symbol 001 002 abc 004 def ghi 007
Master Symbol after Decode 002 003 004 (sequenced on mismatch) 005 006 (sequenced on mismatch) 007 (sequenced on mismatch) 008
As an example of Sequence on Mismatch Disabled, consider the following decodes: Master Symbol 001 002 003 004 005 006 006
Decoded Symbol 001 002 abc 004 def ghi 006
Master Symbol after Decode 002 003 004 (sequenced because of previous match) 005 006 (sequenced because of previous match) 006 (not sequenced) 007
MINI Hawk Xi High Performance Imager User Manual
9-9
Page 228
Match Replace
Match Replace Usage: Definition: Serial Cmd: Default: Options:
Provides a convenient shortcut for applications that need to output a predefined text string whenever a symbol matches a master symbol. Outputs a user-defined data string whenever a match occurs and Matchcode is enabled. <K735,status,replacement string> Disabled 0 = Disabled 1 = Enabled
Replacement String Definition: Serial Cmd: Default: Options:
User-defined data string that, when enabled, replaces symbol data whenever a match occurs. <K735,status,replacement string> MATCH An ASCII string up to 64 characters.
Important: The ASCII characters <, >, and , can only be entered as hex pairs: For <: <K735h,,3C> For >: <K735h,,3E> For , : <K735h,,2C>
9-10
MINI Hawk Xi High Performance Imager User Manual
Page 229
Matchcode
Mismatch Replace Usage: Definition: Serial Cmd: Default: Options:
Provides a convenient shortcut for applications that need to output a predefined text string whenever a symbol does not match a master symbol. Outputs a user-defined data string whenever a mismatch occurs and Matchcode is enabled. <K736,status,replacement string> Disabled 0 = Disabled 1 = Enabled
Replacement String Definition: Serial Cmd: Default: Options:
User-defined data string that, when enabled, replaces symbol data whenever a mismatch occurs. <K736,status,replacement string> MISMATCH An ASCII string up to 64 characters.
Important: The ASCII characters <, >, and , can only be entered as hex pairs: For <: <K736h,,3C> For >: <K736h,,3E> For , : <K736h,,2C>
MINI Hawk Xi High Performance Imager User Manual
9-11
Page 230
New Master Pin
New Master Pin Definition:
Serial Cmd: Default: Options:
If Matchcode and New Master Pin are enabled and the new master pin is momentarily connected to ground (must be held low for a minimum of 10 ms) master symbol information will be loaded into the database based on the next read cycle that achieves a Good Read, starting with Index 1. The Master Symbol Database will be loaded with all symbols decoded in the read cycle as long as it does not exceed the Number of Master Symbols parameter. <K225,status> Disabled 0 = Disabled 1 = Enabled
New Master Load Status Definition:
Serial Cmd:
9-12
The new master status responds with the number of the next master position to be loaded, where 0 represents “idle” or “no master to be loaded.” Example: If the user has the Number of Master Symbols set to 1, and then either sends a <G> or toggles an active New Master Pin, the state will be 1, and prior to reading and effectively loading position 1, the response to <NEWM> would be <NEWM/1>. Once a symbol has been read and loaded, the status will be cleared: <NEWM/0>. <NEWM>
MINI Hawk Xi High Performance Imager User Manual