SLK-TS100 Programming Manual
SLK-TS100 Programming Manual
Programmer Manual
MODEL : SLK-TS100
Programmer Manual
Format Description
This manual applies to company's 80mm Series Thermal Receipt Printer SLK-TS100.
Command description of the programming manual includes the following sections:
1) an overview of the command names and functions. This is the first part of the command description. ASCII code is given
command of the form and function of the commandCan be summarized.
2) format. This section uses the ASCII coding forms, hexadecimal code form, decimal code in the form of three forms describing
the lifeOrder.
Which part of the range, compared with a decimal number without special instructions, such as in the following example 1 İ n
İ 4, where 1 is a decimal number 1, rather than the ASCII code table “1."
3) range. Gives a range of variables.
4) description. Gives a detailed explanation of the command.
5) annotations. Notice is given command. Since the command in the different modes, with different commands, may cause the
phase Mutual influence, and this section gives the details.
6) reference. Associated with this command is given, similar to other commands.
HT
LF
n = 1: Printer Status
n = 2: Off-line Status
n = 3: Error Status
ESC SP n
[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 horizontal or vertical motion units].
[Details] •The right-side character spacing for double-width mode is twice the normal value. When characters are enlarged, the
right-side character spacing is n times normal value.
• This command does not affect the setting of kanji characters.
• This command sets values independently in each mode (standard and page modes).
• The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical motion unit does not
affect the current right-side spacing.
• The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the
minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount.
• In standard mode, the horizontal motion unit is used.
• In page mode, the horizontal or vertical motion unit differs in page mode, depending on starting position of the printable
area as follows:
1 When the starting position is set to the upper left or lower right of the printable area using ESC T, the horizontal motion
unit ( x) is used.
2 When the starting position is set to the upper right or lower left of the printable area using ESC T, the vertical motion
unit ( y) is used.
• The maximum right-side spacing is 255/180 inches. Any setting exceeding the maximum is converted to the maximum
automatically.
[Default] n = 0
[Reference] GS P
ESC % n
[Name] Select/cancel user-defined character set
[Format] ASCII ESC % n
Hex 1B 25 n
Decimal 27 37 n
[Range] 0 İ nL İ 255
[Description] • Selects or cancels the user-defined character set.
• When the 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.
[Details] • When the user-defined character set is canceled, the internal character set is automatically selected.
• n is available only for the least significant bit.
[Default] n = 0
[Reference] ESC &, ESC ?
Bit-image data
d1 d2 d3
MSB
d1 d2 d3
LSB
Print data Print data
1 dot
ESC = n (*)
ESC @
ESC G n
ESC M n (*)
ESC V n (*)
[Details] • This command affects printing in standard mode. However, the setting is always effective.
• When underline mode is turned on, the printer does not underline 90°clockwise-rotated.
• 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.
[Default] n = 0 [Reference]
ESC !, ESC -
ESC \ nL nH
[Details] • The pulse ON time is [ t1×2 ms] and the OFF time is [ t2×2 ms].
• If t2 < t1, the OFF time is [ t1x 2 ms]
[Reference] DLE Dc4
ESC t n
[Default] n = 0
ESC { n
GS * x y d1...d(x × y × 8)
GS H n
GS W nL nH
[Details for ྙ
· 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 12 bytes bar
code data and processes the following data as normal data.
· When the bar code system used is JAN13 (EAN13), the printer prints the bar code after receiving 13 bytes bar code
data and processes the following data as normal data.
· When the bar code system used is JAN8 (EAN8), the printer prints the bar code after receiving 8 bytes bar code data
and processes the following data as normal 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.
[Details for ྚ
· n indicates the number of bar code data, and the printer processes n bytes from the next character data as bar code
data.
· If n is outside of the specified range, the printer stops command processing and processes the following data as
normal data. [Details in standard mode] .
· If d is outside of the specified range, the printer only feeds paper and processes the following data as normal data.
· If the horizontal size exceeds 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
ESC 2 or ESC 3.
· This command is enabled only when no data exists in the print buffer. When data exists in the print buffer, the printer
processes the data following m as normal data.
· After printing 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, character size, white/black reve-
rse printing, or 90° rotated character, etc.), except for upside-down printing mode.
[Details in page mode]
· This command develops bar code data in the print buffer, but does not print it. After processing bar code data, this
command moves the print position to the right side dot of the bar code.
· If d is out of the specified range, the printer stops command processing and processes the following data as normal
data. In this case the data buffer position does not change.
· If bar code width exceeds the printing area, the printer does not print the bar code but moves the data buffer position
to the left side out of the printing area.
When CODE128 (m = 73) is used:
Transmit data
Special character
ASCII Hex Decimal
SHIFT {S 7B, 53 123,83
CODE A {A 7B, 41 123, 65
CODE B {B 7B, 42 123, 66
CODE C {C 7B, 43 123, 67
FNC1 {1 7B, 31 123, 49
Bit Off/On Hex Decimal Status for ABS
Off 00 0 Cash drawer opening.
0
On 01 1 No cash drawer opening.
1-3 — — Undefined.
4 Off 00 0 Not used. Fixed to Off.
5,6 — — Undefined.
7 Off 00 0 Not used. Fixed to Off.
GS v 0 m xL xH yL yH d1...dk
FS – n
FS .
FS W n
ESC B n t
ESC C m t n
ESC L
Standard Mode Page Mode Print
ESC S
FF
Print
Processing Direction
(x0, y0)
24
base line
A dot
xx8
Barcode
12
User-defined (GS k m)
24×2=48 bitmaps
(GS xy)
+
12 GS h n
6×8=48
nH×256=nL
24 24
bitmap
(ESC + m nL NH)
HRI Character
base line
B dot B dot B dot B dot
xx8
24-3
6×8=48
base line
3
base line
3
B dot B dot
[Notes] Settings of this function affect the processing of Functions 081 and 082.
• When automatic processing (n = 0) is specified, the number of rows is calculated by the print area when processing Functions 081, 082 and
module height (Function 068).
• Settings of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS ( k <Function 067>
[Format] ASCII GS ( k pL pH cn fn n
[Hex] 1D 28 6B 03 00 30 43 n
[Decimal] 29 40 107 3 0 48 67 n
cn = 48
fn = 67
n=2-8
[Notes] Settings of this function affect the processing of Functions 081 and 082.
• Settings of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.
GS ( k <Function 068>
[Format] ASCII GS ( k pL pH cn fn n
[Hex] 1D 28 6B 03 00 30 44 n
[Decimal] 29 40 107 3 0 48 68 n
cn = 48