Reading a msr-h track, Writing a msr-h track – Dascom T5040 Programmers Application Manual User Manual
Page 5
5
Reading a MSR-H track
Data Structure ASCII
ESC [ " r
hex.
1B 5B 22 72
dec.
27 91 34 114
Function
The MSR track is read using this command. The desired options are pre-set, if
necessary, via the command ’Parameter setting for MSR-H’ (CSI ... ! r: number of
reading attempts, recording mode, position of the magnetic stripe, etc.)
(valid only if MSR-H is installed):
n1 = number of required reading attempts
n2 = reading threshold (always = 2)
n3 = horizontal reading block number
n4 = reading error (0 = without error; > 0 = error)
STX (02h) = start of the read data area
Read data = in the range of 30h-3Fh (ASCII)
ETX (03h) = end of the read data area
Writing a MSR-H track
Data Structure ASCII
ESC [ # r STX data ETX
hex.
1B 5B 23 72 02 data 03
dec.
27 91 35 114 2 data 3
Function
This command writes data to the magnetic stripe (valid only if MSR-H is installed,
following the parameter setting for MSR H):
STX (02h) = start of the read data area
Read data = in the range of 30h–3Fh (ASCII)
ETX (03h) = end of the read data area
The printer will return the below response as Acknowledge to the PC:
ESC [ n1 ; n2 # r
n1 = number of required writing attempts
n2 = error in the read after write check (0 = no error, 1 = error)