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 24 of 37

MS-4 Imager User Manual, pages 231 to 240

Pages 231 to 240 of 366

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

Page 231

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.

MS-4 Imager User Manual

9-3

Page 232

Matchcode Type

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:

9-4

<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.

MS-4 Imager User Manual

Page 233

Matchcode

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 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. Usage:

Match Length 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. Definition: 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. Serial Cmd: <K223,matchcode type,sequential matching,match start position,match length,wild card character,sequence on No Read,sequence on mismatch> Default: 1 Options: 1 to 3000 9-5 MS-4 Imager User Manual Usage:

Page 234

Matchcode Type

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 the wild card at the end of the master symbol, as in CR*, will result in matches for variable symbol lengths such as CR1, CR23, CR358, etc. 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> See ASCII Character Entry Modifier on page 3-32 for a detailed explanation of how to enter ASCII characters as hex values.

9-6

MS-4 Imager User Manual

Page 235

Matchcode

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

MS-4 Imager User Manual

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

9-7

Page 236

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

9-8

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

MS-4 Imager User Manual

Page 237

Matchcode

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> See ASCII Character Entry Modifier on page 3-32 for a detailed explanation of how to enter ASCII characters as hex values.

MS-4 Imager User Manual

9-9

Page 238

Mismatch Replace

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> See ASCII Character Entry Modifier on page 3-32 for a detailed explanation of how to enter ASCII characters as hex values.

9-10

MS-4 Imager User Manual

Page 239

Matchcode

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:

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>

MS-4 Imager User Manual

9-11

Page 240

9-12

MS-4 Imager User Manual