Gs k n [ d ] k nul – CITIZEN PPU-231 User Manual

Page 81

Advertising
background image

PPU-231 User’s Manual

68

CITIZEN

GS k n [ d ] k NUL

[Function]

Printing the Bar Code

[Code]

<1D>H<6B>H<n> [ < d> ] k <00>H

[Range]

{0

≤ n ≤ 7} Data are described in Hex code.

[Outline]

Specifying a type of bar code and printing bar codes.

• The beginning of line is considered as the next printing start position.
• Depending on the value of n, the following bar code can be selected.
d indicates a character code to be printed and k indicates the number of character to be

printed.

n (Hex)

Bar Code System

Maximum Columns

0 UPC-A

---

1 UPC-E

---

2 JAN13

(EAN)

---

3

JAN 8 (EAN)

---

4 CODE

39

19

5 ITF

34

6 CODABAR

(NW-7)

25

7 CODE

128

23

[Caution]

When data being held in the print buffer, this command is ignored.

• Regardless of the specified feed pitch, this command feeds the paper to be required

to print a bar code.

• If the character code d cannot be printed in the respective bar code system, the bar

code so far will be printed, processing the subsequent data as normal data.

• When a bar code whose number of characters to be printed is fixed has been selected,

the number of characters k have to be always made equal to the number of

characters to be printed. (The bar code is not printed when not matching.)

• When the horizontal direction exceeds one line length, the excess part is not printed.

[Default]

• The initial value is not specified.

[Description of Bar Codes]

<For print examples, see Page 70.>

UPC-A

This bar code, consisting of numerals only, has a fixed length of 12 column; a 11-columns

number entered from the host or application software plus a check column(12th column)

automatically calculated inside the printer. If the 12th-column numeral is sent from the host,

the entire bar code will be printed as it is.

UPC-E

This bar code, consisting of numerals only, has a fixed length of 8 column; the first number

system character is "0" stationary. A 12-column numeral entered from the host or

application software is compressed to 8 columns with a check column and printed. The

Advertising