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 21 of 24

A758 USB Thermal Receipt and Impact Slip Printer: Owner's Guide, pages 201 to 210

Pages 201 to 210 of 235

The original document is the PDF (3.8 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 A758

Page 201

Chapter 7: Programming Guide 193 This command has the same code as the Open Form command, which is performed when the printer is not in Page Mode. Exceptions: This command is only used in Page Mode.

Print Data in Page Mode ASCII: ESC FF Hexadecimal: 1B 0C Decimal: 27 12 Collectively prints all buffered data in the printing area. 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. Exceptions: This command enabled only in Page Mode.

Select Page Mode ASCII: ESC L Hexadecimal: 1B 4C Decimal: 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. 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). 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)

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 202

194 Chapter 7: Programming Guide ♦

Select Justification (1B 61)

♦

Select or Cancel Upside-Down Printing (1B 7B).

♦

Set Left Margin (1D 4C)

♦

Set Print Area Width (1D 57)

Exceptions: The command is enabled only when input at the beginning of a line. The command is available only when the receipt is selected by Select Paper (1B 63 30) command. The command has no effect if Page Mode has previously been selected. The Select Paper (1B 63 30) command cannot be used in Page Mode. In A756 Emulation Mode, (1B 4C…) is used for double density graphics.

Select Standard Mode ASCII: ESC S Hexadecimal: 1B 53 Decimal: 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.

A758-D100 12/04

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

Page 203

Chapter 7: Programming Guide 195

Select Print Direction in Page Mode ASCII: ESC T n Hexadecimal: 1B 54 n Decimal: 27 84 n Value of n:

Start position 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)

Selects the printing direction and start position in Page Mode. See the illustration. 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 by the Eject Slip command (0C).

B

D

A

Default:

0 (Upper left corner proceeding across page to the right)

Exceptions: A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 204

196 Chapter 7: Programming Guide This command is valid only in Page Mode. This command is ignored if the value of n is out of the specified range.

Set Printing Area in Page Mode ASCII: ESC W n1, n2 ...n8.] Hexadecimal: 1B 57 n1, n2 ...n8] Decimal: 27 87 n1,n2 ...n8] Range:

0 - 255

Default:

n1-4 = 0 n5 = 64 n6 = 2 n7 = 64 n8 = 2

Sets the position and size of the printing area in Page Mode. 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 by the Eject Slip command (0C). Defaults equal an origin of 0,0 and a size of 576x576. This command is allowed in any mode. Formulas: The starting position of the print area is the upper left of the area to be printed (x0, y0). The length of the area to be printed in the y direction is set to dy inches. The length of the area to be printed in the x direction is set to dx inches. Use the equations to determine the Value of x0, y0, dx, and dy. See the illustration for a graphic representation of the printing area. For more information about the fundamental calculation pitch, see the Set Fundamental Calculation Pitch command (1D 50).

A758-D100 12/04

♦ x0 = [(n1 + n2 x 256) x (horizontal direction of the fundamental calculation pitch)]

♦ y0 = [(n3 + n4 x 256) x (vertical direction of the fundamental calculation pitch)]

♦ dx = [(n5 + n6 x 256) x (horizontal direction of the fundamental calculation pitch)]

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

Page 205

Chapter 7: Programming Guide 197 ♦ dy = [(n7 + n8 x 256) x (vertical direction of the fundamental calculation pitch)]

Keep the following notes in mind for this command. ♦

The fundamental calculation pitch depends on the vertical or horizontal direction.

♦

The maximum printable area in the x direction is 576/203 inches.

♦

The maximum printable area in the y direction is 2000/203 inches.

Exception: This command is effective only in Page Mode.

Set Absolute Vertical Print Position in Page Mode ASCII: GS $ nL nH Hexadecimal: 1D 24 nL nH Decimal: 29 36 nL nH Formulas: [(nL + nH X 256) x (vertical or horizontal motion unit)] inches. Sets the absolute vertical print starting position for buffer character data in Page Mode. The vertical or horizontal motion unit for the paper roll is used and the horizontal starting buffer position does not move. The reference starting position is set by Select Print Direction in Page Mode (1B 54). This sets the absolute position in the vertical direction when the starting position is set to the upper left or lower right; and sets the absolute position in the horizontal direction when the starting position is set to the upper right or lower left. The horizontal and vertical motion units are specified by the Set Horizontal and Vertical Minimum Motion Units (1D 50) command. The Set Horizontal and Vertical Minimum Motion Units (1D 50) command can be used to change the horizontal and vertical motion unit. However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount. Exceptions: This command is effective only in Page Mode. If the [(nL + nH x 256) x (vertical or horizontal motion unit)] exceeds the specified printing area, this command is ignored.

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 206

198 Chapter 7: Programming Guide

Set Relative Vertical Print Position in Page Mode ASCII: GS \ nL nH Hexadecimal: 1D 5C nL nH Decimal: 29 92 nL nH Sets the relative vertical print starting position from the current position. This command can also change the horizontal and vertical motion unit. The unit of horizontal and vertical motion is specified by this command. This command functions as follows, depending on the print starting position set by Select Print Direction in Page Mode (1B 54): 1.

When the starting position is set to the upper right or lower left of the printing area, the vertical motion unit (y) is used.

2.

When the starting position is set to the upper left or lower right of the printing area, the horizontal motion unit (x) is used.

Value: The value for the horizontal and vertical movement cannot be less than the minimum horizontal movement amount, and must be in even units of the minimum horizontal movement amount. Formulas: The distance from the current position is set to [(nL + nH x 256) x vertical or horizontal motion unit] inches. The amount of movement is calculated only for the receipt. When pitch n is specified to the movement downward: nL + nH x 256 = n When pitch n is specified to the movement upward (the negative direction), use the complement of 65536. When pitch n is specified to the movement upward: nL + nH x 256 – 65536 – N A758-D100 12/04

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

Page 207

Chapter 7: Programming Guide 199 Exceptions: This command is used only in Page Mode, otherwise it is ignored. Any setting that exceeds the specified printing area is ignored.

Macro Commands These commands are used to select and perform a user-defined sequence of printer operations.

Start or End Macro Definition ASCII: GS : Hexadecimal: 1D 3A Decimal: 29 58 Starts or ends macro definition. Macro definition begins when this command is received during normal operation and ends when this command is received during macro definition. The macro definition is cleared, during definition of the macro, when the Execute Macro (1D 5E) command is received. Normal printing occurs while the macro is defined. When the power is turned on the macro is not defined. The defined contents of the macro are not cleared by the Initialize Printer (1B 40), thus, the Initialize Printer (1B 40) command may be used as part of the macro definition. If the printer receives a second Select or Cancel Macro Definition (1D 3A) command immediately after previously receiving a Select or Cancel Macro Definition (1D 3A) the printer remains in the macro undefined state. Formulas: The contents of the macro can be defined up to 2048 bytes. Exceptions: If the macro definition exceeds 2048 bytes, excess data is not stored. This command is available in A758 Native Mode only.

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 208

200 Chapter 7: Programming Guide

Execute Macro ASCII: GS ^ r t m Hexadecimal: 1D 5E r t m Decimal: 29 94 r t m Value of r: Value of t:

The number of times to execute the macro. The waiting time for executing the macro.

Executes a macro. After waiting for a specified period the LED indicators blink and the printer waits for the Paper Feed Button to be pressed. After the button is pressed, the printer executes the macro once. The printer repeats this operation the number of specified times. When the macro is executed by pressing the Paper Feed Button (m = 1), paper cannot be fed by using the Paper Feed Button. Formulas: The waiting time is t x 100 msec for every macro execution. m specifies macro executing mode when the LSB (Least significant bit) m = 0 The macro executes r times continuously at the interval specified by t when the LSB (Least significant bit) of m = 1. Exceptions: If this command is received while a macro is being defined, the macro definition is aborted and the definition is cleared. If the macro is not defined or if r is 0, nothing is executed. This command is available in A758 Native Mode only.

A758-D100 12/04

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

Page 209

Chapter 7: Programming Guide 201

MICR Commands MICR Reading These commands control the Magnetic Ink Character Recognition (MICR) check reader, including how it parses the character strings on checks. The section, MICR Parsing, describes how to create a parsing format and how to create and maintain an Exceptions table. Read MICR Data and Transmit ASCII: ESC w 1 Hexadecimal: 1B 77 01 Decimal: 27 119 1 Default:

All data returned

Reads and transmits the MICR data and adds a Carriage Return (0x0D). If no parsing format is selected with either of the Define Parsing Format commands (see below), all data will be returned, which is the default. Transmit last MICR read ASCII: ESC w R Hexadecimal: 1B 77 52 Decimal: 27 119 82 Resends the previously decoded MICR data(as if the parsing has not been defined) to the host. The return data is defined in the “Read MICR data and Transmit” command (1D 77 01) without parsing and presents the data from the last MICR read since power-up or reset or indicates in status that no read has yet occurred.

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 210

202 Chapter 7: Programming Guide

MICR Parsing This section describes MICR parsing in detail and includes several examples of useful parsing variations. It also describes how to create a parsing format and how to create and maintain an exception table. Define Parsing Format, Save in NVRAM ASCII: ESC w P d1 d2 … dn 0D Hexadecimal: 1B 77 50 d1 d2 … dn 0D Decimal: 27 119 80 d1 d2 … dn 0D Defines and saves parsing format. See Parsing Parameter String Options in this document. Send with this command the parse data that is to be the default parse string at printer power-up. If no parameters are selected, parsing is not performed. d1 through dn are the parse string. The string must be CR terminated. If the string has invalid characters in it or is too long, the printer will store a null string, and raw MICR data will be returned.

Define Parsing Format, Do Not Save Permanently ASCII: ESC w p Hexadecimal: 1B 77 70 Decimal: 27 119 112 Defines, but does not save parsing format. See Parsing Parameter String Options in this document. Send this command as often as desired to change the previous parse format string. The data sent with 1B 77 50 will be restored at power-up. Exceptions: If no parameters are selected, parsing is not performed. Parsing Parameter String Options Variable Length Fields

A758-D100 12/04

Variable Length Field Name

Selector

Comments

Transit Number

T

Full 9 digit routing/transit number

Bank Number

B

Digits 4-8 of transit number

Check Digit

D

Digit 9 of transit number

Account Number

A

Check Serial Number

C

Separate from account number

Amount

$

This field may not be present or readable

Variable Length Field Optional Modifiers

Selector

Comments

Zero fill to length

0

ASCII zero preceding maximum length

Maximum length nn

1- or 2-digit ASCII number

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide