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 3 of 7

TPSK Printer Series 24 & 12V User Manual, pages 21 to 30

Pages 21 to 30 of 67

The original document is the PDF (1.9 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 Axiohm TPSK

Page 21

5 COMMAND DESCRIPTION 5.1 Command conventions The following information describes how each command is organized: Command Name A designation (not the ASCII code) used to identify the command. Description A brief summary of the command, followed by detailed information, if necessary. ASCII Hexadecimal Decimal the ASCII control code the Hexadecimal control code the Decimal control code

Value or Values a description of the command operand values

Range the upper and lower limits of the command operand

Default the command operand default after printer reset

Formulas any formula used for this command.

Exceptions Describes any exceptions to the command, for example, other commands with which that one cannot be used. Related Information This section describes any related information for this command and provides references to other sections for additional information.

TPSK 12 & 24 V User’s Manual

Page 20 / 66

Reference: FDE 31 08 972 Issue Z

Page 22

5.2 Reset commands INITIALIZE PRINTER Clears the print line buffer and resets the printer to the default settings for the startup configuration (refer to Default settings below). Single Wide, Single-High and Left-Aligned characters and reset active logo. Default bar code settings ASCII Hexadecimal Decimal Default

ESC @ 1B 40 27 64 Character Pitch Number of Columns Width Extra Dot Rows Character Set Printing Position

12.7 CPI 24 characters 3 Default Column One

RESET FIRMWARE Reboots the printer. ASCII Hexadecimal Decimal

GS (SPACE) 1D FF 29 255

TPSK 12 & 24 V User’s Manual

Page 21 / 66

Reference: FDE 31 08 972 Issue Z

Page 23

5.3 Vertical positioning and print commands The vertical positioning and print commands control the vertical print positions of characters on the receipt.

PRINT AND FEED ONE LINE Prints the buffer contents and feeds one line. ASCII Hexadecimal Decimal

LF 0A 10

ACTIVATE CARRIAGE RETURN Prints the buffer contents and feeds one line. ASCII Hexadecimal Decimal

CR 0D 13

Note: this command is almost similar to the previously described <0A>, it was originally made to be compatible with impact printers on which an actual carriage return was necessary. Some applications expect the command to be ignored, while others use it as print command.

FEED N PRINT LINES Feeds n lines of paper with the current line/character height. 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

255

Exception(s) The command is ignored when it is not sent at the beginning of a line.

TPSK 12 & 24 V User’s Manual

Page 22 / 66

Reference: FDE 31 08 972 Issue Z

Page 24

FEED N DOT ROWS Feeds n dot lines: (the dot height is 0.125mm, the paper feeding with this command is: n/203 inch, n/8 mm). ASCII Decimal

NAK n 15 n 21 n

Value of n n/203 inch

Range of n

0-255

Hexadecimal

Example: <15> <CB> will feed 203 lines thus one inch of paper.

SET LINE SPACING TO 1/6 INCH Sets the default line spacing to 1/6 of an inch (4,23 mm). ASCII Hexadecimal Decimal

ESC 2 1B 32 27 50

SET LINE SPACING Sets the line spacing to n/406 inch (n/16 mm). The minimum line spacing is 8.5 lines per inch. The line spacing equals the character height when n is too small. ASCII Decimal

ESC 3 n 1B 33 n 27 51 n

Value of n n/406 inch

Range of n

0-255

Default

0.13 inch (3.37 mm)

Hexadecimal

Exception(s) The command is valid only at the beginning of a line.

TPSK 12 & 24 V User’s Manual

Page 23 / 66

Reference: FDE 31 08 972 Issue Z

Page 25

PRINT AND FEED PAPER Prints buffer contents and feeds n/203 inch (n/8 mm) of paper. Sets the print starting position to the beginning of the line (when printing and feeding are completed). ASCII Decimal

ESC J n 1B 4A n 27 74 n

Value of n n/203 inch

Range of n

0-255

Hexadecimal

Exception(s) If n is too small, the line height equals the character height.

PRINT AND FEED N LINES Prints the buffer contents and feeds paper n lines at the current line height. ASCII

ESC d n

Hexadecimal

1B 64 n

Decimal

27 100 n

Range for n

0-255

TPSK 12 & 24 V User’s Manual

Page 24 / 66

Reference: FDE 31 08 972 Issue Z

Page 26

5.4 Horizontal positioning commands The horizontal positioning commands control the horizontal print positions of characters on the receipt.

HORIZONTAL TAB 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. Print initialization sets 32 tabs at column 9, 17, 25, ASCII Hexadecimal Decimal

HT 09 9

SET RIGHT-SIDE CHARACTER SPACING Sets the right side character spacing to [n]. ASCII Decimal

ESC SP n 1B 20 n 27 32 n

Range for n

0 – 32

Default

0

Hexadecimal

Note: n has to be a multiple of 4.

TPSK 12 & 24 V User’s Manual

Page 25 / 66

Reference: FDE 31 08 972 Issue Z

Page 27

SET ABSOLUTE STARTING POSITION 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. ASCII Hexadecimal Decimal Value of n

ESC $ nL nH 1B 24 nL nH 27 36 nL nH n = Number of dots to be moved from the beginning of the line nL = Remainder after dividing n by 256 nH = Integer after dividing n by 256

The values for nL and nH are two bytes in low byte, high byte word orientation.

Note: nL has to be a multiple of 4. Formulas The example shows how to calculate 280 dots as the absolute starting position. 280/256 = 1, remainder of 24 nL = 24 nH = 1

TPSK 12 & 24 V User’s Manual

Page 26 / 66

Reference: FDE 31 08 972 Issue Z

Page 28

SET HORIZONTAL TAB POSITIONS Sets up to 32 horizontal tab-position 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. ASCII Hexadecimal Decimal Value of n Value of k Default

ESC D [n]…k NUL 1B 44 [n]…k NUL 27 68 [n]…k 0 Column number for tab minus one (n is always less than or equal to the current selected column width) 0-32 Every 8 characters from column. 1 (9, 17, 25, etc.) for normal print

Formulas 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. Exceptions The tabs cannot be set higher than the column width of the current pitch:

1-24= Standard pitch 1-37= Compressed pitch

Example: 1B 44 03 04 07 0A 0D 18 00 09 41 09 42 09 43 09 44 09 45 09 46 0A To obtain (in standard pitch):

---A---B--C--D----------EF

TPSK 12 & 24 V User’s Manual

Page 27 / 66

Reference: FDE 31 08 972 Issue Z

Page 29

SET RELATIVE PRINT POSITION Moves the print-starting position the specified number of dots either right (up to the right margin) or left (up to the left margin) of the current position. The print starting position is reset to the first column after each line. Any setting that exceeds the printable area is ignored. ASCII Hexadecimal Decimal

ESC \ nL nH 1B 5C nL nH 27 92 nL nH

Value of n To Move the Relative Starting Position Right of the Current Position: n = Number of dots to be moved right of the current position nL = Remainder after dividing n by 256 nH = Integer after dividing n by 256 The values for nL and nH are two bytes in low byte, high byte word orientation. To Move the Relative Starting-Position Left of the Current Position: n = Number of dots to be moved left of the current position nL = Remainder after dividing (65536-n) by 256 nH = Integer after dividing (65536-n) by 256 The values for nL and nH are two bytes in low byte, high byte word orientation. Note: where nL is a multiple of 4. Formulas To move to the left: The example shows how to set the relative position 20 dots to the left of the current position. 65536-20 = 65516 65516/256 = 255, remainder of 236 nL = 236, nH = 255 To move to the right: The example shows how to set the relative position 260 dots to the right of the current position. 260/256 = 1, remainder of 4 nL = 04, nH = 01

TPSK 12 & 24 V User’s Manual

Page 28 / 66

Reference: FDE 31 08 972 Issue Z

Page 30

SELECT JUSTIFICATION Specifies the alignment of characters, logos, and bar codes (see the value of n table). ASCII Hexadecimal Decimal Value of n

ESC a n 1B 61 n 27 97 n

Range of n

0, 48 = Left aligned 1, 49 = Center aligned 2, 50 = Right aligned 0-2, 48-50

Default

0 (Left aligned)

Exceptions The command is valid only at the beginning of a line.

SET LEFT MARGIN Sets the left margin of the printing area. The left margin is set to ((nH X 256) + nL) dots. The Set Printing Area Width command (1D 57), sets the width of the printing area. See the Set Printing Area Width command (1D 57) in this document for a description of that command. If the setting exceeds the printable area, the maximum value of the printable area is used. The maximum printable area is 384. See the illustration. The command is ignored if it is not at the beginning of the line. ASCII Hexadecimal Decimal

GS L nL nH 1D 4C nL nH 29 76 nL nH

Range of nL

0-255

Range of nH

0-255 384 dots (the maximum printable area)

Default

Note: where nL is a multiple of 4. Formulas To set the left margin to one inch, send the four-byte string: GS L 203 0 Or, to set the left margin to two inches, send the four-byte string: GS L 150 1 Where 2 inches = 406/203, and 406 = (1 X 256) + 150. Printable area 384 dots Left margin

TPSK 12 & 24 V User’s Manual

Printing area width

Page 29 / 66

Reference: FDE 31 08 972 Issue Z