Cognitive Solutions A776 All in One Printer User Manual


 
Chapter 5: Programming commands 117
A776-PG00001 C 12/09 A776 (B780) Programming Guide
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-lled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-lled 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-lled if check number is only three characters long)
• Final carriage return
Continued . . .