The text of a manual · part 15 of 25
MS-3 Laser Scanner User's Manual, pages 141 to 150
Pages 141 to 150 of 242
The original document is the PDF (7.8 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-3
Page 141
MS-3 Laser E.book Page 3 Monday, August 30, 2004 11:09 AM
Chapter 7 Matchcode
Overview of Matchcode Usage:
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.
Definition:
With Matchcode you can store master symbol data in the scanner’s memory, compare this data against the scanned symbols, 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. See “Master Database” on page 11-8.
Using Master Symbols 1. Set Triggering Mode to External or Serial (see “Trigger Mode” on page 46). 2. Chose the method of symbol comparison that fits your application (see “Matchcode Type” on page 7-4). 3. Define the output you want with your matchcode setup: a) Symbol output (“Symbol Data Output Status” on page 6-4). b) Discrete output (see Chapter 6, “I/O Parameters”). 4. Select the number of master symbols you want to create, if more than one (see “Master Symbol Database Size” on page 11-8). 5. Enter master symbol data in one of the following ways: a) Use ESP to type in master symbol data directly into the Utilities menu. b) Send a serial command with symbol data in the form of <M master symbol#,data> (or <) data)> for single master symbol only). c) Send a <Gmaster symbol number> command to scan next symbol in as the master symbol. d) Enable the New Master Pin command and activate a discrete input to store the next symbol scanned as the master symbol (see “New Master Pin” on page 7-9). Other Master Symbol Serial Commands See also “Master Symbol Database Size” on page 11-8 for more information details on entering, requesting, and deleting master symbols.
MS-3 Laser Scanner User’s Manual
7-3
Page 142
MS-3 Laser E.book Page 4 Monday, August 30, 2004 11:09 AM
Matchcode Type
Matchcode Type Note: When Matchcode is set to Enabled, Wild Card or Sequential, Number of Symbols will default back to 1 (if set to any number greater than 1). Definition:
Allows the user to choose the way that master symbols will be compared with subsequently scanned symbols. Note: First set Triggering Mode to External or Serial.
Serial Cmd:
<K223,matchcode type,sequential matching,match start position, match length,wild card character,sequence on noread,sequence on mismatch>
Default:
Disabled
Options:
0 = Disabled 2 = Wild Card
Disabled:
Has no effect on operations.
Enabled:
Instructs the scanner to compare symbols or portions of symbols with the master symbol.
Sequential Matching:
Instructs the scanner 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, Number of Symbols will default back to 1 (if set to any number greater than 1).
Wild Card:
Allows the user to enter user defined wild card characters in the master symbol.
1 = Enabled 3 = Sequential
Sequential Matching Usage:
Useful in tracking product serial numbers that increment or decrement sequentially.
Definition:
With Sequential enabled, Sequential Matching determines if a count is in ascending (incremental) or descending (decremental) order.
Serial Cmd:
<K223, matchcode type,sequential matching,match start position, match length,wild card character,sequence on noread,sequence on mismatch>
Default:
Increment
Options:
0 = Increment
7-4
1 = Decrement
MS-3 Laser Scanner User’s Manual
Page 143
MS-3 Laser E.book Page 5 Monday, August 30, 2004 11:09 AM
Chapter 7 Matchcode
Match Start Position Usage:
Match Start Position is useful in defining specific portions of a symbol for comparisons. For example, if a symbol contains a part number, manufacturing date, and lot code info but the user is only interested in the part number information, Match Start Position can be set to only sort on the part number and ignore the rest of the 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 noread,sequence on mismatch>
Default:
0
Options:
0 to 64
Note: Match Start Position must be set to 1 or greater to enable this feature. A 0 setting will disable this feature.
MS-3 Laser Scanner User’s Manual
7-5
Page 144
MS-3 Laser E.book Page 6 Monday, August 30, 2004 11:09 AM
Matchcode Type
Match Length Usage:
For example, if Match Length is set to 6 in a 10 character symbol, and Match Start Position is set for 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 noread,sequence on mismatch>
Default:
1
Options:
1 to 64
When more than one master symbol is enabled, the maximum number for each additional symbol diminishes as shown here: # of Symbols: Maximum characters:
1
2
3
4
5
6
7
8
9
10
64
64
42
32
25
21
18
16
14
12
Wild Card Character Usage:
For example, with Wild Card Character defined as the default asterisk, defining CR*34 as the master symbol will result in matches for CR134, 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.
Definition:
Wild Card Character allows a user to define a wild card character as part of the master symbol.
Serial Cmd:
<K223 ,matchcode type,sequential matching,match start position, match length,wild card character,sequence on noread,sequence on mismatch>
Default:
* (asterisk)
Options:
Any valid ASCII character
7-6
MS-3 Laser Scanner User’s Manual
Page 145
MS-3 Laser E.book Page 7 Monday, August 30, 2004 11:09 AM
Chapter 7 Matchcode
Sequence On Noread Usage:
Sequence On Noread is useful when the scanner needs to stay in sequence even if no decode occurs.
Definition:
When Sequence On Noread is Enabled and Matchcode is set to Sequential, the scanner sequences the master symbol on every match or noread. When disabled, it does not sequence on a noread.
Serial Cmd:
<K223,matchcode type,sequential matching,match start position, match length,wild card character,sequence on noread,sequence on mismatch>
Default:
Enabled
Options:
0 = Disabled
1 = Enabled
As an example of Sequence on Noread Enabled, consider the following series of decodes: Master symbol
Decoded symbol
Master symbol after decode
001 002 003 004 005 006 007
001 002 noread 004 noread noread 007
002 003 004 (sequenced on noread) 005 006 (sequenced on noread) 007 (sequenced on noread) 008
As an example of Sequence on Noread Disabled, consider the following series of decodes: Master symbol
Decoded symbol
Master symbol after decode
001 002 003 003 004 004 004
001 002 noread 003 noread noread 004
002 003 003 (not sequenced) 004 004 (not sequenced) 004 (not sequenced) 005
MS-3 Laser Scanner User’s Manual
7-7
Page 146
MS-3 Laser E.book Page 8 Monday, August 30, 2004 11:09 AM
Matchcode Type
Sequence On Mismatch Note: Matchcode must be set to Sequential for this command to function. Usage:
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.
Definition:
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.
Serial Cmd:
<K223,matchcode type,sequential matching,match start position, match length,wild card character,sequence on noread,sequence on mismatch>
Default:
Disabled
Options:
0 = Disabled
1 = Enabled
The scanner will sequence the master to one more/less than the decoded symbol. As an example of Sequence On Mismatch Enabled, consider the following decodes: Master symbol
Decoded symbol
001 002 003 004 005 006 007
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:
7-8
Master symbol
Decoded symbol
001 002 003 004 005 006 006
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 because of previous mismatch) 007
MS-3 Laser Scanner User’s Manual
Page 147
MS-3 Laser E.book Page 9 Monday, August 30, 2004 11:09 AM
Chapter 7 Matchcode
New Master Pin Usage:
Some applications require the line worker to change the master symbol. This can be done by installing a switch at the location of the scanner. It is very common to have a keyed switch so that accidental switching does not occur.
Definition:
After New Master Pin is enabled, a pulse can be received on the new master pin which will cause the scanner to record the next decoded symbol(s) as the new master symbol(s). It is important to note that the enabling New Master Pin does not in itself cause a master symbol to be recorded. The master pin must then be activated momentarily (for a minimum of 10 ms) before a master symbol can be scanned into memory. (See “Electrical Specifications” on page A-4.)
Serial Cmd:
<K225,status>
Default:
Disabled
Options:
0 = Disabled
1 = Enabled
After New Master Pin has been enabled and the pin activated, decodes will be saved in the master database beginning with master symbol #1. If the scanner is configured for a multisymbol read cycle (Number of Symbols is greater than 1), the remaining decodes will be saved in each consecutive master symbol location. For example, if Number of Symbols is set to 3 and New Master Pin is then activated, at the end of the next read cycle, the decoded symbols will be saved as master symbols 1, 2, and 3.
MS-3 Laser Scanner User’s Manual
7-9
Page 148
MS-3 Laser E.book Page 10 Monday, August 30, 2004 11:09 AM
Master Symbol Database
Master Symbol Database See “Master Database” on page 11-8 for more detailed information. Usage:
Useful where more than one master symbol is required, as in a Multisymbol setup, for matching and other matchcode operations.
Definition:
Allows you to define up to 10 master symbols as the master symbol database, which can be entered by keyboard, scanned in, displayed, or deleted by serial or ESP commands.
Request Master Symbol Data Definition:
Returns master symbol data for any enabled master symbols from 1 to 10. For example, to request master symbol #5, enter <K231?,5>. The scanner transmits the following format: <K231,5,data>. If no master symbol data available, the output will be: <M5/?>.
Serial Cmd:
Send <K231?,master symbol number> to request the current master symbol for a specific master symbol. Returns all master symbols if no number is added before the question mark.
Options:
1 to 10
Request All Master Symbols Data Definition:
Returns master symbol data for all enabled master symbols from 1 to 10.
Serial Cmd:
Send <K231?> to request all current master symbols.
Delete Master Symbol Data Definition:
Delete Master Symbol Data allows you to delete an enabled master symbol.
Serial Cmd:
Send <K231,master symbol number,> to delete the master symbol.
Options:
1 to 10
7-10
MS-3 Laser Scanner User’s Manual
Page 149
MS-3 Laser E.book Page 1 Monday, August 30, 2004 11:09 AM
Chapter
Diagnostics
88 Chapter Contents Diagnostics by ESP Menu .......................................................................... 8-2 Diagnostics by Serial Command ................................................................. 8-2 Diagnostic Messages Overview .................................................................. 8-3 Counts......................................................................................................... 8-4 Hours Since Last Reset .............................................................................. 8-6 Laser High................................................................................................... 8-7 Laser Low ................................................................................................... 8-8 Service Message ........................................................................................ 8-9
This section describes warning and operating messages and their settings. Important: Since Warning Messages and NOVRAM Messages are not enabled by default, these messages will not be displayed. However, if you suspect that erroneous defaults are occurring, enable Warning Messages and NOVRAM Messages by sending <K”400,1,,,1>. Note: When assigning characters in user-defined fields, the characters NULL <> and , can only be entered through embedded menus, not through ESP or serial commands. Note: You can learn the current setting of any parameter by inserting a question mark after the number, as in <K100?>. To see all “K” commands, send <K?>.
MS-3 Laser Scanner User’s Manual
8-1
Page 150
MS-3 Laser E.book Page 2 Monday, August 30, 2004 11:09 AM
Diagnostics by ESP Menu
Diagnostics by ESP Menu
Click this button to bring up the Diagnostic menu.
To change a setting, double-click the setting and use your cursor to scroll through the options.
To open nested options, single-click the +.
Diagnostics by Serial Command Command Title Counts, Power-on/Resets Hours Since Last Reset Laser High/Low Service Message
8-2
Format <K406, power-on,resets,power-on saves,custom default saves> <K407?> (read only - returns: hours,minutes) <K411, laser high status,laser high message,laser low status,laser low message> <K409,status,service message,threshold,resolution>
MS-3 Laser Scanner User’s Manual