Additional commands (Printer) Controlling the MSR / MICR functions
T5023/5023+ - Programming Guide 219
Example sequence for an MICR reader
Status: NO_PAPER.
1 Switch MSR to magnetic ink character recognition (see MSR parameter)
without repeating the read process and with 90mm = 638/180 inches (smal-
ler than default value) max. admissible cheque width (Parameter =
0;0;10;638;0):
1B 5B 3B 3b 31 30 3B 36 33 38 3B 21 72
2. Start magnetic ink character recognition:
1B 5B 22 72
– Green light is flashing, LCD display: LOAD PAPER.
– Insert document (cheque with magnetic ink).
– The document is drawn in; the width is measured.
– The document width is checked before the read process is started.
3. Response from the printer
– OK with data. (The document is 90 mm wide, or less.):
The document is drawn in further for reading the magnetic ink charac-
ters, and guided across the magnetizing and read head.
The read data (d1 ... dn) is packed as for the MSR acknowledgement,
and sent to the application:
1B 5B 31 3B 3B 3B 22 72 02 d1 d2 d3 ... dn 03
– OK without data:
If no characters are recognized, e.g. when the cheque is incorrectly in-
serted, the read logic issues a blank character between the start and the
end character:
1B 5B 31 3B 3B 3B 22 72 02 20 03
– Ok with data:
All characters read are placed between the start character and the end
character, and are sent to the application.
Characters which were not recognized (rejects) are transferred as "?" (=
3F hex.):