B-40
701333-004
Programming Notes
Using Escape Sequences with ANSI Bar Codes
ANSI bar code processing on the 1330 in ASCII mode is based on ANSI version X3.64-
1979. The ANSI bar code is made up of three programming elements (or commands) as
follows:
1.
Set Attributes – The set attributes command tells the printer what type of bar code to
produce, determines the height of the bar code, and turns the human readable indicator
on or off.
Command Format: <ESC>[<BC Type>;<BC Height>;<HRI>;}
where:
<ESC>
=
HEX <1B> or Decimal <27>
[
=
HEX <5B> or Decimal <91>
<BC Type>
=
0 – 2 of 5 Interleaved
4 – Code 3 of 9
5 – EAN-8
6 – EAN-13
13 – UPC-A
14 – UPC-E (not supported)
;
=
HEX <3B> or Decimal <59>
<BC Height>
=
n/12 inches
;
=
HEX <3B> or Decimal <59>
<HRI>
=
0 Turn Human Readable Code OFF
1 Turn Human Readable Code ON
;
=
HEX <3B> or Decimal <59>
}
=
HEX <7D> or Decimal <125>
2.
Activate Bar Code – The activate bar code command starts the printer processing
the following data as bar code characters.
Command Format: <ESC>[3t
where:
<ESC>
=
HEX <1B> or Decimal <27>
[
=
HEX <5B> or Decimal <91>
3
=
HEX <33> or Decimal <51>
t
HEX <74> or Decimal <116>
3.
Deactivate Bar Code – The deactivate bar code command tells the printer to stop
processing bar code data.
Command Format: <ESC>[0t
where:
<ESC>
=
HEX <1B> or Decimal <27>
[
=
HEX <5B> or Decimal <91>
3
=
HEX <33> or Decimal <51>
t
HEX <74> or Decimal <116>
Summary of Contents for 1330-X02
Page 1: ...1330 X02 Printer Operator s Manual P N 701333 004 ...
Page 152: ...701333 004 B 25 Programming Notes Figure B 6 OCR A Character Set ...
Page 153: ...B 26 701333 004 Programming Notes Figure B 7 OCR B Character Set ...
Page 171: ...C 2 701333 004 Character Sets PC CHARACTER SET 2 Available with Proprinter emulation ...
Page 172: ...701333 004 C 3 Character Sets PC ALL CHARACTER SET Available with Proprinter emulation ...