
BT-T080 Programming Manual
- 81 -
B.2 Set values in standard and page modes
Some commands (such as
ESC SP
,
ESC 2
,
ESC 3
, and
FS S)
can be used in both standard and page
modes, besides the parameters of them are the same. However, these values can be set independently
in each mode. For these commands, different settings can be stored independently for each mode.
B.3 Set printing area
1)
The printing area is set by
ESC W
. If all printing and feeding operations are completed before the
printer receives the
ESC W
command, the left side (as you face the printer) will be taken as the
origin (x0, y0) of the printing area. The rectangular printing area (dx dots) is defined by width
extending rightward from the origin (x0, y0) in the x direction (perpendicular to the paper feed
direction), and height (dy dots) in the y direction (paper feed direction). If the
ESC W
command is not
used, the printing area remains the default value.
2)
The print data received after printing area and print direction are set (set by
ESC T
command) will be
formatted within the printing area as shown in figure
B.2.
Point A is the starting position of printing
area as a default value. (When a character is printed, point A is the baseline.). Print data containing
downloaded bitmaps or barcodes is formatted so that the bottom point of the left side of the image
data (point B in Figure
B.3
) is aligned with the baseline.
3)
If the print data (including character spacing) exceeds the printing area before the printer receives a
command (e.g.,
LF
or
ESC J
) that includes line feeding, a line feed is executed automatically within
the printing area. The print position, therefore, moves to the beginning of the next line (The line feed
amount depends on the line spacing set by commands ESC 2 and ESC 3).
4)
The default value of the line spacing is set to 3.75mm and corresponds to 31 dots in the vertical
direction. If print data for the next line contains enlarged characters that are higher than
double-height characters, bitmaps taking up two or more lines, or barcodes higher than normal
characters, the amount of line feeding may be insufficient, resulting in overlapping of the characters
printed in the current line and characters printed in previous line. To avoid this, increase the amount
of line spacing.
Example
When printing a downloaded bitmap of six bytes in the vertical direction, use the following formula:
{number of vertical dots (8×6) - number of dots for feeding at the beginning of the printing area (24) } ×
vertical motion unit (180/180) = 24. Therefore, to print a complete bitmap, the print position needs to be
moved downwards 24 dots on the basis of the starting position of printing area.
Use the following commands:
ESC W xL
,
xH
,
yL
,
yH
,
dxL
,
dxH
,
dyL
,
dyH
ESC T n
ESC 3 24
Å
Set new line spacing
LF
GS / 1
ESC 2
Å
Reset the line spacing to 3.75mm