Custom Audio Electronics TK100 Command Reference Manual

Page 1
COMMAND DESCRIPTION
TK100
COMMANDS REFERENCE
TK1001Commands Reference -
Page 2
COMMAND DESCRIPTION
EDIT by:
CUSTOM ENGINEERING S.P.A.
Via Berettine 2 – 43010 Fontevivo (Parma) - Italy
Cod. DOMC-TK100-E Rev. 1.00
TK100 2 - Commands Reference
Page 3
COMMAND DESCRIPTION
everse mode
1.1 PRINT DIRECTION
The printer has two print modes, selectable through the control characters: normal and reverse.
TK100 Desk printer
PAPER OUTFEED DIRECTION
Desk printer TK100
(Fig.1.1)
1.2 COMMAND DESCRIPTIONS
The table 1.1 shows the commmands list, ordered by their hexadecimal value. LEGEND :
Symbol Function $ indicates the representation of the command hexadecimal value (for example $40 means HEX
{ } indicates an ASCII character not performable. n, m, t, x, y are optional parameters that can have different values.
1.2.1 ESC/POS Emulation
The following table lists all the commands for function management in ESC/POS Emulation of the keyboard and display. The commands can be transmitted to the printer at any moment, but they will only be carried out when the commands ahead of them have been executed. The commands are carried out when the circular buffer is free to do so.
XEHIICSAnoitpircseD
90$THbatlatnoziroH A0$FLdeefenildnatnirP D0$RCnruteregairracdnatnirP
n40$01$nTOEELDnoissimsnart
n02$B1$nPSCSEgnicapsedis-thgirretcarahcteS n12$B1$n!CSEedomtnirpteS
Normal mode
40).
R
COMMAND DESCRIPTION T ABLE
sutatsemit-laeR
(Tab.1.1)
TK1003Commands Reference -
Page 4
COMMAND DESCRIPTION
XEHIICSAnoitpircseD
HnLn42$B1$HnLn$CSEnoitisopetulosbateS
n52$B1$n%CSEtesretcarahcdenifed-resulecnac/tceleS
2c
1cy62$B1$2c1cy&CSEsretcarahcdenifed-resuenifeD
kd...1dHnLnmA2$B1$kd...1dHnLnm*CSEedomtnirpegamitceleS
1$n-CSEffo/noedomenilrednunruT
1$n{CSEgnitnirpretcarahcnwod-edispulecnac/teS
nD2$B
23$B1$2CSEgnicapsenilhcni-6/1tceleS
n33$B1$n3CSEstinumuminimgnisugnicapsenilte
nD3$B1$n=CSEecivedtceleS
nF3$B1$n?CSEsretcarahcdenifed-resulecnaC
04$B1$@CSEretnirpezilaitinI
00kn...1n44$B1$L n54$B1$nECSEedomdezisahpmetceleS n74$B1$nGCSEedomekirts-elbuodtceleS
A4$B1$nJCSErepapehtdeefdnatnirP
n
nD4$B1$nMCSEtnofretcarahctceleS
n25$B1$nRCSEtesretcarahclanoitanretnitceleS
5$B1$nVCSEdenrut°09edomtnirptceleS
n6
HnLnC5$B1$HnLn\CSEnoitisoptnirpevitalerteS n16$B1$naCSEnoitacifitsujtceleS n46$B1$ndCSEsenilnrepapdeefdnatnirP n47$B1$ntCSEelbatedocretcarahctceleS
67$B1$vCSEsutatsretnirptimsnarT
nB7$B
)n(1C$B1$n}{CSEedomipclecnac/teS
LyHyHxLxnAF$B1$LyHyHxLxn}{CSEc
HnLnBF$B1$HnLn}{CSEtropnoitacinummocotegapcihpargtimsnarT
nCF$B1$n}{CSEMARotniknabhsalfrefsnarT
HnLnDF$B1$HnLn}{CSEtropnoitacinummocmorfegapcihpargevieceR
nEF$B1$n}{CSEknabhsalfotniMARrefsnarT
08$C1$}{SFre
6B$C1$}{SFedocraberotsdnanacS 7B$C1$}{SFdaeredocrabtsalehtstimsnarT 8B$C1$}{SFdaerse
n12$D1$n!SGezisretcarahctceleS
)8xyxx(d..1dyxA2$D1$)8xyxx(d..1dyx*SGegamitibdedaol mF2$D1$m/SGegamitibdedaolnwodtnirP n24$D1$nBSGffo/noedomgnitnirpesreverkcalb/etihwnruT n84$D1$nHSGs n94$D1$nISGDIretnirptimsnarT
HnLnC4$D1$HnLnLSGnigramtfelteS
yx05$D1$yxPS
HnLn75$D1$HnLnWSGhtdiwaeragnitnirpteS n66$D1$nfSGsretcarahcIRHroftnoftce n86$D1$nhSGedocrabfothgiehtceleS
00mB6$D1$LUNmkSGedocrabtnirP n27$D1$nrSGsutatstimsnarT n77$D1$nwSGedocrabfo)
6F$D1$}{SGenilgnitnirptsriftangilatekciT 8F$D1$}{SGhctonotngilatekciT
GtinunoitomlacitrevdnalatnozirohteS
UNkn...1nDCSEsnoitisopbatlatnozirohteS
S
ihpargtnirP
nwodenifeD
leS
ffubnoissimsnartBSUlecnaC
docrab01tsalehtstimsnarT
retcarahcIRHfonoitisopgnitnirptceleS
tnemegralne(edislatnozirohtceleS
Given below are more detailed descriptions of each command.
TK100 4 - Commands Reference
Page 5
COMMAND DESCRIPTION
90$
[Name] Horizontal tab [Format] ASCII H T
Hex 09
Decimal 9 [Description] Moves the print position to the next horizontal tab position. [Notes] • Ignored unless the next horizontal tab position has been set.
• If the command is received when the printing position is at the right margin, the printer
executes print buffer full printing and horizontal tab processing from the beginning of the
next line.
• Horizontal tab positions are set using ESC D. [Default] [Reference] $1B $44 [Example]
A0$
[Name] Print and line feed [Format] ASCII LF
Hex 0A
Decimal 10 [Description] Prints the data in the buffer and feeds one line based on the current line spacing. [Notes] • Sets the print position to the beginning of the line.
• If the buffer is empty , the printing feeds of (character height + sp acing gap) dot. [Default] [Reference] $1B $32, $1B $33, $0D [Example]
D0$
[Name] Print and carriage return [Format] ASCII CR
Hex 0D Decimal 13
[Description] When autofeed is “CR enabled”, this command functions in the same way as $0A,
otherwise it is disregarded. [Notes] • Sets the print position to the beginning of the line. [Default] See “Autofeed in setup” parameter . [Reference] $0A [Example]
n40$01$
[Name] Real-time status transmission [Format] ASCII DLE E OT n
Hex 10 04 n
Decimal 16 4 n [Range] 1 n 4, n = 20 [Description] Transmits the selected printer status specified by n in real time according to the following
TK1005Commands Reference -
Page 6
COMMAND DESCRIPTION
parameters: n = 1 transmits printer status n = 2 transmits off-line status n = 3 transmits error status n = 4 transmits paper roll sensor status
n = 20 transmits FULL STATUS
[Notes] • Immediately executed even when the data buffer is full.
This status is transmitted whenever data sequence 10H 04H n (1£n£4) is received. [Default] [Reference] See tables below . [Example]
n=1: Printer status
tiBnO/ffOxeHlamiceDnoitcnuF
0ffO000 .ffOotdexiF.desutoN
1nO202 .nOotdexiF.desutoN 2- - - .denifednU 3ffO000 .enil-nO
nO808 .enil-ffO
4nO0161. 5- - - .denifednU 6- - - .denifednU 7ffO000 .ffOotdexiF.desutoN
nOotdexiF.desutoN
n=2: Off-line status
tiBnO/ffOxeHlamiceDnoitcnuF
0ffO000 .ffOotdexiF.desutoN
1nO202 .nOotdexiF.desutoN 2ffO000 .neporevoC
nO404 .esolcrevoC 3- - - DEVRESER 4nO0 5ffO000 .potsdnerepapoN
nO0223.dnerepapoteudspotsgnitnirP 6ffO000 .rorreoN
nO0446.)pudaeh,neporevoc,d 7ffO000 .ffOotdexiF.desutoN
161.nOotdexiF.desutoN
nerepap(rorrE
n=3: Error status
tiBnO/ffOxeHlamiceDnoitcnuF 0ffO000 otdexiF.desutoN.ffO 1nO202 otdexiF.desutoN.nO 2ffO000 otdexiF.desutoN.ffO 3- - - denifednU 4nO0161nOotd 5ffO000 orreelbarevocernuoN.r
nO0223orreelbarevocernUr.)yromem(srucco
6ffO000 .rorreelbarevocer-otuaoN
nO0464 gno
7ffO000 ffOotdexiF.desutoN
exiF.desutoN
.)dnammoc
rw,ytirap,erutarepmetrevo(rorreelbarevocer-otuA
TK100 6 - Commands Reference
Page 7
COMMAND DESCRIPTION
n=4: Paper roll sensor status
tiBnO/ffOxeHlamiceDnuFnoitc 0ffO000 .ffOotdexiF.desutoN 1nO202 .nOotdexiF.desutoN
3,2ffO000 .ffOotdexiF.desutoN
4nO0161otdexiF.de
6,5
7ffO000 ffOotdexiF.desutoN
n=20: FULL status (6 bytes) 1° Byte = $10 (DLE); 2° Byte = $0F; 3° Byte = paper status
tiBnO/ffOxeHelamiceDenoiznuF
0ffO000 tneserprepaP
1- - - DEVRESER
2- - - DEVRESER 3- - - DEVRESER 4- - - DEVRESER
5ffO000 .tuptuonit
6- - - DEVRESER 7- - - DEVRESER
ffO000 tneserprepaP
On 60 69.rosnesdnerepapybdetceteddnerepaP
nO101 tneserptonrepaP
nO0223.tuptuonitneserptekciT
sutoNnO
neserptontekciT
4° Byte = User status
tiBnO/ffOxeHelamiceDenoiznuF
0ffO000 nwoddaehlamrehT
nO101 pudaehlamrehT
1ffO000 esolcrevoC
nO202 neporevoC
2ffO000 gniloopsoN
nO404 gnilo
3ffO000 fforotomrepapgarD
nO808 norotomrepapgarD
4- - - DEVRESER 5ffO000 desaeleryeKFL
nO0223desserpyeKFL 6- - - DEVRESER 7- - - DEVRESER
opS
TK1007Commands Reference -
Page 8
COMMAND DESCRIPTION
5° byte = Recoverable error St atus
tiBnO/ffOxeHelamiceDenoiznuF
0ffO000 koerutarepmetdaeH
nO101 rorreerutarepmetdaeH
1ffO000 rorreMOCoN
nO202 rorreMOC232SR
2- - - DEVRESE 3ffO000 koegatlovylppusrewoP
nO808 rorreegatlovylppusrewoP
4- - - DEVRESER
5ffO000 dnammocegdelwonkcA
nO0223rorrednammocegdelwok
6ffO000 .htaprepapeerF
nO0446.majrepaP
7ffO000 dengilahctoN
nO08821hctondengilatoN
6° byte = Unrecoverable error Status
R
catoN
tiBnO/ffOxeHelamiceDenoiznuF
0- - - DEVRESER
1- - - DEVRESER
2ffO000 koMAR
nO404 rorrEMAR
3ffO000 koMORPEE
nO808 MORPEErorrE
4- - - DEVRESER
5- - - DEVRESER 6ffO000 k
nO0446rorrehsalF
7- - - DEVRESER
ohsalF
n02$B1$
[Name] Set right-side character spacing [Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n [Range] 0 n 255 [Description] Sets the character spacing for the right side of the character to [n x horizontal or vertical
motion units]. [Notes] • The right character spacing for double-width mode is twice the normal value.
When the characters are enlarged, the right side character spacing is m (2 or 4) times
the normal value.
The horizontal and vertical motion units are specified by $1D $50. Changing the
horizontal or vertical motion units does not affect the current right side spacing.
• The $1D $50 command can change the horizontal (and vertical) motion unit. However,
the value cannot be less than the minimum horizontal movement amount.
• In standard mode, the horizontal motion unit is used.
• The maximum right side character spacing is 32 mm.
[Default] n = 0
TK100 8 - Commands Reference
Page 9
COMMAND DESCRIPTION
[Reference] $1D $50 [Example]
n12$B1$
[Name] Select print modes [Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n [Range] 0 n 255 [Description] Selects print modes using n (see table below):
tiBnO/ffOxeHlamiceDnuFnoitcipc51/11ipc02/51
0ffO000 .detcelesAtnofretcarahC42x8142x41
nO101 .detcelesBtnofretcarahC42x4142x
1- - - .denifednU 2- - - .denifednU 3ffO000 .detcelestonedomdednapxE
nO808 .detcelesedomdednapxE
4ffO000 .detcelestonedomthgieh-elb
nO0161.detcelesedomthgieh-elbuoD
5ffO000 .detcelestonedomhtdiw-elbuoD
nO0223.detcelesedomhtdiw-elbuoD
6ffO000 .detcel
nO0446.detcelesedomcilatI
7ffO000 .detcelestonedomenilrednU
nO08821.detcelesedomenilrednU
uoD
01
estonedomcilatI
[Notes] • The printer can underline all characters, but cannot underline the spaces set by $09,
$1B $24, $1B $5C and 90°/270° rotated characters.
• This command resets the left and right margin at default value (see $1D $4C, $1D $57).
$1B $45 can also be used to turn the emphasized mode on/off. However , the last­received setting command is the effective one.
$1B $2D can also be used to turn the underlining mode on/off. However, the last- received setting command is the effective one.
$1D $21 can also be used to select character height/width. However, the last-received
setting command is the effective one. [Default] n = 0 [Reference] $1B $2D, $1B $45, $1D $21 [Example]
HnLn42$B1$
[Name] Set absolute print position [Format] ASCII ESC $ nL nH
Hex 1B 24 nL nH
Decimal 27 3 6 n L nH [Range] 0 nL 255
0 nH 255 [Description] Sets the distance from the beginning of the line to the position at which subsequent
characters are to be printed.
The distance from the beginning of the line to the print position is [(nL + nH × 256) ×
(vertical or horizontal motion unit)] inches.
TK1009Commands Reference -
Page 10
COMMAND DESCRIPTION
[Notes] • Settings outside the specified printable area are ignored.
• The horizontal and vertical motion unit are specified by $1D $50.
$1D $50 can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount.
• In standard mode, the horizontal motion unit (x) is used.
• If the setting is outside the printing area width, it sets the absolute print position, but
the left or right margin is set at default value. [Default] [Reference] $1B $5C, $1D $50 [Example]
n52$B1$
[Name] Select/cancel user-defined characters [Format] ASCII ESC % n
Hex 1B 25 n
Decimal 27 37 n [Range] 0 n 255 [Description] Selects or cancels the user-defined character set.
When the Least Significant Bit (LSB) of n is 0, the user-defined character set is
canceled.
When the LSB of n is 1, the user-defined character set is selected. [Notes] • Only the LSB of n is applicable.
• When the user-defined character set is canceled, the internal character set is
automatically selected. [Default] n=0 [Reference] $1B $26, $1B $3F [Example]
y(d...1d1x[2c1cy62$B1$ x y(d...1dkx[...])1x x ])1x
[Name] Defines user-defined characters [Format] ASCII ESC & y c1 c2
Hex 1B 26 y c1 c2
Decimal 27 37 y c1 c2 [Range] y = 3
32 c1 ≤ c2 ≤ 126
0 ≤ x ≤ 16 (Font ( 18 × 24))
0 ≤ x ≤ 13 (Font ( 13 × 24))
0 ≤ x ≤ 10 (Font 10 × 24)
0 d1 … d (y × xk) 255
k = c2 – c1 + 1 [Description] Defines user-defined characters.
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. [Notes] • The allowable character code range is from ASCII 20H (32) to 7EH (126) (95
characters).
• It is possible to define multiple characters for consecutive character codes. If only one
character is desired, use c1 = c2.
• If c2 < c1, the command is not executed.
• d is the dot data for the characters. The dot pattern is in the horizontal direction starting
from the left. Any remaining dots on the right remain blank.
TK100 10 - Commands Reference
Page 11
COMMAND DESCRIPTION
• The data to define a user-defined character is ( x x y) bytes.
• To print a dot, set the corresponding bit to 1; to not have it print, set to 0.
• This command can define different user-defined character patterns for each font. T o select the font, use $1B $21.
• 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 definitions are cleared when: $1B $40 or $1D $2A or $1B $3F are executed or
the printer is reset or the power shut off. [Default] Internal character set. [Reference] $1B $25, $1B $3F [Example]
kd...1dHnLnmA2$B1$
[Name] Select bit image mode [Format] ASCII ESC * m nL nH d1...dk
Hex 1B 2A m nL nH d1...dk
Decimal 27 42 m nL n H d1...dk [Range] m = 0, 1, 32, 33
0 nL 255
0 nH 3
0 d 255 [Description] Selects a bit image mode using m for the number of dots specified by nL and nH, as
follows:
medoMnoitceridlacitreV)1*(noitceridlatnoziroH
stod.NIPDIPD)k(ataDfo.N
0ytisnedelgnistod8876001652xHn+Ln
1ytisnedelbu
23ytisnedelgnistod42420020013x)652xHn+Ln( 33ytisnedelbuodtod42420020023x)652xHn+Ln(
odtod8876002652xHn+Ln
[Notes] • The nL and nH commands indicate the number of dots of the bit image in the horizontal
direction. The number of dots is calculated using: nL + nH × 256.
• 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 0 to not
print the dot.
• If the value of m is outside the specified range, nL and data following it are processed
as normal data.
TK10011Commands Reference -
Page 12
COMMAND DESCRIPTION
• If the width of the printing area set by $1D $4C and $1D $57 is less than the width required by the data set using $1B $2A , the excess data are ignored.
• To print the bit image use $1B $4A or $1B $64.
• Af ter printing a bit image, the printer returns to normal data processing mode.
• This command is not affected by the emphasized, double-strike, underline (etc.) print modes, except for the upside-down mode.
• The relationship between the image data and the dots to be printed is as follows: 8-dot bit image 24-dot bit image
[Default] [Reference] [Example]
nD2$B1$
[Name] Turn underline mode on/off [Format] ASCII ESC - n
Hex 1B 2D n
Decimal 27 45 n [Range] 0 n ≤ 2, 48 ≤ n 50 [Description] Turns underline mode on or off, based on the following values of n:
n = 0, 48 Turns off underline mode
n = 1, 49 Turns on underline mode (1-dot thick)
n = 2, 50 Turns on underline mode (2-dot thick) [Notes] • The printer can underline all characters, but cannot underline the space and right-side
character spacing.
• The printer cannot underline 90°/270° rotated characters and white/black inverted
characters.
• When underline mode is turned off by setting the value of n to 0 or 48, the data which
follows is not underlined.
• Underline mode can also be turned on or off by using $1B $21. Note, however, that the
last received command is the effective one. [Default] n=0 [Reference] $1B $21 [Example]
TK100 12 - Commands Reference
Page 13
COMMAND DESCRIPTION
23$B1$
[Name] Select 1/6-inch line spacing [Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50 [Description] Selects 1/6-inch line spacing. [Notes] [Default] [Reference] $1B $33 [Example]
n33$B1$
[Name] Set line spacing [Format] ASCII ESC 3 n
Hex 1B 33 n
Decimal 27 51 n [Range] 0 n 255 [Description] Sets line spacing to [ n × (vertical or horizontal motion unit)] inches. [Notes] • The horizontal and vertical motion unit are specified by $1D $50. Changing the
horizontal or vertical motion unit does not affect the current line spacing.
• The $1D $50 command can change the horizontal (and vertical) motion unit. However,
the value cannot be less than the minimum vertical movement amount.
• In standard mode, the vertical motion unit is used.
• The maximum spacing is 32,5 mm. [Default] n = 64 (1/6 inch) [Reference] $1B $32, $1D $50 [Example]
nD3$B1$
[Name] Select peripheral device [Format] ASCII ESC = n
Hex 1B 3D n
Decimal 27 61 n [Range] 0 n 255 [Description] Select the device to which the host computer sends data, using n as follows:
n = 1, n = 3 Printer Enable
n = 2 Printer Disabled [Notes] • When the printer is disabled, it ignores all transmitted data until the printer is enabled
through this command. [Default] n = 1 [Reference] [Example]
TK10013Commands Reference -
Page 14
COMMAND DESCRIPTION
nF3$B1$
[Name] Cancel user-defined characters [Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 27 63 n [Range] 32 ≤ n ≤ 126 [Description] Cancels user-defined characters. [Notes] • This command cancels the pattern defined for the character code specified by n. After
the user-defined character is cancelled, the corresponding pattern for the internal
character is printed.
• This command deletes the pattern defined for the specified character code in the font
selected by $1B $21.
• If the user-defined character has not been defined for the specified character code, the
printer ignores this command. [Default] [Reference] $1B $26, $1B $25 [Example]
04$B1$
[Name] Initialize printer [Format] ASCII ESC @
Hex 1B 40
Decimal 27 64 [Description] Clears the data in the print buffer and resets the printer mode to that in effect when power
was turned on. [Notes] • The data in the receiver buffer is not cleared.
• The macro definitions are not cleared. [Default] [Reference] [Example]
00kn...1n44$B1$
[Name] Set horizontal tab positions [Format] ASCII ESC D n1...nk NUL
Hex 1B 44 n1...nk 00 Decimal 27 68 n1...nk 0
[Range] 1 n 255
0 k 32
[Description] Sets horizontal tab positions
n specifies the column number for setting a horizontal tab position calculated from the
beginning of the line.
k indicates the total number of horizontal tab positions to be set. [Notes] • The horizontal tab position is stored as a value of [character width x n] measured from
the beginning of the line. The character width includes the right-side character spacing and double-width characters are set with twice the width of normal characters.
• This command cancels previous tab settings.
• When setting n = 8, the print position is moved to column 9.
• Up to 32 tab positions ( k = 32) can be set. Data exceeding 32 tab positions is
processed as normal data.
• Send [ n ] k in ascending order and place a 0 NUL code at the end. When [ n ] k is less
TK100 14 - Commands Reference
Page 15
COMMAND DESCRIPTION
than or equal to the preceding value [ n ] k-1, the setting is complete and the data which follows is processed as normal data.
$1B $44 00 cancels all horizontal tab positions.
• The previously specified horizontal tab position does not change, even if the character width is modified.
[Default] Default tab positions are set at intervals of 8 characters (columns 9, 17, 25, …) for Font A
when the right-side character spacing is 0. [Reference] [Example]
n54$B1$
[Name] Turn emphasized mode on/off [Format] ASCII ESC E n
Hex 1B 45 n
Decimal 27 69 n [Range] 0 n 255 [Description] Turns emphasized mode on/off.
• When the LSB of n is 0, the emphasized mode is off.
• When the LSB of n is 1, the emphasized mode is on.
[Notes] • Only the LSB of n is effective.
$1B $21 also turns on and off the emphasized mode. However, the last received
command is the effective one. [Default] n = 0 [Reference] $1B $21 [Example]
n74$B1$
[Name] T urn double-strike mode on/off [Format] ASCII ESC G n
Hex 1B 47 n
Decimal 27 71 n [Range] 0 ≤ n ≤ 255 [Description] Turns double-strike mode on or off.
• When the LSB of n is 0, the double-strike mode is off.
• When the LSB of n is 1, the double-strike mode is on.
[Notes] • Only the LSB of n is effective.
• Printer output is the same in double-strike and emphasized mode. [Default] n = 0 [Reference] $1B $45 [Example]
nA4$B1$
[Name] Print and paper feed [Format] ASCII ESC J n
Hex 1B 4A n
Decimal 27 74 n [Range] 0 n 255 [Description] Prints the data in the print buffer and feeds the paper [ n × (vertical or horizontal motion
unit)] inches.
TK10015Commands Reference -
Page 16
COMMAND DESCRIPTION
[Notes] • After printing has been completed, this command sets the print starting position to the
beginning of the line.
• The paper feed amount set by this command does not affect the values set by $1B $32 or $1B $33.
• The horizontal and vertical motion units are specified by $1D $50.
$1D $50 can change the vertical (and horizontal) motion unit. However, the value cannot be less than the minimum vertical movement amount.
• In standard mode, the vertical motion unit is used.
• The maximum paper feed amount is 520 mm. [Default] [Reference] $1D $50 [Example]
nD4$B1$
[Name] Select character font [Format] ASCII ESC M n
Hex 1B 4D n
Decimal 27 77 n [Range] n = 0, 1, 48, 49 [Description] Selects characters font.
nnoitcnuF
84,0detceles)42x41(AtnofretcarahC 94,1detceles)42x01(BtnofretcarahC
[Notes] [Default] [Reference] $1B $C1 [Example]
n25$B1$
[Name] Select an international character set [Format] ASCII ESC R n
Hex 1B 52 n
Decimal 27 82 n [Range] 0 n 10 [Description] Selects the international character set n according to the table below:
TK100 16 - Commands Reference
Page 17
COMMAND DESCRIPTION
xeH324204B5C5D5E506B7C7D7E7
ntesretcarahC
0.A.S.U#$@[\]^`{|}~ 1cnarFe #$à°ç§^`èùè" 2namreGy #$§ÄÖÜ^`äöü
3modgniKdetin$@[\]^`{|}~ 4kramneDI#$@Æ∅Å^ `æ 5nedewS # ИДЦЕЬидцеь 6ylatI #$@°\и^щатим 7niapS1 tP$@iÑ¿^`"ñ}~ 8napaJ#$@[¥]^`{|}~ 9yawroN#ÈÆ
01kramneDII#$ÈÆ∅ÅÜèæ
[Default] n = 0 [Reference] [Example]
n65$B1$
[Name] Set 90° rotated print mode. [Format] ASCII ESC V n
Hex 1B 56 n
Decimal 27 86 n [Range] 0 n ≤ 1, 48 ≤ n 49 [Description] Turns 90° rotation mode on/off. n is used as follows :
ÅÜèæ
φ
φ
φ
β
å~
åü åü
nnoitcnuF
84,0edomnoitator°09ffosnruT
94,0edomnoitator°09nosnruT
[Notes] • When underlined mode is turned on, the printer does not underline 90° rotated
characters. All the same it’ s possible select the underline mode.
• Double-width and double-height commands in 90° rotation mode enlarge characters in
the opposite directions from double-height and double-width commands in normal mode.
• This command is not available in Page mode.
• If this command is entered in Page mode, the printer all the same save the setting. Default] n = 0 [Reference] $1B $21, $1B $2D [Example]
TK10017Commands Reference -
Page 18
COMMAND DESCRIPTION
HnLnC5$B1$
[Name] Set relative print position [Format] ASCII ESC \ nL nH
Hex 1B 5C nL nH Decimal 27 92 n L n H
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] Sets the print starting position based on the current position by using the horizontal or
vertical motion unit. Sets the distance from the current position to [(nL+ nH × 256) × (horizontal or vertical motion unit)].
[Notes] • It’s possible to print further on the right margin set for every font. In this case the
printing continues up to the maximum border of the printer mechanism and then begins a new row.
• Any setting that exceeds the printable area is ignored.
• When the starting position is specified by n motion units to the right: nL + nH × 256 = n When the starting position is specified by n motion units to the left (negative direction), use the complement of 65536:
nL + nH × 256 = 65536 – n
• If setting exceeds the printing area width, the left or right margin is set to the default value.
• The horizontal and vertical motion unit are specified by $1D $50.
$1D $50 can change the horizontal (and vertical) motion units. However, the value cannot be less than the minimum horizontal movement amount.
• In standard mode, the horizontal motion unit is used.
• Setting the right value, it’s possible to print characters over the right edge. [Default] [Reference] $1B $24, $1D $50 [Example]
16$B1$
[Name] Select justification [Format] ASCII ESC a n
Hex 1B 61 n
Decimal 27 97 n [Range] 0 n 2, 48 n 50 [Description] Aligns all data in one line to the specified position; n selects the type of justification as
follows:
n Justification
0, 48 Flush left
1, 49 Centered
2, 50 Flush right [Notes] • This command is only enabled when inserted at the beginning of a line.
• Lines are justified within the specified printing area.
• Sp aces set by $1B $24 and $1B $5C will be justified according to the previously-
entered mode. [Default] n = 0 [Reference]
TK100 18 - Commands Reference
Page 19
COMMAND DESCRIPTION
[Example] Flush left Centered Flush right
ABC ABCD ABCDE
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
n46$B1$
[Name] Print and feed paper n rows [Format] ASCII ESC d n
Hex 1B 64 n
Decimal 27 100 n [Range] 0 n 255 [Description] Prints the data in the print buffer and feeds the paper n rows. [Notes] • n rows paper feed is equivalent to (n x char height + line spacing set).
• Sets the print starting position at the beginning of the line.
• This command does not affect the line spacing set by ESC 2 or ESC 3.
• The maximum paper feed amount is 254 rows. Even if a paper feed amount of more
than 254 rows is set, the printer feeds the paper only 254 rows. [Default] [Reference] $1B $32, $1B $33 [Example]
n47$B1$
[Name] Select character code table [Format] ASCII ESC t n
Hex 1B 74 n
Decimal 27 116 n [Range] n = 0, 2, 3, 4, 5, 19, 255 [Description] Selects a page n from the character code table, as follows:
negaP
0)]eporuEdradnatS,.A.S.U[734CP(0
2)]laugnilitluM[058CP(2
3)]leseugutroP[068CP(3
4)]hcnerF-naidanaC[368CP
5)]cidroN[568CP(5
91)312noitisoptalobmysoruErof858CP(91 552egapecapS
[Notes] [Default] n = 0 [Reference] See character code tables [Example] For printing Euro symbol (•), the command sequence is:
1B, 74, 13, D5
(4
TK10019Commands Reference -
Page 20
COMMAND DESCRIPTION
67$B1$
[Name] Transmit p aper sensor status [Format] ASCII ESC v
Hex 1B 76
Decimal 27 118 [Description] When this command is received, transmit the current status of the paper sensor . [Notes] • This command is executed immediately , even when the data buf fer is full (Busy ).
The status to be transmitted is shown in the table below:
tiBnO/ffOxeHlamiceDnoitcnuF
0- - - DEVRESER
1- - - DEVRESER
ffO000
3,2
nO)C0()21(
4ffO000 .ffOotdexiF.desutoN 5- - - DEVRESER 6- - - DEVRESER 7ffO000 .ffOotdexiF.desutoN
:rosnesdne-repaP
tneserprepaP
:rosnesdne-repaP
serptonrepaP
tne
[Default] [Reference] $10 $04 [Example]
n{CSE
[Name] T urn up side-down printing mode on/off [Format] ASCII ESC { n
Hex 1B 7B n
Decimal 27 123 n [Range] 0 n 255 [Description] Turns upside-down printing mode on or off.
• When the LSB of n is 0, the upside-down printing mode is off.
• When the LSB of n is 1, the upside-down printing mode is on.
[Notes] • Only the LSB of n is effective.
• This command is valid only if entered at the beginning of a line.
• In upside-down printing mode, the printer rotates the line to be printed 180° and then
prints it. [Default] n = 0 [Reference] [Example] Upside-down printing Off Upside-down printing On
ABCDEFG 0123456
0123456 ABCDEFG
Printing direction
TK100 20 - Commands Reference
Page 21
COMMAND DESCRIPTION
n1C$B1$
[Name] Set/cancel cpi mode [Format] ASCII ESC { } n
Hex 1B C1 n
Decimal 27 193 n [Range] 0 n ≤ 1, 48 ≤ n 49 [Description] Sets cpi mode based on the following values of n:
nnoitcnuF
84,0ipc11=AtnoF
94,1ipc51=AtnoF
[Default] n = 0 [Reference] $1B $21 [Example]
LyHyLxHxnAF$B1$
ipc51=BtnoF
ipc02=BtnoF
[Name] Print graphic (512x1024). [Format] ASCII ESC { } n xH xL yH yL
Hex 1BFAn xHxLyHyL
Decimal 27 250 n xH xL yH yL [Range] 0 n 2
0 xH, xL, yH , yL ≤ 3 [Description] Prints graphic logo from flash or current graphic page located in ram. n selects the
graphic source as follows:
nnoitcnuF
0)tnemomehttadesu(marmorfegapcihpargtnirP 1hsalfmorf1ogoltnirP 2hsalfmorf2ogoltnirP
xL + xH × 256 specifies the starting dotline ( 1 ÷ 1024).
yL + yH × 256 specifies the number of lines to print.
[Notes] • If (xL + (xH × 256)) > 1024 the printer does not execute the command.
• If ( xL + ( xH × 256 ) + yL +( yH × 256 ))> 1024 the printer prints only 1024 - xL + ( xH ×
256 ) +1 dotline. [Default] [Reference] [Example]
HnLnBF$B1$
[Name] Transmit graphic page to communication port [Format] ASCII ESC { } nL nH
Hex 1B FB nL nH
Decimal 27 25 1 nL nH [Description] Transmits [nL + (nH × 256)] word of graphic page used at the moment to the communica-
tion port. [Default]
TK10021Commands Reference -
Page 22
COMMAND DESCRIPTION
[Reference] $1B $FC, $1B $FD, $1B $FE [Example]
nCF$B1$
[Name] Transfer flash bank into RAM [Format] ASCII ESC { } n
Hex 1B FC n
Decimal 27 25 2 n [Range] 1 n ≤ 3 [Description] Transfers flash bank into RAM used at the moment (65520 bytes); n
selects the flash bank as follows:
nnoitcnuF
1marotni1ogolknabhsalfsrefsnarT
2marotni2ogolknabhsalfsrefsnarT
[Notes] [Default] [Reference] $1B $FA, $1B $FD, $1B $FE [Example]
HnLnDF$B1$
[Name] Receive graphic page from communication port [Format] ASCII ESC { } nL nH
Hex 1B FD nL nH
Decimal 27 2 53 nL nH [Range] 0 nL, nH ≤ 255 [Description] Receives [nL + (nH × 256)] words from the port and puts them into the ram bank. [Notes] • The number of data bytes received is [nL + (nH × 256)] × 2.
• Each word is first received as MSByte and then as LSByte.
• If [nL + (nH × 256)] is greater than 32768, the data which follows is processed as
normal data.
•The flash bank dimensions for the graphic print are 512 horizontals dots (64 bytes/dot
line) x 1024 verticals dots (524288 bytes). [Default] [Reference] $1B $FA, $1B $FC, $1B $FE [Example]
nEF$B1$
[Name] Transfer RAM into flash bank [Format] ASCII ESC { } n
Hex 1B FE n
Decimal 27 2 54 n [Range] 1 n ≤ 3 [Description] Transfers the RAM used at the moment into the flash bank (65520 bytes); n
selects the bank as follows:
TK100 22 - Commands Reference
Page 23
COMMAND DESCRIPTION
nnoitcnuF
11ogolknabhsalfotnitnemomehttadesuMARsrefsnarT
22ogolknabhsalfotnitnemomehttadesuMARsrefsnarT
[Notes] [Default] [Reference] $1B $FA, $1B $FD, $1B $FC [Example]
08$C1$
[Name] Cancel USB transmission buffer. [Format] ASCII FS { }
Hex 1C 80
Decimal 28 128 [Description] This command cancel the USB transmission buffer . [Notes] This command is effective only with USB connection. [Default] [Reference] [Example]
6B$C1$
[Name] Scan and store BarCode [Format] ASCII FS {}
Hex 1C $B6
Decimal 28 18 2 [Description] Reads barcode CCD; the reading is stored and trasmitted from the printer . The data
format of the printer answer is as follows:
ETYBRCETYBSUTATSATADEDOCRABETYBRCETYBDNE
where:
-
-
-
: $0D corresponds to CR character;
ETYBRC
: $0A corresponds to LF character;
ETYBDNE
: can be
ETYBSUTATS
- $06 if the barcode is read (the [BARCODE DA T A] is filled with barcode V alue);
-$15 if the barcode is not read (the [BARCODE DAT A] is empty);
-
: is the barcode’s characters read.
ATADEDOCRAB
[Notes] • $06 corresponds to ACK character .
• $15 corresponds to N ACK character . [Default] [Reference] [Example] Ticket facsimile with barcode :
TK10023Commands Reference -
Page 24
COMMAND DESCRIPTION
After receiving the $1C $B6 command the printer will return the following string :
- if the reading is successful $0D $06 $32 $30 $30 $36 $31 $30 $30 $30 $30 $39 $30 $33 $0D $0A
(the underlined characters represent the [BARCODE DA T A] field)
- if the reading is not occurs $0D $15 $0D $0A
7B$C1$
[Name] Transmit s the last barcode read [Format] ASCII FS {}
Hex 1C $B7 Decimal 28 18 3
[Description] Transmits the last barcode read. The data format of the printer answer is as follows :
ETYBRCETYBSUTATSATADEDOCRABETYBRCETYBDNE
where:
-
-
-
-
[Notes] • $06 corresponds to ACK character .
• $15 corresponds to N ACK character .
[Default] [Reference] [Example]
: $0D corresponds to CR character;
ETYBRC
: $0A corresponds to LF character;
ETYBDNE
: can be
ETYBSUTATS
- $06 if the barcode is read (the [BARCODE DA T A] is filled with barcode V alue);
-$15 if the barcode is not read (the [BARCODE DAT A] is empty);
: is the barcode’s characters read.
ATADEDOCRAB
TK100 24 - Commands Reference
Page 25
COMMAND DESCRIPTION
8B$C1$
[Name] Transmit s the last 10 barcode read [Format] ASCII FS {}
Hex 1C $B8 Decimal 28 18 4
[Description] Transmits the last 10 barcode read with FIFO structure, that is the first barcode read is
the first barcode to be transmitted. The data format of the printer answer is as follows :
ETYBRC ETYBSUTATS ETYBEZIS ATADEDOCRAB ETYBRC ......ETYBDNE
where the sequence
ETYBSUTATS ETYBEZIS ATADEDOCRAB ETYBRC
where:
-
-
-
: $0D corresponds to CR character;
ETYBRC
: $0A corresponds to LF character;
ETYBDNE
: is the size of the [BARCODE DA TA] (if STA TUS BYTE is $15 (NACK),
ETYBEZIS
hits value is 0);
-
: can be
ETYBSUTATS
- $06 if the barcode is read (the [BARCODE DA T A] is filled with
barcode V alue);
-$15 if the barcode is not read (the [BARCODE DAT A] is empty);
-
: is the barcode’s characters read.
ATADEDOCRAB
[Notes] • $06 corresponds to ACK character .
• $15 corresponds to N ACK character . [Default] [Reference] [Example]
repeated for the last ten barcode read
n12$D1$
[Name] Select character size [Format] ASCII GS ! n
Hex 1D 21 n Decimal 29 33 n
[Range] 0 n ≤ 7, 16 ≤ n ≤ 23, 32 ≤ n 39,
48 ≤ n 55, 64 ≤ n 71, 80 ≤ n ≤ 87 96 ≤ n ≤ 103, 1 12 ≤ n ≤ 119
[Description] Selects character height and width, as follows:
• Bits 0 to 3: to select character height (see table 2).
• Bits 4 to 7: to select character width (see table 1).
TK10025Commands Reference -
Page 26
COMMAND DESCRIPTION
1elbaThtdiWretcarahCtceleS
xeHlamiceDhtdiW 000 )lamron(1 01612 )x2=htdiw(
0223)x3=htdiw(3
0384)x4=htdiw(4
0446)x5=htdiw(5 050
0669)x7=htdiw(7
07211)x8=htdiw(8
8)x6=htdiw(6
xeHlamiceDthgieH 000 )lamron(1 101 )x2=thgieh(2 202 )x3=thgieh(3 303 )x4=thgieh(4 404 )x5=thgieh 505 )x6=thgieh(6 606 )x7=thgieh(7 707 )x8=thgieh(8
(5
thgiehretcarahctceleS2elbaT
[Notes] • This command is effective for all characters (except HRI characters).
• If n falls outside the defined range, this command is ignored.
• Characters enlarged to different heights on the same line are aligned at the baseline or topline.
$1B $21 can also be used to select character size. However , the setting of the last
received command is the effective one. [Default] n = 0 [Reference] $1B $21 [Example]
x(d..1dyxA2$D1$ x y x )8
[Name] Define dowloaded bit image [Format] ASCII GS * xyd1...d(x x y x 8)
Hex 1D 2A xyd1...d(x x y x 8)
Decimal 29 42 xyd1...d(x x y x 8) [Range] 1 x ≤ 255
1 y ≤ 48
x x y 1536
0 ≤ d ≤ 255 [Description] Defines a downloaded bit image using the number of dots specified by x and y .
• x specifies the number of dots in the horizontal direction.
• y specifies the number of dots in the vertical direction.
[Notes] • The number of dots in the horizontal direction is x x 8, in the vertical direction it is y x
8.
• If x x y is out of the specified range, this command is disabled.
• The d indicates bit-image data. Data ( d) specifies a bit printed to 1 and not printed to 0.
• The downloaded bit image definition is cleared when:
1) $1B $40 is executed.
2) $1B $26 is executed.
Printer is reset or the power is turned off.
• The following figure shows the relationship between the downloaded bit image and the
printed data.
TK100 26 - Commands Reference
Page 27
COMMAND DESCRIPTION
[Reference] $1D $5C [Example]
m/ SG
[Name] Print dowloaded bit image [Format] ASCII GS / m
Hex 1D 2F m Decimal 29 47 m
[Description] Prints a downloaded bit image using the mode specified by m; m selects the mode from
the table below :
mdoMe
084,lamroN
94,1elbuoD-htdiw
05,2thgieh-elbuoD
15,3elpurdauQ
[Notes] • This command is ignored if a downloaded bit image has not been defined.
• In standard mode, this command is effective only when there is no data in the print buffer .
• This command has no effect in the print modes (emphasized, underline, character size, or white/black reverse printing), except for upside-down printing mode.
• If the downloaded bit-image to be printed exceeds the printable area, the excess data is not printed.
• If the printing area width set by $1D $4C and $1D $57 is less than the bit image horizontal size, the following processing is performed:
1) The printing area width is extended toward the right side up to hold the bit image. In this case, printing does not exceed the printable area.
2) If the printing area width cannot be extended toward the right side, because there’s no
more printing area, the left margin is reduced to accommodate the bit image. [Reference] $1D $2A [Example]
TK10027Commands Reference -
Page 28
COMMAND DESCRIPTION
n24$D1$
[Name] Turn white/black reverse printing mode on/off [Format] ASCII GS B n
Hex 1D 42 n
Decimal 29 66 n [Range] 0 ≤ n ≤ 255 [Description] Turns white/black reverse printing mode on or off.
• When the LSB of n is 0, white/black reverse printing is turned off.
• When the LSB of n is 1, white/black reverse printing is turned on.
[Notes] • Only the LSB di n is effective.
• This command is available for both built-in and user-defined
characters.
• This command does not affect bit image, downloaded bit image, bar code, HRI
characters and spacing skipped by $1B $24 and $1B $5C.
• This command does not affect white space between lines.
• White/black reverse mode has a higher priority than underline mode. Even if underline
mode is on, it will be disabled (but not cancelled) when white/black reverse mode is
selected. [Default] n = 0 [Reference] [Example]
n84$D1$
[Name] Select printing position of Human Readable Interpretation ( HRI ) characters [Format] ASCII GS H n
Hex 1D 48 n
Decimal 29 7 2 n [Range] 0 n 3, 48 n 51 [Description] Selects the printing position of HRI characters when printing bar codes; n selects the
printing positions as follows:
nnuFnoitc
84,0detnirptoN 94,1edocrabehtevobA 05,2edocrabehtwoleB 15,3edocrabehtwolebehtevobahtoB
[Notes] • HRI characters are printed using the font specified by $1D $66. [Default] n = 0 [Reference] $1D $66, $1D $6B [Example]
n94$D1$
[Name] Transmit printer ID [Format] ASCII GS I n
Hex 1D 49 n
Decimal 29 73 n [Range] 1 n 3, 49 n 51 [Description] Transmits the printer ID specified by n follows:
TK100 28 - Commands Reference
Page 29
COMMAND DESCRIPTION
nDIretnirPnoitacificepS
94,1DIledomretnirP48$ 05,2DIepyTwolebelbateeS 15,3DInoisrevMOR)retcarahc4(noisrevMORnosd
nepeD
n = 2, 50 Type ID
tiBnO/ffOxeHlamiceDnoitcnuF
0ffO000 detroppustonsedocretcarahcetyb-2
1ffO000 deilppustonrettucotuA
deilppusrettucotuA
2f
3- - - denifednU 4ffO000 .ffOotdexiF.desutoN 5- - - denifednU 6- - - denifednU 7ffO000 .ffOot
fO000 lebalo/wrepaplamrehT nO404 lebal/wrepaplamrehT
dexiF.desutoN
[Notes] • When the DTR/DSR command is selected, the printer only transmits 1 byte (printer ID)
following confirmation that the host is ready to receive data. If the host is not ready , the printer waits until it is ready.
• When the XON/XOFF command is selected, the printer only transmits 1 byte (printer ID) without confirmation that the host is ready to receive data.
• This command is executed when the data is processed in the data buffer . Therefore, there could be a time lag between command reception and data transmission, depending
on data buffer status. [Default] [Reference] [Example]
HnLnC4$D1$
[Name] Set left margin [Format] ASCII GS L nL nH
Hex 1D 4C nL nH
Decimal 29 76 n L n H [Range] 0 ≤ nL, nH 255 [Description] Sets the left margin.
• The left margin is set to [(nL + nH × 256) × (horizontal motion unit)] inches. Printable
Left margin Printing area width
[Notes] • This command is enabled only if set at the beginning of the line.
• If the setting exceeds the printable area, the maximum value of the printable area is
used.
• If the left margin + printing area width is greater than the printable area, the printing area
width is set at maximum value.
• The horizontal and vertical motion unit are specified by $1D $50. Changing the
horizontal or vertical motion unit does not affect the current left margin.
TK10029Commands Reference -
Page 30
COMMAND DESCRIPTION
• The $1D $50 command can change the horizontal (and vertical) motion unit.
• However, the value cannot be less than the minimum horizont al movement amount and
it must be in even units of the minimum horizontal movement amount. [Default] [Reference] $1D $50, $1D $57 [Example]
yx05$D1$
[Name] Set horizontal and vertical motion units [Format] ASCII GS P x y
Hex 1D 50 x y
Decimal 29 80 x y [Range] 0 ≤ nL, nH 255 [Description] Sets the horizontal and vertical motion units to 1/x inch and
1/y inch respectively .
When x is set to 0, the default setting value is used.
When y is set to 0, the default setting value is used. [Notes] • The horizontal direction is perpendicular to the paper feed direction.
• In standard mode, the following commands use x or y, regardless of character rotation
(upside-down or 90° clockwise rotation):
cc
c Commands using x : $1B $20, $1B $24, $1B $5C, $1D $4C, $1D $57.
cc
dd
d Commands using y : $1B $33, $1B $4A.
dd
• This command does not affect the previously specified values.
• The calculated result from combining this command with others is truncated to the
minimum value of the mechanical pitch or an exact multiple of that value. [Default] x = 204, y = 408 [Reference] $1B $20, $1B $24, $1B $5C, $1B $33, $1B $4A, $1D $4C, $1D $57 [Example]
HnLn75$D1$
[Name] Set printing area width [Format] ASCII GS W nL nH
Hex 1D 57 nL nH
Decimal 29 87 n L n H [Range] 0 ≤ nL, nH 255
0 ≤ nL + nH x 256) ≤ 832 [Description] Sets the printing area width to the area specified by nL and nH.
• The left margin is set to [(nL + nH × 256) × (horizontal motion unit)] inches. Printable area
Left margin Printing area width
[Notes] • This command is only enabled if set at the beginning of the line.
• If the right margin is greater than the printable area, the printing area width is set at
maximum value.
• If the printing area width = 0, it is set at the maximum value.
• The horizontal and vertical motion units are specified by $1D $50. Changing the
TK100 30 - Commands Reference
Page 31
COMMAND DESCRIPTION
horizontal or vertical motion unit does not affect the current left margin.
• The $1D $50 command can change the horizontal (and vertical) motion unit.
• However, the value cannot be less than the minimum horizont al movement amount and
it must be in even units of the minimum horizontal movement amount. [Default] [Reference] $1D $4C, $1D $50 [Example]
n66$D1$
[Name] Select font for HRI characters [Format] ASCII GS f n
Hex 1D 66 n
Decimal 29 102 n [Range] n = 0, 1, 48, 49 [Description] Selects a font for the HRI characters used when printing a bar code. n selects a font from
the following table:
ntnoF
84,0AtnoF 94,1BtnoF
[Notes] HRI characters are printed at the position specified by $1D $48. [Default] n = 0 [Reference] $1D $48, $1D $6B [Example]
n86$D1$
[Name] Set bar code height [Format] ASCII GS h n
Hex 1D 68 n
Decimal 29 10 4 n [Range] 1 ≤ n ≤ 255 [Description] Sets the height of the bar code.
n specifies the number of vertical dots. [Notes] [Default] n = 162 ( 20.25 mm ) [Reference] $1D $6B [Example]
00mD6$D1$
[Name] Print bar code [Format] c ASCII GS k m NUL [d1..dk]
Hex 1D 6B m 00 [d1..dk] Decimal 29 107 m 0 [d1..dk]
d ASCII GS k m n [d1..dn]
Hex 1D 6B m n [d1..dn] Decimal 29 107 m n [d1..dn]
[Range] c 0 m ≤ 20
d 65 ≤ m ≤ 90
TK10031Commands Reference -
Page 32
COMMAND DESCRIPTION
[Description] Selects a bar code system and prints the bar code. m selects a bar code system as
follows:
56A-CPU11 n 2184 d 75 66E-CPU11 n 2184 d 75
76)NAJ(31NAE21 n3184 d 75
86)NAJ(8NAE7≤ n≤ 884 d 75
9693EDOC1≤ n ≤ 552
d
07FTI1≤ n ≤ 55284 d 75
17RABADOC1≤ n ≤ 552
2739EDOC1≤ n 37821EDOC2≤ n ≤ 5520≤ d ≤ 721 0923EDOC8≤ n ≤ 984 d 75
5520≤ d 721
84 d 56,
84 d 56,75 1d ,63,86
75 d ,23,09
74,64,54,34,73,63
85,74,64,54,34
mmetsysedocraBsretcarahcfo.oNskrameR
0A-CPU11 k 2184 d 75 1E-CPU11 k 2184 d 75
2)NAJ(31NAE21 k 3184 d 75
3)NAJ(8NAE7≤ k
493EDOC1≤ k
n
5FTI1≤ (krebmunneve) 84 75£d
6RABADOC1≤ k
739EDOC1≤ k ≤ 5521≤ d ≤ 721 8821EDOC2≤ k ≤ 5521≤ d ≤ 721
0223EDOC8≤ k ≤ 984 d 75
884 d 75
84 d 56,75 d ,23,09
84 d 56,75 1d ,63,8
74,64,54,34,73,63
6
85,74,64,54,34
[Notes] • If d is outside of the specified range, the printer prints the following message: “BAR
CODE GENERA TOR IS NOT OK!” and processes the data which follows as normal data.
• If the horizontal size exceeds the printing area, the printer only feeds the paper .
• This command feeds as much paper as is required to print the bar code, regardless of the line spacing specified by $1B $32 or $1B $33.
• Af ter printing the bar code, this command sets the print position to the beginning of the line.
• This command is not affected by print modes (emphasized, double- strike, underline or character size), except for upside-down and justification mode.
[Notes per c] • This command ends with a NUL code.
• When the bar code system used is UPC-A or UPC-E, the printer prints the bar code data after receiving 11 (without check digit) or 12 (with check digit) bytes bar code data.
• When the bar code system used is EAN13, the printer prints the bar code data after receiving 12 (without check digit) or 13 (with check digit) bytes bar code data.
• When the bar code system used is EAN8, the printer prints the bar code data after
TK100 32 - Commands Reference
Page 33
COMMAND DESCRIPTION
receiving 7 (without check digit) or 8 (with check digit) bytes bar code data.
• The number of data for ITF bar code must be even numbers. When an odd number of
data is input, the printer ignores the last received data. [Notes per d] • If n is outside of the specified range, the printer stops command processing and
processes the following data as normal data. When CODE93 is used the printer:
• prints an HRI character ( o ) as a start character at the beginning of the HRI character string
• prints an HRI character ( o ) as a stop character at the end of the HRI character string.
• The printer prints an HRI character ( n ) as a control character ( 00H to 1FH and 7FH). When CODE128 is used:
• When using CODE128 in this printer, please note the following regarding dat a transmission:
• The top part of the bar code data string must be a code set selection character (CODE A, CODE B or CODE C) which selects the first code set.
• Special characters are defined by combining two characters “{“ and one character . ASCII character “{” is defined by transmitting “{“ twice, consecutively.
retcarahccificepSnoissimsnartataD
IICSAxeHlamiceD
TFIHSS{35,B738,321
AEDOCA{14,B756,321 BEDOCB{24,B766,321
CEDOCC{34,B776 1CNF1{13,B794,321 2CNF2{23,B705,321 3CNF3{33,B715,321 4CNF4{43,B725,321
'{'{{B7,B7321,321
When UPC-E is used, introducing the barcode characters, the printer prints
ataddettimsnarTatadgnitnirP
1d2d3d4d5d6d7d8d9d01d11d
09-09-0000009-09-09-02d3d9d01d11d0 09-09-0100009-09-09-02d3d9d01d11d1 09-09-0200009-09-09-02d3d9d01d11d2 09-09-09-3000009 09-09-09-09-1000009-02d3d4d5d11d4 09-09-09-09-09-10000 9-52d3d4d5d6d11d
-09-02d3d4d01d11d3
,321
[Default] [Reference] $1D $48, $1D $66, $1D $68, $1D $77 [Example] c Example of print the Bar Code 39
1D 6B 04 54 45 53 54 00
d Example of print the Bar Code 39
1D 6B 45 04 54 45 53 54
TK10033Commands Reference -
Page 34
COMMAND DESCRIPTION
n27$D1$
[Name] Transmit st atus [Format] ASCII GS r n
Hex 1D 72 n
Decimal 29 114 n [Range] n = 1, 49 [Description] Transmits the status specified by n as follows:
n Function
1, 49 Transmits paper sensor status (as for $1B $76).
Paper sensor status (n = 1, 49)
tiBnO/ffOxeHlamiceDnoitcnuF
0- - - DEVRESER
1- - - DEVRESER
ffO000
3,2
nO)C0()21(
4ffO000 .ffOotdexiF.desutoN 5- - - DEVRESER 6- - - DEVRESER 7ffO000 .ffOotdexiF.desutoN
:rosnesdne-repaP
tneserprepaP
:rosnesdne-repaP
serptonrepaP
tne
[Notes] • This command is executed when the data is processed in the data buf fer. Therefore,
there may be a time lag between receiving the command and transmitting the status,
depending on data buffer status. [Default] [Reference] $10 $04, $1B $76 [Example]
n77$D1$
[Name] Set bar code width [Format] ASCII GS w n
Hex 1D 77 n
Decimal 29 119 n [Range] 1 n ≤ 6 [Description] Sets the horizontal size of the bar code. n specifies the bar code width as follows:
nhtdiweludoM)mm(
1521.0
252.0
3573.0
45.0
5526.0
657.0
[Notes] [Default] n = 3 [Reference] $1D $6B
TK100 34 - Commands Reference
Page 35
COMMAND DESCRIPTION
[Example]
6F$D1$
[Name] Ticket align at the first printing line [Format] ASCII GS { }
Hex 1D F6 Decimal 29 246
[Description] To align at the first printing line the notch is looking for and then the ticket is move back
to the “Print Offset” value (see SETUP). With the “Print Offset” parameter it’s possible to program the printing start distance from the notch.
[Notes] • The printing start distance change in according to the parameter “Print offset” that is a
SETUP parameter; if “Print offset” = 0 the first printing line is aligned with notch +
(distance notch sensor / printhead). [Default] 11mm [Reference] $1D$F8 [Example]
8F$D1$
[Name] Ticket align at cut [Format] ASCII GS { }
Hex 1D F8
Decimal 29 24 8 [Description] Set the print head alignment at the following notch so it’s easy to tear away the printed
ticket. [Notes] [Reference] $1D$F6 [Example]
TK10035Commands Reference -
Page 36
COMMAND DESCRIPTION
Blank page
TK100 36 - Commands Reference
Loading...