CognitiveTPG A760 User Manual

Page 116

Advertising
background image

A760 User Guide: Programming Supplement
Chapter 4: Programming commands

116

Revision F January 2010

Sample parsing formats

The following strings show various sample formats that you can use assuming they meet your
parsing format needs. Included with the sample format is a description of the data that is returned
to the application.

ESC w p 18 A <CR>

• Maximum 18 characters in the account number
• Final carriage return
ESC w p 18 X A <CR>

• Maximum 18 characters in the account number with

spaces and dashes removed

• Final Carriage Return
ESC w p 18 x A <CR>

• Maximum 18 characters in the account number with

spaces and dashes replaced with 0

• Final carriage return
ESC w p 018 A <CR>

• Always 18 characters in the account number (high

order zero-filled if necessary)

• Final carriage return
ESC w p 018 X A <CR>

• Always 18 characters in the account number with

spaces and dashes removed

• Final carriage return
ESC w p 018 x A <CR>

• Always 18 characters in the account number with

spaces and dashes replaced with 0

• Final Carriage Return
ESC w p T 18 X A 04C <CR>

All characters in the transit number
All characters in the account number (up to 18) with

spaces and dashes removed

Always four characters in the check number (zero-filled

if check number is only three characters long)

Final carriage return

ESC w p K9 X T 18 X A 04C <CR>

U.S. check: all nine characters in the transit number

(because there are no dashes)

Canadian check: dash in transit number removed; “9”

inserted at beginning, resulting in a fully numeric nine
character transit number

All characters in the account number (up to 18) with

spaces and dashes removed

Always four characters in the check number (zero-filled

if check number is only three characters long)

Final carriage return
ESC w p T ‘/ A ‘/ C ‘/ S <CR>

All characters in the transit number
Field separator: /
All characters in the account number
Field separator: /
All characters in the check number
Field separator: /
Two-digit status
Final carriage return

Notes:

All parameters are ASCII characters, i.e. greater than
or equal to 0x20, with the exception of a non-ASCII
character enclosed in single quotes as a field separator.
This applies both to parameter specifications sent from
application to printer, and to MICR data returned from
printer to application.
Parameters are positional; their order in the parameter
string is the order in which the parsed MICR data will be
returned. Unrecognized parameters will be ignored, and
processing of the parsing parameters will stop. Any data
remaining after the unrecognized parameter will be treated
as normal input data.
If parameters are not defined (for example, 1B 77 50
<CR> or 1B 77 70 <CR>) parsing is not selected. One
status byte followed by all decoded MICR characters
will be returned. The chart on the next page is the default
parsing format if no other is selected:

Advertising