
Technical Updates SNBC CONFIDENCIAL
Shandong New Beiyang Information Technology Co.,Ltd.
Page 58
ESC 3
, and
FS S
commands. For these commands, different settings can be stored for
each mode.
B.3 Formatting of Print Data in the Printable Area
1) The printable area is set using
ESC W
. If all printing and feeding are complete before the
printer receives the
ESC W
command, the left side (as you face the printer) is taken as the
origin (x0, y0) of the printable area. The printable rectangular area is defined by the length
(dx dots) extending from and including the origin (x0, y0) in the x direction (perpendicular to
the paper feed direction), and by the length (dy dots) in the y direction (paper feed direction).
If the
ESC W
command is not used, the printable area remains the default value.
2) When the printer receives print data after
ESC T
sets the printable area and the printing direction,
the print data is formatted within the printable area so that point A in Figure B.2 is at the beginning
of the printable area as a default value. (When a character is printed, point A is the baseline.)
Print data containing downloaded bit images or bar codes is formatted so that the bottom
point of the left downside of the image data (point B in Figure B.3) is aligned with the baseline.
3) If the print data (including the space to the right of a character) exceeds the printable 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 printable area. The print position, therefore,
moves to the beginning of the next line. The line feed amount depends on the values set by
commands (such as
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 extended characters that are higher
than double-height characters, bit images taking up two or more lines, or bar codes higher
than normal characters, the amount of line feeding may be insufficient, resulting in
overlapping of the characters' higher-order dots with the previous line. To avoid this,
increase the amount of line spacing.
Example
When printing a downloaded bit image 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 printable
area (24)}
×
vertical motion unit 180/180) = 24. i.e. if print complete bit image, it is needed to move
the printing position 24 dots based on the printing starting area.
Use the following commands:
ESC W xL
,
xH
,
yL
,
yH
,
dxL
,
dxH
,
dyL
,
dyH
ESC T n
ESC 3 24
¬ Set line spacing to be added.
LF
ESC 2
¬ Reset the line spacing to the default.