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>
Содержание 1330-X02
Страница 1: ...1330 X02 Printer Operator s Manual P N 701333 004 ...
Страница 28: ...2 14 701333 004 Preparing to Operate the 1330 D C E F B A Figure 2 12 Print Positioning Continuous Forms ...
Страница 29: ...701333 004 2 15 Preparing to Operate the 1330 D C E F B A Figure 2 13 Print Positioning Single Part Forms ...
Страница 152: ...701333 004 B 25 Programming Notes Figure B 6 OCR A Character Set ...
Страница 153: ...B 26 701333 004 Programming Notes Figure B 7 OCR B Character Set ...
Страница 171: ...C 2 701333 004 Character Sets PC CHARACTER SET 2 Available with Proprinter emulation ...
Страница 172: ...701333 004 C 3 Character Sets PC ALL CHARACTER SET Available with Proprinter emulation ...
Страница 173: ...C 4 701333 004 Character Sets PC MULTILINGUAL CHARACTER SET Available with Proprinter emulation ...