User guide
SD/CD Series Card Printers OpenCard Data Format Guide 27
Defining Magnetic Stripe Tracks
The MAGSTRIPE operation defines the magnetic stripe tracks to personalize on the front and / or
the back side of the card. There are two methods of encoding magnetic stripe tracks:
• Extract text data directly from the data stream and encoding the magnetic stripe using the
“LINEn” text ID
• Extract magnetic stripe text data already identified with magnetic stripe commands and
encoding using the “ISOn” text ID
Encoding Text Data to a Magetic Stripe Track Using the “LINEn” Text ID
To populate a magnetic stripe track with text data not originally identified as magnetic stripe
data in the data stream, simply use the “LINEn” text ID in conjunction with the
datacard:trackType definition, as shown below.
Encoding Magnetic Stripe Text on a Magnetic Stripe Track Using the “ISOn” Text ID
To populate a magnetic stripe track with prepared magnetic stripe date, OpenCard data stream
uses the following magnetic stripe data identifiers:
When the OpenCard data stream has text data prepared for magnetic stripe in this way, identify
which information encodes to each track using the “ISOn” text ID using the following rules:
• The text ID must be “ISO1” for track 1, “ISO2” for track 2, or “ISO3” track 3.
• The datacard:trackType value must match the ID name.
MAGSTRIPE Example 1
<g id="MAGSTRIPE">
<g><text id="LINE2" datacard:trackType="ISO1"/></g>
trackType Start Sentinel End Sentinel
ISO1 (IATA) % (25 hex) ? (3F hex)
ISO2 (ABA) ; (3B hex) ? (3F hex)
ISO3 (TTS) _ (5F hex) OR _; (5F3B hex) ? (3F hex)