User manual
CLEARjet GmbH CX-one
Read magnetcode JIS II <ESC>$Mr31
Description
Read magnetcode – JIS II Standard.
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>$Mr31
HEX – Code
1B 24 4D 72 33 31
Response from Printer
[nnn]{Read-Data}
[nnn]... number of read databytes
Example
<ESC>$Mr31
read JIS II
Response: 0100123456789
010..... 10 bytes has been read
0123456789... read data
Write magnetcode ISO <ESC>$Mw1[n][mmm]{ DATA}
Description
Write magnetcode - ISO 7816.
[n] = 1 select ISO Track 1 (max. 79 alphanumeric char
incl. 3 control characters)
[n] = 2 select ISO Track 2 (max. 40 numeric char
incl. 3 control characters)
[n] = 3 select ISO Track 3 (max. 107 numeric char
incl. 3 control characters)
[mmm]... number of write databytes
Note: For this command is a special hardware necessary!
After the writecycle, the printer returns an acknowledge.
No verification of written data is done. See appendix for
char.table.
ASCII – Code
<ESC>$Mw1[n][mmm]{DATA}
HEX – Code
1B 24 4D 77 31 [n][mmm]{DATA}
Example
<ESC>$Mw130100123456789
Write 10 byte data (0123456789) to ISO Track 3
Response: + Data written
Programmers Manual Page 45 / 53