The text of a manual · part 5 of 16
A760 Two-Color Thermal/Impact Hybrid Printer User Guide: Programming Supplement, pages 39 to 48
Pages 39 to 48 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 39
Revision F January 2010
A760 User Guide: Programming Supplement
39
Chapter 4: Programming commands
Select slip station ASCII Hexadecimal Decimal
FS 1C 28
Selects the slip station for all functions. The receipt station is default setting after the printer is initialized or the clear printer (0x10) command is received.
Select cut mode and cut paper ASCII Hexadecimal
GS V m 1D 56 m
GS V m n 1D 56 m n
Decimal
29 86 m
29 86 m n
Value of m:
Selects the mode as shown in the table.
Value of n:
Determines cutting position only if m is 65 or 66.
Selects a mode for cutting paper and cuts the paper. There are two formats for this command, one requiring one parameter m, the other requiring two parameters m and n. The format is indicated by the parameter m.
m
Feed and cut mode
0, 48
Full cut (no extra feed). Partial cut on the A760.
1, 49
Partial cut (no extra feed).
n times the vertical motion unit is used to determine the cutting position to which the paper is fed.
65
Feeds paper to cutting position + (n times vertical motion unit), and cuts the paper completely.
Exceptions
66
Feeds paper to cutting position + (n times vertical motion unit), and performs a partial cut.
Range of m:
0, 48; 1, 49 65, 66 (when used with n)
Range of n:
0 – 255
Default of m, n: 0
Formulas
If m is out of the specified range, the command is ignored.
Page 40
40
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 4: Programming commands
Set paper type (ColorPOS®) ASCII Hexadecimal Decimal
GS Ox81 m n 1D 81 m n 29 129 m n
Value of m: 0 = monochrome (black) paper
(Kanzaki P-310) 1 = Two-color (red/black) papers
(Kanzaki P-310RB) 4 = Two-color (blue/black) papers
(Kanzaki P-320BB) 5 = Two-color (red/black) papers
(Kanzaki P-320PB)
An incorrect setting of m n for a two-color paper or nonstandard monochrome paper, or failure to set m n when a color paper is inserted will result in poor print quality
Default:
Related information
0
(monochrome paper)
This command will set the optimum parameter values in the thermal print engine control hardware for any defined monochrome or two-color paper chemistry. The m n parameters select paper category and formulation version, respectively. (m n = 0 0) defines the default monochrome (black category, initial version) paper, out-of-box printers will also have factory preset descriptions for customer selected color types; initial release consists of two defined color types: (m n = 1 0) Kanzaki P-310RB red/black paper and (m n = 5 0) Kanzaki P-320RB red/black paper or Kanzaki P-320BB blue/black paper. Other valid values of m n may be present if the download paper type description command has been executed defining additional types. When issuing this command a value of n = OxFF can always be used; that is interpreted as requesting the setting of the highest version defined in the printer of that category. This is a safe way for an application to always select the latest of a manufacturer’s paper category, thus choosing “ latest standard red/black”.
The last set paper type choice is stored in non-volatile memory and is retained after a power loss and across reset commands. The initial value at first boot after firmware load (or reload) is m n =0 0. An incorrect setting of n for a two-color paper or failure to set n when a two-color paper is loaded will result in poor output quality. The following list clarifies how the A760 printer will behave in each emulation mode: Two-color paper and ColorPOS® commands and features are supported only in A760 native mode. • If the paper type is changed using the 0x1D 0x81 command, the font and default lines per inch (LPI) will be setup as in the table below. • If only the font is changed, the default LPI will automatically be changed as in the table below. • If emulation is switched to A758 or A756 emulation(s), the paper type will automatically be changed to monochrome paper, and the font and LPI will be changed as in the table below. • If emulation is switched from any emulation to A760 native, the font and LPI will remain unchanged because the A760 native mode supports all font and LPI options offered in the emulation modes.
Font and lines per inch (LPI) setup for different emulations Emulation Mode
LPI Options
Font(s) Options
Font Size
Default LPI
Default EDR
Comments
A760 native
6.00, 6.77, 7.52, 8.13
Standard
13x24
7.52
3
Default setup for monochrome paper
Tall
13x27
6.77
3
ColorPOS®
13x27
6.77
3
A758, A756 emulation
Standard
13x24
7.52
3
6.00, 7.52, 8.13
Default setup for two-color paper
Page 41
Revision F January 2010
A760 User Guide: Programming Supplement
41
Chapter 4: Programming commands
Set interpretation of “Set current color” command ASCII Hexadecimal Decimal
US ETX SYN ENQ n 1F 03 16 05 n 31 03 22 05 n
Value of n:
0-FF (Hex) n = 01 will cause 1B 72 01 to print red.
Any other value for 1B 72 will print black.
Related information n = 00 will cause 1B 72 00 to print red and all other values to print black.
To disable one LogoEZ® feature when multiple LogoEZ® features are set, first disable all LogoEZ® features and then re-enable only those you desire.
This command defines how to interpret the 1B 72 command for legacy environments. It provides a method to resolve any differences in the definition of command 1B72 between the A795 native mode and earlier implementations in other printers.
The 1F 03 16 00 command disables this and all other LogoEZ® features.
In A795 native mode, the standard “Set current color” command should be used.
Print test form ASCII Hexadecimal Decimal
AX t 1F 74 31 116
Prints the current printer configuration settings on the receipt. Disabled in page mode.
Exception
This command is available in A758 emulation and A760 native mode only.
Page 42
42
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 4: Programming commands
Print and paper feed The print and feed commands control printing on the receipt and paper feed by the printer.
Print and feed paper one line ASCII Hexadecimal Decimal
LF 0A 10
Carriage return/line feed pair prints and feeds only one line.
Prints one line from the buffer and feeds paper one line.
Print and eject slip ASCII Hexadecimal Decimal
FF 0C 12
Prints data from the buffer to the slip station and if the paper sensor is covered, reverses the slip out the front of the printer far enough to be accessible to the operator. The impact station opens the platen in all cases.
This command is ignored if the receipt station is the current station.
This command has the same code as the print and return to standard mode command, which is executed only when the printer is in page mode. When the printer is not in page mode this command executes the print and eject slip function. Exception
Print and carriage return ASCII Hexadecimal Decimal
CR 0D 13
Prints one line from the buffer and feeds paper one line. The printer can be set through the configuration menu to ignore or use this command. Some applications expect the command to be ignored while others use it as print command.
Related information
See ignoring/using the carriage return in Diagnostics for more information. Carriage return/line feed pair prints and feeds only one line.
Feed n print lines ASCII Hexadecimal Decimal
DC4 n 14 n 20 n
Value of n:
The number of lines to feed at current line height setting.
Range of n:
0–127 in A756 emulation 0–255 in A756 emulation and A760 native mode
Feeds the paper n lines at the current line height without printing. Ignored on receipt if current line is not empty.
Page 43
Revision F January 2010
A760 User Guide: Programming Supplement
43
Chapter 4: Programming commands
Feed n dot rows ASCII Hexadecimal Decimal
NAK n 15 n 21 n
Value of n:
Receipt - n/203 inch Slip n/72 inch
Range of n:
0–127 in A756 emulation 0–255 in A758 emulation and A760 native mode
Feeds paper n dot rows without printing. Receipt moves n rows if the print buffer is empty.
Add n extra dot rows ASCII Hexadecimal Decimal
SYN n 16 n 22 n
Value of n:
Receipt - n/203 inch Slip n/72 inch
Extra rows
Lines per inch
Dot rows
Range of n:
0–12
10
5.98
34
Default:
Receipt - 3 extra dot rows Slip 3 extra dot rows
11
5.81
35
12
5.64
36
Extra rows
Lines per inch
Dot rows
The following table shows the relationship between the number of lines per inch and each extra dot row added for both receipt and slip stations:
0
10.29
7
1
9.00
8
2
8.00
9
Receipt Station
3
7.20
10
4
6.55
11
5
6.00
12
6
5.54
13
7
5.14
14
8
4.80
15
9
4.50
16
10
4.24
17
11
4.00
18
12
3.79
19
Receipt Station
Adds n extra dot rows to the character height to increase space between print lines or decrease the number of lines per inch. Formulas
Extra rows
Lines per inch
Dot rows
0
8.47
24
1
8.13
25
2
7.81
26
3
7.52
27
4
7.25
28
5
7.00
29
6
6.77
30
7
6.55
31
8
6.35
32
9
6.16
33
Slip Station
Page 44
44
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 4: Programming commands
Print ASCII Hexadecimal Decimal
ETB 17 23
Prints one line from the buffer and feeds paper one line. Executes LF on receipt. Executes LF on slip if previous character was not a CR.
Print and feed paper ASCII Hexadecimal Decimal
ESC J n 1B 4A n 27 74 n
Value of n:
Receipt - n/203 inch Slip n/144 inch
Range of n:
0–255
Prints one line from the buffer and feeds the paper.
Related information
For more information, see the description of the set horizontal and vertical minimum motion units command in this document.
On the receipt station, the line height equals the character height when n is too small. This does not apply to the slip station. Use n = 0 to printer a line without feeding the paper. This allows the printer to print on the last line of the slip (at 0.59 inch from the trailing edge) and still retain the slip in the feed rollers for reverse feeding the paper back out of the slip station.
Print and reverse feed paper ASCII Hexadecimal Decimal
ESC K n 1B 4B n 27 75 n
Value of n:
Slip - n/144 of an inch
Exceptions
Range of n:
0–255
The receipt station cannot be reverse fed.
Prints one line from the buffer and reverse feeds the paper n/144 of an inch on the slip station.
Print and feed n lines ASCII Hexadecimal Decimal
ESC d n 1B 64 n 27 100 n
Value of n:
Number of lines to be printed and fed.
Range of n:
1–255 (0 is interpreted as 1 on the receipt station)
Prints one line from the buffer and feeds paper n lines at the current line height.
Page 45
Revision F January 2010
A760 User Guide: Programming Supplement
45
Chapter 4: Programming commands
Print and reverse feed n lines ASCII Hexadecimal Decimal
ESC e n 1B 65 n 27 101 n
Value of n:
The number of lines on the slip station to be reverse fed.
Range of n:
0 – 255
Prints one line from the buffer and reverse feeds the paper n lines on the slip station. The receipt station cannot be reverse fed.
Reverse feed n lines ASCII Hexadecimal Decimal
GS DC4 n 1D 14 n 29 20 n
Range of n:
0 – 127 0 – 255
A756 emulation mode A758 emulation mode and A760 native mode
Reverses the paper feed in the slip station by n lines at the current spacing. The next character feed command returns the paper feed back to the normal feed direction. This command is ignored if slip is not the selected station. Current spacing is not a factor.
Reverse feed n dots ASCII Hexadecimal Decimal
GS NAK n 1D 15 n 29 21 n
Value of n:
n dots at 1/72 inch
Range of n:
0 – 127 0 – 255
A756 emulation mode A758 emulation mode and A760 native mode
Reverses the paper feed in the slip station by n dots at 1/72 inch (CognitiveTPG 7150™ command). This command is ignored if receipt station is selected.
Page 46
46
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 4: Programming commands
Vertical and horizontal positioning The horizontal positioning commands control the horizontal print positions of characters on the receipt and slip.
Horizontal tab ASCII Hexadecimal Decimal
HT 09 9
Moves the print position to the next tab position set by the set horizontal tab positions (1B 44 n1 n2 ... 00) command. The print position is reset to column one after each line.
When no tabs are defined to the right of the current position, or if the next tab is past the right margin, line feed is executed. HT has no effect in page mode.
Tab treats the left margin as column one, therefore changes to the left margin will move the tab positions.
Print initialization sets 32 tabs at column 9, 17, 25…
Set horizontal and vertical minimum motion units ASCII Hexadecimal Decimal
GS P x y 1D 50 x y 29 80 x y
Value of x:
Horizontal
Value of y:
Vertical
Range of x:
0 – 255
Range of y:
0 – 255
Default of x:
203
Default of y:
203
Sets the horizontal and vertical motion units to 1/x inch and 1/y inch respectively. When x or y is set to 0, the default setting for that motion unit is used. The default horizontal motion is x - 203.
Set column ASCII Hexadecimal Decimal
ESC DC4 n 1B 14 n 27 20 n
Value of n:
Receipt -
Slip Default of n:
1–44 = Standard pitch 1–56 = Compressed pitch 1–66 = Standard pitch 1–80 = Compressed pitch
1
Prints the first character of the next print line in column n. It must be sent for each line not printed at column one. The value of n is set to one after each line.
Exceptions
This command cannot be used with single- or doubledensity graphics.
Page 47
Revision F January 2010
A760 User Guide: Programming Supplement
47
Chapter 4: Programming commands
Set absolute starting position ASCII Hexadecimal Decimal
ESC $ n1 n2 1B 24 n1 n2 27 36 n1 n2
Value of n: n = Number of dots to be moved from the beginning of the line. n1 = Remainder after dividing n by 256. n2 = Integer after dividing n by 256.
The values for n1 and n2 are two bytes in low byte, high byte word orientation. Sets the print starting position to the specified number of dots (up to the right margin) from the beginning of the line. The print starting position is reset to the first column after each line. Formulas
Related information
This command is also used in the graphics mode on the receipt. See graphic commands in this chapter for more information. If the set horizontal and vertical motion units command (1D 50) is used to change the horizontal and vertical minimum motion unit, the parameters of this command (set relative print position) will be interpreted accordingly. For more information, see the description of the command set horizontal and vertical minimum motion units command (1D 50) in this document.
Determine the value of n by multiplying the column for the absolute starting position by 10 (slip, or receipt standard pitch) or 8 (receipt compressed pitch). The example shows how to calculate column 29 (10 dots per column) as the absolute starting position. 28 x 10 = 280/256 = n1 = 24 n2 =
280 dots (beginning of column 29) 1, remainder of 24 1
Set vertical line spacing to 1/6 inch ASCII Hexadecimal Decimal
ESC 2 1B 32 27 50
Default:
3.33 mm (0.13”)
Sets the default line spacing to 4.25 mm (1/6 of an inch).
Set vertical line spacing ASCII Hexadecimal Decimal
ESC 3 n 1B 33 n 27 51 n
Value of n:
Receipt - n/406 inch Slip -
Range of n:
n/144 inch
0 – 255
Default: Receipt - 0.13 inch (3.37 mm or 7.52 lines per inch, 3 extra dot rows) Slip
0.14 inch (7.20 lines per inch, 3 extra dot rows)
Sets the line spacing for the receipt and for the slip. For the receipt, the space is set to n/406 inches. For the slip, the line spacing is set to n/144 inches. The line spacing equals the character height when n is too small.
If the set horizontal and vertical minimum motion units command (1D 50) is used to change the horizontal and vertical minimum motion unit, the parameters of this command (set line spacing) will be interpreted accordingly. Related information
For more information, see the description of the set horizontal and vertical minimum motion units command in this document.
Page 48
48
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 4: Programming commands
Set horizontal tab positions ASCII Hexadecimal Decimal
ESC D [n] k NUL 1B 44 [n] k 00 27 68 [n] k 0
Value of n:
Column number for tab minus one. (n is always less than or equal to the current selected column width)
Tabs assumed to be in strictly ascending order. A tab out of order terminates the command string as if it were 00, and remaining tab values are taken as normal data.
Value of k:
0–32 (decimal)
Formulas
Default:
Every 8 characters from column 1 (9, 17, 25, etc.) for normal print.
Set the tab positions in ascending order and put Hex 00 at the end. Hex 1B 44 00 (number of tabs not specified) clears all tab positions.
Sets up to 32 horizontal tab positions n columns from column one, but does not move the print position. See the horizontal tab command (09). The tab positions remain unchanged if the character widths are changed after the tabs are set. The command ends with hexadecimal 00; hexadecimal 1B 44 00 clears all tabs.
Exceptions
The tabs cannot be set higher than the column width of the current pitch.