CognitiveTPG B780 User Manual

Page 64

Advertising
background image

Chapter 5: Programming commands

52

A776 (B780) Programming Guide

A776-PG00001 C 12/09

Continued . . .

To set the Slip left margin to one inch at the default horizontal motion unit of 1/140 inches, send the four-byte string:

GS L 140 0

Or, to set the left margin to two inches at the default horizontal motion unit of 1/140 units per inch, send the four-byte
string:

GS L 24 1

Exceptions:

The command is effective only at the beginning of a line. This command is ignored if the line buffer is not empty.

Set horizontal and vertical minimum motion units

ASCII

GS P x y

Hexadecimal 1D 50 x y

Decimal

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:

Receipt: 203 Slip: 140

Default of y:

Receipt: 203 Slip: 144

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 command can be enabled or disabled for the slip. Default is disabled for the slip on A776, and enabled on B780.

Set printing area width

ASCII

GS W nL nH

Hexadecimal 1D 57 nL nH

Decimal

29 87 nL nH

Range of nL:

0–255

Range of nH: 0–255

Default:

576 dots (the maximum printable area)

Sets the width of the printing area. If the setting exceeds the printable area, the maximum value of the printable area
is used. The width of the printing area is set to ((nH X 256) + nL) times horizontal motion unit) inches. The horizontal
motion units are set by the set horizontal and vertical minimum motion units command (1D 50).

The width of the printing area follows the set left margin command (1D 4C). See the set left margin command
(10 4C …) earlier in this document for a description.

The command can be enabled or disabled for the slip. Default is disabled for the slip on A776, and enabled on B780.

Formulas

To set the width of the receipt printing area to one inch at the default horizontal motion unit of 1/203 inches, send the
four-byte string:

GS W 203 0

Advertising
This manual is related to the following products: