Using escape sequences with ansi bar codes – Visara 1330-X02 User Manual

Page 167

Advertising
background image

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>

Advertising