Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 11 of 16

A760 Two-Color Thermal/Impact Hybrid Printer User Guide: Programming Supplement, pages 99 to 108

Pages 99 to 108 of 154

The original document is the PDF (2.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the TPG A760

Page 99

Revision F January 2010

A760 User Guide: Programming Supplement

99

Chapter 4: Programming commands

Bar codes These commands format and print bar codes and are described in order of their hexadecimal codes.

Note: A756 firmware can be set for module widths in bar codes ranging from 2 dots to 4 dots per module (DPM) for the narrow modules. The default is 3 DPM. A760 firmware range from 1 dot per module (DPM) printed on the receipt, The default is 2 DPM.

Select printing position of HRI characters ASCII Hexadecimal Decimal

GS H n 1D 48 n 29 72 n

Value of n:

Printing position

Default:

0 = Not printed 1 = Above the bar code 2 = Below the bar code 3 = Both above and below the bar code

Prints HRI (human readable interface) characters above or below the bar code.

0 (Not printed)

Select pitch of HRI characters ASCII Hexadecimal Decimal

GS f n 1D 66 n 29 102 n

Value of n:

0 = Standard pitch at 15.2 CPI 1 = Compressed pitch at 19 CPI

Selects standard and compressed font for printing bar code characters.

Default:

0 (Not printed)

When slip is selected as the interface, HRI is always compressed.

Select bar code height ASCII Hexadecimal Decimal

GS h n 1D 68 n 29 104 n

Value of n:

Number of dots

Range of n:

1–255

Default:

162

Sets the bar code height to (n/154”) for receipt and (n/172”) for slip.

Page 100

100

Revision F January 2010

A760 User Guide: Programming Supplement Chapter 4: Programming commands

Print bar code ASCII Hexadecimal Decimal

First Variation

Second Variation

GS k m d1…dk NUL 1D 6B m d1…dk 00 29 107 m d1 dk 0

GS k m n d1…dn 1D 6B m n d1…dn 29 107 m n d1…dn

(0 = End of command)

Selects the bar code type and prints a bar code for the ASCII characters entered. If the width of the bar code exceeds one line, the bar code is not printed. There are two variations to this command. The first variation uses a NUL character to terminate the string; the second uses a length byte at the beginning of the string . The check digit is calculated for UPC and JAN (EAN) codes if it is not sent from the host computer.

Rotated barcodes set with small modules (select bar code width command 1D 77 n , with n = 1 or 2) and PDF 417 barcodes in any orientation are printed at low speed, for better readability. Exceptions

The command is only valid at the beginning of a line. Illegal data cancels the command.

Six-character zero-suppressed UPC-E tags are generated from full 11 or 12 characters sent from the host computer according to standard UPC-E rules. Start/stop characters are added for code 39 if they are not included.

Values:

First variation: String terminated with NUL character. Length k is not specifiede in command string; it depends on the bar code being printed.

m

Bar code d1...dk length

0

UPC-A

48–57 (ASCII numerals)

Fixed length: 11, 12

1

UPC-E

48–57

Fixed length: 11, 12

2

JAN13 (EAN)

48–57

Fixed length: 12, 13

3

JAN8 (EAN)

48–57

Fixed length: 7, 8

4 Code 39

48–57, 65– 90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dk = 42 (start/stop code is supplied by printer if necessary)

Variable length

5

Interleaved 2 of 5

48–57

Variable length (even number)

6

Codabar

65–68, start code 48–57, 36, 43, 45, 46, 47, 58

Variable length

10 PDF 417** 1–255

**This bar code can not be printed on the slip station.

Variable length, maximum 1000 characters

Page 101

Revision F January 2010

A760 User Guide: Programming Supplement

101

Chapter 4: Programming commands

Second variation: length n specified at beginning of string. Except as noted, 0 < n < 256. m

Bar code d1...dn n

65

UPC-A

48–57 (ASCII numerals)

Fixed length: 11, 12

66

UPC-E

48–57

Fixed length: 11, 12

67

JAN13 (EAN)

48–57

Fixed length: 12, 13

68

JAN8 (EAN)

48–57

Fixed length: 7, 8

69 CODE 39

48–57, 65–90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dk = 42 (start/stop code is supplied by printer if necessary)

Variable

70

Interleaved 2 of 5 (ITF)

48–57

Variable (even number)

71

CODABAR (NW-7)

65–68, start code 48–57, 36, 43, 45, 46, 47, 58Variable

72

Code 93

00–127

Variable

73 Code 128

0–105 d1 = 103–105 (must be a start code) Variable d2 = 0–102 (data bytes) (Stop code is provided by the printer)

74 Code 128 auto compress

0–255 00–FF

Variable

75 PDF 417

0–255 00–FF

Variable length

78 Code EAN 128 auto compress 0–255

00–FF

Variable

79

Variable

PDF 417 data length 0–255 specified via integer 00–FF n = nH:nL 1D 6B m nL nH d1...dn

The value of m selects the bar code system as described in the table. The variable d indicates the character code to be encoded into the specified bar code system. If character code d cannot be encoded, the printer prints the bar code data processed so far, and the following data is treated as normal data. Exceptions

Illegal data cancels this command. PDF 417 format cannot be printed on the slip. Bar codes on the slip are always LEFT justified. Code 93 and PDF 417 are only available in A760 native mode.

Page 102

102

A760 User Guide: Programming Supplement

Revision F January 2010

Chapter 4: Programming commands

Set GS1 DataBar (RSS) parameters Setting of parameters for RSS barcode ASCII Hexadecimal Decimal

GS q a b c d e fL fH 1D 71 a b c d e fL fH 29 113 a b c d e fL fH pixels per minimum unit, default 3, minimum 2, maximum 6 (value a applies to parameters b, c, d)

b byte

X undercut, default 0, can be set 0 to a-1 c byte

Y undercut, default 0, can be set 0 to a-1 d byte separator height, default a, can be set a to a*2 a byte e byte segment width, used only by GS1 Expanded and Expanded Stacked, default 22, must be even number 2 to 22 f line height, used only by UCC128, default 25, can be set 1 to 500 word

Note: For GS1 DataBar commands, consult ISO/IEC 24721. For further information, visit www.gs1.org.

Print GS1 DataBar (RSS), data length specified ASCII Hexadecimal Decimal

GS k m nL nH d1... dn 1D 6B m nL nH d1... dn 29 107 m nL nH d1... dn m

Type

61

GS1

62

GS1 Truncated

63

GS1 Stacked

64

GS1 Stacked Omnidirectional

65

GS1 Limited

66

GS1 Expanded and Expanded Stacked

67

UPC-A

68

UPC-E

69

EAN-13

6A

EAN-8

6B

UCC/EAN-128 with CC-A or CC-B

6C

UCC/EAN-128 with CC-C

Note: Data length specified 1 to 2436 via integer nH : nL.

Page 103

Revision F January 2010

A760 User Guide: Programming Supplement Chapter 4: Programming commands

Print GS1 DataBar (RSS ), null terminated ASCII Hexadecimal Decimal

GS k n d1... 00 1D 6B n d1... 00 29 107 n d1... 00 n

Type

51

GS1

52

GS1 Truncated

53

GS1 Stacked

54

GS1 Stacked Omnidirectional

55

GS1 Limited

56

GS1 Expanded and Expanded Stacked

57

UPC-A

58

UPC-E

59

EAN-13

5A

EAN-8

5B

UCC/EAN-128 with CC-A or CC-B

5C

UCC/EAN-128 with CC-C

Note: Null terminated, data length 1 to 2436

103

Page 104

104

Revision F January 2010

A760 User Guide: Programming Supplement Chapter 4: Programming commands

Select PDF 417 parameters ASCII Hexadecimal Decimal

GS p a b c d e f 1D 70 a b c d e f 29 112 a b c d e f

Value and Ranges: Value:

Ranges:

a, b =

Description: The ratio of bar height to symbol length.

a= height limit 1 to 10 b= width limit 1 to 100 c= rows limit 3 to 90

Number of rows in the matrix of code words.

d= columns limit 7 to 30

Number of columns in the matrix of code words.

e= x dimension limit 1 to 7

Width of a single module in dots.

f= y dimension limit 2 to 25

Height of the code word in dots.

Defaults:

a=1 b=2 c = 58 d=7 e=3 f = 10

PDF 417 is a multi-row, continuous, variable length symbology which has high data capacity. Each symbol has between 3 and 90 rows, with each row containing a start pattern, a left row indicator, 1 to 30 data characters, a right row indicator and a stop pattern. The number and length of the rows are selectable, which allows the aspect ratio to be adjusted to particular labeling applications. There are no separator bars between rows.

Each character has four bars and four spaces within 17 modules, and is assigned a value between 0 and 928. For this symbology, it is common to refer to these character values as “code words.” There are three mutually exclusive sets of symbol patterns, or clusters, each having 929 distinct patterns. Because different clusters are used for adjacent rows, it is possible for the decoder to tell if the scanning path is crossing row boundaries without the use of separator bars. continued...

Page 105

Revision F January 2010

A760 User Guide: Programming Supplement

105

Chapter 4: Programming commands

Sample symbol description: Each PDF 417 symbol consists of 3 to 90 stacked rows surrounded on all four sides by a quiet zone. Each row contains: �������������� ������������� ���������� ������������ ������������������ ������������������� ���������� ����������

�����

� ����� � ����� � ����� � ����� � ����� 1 Leading quiet zone

Related Information:

2 Start pattern 3 Left row indicator characters (code words)

The “Set bar code width” command (1D 77 n) affects the x dimension and row height for PDF 417.

4 One to thirty data characters (code words)

n value x dimension row height

5 Right row indicator character (code words)

2

2

7

6 Stop pattern

3

3

10

7 Trailing quiet zone

4

4

13

The number of characters in a row and number of rows can be adjusted to vary the symbol’s overall aspect ratio to best fit an available space.

5

5

17

6

6

20

Each row has a left and right row indicator with a data region between. The left-most character in the top row of the data region is the total number of characters in the data region, excluding error correction characters. Characters within the data region are designed to be read from left to right, starting on the top row, immediately after the lengthdefining character. The maximum characters in the data region are 928.

Select bar code width ASCII Hexadecimal Decimal

GS w n 1D 77 n 29 119 n

Value of n:

2, 3, 4, 5, 6

Formulas

Default:

3 for receipt; 2 for slip n/8 mm (n/203 inch) for receipt. n/5.7 mm (n/144 inch) for slip.

Sets the bar code width to n dots.

Page 106

106

Revision F January 2010

A760 User Guide: Programming Supplement Chapter 4: Programming commands

Page mode Page mode is one of two modes that the A760 printer uses to operate. Standard mode is typical of how most printers operate by printing data as it is received and feeding paper as the various paper feed commands are received. Page mode is different in that it processes or prepares the data as a “page” in memory before it prints it. Think of this as a virtual page. The page can be any area within certain parameters that you define. Once the printer receives the (0 × 0C) command, it prints the page and returns the printer to standard mode. The select page mode command (1B 4C) puts the printer into page mode. Any commands that are received are interpreted as page mode commands. Several commands react differently when in standard mode and page mode. The descriptions of these individual commands in this chapter indicate the differences in how they operate in the two modes. Limitations

Page mode is only implemented on the receipt station in A758 emulation and A760 native modes.

Print and return to standard mode ASCII Hexadecimal Decimal

FF 0C 12

The processed data is printed and the printer returns to standard mode. The developed data is deleted after being printed. This command has the same code as the print and eject slip command, which is executed when the printer is not in page mode.

Exceptions

This command is enabled only in page mode.

Cancel print data in page mode ASCII Hexadecimal Decimal

CAN 18 24

Deletes all the data to be printed in the “page” area. Any data from the previously selected “page” area that is also part of the current data to be printed is deleted.

Exceptions

This command is only used in page mode.

This command has the same code as the open form command, which is performed when the printer is not in page mode.

Print data in page mode ASCII Hexadecimal Decimal

ESC FF 1B 0C 27 12

Collectively prints all buffered data in the printing area.

Exceptions

After printing, the printer does not clear the buffered data and sets values for select print direction in page mode (1B 54 n) and set print area in page mode (1B 57 …), and sets the position for buffering character data.

This command is enabled only in page mode.

Page 107

Revision F January 2010

A760 User Guide: Programming Supplement

107

Chapter 4: Programming commands

Select page mode ASCII Hexadecimal Decimal

ESC L 1B 4C 27 76

Switches from standard mode to page mode. After printing has been completed either by the print and return to standard mode (FF) command or select standard mode (1B 53) the printer returns to standard mode. The developed data is deleted after being printed. For more information see page mode in this document.

The table below shows the difference in memory allocation in page mode when using monochrome and twocolor paper. Two-color paper mode requires extra memory in order to differentiate between non-black and black.

This command sets the position where data is buffered to the position specified by select print direction in page mode (1B 54) within the printing area defined by set print area in page mode (1B 57).

Monochrome 40.5 paper

72 wide × 72 high

Two-color 81.0 paper

72 wide × 72 high (dots) 72 wide × 72 high (energy)

This command switches the settings for the following commands (which values can be set independently in standard mode and page mode) to those for page mode. • Set right-side character spacing (1B 20) • Select 1/6-inch line spacing (1B 32) • Set line spacing (1B 33) It is possible only to set values for the following commands in page mode. These commands are not executed. • Select or cancel 90 degree clockwise rotation (1B 56) • Set counter-clockwise rotation (1B 12) • Select justification (1B 61) • Select or cancel upside-down printing (1B 7B) • Set left margin (1D 4C) • Set print area width (1D 57)

Paper type

Total memory allocated (kBytes)

Area of construction (mm)

Exceptions

The command is enabled only when input at the beginning of a line. The command has no effect if page mode has previously been selected.

Page 108

108

Revision F January 2010

A760 User Guide: Programming Supplement Chapter 4: Programming commands

Select standard mode ASCII Hexadecimal Decimal

ESC S 1B 53 27 83

Switches from page mode to standard mode. In switching from page mode to standard mode, data buffered in page mode are cleared, the printing area set by set print area in page mode (1B 57) is initialized and the print position is set to the beginning of the line. This command switches the settings for the following commands (the values for these commands can be set independently in standard mode and page mode) to those for standard mode:

• Set right-side character spacing (1B 20) • Select 1/6 inch line spacing (1B 32) • Set line spacing (1B 33) Standard mode is automatically selected when power is turned on, the printer is reset, or the initialize printer command (1B 40) is used. Exceptions

This command is effective only in page mode.

Select print direction in page mode ASCII Hexadecimal Decimal

ESC T n 1B 54 n 27 84 n

Value of n:

Start position

Selects the printing direction and start position in page mode. See the illustration on previous page.

0 = Upper left corner proceeding across page to the right (A) 1 = Lower left corner proceeding up the page (B) 2 = Lower right corner proceeding across page to the left (upside down) (C) 3 = Upper right corner proceeding down page (D)

Exceptions

The command is valid only in page mode.

A

D

B

0

C

Default:

The command can be sent multiple times so that several different print areas, aligned in different print directions, can be developed in the printer’s page buffer before being printed using the print page mode commands (0C or 1B 0C).

The command is ignored if the value of n is out of the specified range.