The progr amming ma nual c o mmand desc ription include s the fol lowing sectio ns:
1) [Name]
This is the first part o f the command descrip tio ns. AS CII code is g iven co mmand of the fo rm
and the functio n ove rv ie w o f co mma nd .
2) [Format]
This section uses the ASCII coding form, Hex code form, Decimal code form of three kinds of
formal descrip tio n of the command. Which part of the range compared to a decimal number no
special instructions, such as in the following example 1 ≤ n ≤ 4, where 1 is a decimal number,
rather than the ASCII code table in "1".
3) [Range]Gives the allowa ble ranges for the arguments.
4) [Description]Describes the command’s function.
5) [Detail]
The command notice is given. Because commands in different modes, when with different
comma nds, will lea d to mu tu al inf lu ence, a nd this se c tion gives the details.
6) [Reference ]Gives the l is ts o f re lated c o mmands.
---> ESC SP n :Transmit real-time status
---> [Format] ASCII: ESC SP n
Hex: 1B 20 n
Decimal: 27 32 n
---> [Range] 0 ≤ n≤255
---> [Description] Transmitted in real time specified by the parameter “n” Printer S tatus:
---> [Detail] •Immediately returns the printer associated status after receiving the command.
---> [Reference]
2
HT
] Horizontal tab
[Name
[Format] ASCII HT
[Decription] Moves the print position to the next horizontal tab position.
[Details]
•This command is ignored unless the next horizontal tab position has been set.
• If the next horizontal tab position exceeds the printing area,
the printer setstheprinting position to [Printing area width + 1].
• Horizontal tab positions are set with ESC D.
• If this command is received when the printing position is at [printing area width
+ 1], the printer executes print buffer-full printing of the current line and
horizontal tab processing from the beginning of the next line.
[Reference]ESCD
LF
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] Prints the data in the print buffer and feeds one line based on the current linespacing.
[Note] This command sets the print position to the beginning of the line.
[Reference] ESC2,ESC3
DLEDC4nmt
[Name] Real-time pulse generator
[Format] ASCII DLE
Hex 10 14 n m t
Decimal 16 20 n m t
[Range] n=1,m=0,1
[Decription] Output pulse is specified by the parameter t connection pins, “m” show as below:
Hex 09
Decimal 09
8
1≤t
≤
DC4
n m t
m
Connect Pins
0
1
Pulse high time for[t*100 ms],low time for [t*100
[Details] • When the printer is executing a command to open the cash drawer (ESCp or DELDC4),
the command is ignored.
• In serial mode, the printer immediately after receiving the order.
• In parallel mode, the printer is busy when the command is not executed.
• If the print data same as the command contains data, the data will be used as the command
is executed. The user must take into account this situation.
• Don’t try to insert the command in two or more bytes in the command sequence.
• Even if the printer is set to disabled by the command of ESC = (select peripheral), the
order is still valid.
[Name] Setting the right side character spacing
[Format] ASCIIESC SP n
Hex1B 20 n
1
[Name]
Select print
A
Decimal
Bit
OFF/ON
Hex Decimal
Functions
OFF
Character font
ON
N/A
N/A
OFF
Emphasized mode not selected.
ON
Emphasized mode selected.
OFF
Double-height mode not selected.
ON
Double-height mode selected.
OFF
Double-width mode not selected.
ON
Double-width mode selected.
N/A
OFF
Underline mode not selected.
ON
Underline mode selected.
ESC!n
Decimal 27 32 n
[Range] 0≤n≤255
[Description]Setting the right side character spacing for [n¬0.125 mm].
[Note] • For the double-width mode, the right side character spacing is double than the normal
mode. When the character is magnified , the right side character spacing is n times
than the normal mode .
•This command does not affect the setting of Hanzi characters.
• The command to set the value of independent standard mode in each mode.
[Defaults] n=0
mode(s)
[Format]
[Range]
SCII
Hex
0≤ n≤ 255
ESC
1B
27
[Description]Selects print mode(s) ,using n as follows:
n
!
21
33 n
n
0
1
2
3
4
5
6
7
-
-
-
00
01
-
-
00
08
00
10
00
20
00
80
0
1
-
-
0
8
0
16
0
32
0
128
A
(12¬24)
Character fontB(9¬
17)
。
。
[Note] • When both double-height and double-width modes are selected,
quadruple sizecharacters are printed.
• The printer can underline all characters, but can not underline the space set by
HT or 90 ° clock wi se r otate d cha r acter s.
•
The thickness of the underline is that selected by ESC , regardless of the
character size.
• When some characters in a line are double or mor e h ei g ht , al l th e ch a r acter s
on the line are aligned at the baseline.
• ESC E can also turn on or off emphasized mode. However, the setting of the
last received command is effective.
• ESC —can also turn on or off underline mode. However, the setting of the last
received command is effective
•GS ! can also select character size. However, the setting of the last received
command is effective.
• Emphasized mod e is ef f ective for alp h an u me ri c an d Hanzi. All print modes
except emphasized mode is effective only for alphanumeric.
[Defaults] n=0
[Reference] ESC-,ESCE,GS !
2
ESC$nLnH
[Name] Set absolute print position
[Format] ASCIIESC $ nL nH
•y specifies the number of bytes in the vertical direction.
• c1 specifies the beginning character code for the definition, and c2 specifies the
final code
• x specifies the number of dots in the horizontal direction.
[Note] • The allowable character code range is from ASCII code <20>H to <7E>H (95characters).
•
It is possible to define multi ple characters for consecutive c haracter cod es .
If o nl y o n e c ha r a ct e r is de sir e d, use c 1 = c 2.
• d is the dot data for the characters. The dot pattern is in the horizontal directionfrom the
left side. Any remaining dots on the right side are blank.
• The data to define a user-defined character is(y×x)bytes.
c2[x1d1...d(y
3
x1)]...[xk
d1...d(y
• Set a corresponding bit to 1 to print a dot or 0 to not print a dot.
•
Thi s c o mman d ca n defi n e di ff e re nt us er-defined char act er patt erns by eac h
fonts. To select a font, use ESC !
• A user-defined character and a downloaded bit image cannot be defined
simultaneously. When this command is executed, the downloaded bit image is
cleared.
• The user-defined character definition is cleared when::
1) ESC @ is executed.
2) ESC ? is executed.
3) ESC? i s exe cute d
4) The printer is reset or the power is turned off.
• When the user-defined characters are defined in font B (9 ╳ 17), only the
mostsignificant bit of the 3rd byte of data in vertical direction is effective.
[Defaults] The internal character set
[Reference] ESC%,ESC?
[Name] Select bit-ima g e mo de
[Format] ASCII ESC Hex
Decima l
[Range] m=0, 1, 32,33
0≤ nL≤ 255
0≤nH≤ 3
d1=<1F>Hd4= <08>Hd7=<10>H...
d2=<FF>Hd5= <08>Hd8=<04>H...
d3=<80>Hd6=<00>Hd9 =<00>H...
∗ m nL
1B
2A m nL nH d1...dk
27
42 m nL nH d1...dk
nH
d1...dk
5
Mode
Vertical Direction
Horizontal Direction
Number of
Dots
DotDensity
DotDensity
Number of Data(K)
∗
∗
0≤ d≤ 255
[Description]Selects a bit-image mode using m for the number of dots specified by nL and nH,as follows:
m
0
8-dot single-density
1
8-dot double-density
32
24-dot single-density
33
24-dot double-density
dpi:Print dots per 25.4 mm (1inch)
[Note]
•
If the valu es of m is out of th e spe c i fi ed ran g e, nL an d d at a f ol l ow in g ar e pr o ce sse d
as norma l dat a.
nL and nH represents the horizontal upper figure points, calculated by nL + nH256 points.
•If the bit-image data input exceeds the number of dots to be printed on a line,the
excess data is ignored.
•d indicates the bit-image data. Set a corresponding bit to 1 to print a dot or to 0to
not print a dot.
•If the width of the printing area set by GS L and GS W less than the widthrequired
by the data sent with the ESC * command, the following will beperformed on the line
in question (but the printin g cannot exceed th e maximump rint abl e area):
①The width of the printing area is extended to the right to accommodate theamount
of data.
②If step ① does not provide sufficient width for the data, the left margin isreduced
to accommodate the data.For each bit in the single density mode (m = 0, 32) of the
data, the printer prints two points: For double density mode (m = 1,33) of each bit of
data, the printer prints a dot . When calculating the amount of data that can be printed
on one line, they must be considered.
• After printing a bit image, the printer returns to normal data processing mode.
• This command is not affected by print modes (emphasized, double-
strike,underline, character size or white/black reverse printing), except upsidedownprintin g mode.
•The relationship between the image data and the dots to be printed is as
follows:
• When 8-dot bit image is selected:
256)
3
∗3
8
8
24
24
67.7dpi
67.7dpi
203.2dpi
203.2dpi
101.6dpi
203.2dpi
101.6dpi
203.2dpi
nL +nH∗256
nL +nH∗256
(nL+
nH∗256)
(nL+nH
6
•When 24-dot bit image is selected:
7
[Name]
Turn underline
mode on/off
Function
Turns off underline mode
Turns on underline mode (1-dot thick)
Turns on underline mode (2-dots thick)
ESC- n
[Note] • The printer can underline all characters (including right-side character spacing),
but cannot underline the space set by HT.
2D
45
-
n
n
n
[Format]
[Range] 0≤ n≤ 2,48≤ n≤ 50
[Description] Turns underline mode on or off, based on the following values of n:
n
0, 48
1, 49
2, 50
[Defaults] n=0
[Reference] ESC!
ASCII
Hex
Decimal
•The printer cannot underline 90° clockwise rotated characters and
whit e/ b la ck inverted cha r acter s.
• When underline mode id turned off by setting the value of n to 0 or 48,
thefollowing data is not underlined, and the underline thickness set before
themode is turned off does not change. The default underline thickness is
1 dot.
•Changing the character size does not affect the current underline thickness.
• Underline mode can also be turned on or off by using ESC !. Note,
however,that the last received command is effective.
ESC
1B
27
8
Loading...
+ 23 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.