User manual
CLEARjet GmbH CX-one
2.3.7 Commands for magnet encoding
Note: See character tables Appendix 4.3
Read magnetcode ISO <ESC>$Mr1[n]
Description
Read magnetcode - ISO 7816.
[n] = 1 select ISO Track 1
[n] = 2 select ISO Track 2
[n] = 3 select ISO Track 3
Note: For this command is a special hardware necessary!
In case of read error, no retry is done. For an unwritten
magnetcard or a card without a magstripe the printer
responses 999, for other read errors the printer responses
000.
ASCII – Code
<ESC>$Mr1[n]
HEX – Code
1B 24 4D 72 31 [n]
Response from Printer
[nnn]{Read-Data}
[nnn]... Number of read databytes
Example
<ESC>$Mr13
read ISO Track 3
Response: 0100123456789
010..... 10 bytes has been read
0123456789... read data
Read magnetcode JIS I <ESC>$Mr2[n]
Description
Read magnetcode – JIS I Standard.
[n] = 1 select JIS I Track 1
[n] = 2 select JIS I Track 2
[n] = 3 select JIS I Track 3
Note: For this command is a special hardware necessary!
In case of read error, no retry is done. For an unwritten
magnetcard or a card without a magstripe the printer
responses 999, for other read errors the printer responses
000.
ASCII – Code
<ESC>$Mr2[n]
HEX – Code
1B 24 4D 72 32 [n]
Response from Printer
[nnn]{Read-Data}
[nnn]... number of read-databytes
Example
<ESC>$Mr23
read JIS I Track 3
Response: 0100123456789
010..... 10 bytes has been read
0123456789... read data
Programmers Manual Page 44 / 53