. . . . . . . . . . . . . . . . . . . . . . . . . . . .
..
..
..
..
.
Infinite Peripherals, Inc.
Page 20
www.ipcprint.com
Version 2.00
Command Details (Cont.)
ESC =
Data Input Control
[Code]
[1Bh] + [3Dh] +n
n
may have a value between 0 to 255 but only the LS bit is of importance.
Value 0: The printer is selected
Value 1: The printer is not selected.
When the printer is not selected it does not receive data and the only command which
is executed is ESC=n with the most LS bit 1.
The printer is selected by default.
ESC ?
Mag-stripe card reading
[Code]
[1Bh] +[3Fh] + n
When the command is received, the LED illuminates in red and the printer expects
the card to be swiped through the reader. If after 10 seconds no card has been
swiped, the command is automatically deactivated. The printer returns the contents of
the tracks which have been read ending with 00h. If nothing has been read only 00h
is returned.
n
is a parameter defining the tracks we wish to read. For a three-track reader the
possible values are:
bit 1: if set, reads Track 1
bit 2: if set, reads Track 2
bit 3: if set, reads Track 3
bit 4: if set, a “prefix” byte is added before the every track
Setting bit 4 - the tracks are prefixed with a single byte for better recognition
of where they start. If other 3 bits are set to 1 all the 3 tracks read. For
example ESC ? 7(number 7 representing the first 3 bits on) will read all the 3
tracks but will not divide the tracks with some prefix, you are still able to get
the contents tho. While ESC ? 15(all 4 bits on) will read the 3 tracks and will
return to you the information divided by some prefix byte.
ESC @
Initializing the printer
[Code]
[1Bh] + [40h]
Clears the printing data from the buffer. The printer switches to its default settings
(similar to when switching the printer ON).
The data in the serial buffer is not cleared.