How do the hardware MICR sorting rules work on the Canon CR-180?

Started by ForumAdmin, March 31, 2008, 11:39:13 AM

Previous topic - Next topic

ForumAdmin

How do the hardware MICR sorting rules work on the Canon CR-180?

Bryan Clark

The following section, found in the CR180options.ini file, pertains to the MICR sorting rules when the SortBy is set to 'scanner':


////////////////////////////////////////////////////////////////////////////////
//  SortBy
//      When set to "Scanner": The application cannot make a pocket decision on each item.
//                            The scanner will select it based on "micr rules" set below in
//                            this file.  Upstream imaging will be available.

////////////////////////////////////////////////////////////////////////////////
//
// MICR sorting rules
//
// Enabled:
//
//  true            - this MICR sort rule is enabled.
//
//  false (default) - this MICR sort rule is not enabled.
//
// Pocket:
//
//  1 (default) - the item will be sent to pocket 1 if the item MICR data
//                satisfies this MICR sort rule criteria.
//
//  2          - the item will be sent to pocket 2 if the item MICR data
//                satisfies this MICR sort rule criteria.
//
// SortMethod:
//
//  None (default) - no sorting.
//
//  Equal          - the item will be sent to the "Pocket" specified by this
//                    rule if the item's MICR data matches the data defined by
//                    this rule.
//
//  Smaller        - the item will be sent to the "Pocket" specified by this
//                    rule if the item's MICR data is less than the data defined
//                    by this rule.
//
//  Larger        - the item will be sent to the "Pocket" specified by this
//                    rule if the item's MICR data is greater than the data
//                    defined by this rule.
//
//  Range          - the item will be sent to the "Pocket" specified by this
//                    rule if the item's MICR data falls within the range
//                    defined by this rule.
//
// UseStartChar:
//
//  true            - the scanner will use "StartCharacter" as the start
//                    delimiter of the item's MICR data that will be used for
//                    comparison.
//
//  false (default) - the scanner will not use "StartCharacter" as the start
//                    delimiter of the item's MICR data that will be used for
//                    comparison.
//                    "Position" should be specified if "UseStartChar" is false.
//
// StartCharacter:
//
//  ':' (0x3A) when translated by Ranger this character is a 'd'
//  ';' (0x3B) when translated by Ranger this character is a 'b'
//  '<' (0x3C) when translated by Ranger this character is a 'c'
//  '=' (0x3D) when translated by Ranger this character is a '-'
//  '>' (0x3E) NOTE - can be used only when [MICR]Font=CMC7
//
// UseEndChar:
//
//  true            - the scanner will use "EndCharacter" as the end
//                    delimiter of the item's MICR data that will be used for
//                    comparison.
//
//  false (default) - the scanner will not use "EndCharacter" as the end
//                    delimiter of the item's MICR data that will be used for
//                    comparison.
//                    "Length" should be specified if "UseEndChar" is false.
//
// EndCharacter:
//
//  The same characters that are valid for "StartCharacter" are valid for
//  "EndCharacter".
//
// Length:
//
//  If "EndCharacter" is set to false, "Length" defines the end of the MICR
//  data that will be used for comparison.
//
// Position:
//
//  The zero (0) indexed starting postion in the actual MICR data that will
//  be used for comparison.
//
// ComparisonString:
//
//  The data to be compared against the actual MICR data using the sort
//  method specified.
//  More than one string may be specified using the '|' character to separate
//  the discrete strings.
//
// Polarity:
//
///////////////////////////////////////////////////////////////////////////////
[MicrSortRule1]
Enabled= true
Pocket= 1
SortMethod= Equal
UseStartChar= true
UseEndChar= true
// If 'UseStartChar = false', the 'position' value will be used as the index of the first MICR
// character to locate a MICR substring used for comparisons against the any substrings
// contained by 'ComparisonString'. The first character in the MICR line is at position 0.
Position= 0
// If 'UseEndChar = false', 'Length' is used to determine how many characters to capture from
//the MICR line for comparison purposes.
Length= 0
// If 'UseEndChar= true'
EndCharacter= :
// If 'smaller' or 'larger' sorting rules are used:
ComparisonString= "[string1]"
// If the 'range' sorting rule is used:
ComparisonString= "[string1]|[string2]"
// If the 'equal' sorting rule is used, up to nine comparison substrings can be specified:
ComparisonString= "[string1]|[string2]|...|[string 9]"
Polarity=
// If 'UseStartChar= true'
StartCharacter= :

According to the sorting method chosen in the above settings, all items containing a substring, which starts after the first ':' and ends before the second ':', that is identical to one of the substrings specified by 'comparisonString' will be sent to pocket 1.

If the MICR read is "<123<4567=89" and if UseStartChar = true, UseEndChar = true, the StartChar ='<', and the EndChar ='=', then the extracted substring is "4567".  This is the string that will be used for comparisons based on the sorting rule specified and the contents of 'ComparisonString'.

If the sorting rule is 'Range', all items containing MICR lines with substrings in the range between string 1 and string 2 of 'ComparisonString' will be send to pocket 1.  If the sorting rule is either 'smaller' or 'larger' and there are several strings in the 'ComparisonString', the first string will be used for comparison.



Ranger® - The universal check scanner interface
Copyright © 2009 Silver Bullet Technology
www.sbullet.com