Program Manual Termic Printer SAT 37T22T
Program Manual Termic Printer SAT 37T22T
Program Manual Termic Printer SAT 37T22T
Format Description
This manual applies to company's 80mm Series Thermal Receipt Printer POS-80XX series.
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.
DLE EOT n
HT
LF
FF(*)
[Name] Print and return to standard mode in page mode
[Format] ASCII FF
Hex 0C
Decimal 12
[Description] Prints the data in the print buffer collectively and returns to standard mode.
[Details] • The buffer data is deleted after being printed.
• The printing area set by ESC W is reset to the default setting.
• The printer does not execute paper cutting.
• This command sets the print position to the beginning of the line.
• This command is enabled only in page mode.
[Reference] ESC FF, ESC L, ESC S
CR
[Name] Print and carriage return
[Format] ASCII CR
Hex 0D
Decimal 13
[Description] When automatic line feed is enabled, this command functions the same as LF;
When automatic line feed is disabled, this command is ignored.
[Details] • Sets the print starting position to the beginning of the line.
• The automatic line feed is ignored with a serial interface model.
• This command is set according to the DIP switch 1-1 setting with a parallel interface model.
[Reference] LF
CAN (*)
[Name] Cancel print data in page mode
[Format] ASCII CAN
Hex 18
Decimal 24
[Description] In page mode, deletes all the print data in the current printable area.
[Details] • This command is enabled only in page mode.
• If data that existed in the previously specified printing area also exists in the currently specified printing area, it is deleted.
[Reference] ESC L, ESC W
• Even though the printer is not selected using ESC = (select peripheral device), this command is effective.
• The printer transmits the current status. Each status is represented by onebyte data.
• The printer transmits the status without confirming whether the host computer can receive data.
• The printer executes this command upon receiving it.
• This command is executed even when the printer is off-line, the receive buffer is full, or there is an error status with a
serial interface model.
• With a parallel interface model, this command can not be executed when the printer is busy. This command is executed
even when the printer is off-line or there is an error status when DIP switch 2-1 is on with a parallel interface model.
• When Auto Status Back (ASB) is enabled using the GS a command, the status transmitted by the DLE EOT command
and the ASB status must be differentiated.
n = 1: Printer Status
n = 2: Off-line Status
n = 3: Error Status
n Request
1 Recover from an error and restart printing from the line where the error occurred
2 Recover from an error aft clearing the receive and print buffers
[Details] • This command is effective only when an auto-cutter error occurs.
• The printer starts processing data upon receiving this command.
• This command is executed even when the printer is off-line, the receive buffer is full, or there is an error status with a
serial interface model.
• With a parallel interface model, this command can not be executed when the printer is busy. This command is executed
even when the printer is off-line or there is an error status when DIP switch 2-1 is on with a parallel interface model.
• The status is also transmitted whenever the data sequence of <10>H<05>H< n> (1 ≤ n ≤ 2) is received.
Example:
In ESC * m nL nH dk, d1 = <10>H, d2 = <05>H, d3 = <01>H
• This command should not be contained within another command that consists of two or more bytes. Example: If you
attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host computer) goes to MARK before n is transmitted,
and DLE ENQ 2 interrupts before n is received, the code <10>H for DLE ENQ 2 is processed as the code for ESC 3
<10>H.
• DLE ENQ 2 enables the printer to recover from an error after clearing the data in the receive buffer and the print buffer.
The printer retains the settings (by ESC !, ESC 3, etc.) that were in effect when the error occurred. The printer can be
initialized completely by using this command and ESC @. This command is enabled only for errors that have the
possib-ility of recovery, except for print head temperature error.
• When the printer is disabled with ESC = (Select peripheral device), the error recovery functions (DLE ENQ 1 and DLE
ENQ 2) are enabled, and the other functions are disabled.
[Reference] DLE EOT
m Connector pin
0 Drawer kick-out connector pin 2.
1 Drawer kick-out connector pin 5.
ESC FF (*)
[Name] Print data in page mode
[Format] ASCII ESC FF
Hex 1B 0C
Decimal 27 12
[Description] In page mode, prints all buffered data in the printing area collectively.
[Details] • This command is enabled only in page mode.
• After printing, the printer does not clear the buffered data, setting values for ESC T and ESC W, and the position for
buffering character data.
[Reference] FF, ESC L, ESC S
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
Programming manual for thermal printer SAT 37T/22T
ESC ! n
[Name] Select print mode(s)
[Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n
[Range] 0 ≤n ≤255
[Description] Selects print mode(s) using n as follows:
Bit Off/On Hex Decimal Function
Off 00 0 Character font A (12 ×24).
0
On 01 1 Character font B (9 ×17).
1 - - - Undefined.
2 - - - Undefined.
Off 00 0 Emphasized mode not selected.
3
On 08 8 Emphasized mode selected.
Off 00 0 Double-height mode not selected.
4
On 10 16 Double-height mode selected.
Off 00 0 Double-width mode not selected.
5
On 20 32 Double-width mode selected.
6 - - - Undefined.
Off 00 0 Underline mode not selected.
7
On 80 128 Underline mode selected.
[Details] • When both double-height and double-width modes are selected, quadruple size characters are printed.
• The printer can underline all characters, but can not underline the space set by HT or 90° clockwise rotated characters.
• The thickness of the underline is that selected by ESC , regardless of the character size.
• When some characters in a line are double or more height, all the characters 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 mode is effective for alphanumeric and Kanji. All print modes except emphasized mode is effective only for
alphanumeric.
[Default] n = 0
[Reference] ESC -, ESC E, GS !
ESC $ nL nH
[Name] Set absolute print position
[Format] ASCII ESC $ nL nH
Hex 1B 24 nL nH
Decimal 27 36 nL 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.
[Details] · Settings outside the specified printable area are ignored.
· The horizontal and vertical motion unit are specified by GS P.
· 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 ( x) is used.
· In page mode, horizontal or vertical motion unit differs depending on the 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.
[Reference] ESC \, GS $, GS \, GS P
Programming manual for thermal printer SAT 37T/22T
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 ?
12dot
d1 d4 d7 d34 MSB
24dot d2 d5 d35
d3 d6 d36 LSB
9dot
d1 d4 d7 d34 MSB
17dot d2 d5 d35
d3 d6 d36 LSB
ESC * m nL nH d1... dk
[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 nH 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:
Bit-image data
d1 d2 d3
MSB
d1 d2 d3
LSB
Print data Print data
1 dot
d2 d5 d8 Bi t-image data
d3 d6 d9
LSB
Print data Print data
1 dot
ESC 2
[Name] Select default line spacing
[Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50
[Description] Selects 1/ 6-inch line (approximately 4.23mm) spacing.
[Details] The line spacing can be set independently in standard mode and in page mode.
[Reference] ESC 3
Programming manual for thermal printer SAT 37T/22T
ESC 3 n
[Name] Set line spacing
[Format] ASCII ESC 3 n
Hex 1B 33 n
Decimal 27 51 n
[Range] 0 ≤ n ≤ 255
[Description] Sets the line spacing to [ n ×vertical or horizontal motion unit] inches.
[Details] • The line spacing can be set independently in standard mode and in page mode.
• The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical motion unit does not
affect the current line spacing.
• The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the
minimum vertical movement amount, and it must be in even units of the minimum vertical movement amount.
• In standard mode, the vertical motion unit (y) is used.
• In page mode, this command functions as follows, depending on the starting position of the printable area:
① When the starting position is set to the upper left or lower right of the printable area using ESC T, the vertical moti-
on unit (y) is used.
② When the starting position is set to the upper right or lower left of the print able area using ESC T, the horizontal
motion unit ( x) is used.
• The maximum paper feed amount is 1016 mm (40 inches). Even if a paper feed amount of more than 1016 mm (40
inches) is set, the printer feeds the paper only 1016 mm (40 inches).
[Default] Line spacing equivalent to approximately 4.23mm (1/6 inches).
[Reference] ESC 2, GS P
ESC = n (*)
ESC ? n
[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.
[Details] • This command cancels the pattern defined for the character code specified by n. After the user-defined characters is
canceled, the corresponding pattern for the internal character is printed.
• This command deletes the pattern defined for the specified code in the font selected by ESC !.
• If a user-defined character has not been defined for the specified character code, the printer ignores this command.
[Reference] ESC &, ESC %
Programming manual for thermal printer SAT 37T/22T
ESC @
[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 the mode that was in effect when the power was
turned on.
[Details] • The DIP switch settings are not checked again.
• The data in the receive buffer is not cleared.
• The macro definition is not cleared.
• The NV bit image data is not cleared.
• The data of the user NV memory is not cleared.
ESC E n
[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 or off
· When the LSB of n is 0, emphasized mode is turned off.
· When the LSB of n is 1, emphasized mode is turned on.
[Details] • Only the least significant bit of n is enabled.
• This command and ESC ! turn on and off emphasized mode in the same way.
Be careful when this command is used with ESC !.
[Default] n = 0
[Reference] ESC !
Programming manual for thermal printer SAT 37T/22T
ESC G n
[Name] Turn on/off double-strike mode
[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, double-strike mode is turned off.
• When the LSB of n is 1, double-strike mode is turned on.
[Details] • Only the lowest bit of n is enabled.
• Printer output is the same in double-strike mode and in emphasized mode.
[Default] n = 0
[Reference] ESC E
ESC J n
[Name] Print and feed paper
[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.
[Details] • After printing is 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 ESC 2 or ESC 3.
• The horizontal and vertical motion unit are specified by GS P.
• The GS P command can change the vertical (and horizontal) motion unit. However, the value cannot be less than the
minimum vertical movement amount, and it must be in even units of the minimum vertical movement amount.
• In standard mode, the printer uses the vertical motion unit ( y).
• In page mode, this command functions as follows, depending on the starting position of the printable area:
① When the starting position is set to the upper left or lower right of the printable area using ESC T, the vertical motion
unit (y) is used.
② When the starting position is set to the upper right or lower left of the print able area using ESC T, the horizontal
motion unit ( x) is used.
• The maximum line spacing is 1016mm (40 inches). When the setting value exceeds the maximum, it is converted to
the maximum automatically.
[Reference] GS P
ESC L (*)
[Name] Select page mode
[Format] ASCII ESC L
Hex 1B 4C
Decimal 27 76
[Description] Switches from standard mode to page mode.
[Details] • This command is enabled only when processed at the beginning of a line in standard mode.
• This command has no effect in page mode.
• After printing by FF is completed or by using ESC S, the printer returns to standard mode.
• This command sets the position where data is buffered to the position specified by ESC T within the printing area
defined by ESC W.
• This command switches the settings for the following commands (in which the values can be set independently in
standard mode and page mode) to those for page mode:
① Set right-side character spacing: ESC SP, FS S
② Select default line spacing: ESC 2, ESC 3
• Only valve settings is possible for the following commands in page mode; these commands are not executed.
① Turn 90°clockwise rotation mode on/off: ESC V
② Select justification: ESC a
③ Turn upside-down printing mode on/off: ESC {
Programming manual for thermal printer SAT 37T/22T
ESC G n
[Name] Turn on/off double-strike mode
[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, double-strike mode is turned off.
• When the LSB of n is 1, double-strike mode is turned on.
[Details] • Only the lowest bit of n is enabled.
• Printer output is the same in double-strike mode and in emphasized mode.
[Default] n = 0
[Reference] ESC E
ESC M n (*)
[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 character fonts.
n Function
0,48 Tcharacter font A (12×24) selected.
1,49 Character font B (9×17) selected.
ESC R n
[Name] Select an international character set
[Format] ASCII ESC R n
Hex 1B 52 n
Decimal 27 82 n
[Range] 0 ≤ n ≤ 15
[Description] Selects an international character set n from the following table:
n Character
0 U.S.A
1 France
2 Germany
3 U.K
4 Denmark
5 Sweden
6 Italy
Programming manual for thermal printer SAT 37T/22T
7 Spain
8 Japan
9 Norway
10 Denmark
11 Spain
12 Latin
13 Korea
14 Sloveina/Croatia
15 Chinese
The character sets for Slovenia/Croatia and China are supported only in the Simplified Chinese model.
[Default] Simplified Chinese model: n = 15
Models other than the Simplified Chinese model: n = 0
ESC S (*)
[Name] Select standard mode
[Format] ASCII ESC S
Hex 1B 53
Decimal 27 83
[Description] Switches from page mode to standard mode.
[Details] • This command is effective only in page mode.
• Data buffered in page mode are cleared.
• This command sets the print position to the beginning of the line.
• The printing area set by ESC W are initialized.
• This command switches the settings for the following commands (in which the values can be set independently in
standard mode and page mode) to those for standard mode:
① Set right-side character spacing: ESC SP, FS S
② Select default line spacing: ESC 2, ESC 3
• The following commands are enabled only to set in standard mode.
① Set printing area in page mode: ESC W
② Select print direction in page mode: ESC T
• The following commands are ignored in standard mode.
① Set absolute vertical print position in page mode: GS $
② Set relative vertical print position in page mode: GS \
• Standard mode is selected automatically when power is turned on, the printer is reset, or command ESC @ is used.
[Reference] FF, ESC FF, ESC L
ESC T n (*)
[Name] Select print direction in page mode
[Format] ASCII ESC T n
Hex 1B 54 n
Decimal 27 84 n
[Range] 0 ≤ n ≤ 3
48 ≤ n ≤ 51
[Description] Selects the print direction and starting position in page mode. n specifies the print direction and starting position as
follows:
A D
B C
Programming manual for thermal printer SAT 37T/22T
[Details] • When the command is input in standard mode, the printer executes only internal flag operation. This command does
not affect printing in standard mode.
• This command sets the position where data is buffered within the printing area set by ESC W.
• Parameters for horizontal or vertical motion units ( x or y) differ as follows, depending on the starting position of the
printing area:
① If the starting position is the upper left or lower right of the printing area, data is buffered in the direction perpendic-
ular to the paper feed direction: Commands using horizontal motion units: ESC SP, ESC $, ESC \ Commands using ver-
tical motion units: ESC 3, ESC J, GS $, GS \
② If the starting position is the upper right or lower left of the printing area, data is buffered in the paper feed direction:
Commands using horizontal motion units: ESC 3, ESC J, GS $, GS \
Commands using vertical motion units: ESC SP, ESC $, ESC \
[Default] n = 0
[Reference] ESC $, ESC L, ESC W, ESC \, GS $, GS P, GS \
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 -
(x, y)
Dx
Forward
Dy
Print atea
(x+Dx-1, Dy-1)
• This printable area for this printer is approximately 72 mm in the horizontal direction and approximately 117.3 mm
(1662/360 inches) in the vertical direction.
[Default] xL = xH = yL = yH = 0
dxL = 0, dxH = 2, dyL = 126, dyH = 6
[Reference] CAN, ESC L, ESC T, GS P
ESC \ nL nH
ESC a n
[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 the data in one line to the specified position n selects the justification as follows:
n Justification
0,48 Left justification
1,49 Centering
2,50 Right justification
[Details] • The command is enabled only when processed at the beginning of the line in standard mode.
• If this command is input in page mode, the printer performs only internal flag operations.
• This command has no effect in page mode.
• This command executes justification in the printing area.
• This command justifies the space area according to HT, ESC $ or ESC \.
[Default] n = 0
[Example]
ESC c 3 n (*)
[Name] Select paper sensor(s) to output paper end signals
[Format] ASCII ESC c 3 n
Hex 1B 63 33 n
Decimal 27 99 51 n
[Range] 0 ≤ n ≤ 255
[Description] • Selects the paper sensor(s) to output paper end signals
• Each bit of n is used as follows:
Bit Off/On Hex Decimal Function
Off 00 0 Paper roll near-end sensor disabled
0
On 01 1 Paper roll near-end sensor enabled
Off 00 0 Paper roll end sensor disabled
1
On 02 2 Paper roll near-end sensor enabled
Off 00 0 Paper roll end sensor disabled
2
On 04 4 Paper roll near-end sensor enabled
Off 00 0 Paper roll end sensor disabled
3
On 08 8 Paper roll near-end sensor enabled
4-7 - - - Undefined
[Details] • It is possible to select multiple sensors to output signals. Then, if any of the sensors detects a paper end, the paper
end signal is output.
• The command is available only with a parallel interface and is ignored with a serial interface.
• Sensor is switched when executing this command. The paper end signal switching be delayed depending on the
receive buffer state.
• If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor outputting paper-end signals.
• If either bit 2 or bit 3 is on, the paper roll end sensor is selected as the paper sensor outputting paper-end signals.
• When all the sensors are disabled, the paper end signal always outputs a paper present status.
[Default] n = 15
Programming manual for thermal printer SAT 37T/22T
ESC c 4 n (*)
[Name] Select paper sensor(s) to stop printing
[Format] ASCII ESC c 4 n
Hex 1B 63 34 n
Decimal 27 99 52 n
[Range] 0 ≤ n ≤255
[Description] Selects the paper sensor(s) used to stop printing when a paper-end is detected, using n as follows:
[Details] • When a paper sensor is enabled with this command, printing is stopped only when the corresponding paper is selected
for printing.
• When a paper-end is detected by the paper roll sensor, the printer goes offline after printing stops.
• When either bit 0 or 1 is on, the printer selects the paper roll near-end sensor for the paper sensor to stop printing.
[Default] n = 0
ESC C 5 n
[Name] Enable/disable panel buttons
[Format] ASCII ESC c 5 n
Hex 1B 63 35 n
Decimal 27 99 53 n
[Range] 0 ≤ n ≤ 255
[Description] Enables or disables the panel buttons.
• When the LSB of n is 0, the panel buttons are enabled.
• When the LSB of n is 1, the panel buttons are disabled.
[Details] • Only the lowest bit of n is valid.
• When the panel buttons are disabled, none of them are usable when the printer cover is closed.
• In this printer, the panel buttons are the FEED button.
• In the macro ready mode, the FEED button are enabled regardless of the settings of this command; however, the paper
cannot be fed by using these buttons.
[Default] n = 0
ESC d n
[Name] Print and feed n lines
[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 n lines.
[Details] • This command sets the print starting position to 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 1016 mm (40 inches). If the paper feed amount ( nx line spacing) of more than
1016 mm (40 inches) is specified, the printer feeds the paper only 1016 mm (40 inches).
[Reference] ESC 2, ESC 3
Programming manual for thermal printer SAT 37T/22T
ESC p m t1 t2
[Name] Generate pulse
[Format] ASCII ESC p m t1 t2
Hex 1B 70 m t1 t2
Decimal 27 112 m t1 t2
[Range] m = 0, 1, 48, 49
0 ≤ t1 ≤ 255, 0≤ t2 ≤ 255
[Description] Outputs the pulse specified by t1 and t2 to connector pin m as follows:
m Connector pin
0,48 Drawer kick-out connector pin 2.
1,49 Drawer kick-out connector pin 5.
[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
[Name] Select character code table
[Format] ASCII ESC t n
Hex 1B 74 n
Decimal 27 116 n
[Range] 0 ≤ n ≤10, 16 ≤ n ≤ 21
[Description] Selects a page n from the character code table.
n Page
0 PC437 [U.S.A.Standard Europe]
1 Katakana
2 PC850:Multilingual
3 PC860:Portuguese
4 PC863 [Canadian French]
5 PC865:Nodic
6 West Europe
7 Greek
8 Hebrew
9 PC755:East Europe
10 Iran
16 WPC1252
17 PC866:Cyrillic#2
18 PC852:Latin2
19 PC858
20 IranII
21 Latvian
[Default] n = 0
ESC { n
[Name] Turns on/off upside-down printing mode
[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.
Programming manual for thermal printer SAT 37T/22T
A B C D E F
012345
defined characters, downloaded bit images, and macros should be defined only after completing this command. The printer
clears the receive and print buffers and resets the mode to the mode that was in effect at power on. At this time, DIP switch
settings are checked again.
[ Reference ] FS p
[ Example] When xL = 64, xH = 0, yL = 96, yH = 0
(XL+XH×256)×8Dot= 512Dot
d97
d1
d49057
(YL+YH×256)×8Dot= 768Dot
d2 MSB
d3
LSB
d96 d49152
GS ! n (*)
[Name] Select character size
[Format] ASCII GS ! N
Hex 1D 21 n
Decimal 29 33 n
[Range] 0 ≤ n ≤ 255
(1 ≤ vertical number of times ≤ 8, 1 ≤ horizontal number of times ≤ 8)
[Description] Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7, as follows:
Bit Off/On Hex Decimal Function
0-3 Character height selection. See Table 2.
4-7 Character width selection. See Table 1.
Table 1 Table 2
Character Width Selection
[Details] • This command is all characters (alphanumeric and Kanji) effective except for HRI characters.
• If n is outside of the defined range, this command is ignored.
• In standard mode, the vertical direction is the paper feed direction, and the horizontal direction is perpendicular to the
paper feed direction. However, when character orientation changes in 90° clockwise-rotation mode, the relationship
between vertical and horizontal directions is reversed.
• In page mode, vertical and horizontal directions are based on the character orientation.
• When characters are enlarged with different sizes on one line, all the characters on the line are aligned at the baseline.
The ESC ! command can also turn double-width and double-height modes on or off. However, the setting of the last
received command is effective.
[Default] n = 0
[Reference] ESC !
GS$nLnH (*)
GS * x y d1...d(x × y × 8)
x × 8dot
dy+ 1
d1 d70 MSB
dy×2+1
d2 d71
y × 8dot
LSB
dy ×y×8
dy ×2 dx
[Reference] GS /
GS / m
[Name] Print downloaded bit image
[Format] ASCII GS / m
Hex 1D 2F m
Decimal 29 47 m
[Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51
[Description] Prints a downloaded bit image using the mode specified by m.
m selects a mode from the table below:
m Mode Vertical Dot Density (DPI) Horizontal Dot Density (DPI)
0, 48 Normal 200 200
1, 49 Double-width 200 100
2, 50 Double-height 100 200
3, 51 Quadruple 100 100
[Details] •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, double-strike, 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.
• Refer to Figure 3.12.3 for the downloaded bit image development position in page mode.
• If the printing area width set by GS L and GS W is less than one line in vertical, the following processing is performed
only on the line in question:
The printing area width is extended to the right up to one line in vertical. In this case, printing does not exceed the
printable area.
If the printing area width cannot be extended by one line in vertical, the left margin is reduced to accommodate one line
in vertical.
[Reference] GS *
GS ( A pL pH n m
[Name] Execute print data hex dump
[Format] ASCII GS ( A pL pH n m
Hex 1D 28 41 pL pH n m
Decimal 29 40 65 pL pH n m
[Range] pL = 2, pH = 0;
n = 0,48; m = 1,49;
Programming manual for thermal printer SAT 37T/22T
GS: (*)
[Name] Start/end macro definition
[Format] ASCII GS :
Hex 1D 3A
Decimal 29 58
[Description] Starts or ends macro definition.
[Details] • Macro definition starts when this command is received during normal operation. Macro definition ends when this
command is received during macro definition.
• When GS ^ is received during macro definition, the printer ends macro definition and clears the definition.
• Macro is not defined when the power is turned on.
• The defined contents of the macro are not cleared by ESC @. Therefore, ESC @ can be included in the contents of
the macro definition.
• If the printer receives GS : again immediately after previously receiving GS : the printer remains in the macro undefined
state.
• The contents of the macro can be defined up to 2048 bytes. If the macro definition exceed 2048 bytes, excess data is
not stored.
[Reference] GS ^
GSBn (*)
[Name] Turn white/black reverse printing mode
[Format] ASCII GS B n
Hex 1D 42 n
Decimal 29 66 n
[Range] 0 ≤ n ≤ 255
[Description] • Turns on or off white/black reverse printing mode.
• When the LSB of n is 0, white/black reverse mode is turned off.
• When the LSB of n is 1, white/black reverse mode is turned on.
[Details] • Only the lowest bit of n is valid.
• This command is available for built-in characters and user-defined characters.
• When white/black reverse printing mode is on, it also applied to character spacing set by ESC SP.
• This command does not affect bit image, user-defined bit image, bar code, HRI characters, and spacing skipped by HT,
ESC $, and ESC \.
• This command does not affect the space between lines.
• White/black reverse mode has a higher priority than underline mode. Even if underline mode is on, it is disabled (but
not canceled) when white/black reverse mode is selected.
[Default] n = 0
GS H n
[Name] Select printing position for HRI characters
[Format] ASCII GS H n
Hex 1D 48 n
Decimal 29 72 n
[Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51
[Description] Selects the printing position of HRI characters when printing a bar code. n selects the printing position as follows:
n Print Position
0,48 Do not print
1,49 Top of the bar code
2,50 Below the barcode
3,51 The barcode are printed below
• HRI indicates Human Readable Interpretation.
[Details] •HRI characters are printed using the font specified by GS f.
[Default] n = 0
[Reference] GS f, GS k
Programming manual for thermal printer SAT 37T/22T
GS L nL nH
[Name] Set left margin
[Format] ASCII GS L nL nH
Hex 1D 4C nL nH
Decimal 29 76 nL nH
[Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255
[Description] • Sets the left margin using nL and nH.
• The left margin is set to [( nL + nH ×256) ×horizontal motion unit]] inches. Printable area Left margin Printing
area width
[Details] • This command is effective only processed at the beginning of the line in standard mode.
• If this command is input in page mode, the printer performs only internal flag operations.
• This command does not affect printing in page mode.
• If the setting exceeds the printable area, the maximum value of the printable area is used.
• The horizontal and vertical motion units are specified by GS P. Changing the horizontal and vertical motion unit does
not affect the current left margin.
• The horizontal motion unit (x) is used for calculating the left margin. The calculated result is truncated to the minimum
value of the mechanical pitch.
Printable area
GSPxy (*)
[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 ≤ x ≤ 255
0 ≤ y ≤ 255
[Description] Sets the horizontal and vertical motion units to approximately 25.4/ x mm { 1/ x inches} and approximately 25.4/ y
mm {1/ y inches}, respectively. When x and y are set to 0, the default setting of each value is used.
[Details] • The horizontal direction is perpendicular to the paper feed direction and the vertical direction is the paper feed direction.
• In standard mode, the following commands use x or y, regardless of character rotation (upside-down or 90° clockwise
rotation): ①Commands using x: ESC SP, ESC $, ESC \, FS S, GS L, GS W ②Commands using y: ESC 3, ESC J, GS V
• In page mode, the following command use x or y, depending on character orientation:
① When the print starting position is set to the upper left or lower right of the printing area using ESC T (data is buffered
in the direction perpendicular to the paper feed direction): Commands using x: ESC SP, ESC $, ESC W, ESC \, FS S
Commands using y: ESC 3, ESC J, ESC W, GS $, GS \, GS V
② When the print starting position is set to the upper right or lower left of the printing area using ESC T (data is buffered
in the paper feed direction): Commands using x: ESC 3, ESC J, ESC W, GS $, GS \ Commands using y: ESC SP,
ESC $, ESC W, ESC \,FS S, GS V
• The 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.
[Default] x = 180, y = 360
[Reference] ESC SP, ESC $, ESC 3, ESC J, ESC W, ESC \, GS $, GS L, GS V, GS W, GS \
Programming manual for thermal printer SAT 37T/22T
① GS V m ② GS V m n
[Name] Select cut mode and cut paper
[Format] ① ASCII GS V m
Hex 1D 56 m
Decimal 29 86 m
② ASCII GS V m n
Hex 1D 56 m n
Decimal 29 86 m n
[Range] ① m=0,48 , m =1,49
② m = 66, 0 ≤ n ≤ 255
[Description] Selects a mode for cutting paper and executes paper cutting. The value of m selects the mode as follows:
m Print mode
0,48 one point left uncut
1,49 Partial cut
Feeds paper (cutting position + [ n × (vertical motion unit)]), and cuts the paper
66 partially (one point left uncut).
GS W nL nH
[Name] Set printing area width
[Format] ASCII GS W nL nH
Hex 1D 57 nL nH
Decimal 29 87 nL nH
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] Sets the printing area width to the area specified by nL and nH.
• The printing area width is set to [( nL + nH × 256) × horizontal motion unit]] inches.
Printable area
line in question when data other than character data (e.g., bit image, user-defined bit image) is developed:
The printing area width is extended to the right to accommodate one line in vertical for the bit image within the printable
area.
If the printing area width cannot be extended sufficiently, the left margin is reduced to accommodate one line in vertical.
• The commands which set the printing area width for bit image printing and its minimum widths are as follows:
• Bit image (ESC *):
Single density mode = 2 dots
Double density mode = 1 dot
• Downloaded bit image (GS /):
Double width mode or Quadruple mode = 2 dots
Normal mode or Double-height mode = 1 dot
• NV bit image (FS p):
Double width mode or Quadruple mode = 2 dots
Normal mode or Double-height mode = 1 dot
• Raster bit image (GS r 0):
Double width mode or Quadruple mode = 2 dots
Normal mode or Double-height mode = 1 dot
[Default] nL = 0, nH = 2
For 58mm paper width model; nL = 104, nH = 1
[Reference] GS L, GS P
GS \ nL nH
[Name] Set relative vertical print position in page mode
[Format] ASCII GS \ nL nH
Hex 1D 5C nL nH
Decimal 29 92 nL nH
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] Sets the relative vertical print starting position from the current position in page mode.
• This command sets the distance from the current position to [(nL + nH × 256) × vertical or horizontal motion unit].
[Details] •This command is ignored unless page mode is selected.
• When pitch N is specified to the movement downward:
nL + nH × 256 = N
When pitch N is specified to the movement upward (the negative direction), use the complement of 65536. When pitch
N is specified to the movement upward:
nL + nH × 256 = 65536 -N
• Any setting that exceeds the specified printing area is ignored.
• This command function as follows, depending on the print starting position set by ESC T: When the starting position is
set to the upper left or lower right of the printing, the vertical motion unit (y) is used.
When the starting position is set to the upper right or lower left of the printing area, the horizontal motion unit (x) is used.
• he horizontal and vertical motion unit are specified by GS P.
• 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.
[Reference] ESC $, ESC T, ESC W, ESC \, GS $, GS P
GS^rtm (*)
[Name] Execute macro
[Format] ASCII GS ^ r t m
Hex 1D 5E r t m
Decimal 29 94 r t m
[Range] 0 ≤ r ≤ 255
0 ≤ t ≤ 255
m = 0, 1
[Description] Executes a macro.
• r specifies the number of times to execute the macro.
• t specifies the waiting time for executing the macro.
Programming manual for thermal printer SAT 37T/22T
Gsan (*)
[Name] Enable/Disable Automatic Status Back (ASB)
[Format] ASCII GS a n
Hex 1D 61 n
Decimal 29 97 n
[Range] 0 ≤n ≤255
[Description] Enables or disables ASB and specifies the status items to include, using n as follows:
GS f n (*)
[Name] Select font for Human Readable Interpretation (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:
n Typeface
0,48 Standard ASCII characters (12 × 24)
1,49 Compressed ASCII characters (9 × 17)
GS h n
[Name] Select bar code height
[Format] ASCII GS h n
Hex 1D 68 n
Decimal 29 104 n
[Range] 1 ≤ n ≤ 255
[Description] Selects the height of the bar code.
n specifies the number of dots in the vertical direction.
[Default] n = 162
[Reference] GS k
[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
Programming manual for thermal printer SAT 37T/22T
· The printer prints an HRI character ( ) as start character at the beginning of the HRI character string.
· The printer prints an HRI character ( ) as a stop character at the end of the HRI character string.
· The printer prints HRI characters (F + an alphabetic character) as a control character (<00>H to <1F>H and <7F>H):
[Examples] example print "No. 123456"
In this example, the printer first prints "No." With CODE B, followed by the rest of the digital print CODE C:
GSK731012366781114612367123456
NO. 12 3456
· If the character is not in the forefront of barcode data set selection, the printer will stop processing this command, and
the rest of the data as normal data.
• If "{" and followed by its combination of character is not specified above that, the printer stops processing this comm-
and, and the rest of the data as normal data.
• If the printer is not receiving character code character set data, the printer stops processing this command, and the rest
of the data as normal data.
• When the printer to print HRI characters do not print shift characters and character set selection data.
HRI characters • function character is not printed.
• Control characters (<00> H to <1F> H and <7F> H) of HRI characters are not printed;
<Other> must ensure clearance around barcode. Gap varies by type of bar code.
[Reference] GS H, GS f, GS h, GS w
GS r n (*)
[Name] Transmit status
[Format] ASCII GS r n
Hex 1D 72 n
Decimal 29 114 n
[Range] n = 1, 2, 49, 50
[Description] Transmits the status specified by n as follows:
n Function
0,48 Transmits paper sensor status
1,49 Transmits drawer kick-out connector status
[Details] • This command just effect the serial interface.
• This command is executed after the data in the receive buffer is processed. Therefore,there may be a time lag between
receiving this command and transmitting the status,depending on the receive buffer status.
• The status types to be transmitted are shown below:
Paper sensor status (n = 1, 49):
GS v 0 m xL xH yL yH d1...dk
[Name] Print raster bit image
[Format] ASCII GS v 0 m xL xH yL yH d1 ... dk
Hex 1D 76 30 m xL xH yL yH d1 ... dk
Decimal 29 118 48 m xL xH yL yH d1 ... dk
[Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51
0 ≤ xL ≤ 255
0 ≤ xH ≤ 255
0 ≤ yL ≤ 255
0 ≤ d ≤ 255
k = (xL + xH × 256) × (yL + yH × 256) (k ≠ 0)
[Description] Selects Raster bit-image mode. The value of m selects the mode, as follows:
n Mode Vertical Dot Density Horizontal Dot ensity
0,48 Normal 200 DPI 200 DPI
1,49 Double-width 200 DPI 100 DPI
2,50 Double-height 100 DPI 200 DPI
3,51 Quadruple 100 DPI 100 DPI
· xL, xH, select the number of data bits ( xL+ xH×256) in the horizontal direction for the bit image.
· yL, yH, select the number of data bits ( yL+ yH×256) in the vertical direction for the bit image.
[Details] • In standard mode, this command is effective only when there is no data in the print buffer.
• This command has no effect in all print modes (character size, emphasized, double-strike, upside-down, underline,
white/black reverse printing, etc.) for raster bit image.
• If the printing area width set by GS L and GS W is less than the minimum width, the printing area is extended to the
minimum width only on the line in question. The minimum width means 1 dot in normal (m=0, 48) and double-height
(m=2, 50), 2 dots in double-width (m=1, 49) and quadruple (m=3, 51) modes.
• Data outside the printing area is read in and discarded on a dot-by-dot basis.
• The position at which subsequent characters are to be printed for raster bit image is specified by HT (Horizontal Tab),
ESC $ (Set absolute print position), ESC \ ( Set relative print position), and GS L (Set left margin ). If the position at
which subsequent characters are to be printed is not a multiple of 8, print speed may decline.
• The ESC a (Select justification) setting is also effective on raster bit images.
• When this command is received during macro definition, the printer ends macro definition, and begins performing this
command. The definition of this command should be cleared.
• d indicates the bit-image data. Set time a bit to 1 prints a dot and setting it to 0 does not print a dot.
(xL + xH ×256)×8dot=512dot
1 2 3 ....... 62 63 64
65 66 67 ....... 126 127 128
+ yH ×256) dot
(yL
.......
....... K-2 K-1 k
7 6 5 4 3 2 1 0
MSB LSB
Programming manual for thermal printer SAT 37T/22T
GS w n
[Name] Set bar code width
[Format] ASCII GS w n
Hex 1D 77 n
Decimal 29 119 n
[Range] 2≤ n≤ 6
[Description] Set the horizontal size of the bar code.
n specifies the bar code width as follows:
FS ! n
[Name] Set print mode(s) for Kanji characters
[Format] ASCII FS ! n
Hex 1C 21 n
Decimal 28 33 n
[Range] 0 ≤ n ≤ 255
[Description] Sets the print mode for Kanji characters, using n as follows:
Bit Off/On Hex Decimal Function
0-1 — — — Undefined.
Off 00 0 Double-width mode is OFF.
2
On 04 4 Double-width mode is ON.
Off 00 . Double-height mode is OFF.
3
On 08 8 Double-height mode is ON.
4-6 — — — Undefined.
Off 00 0 Underline mode is OFF.
7
On 80 128 Underline mode is ON.
[Details] • When both double-width and double-height modes are set (including right- and left-side character spacing), quadruple-
size characters are printed.
• The printer can underline all characters (including right- and left-side character spacing), but cannot underline the
space set by HT and 90° clockwise-rotated characters.
• The thickness of the underline is that specified by FS , regardless of the character size.
• When some of the characters in a line are double or more height, all the characters on the line are aligned at the
baseline.
• It is possible to emphasize the Kanji character using FS W or GS !, the setting of the last received command is
effective.
• It is possible to turn under line mode on or off using FS , and the setting of the last received command is effective.
[Default] n = 0
[Reference] FS -, FS W, GS !
Programming manual for thermal printer SAT 37T/22T
FS &
[Name] Select Kanji character mode
[Format] ASCII FS &
Hex 1C 26
Decimal 28 38
[Description] Selects Kanji character mode.
[Reference] FS .,
FS – n
[Name] Turn underline mode on/off for Kanji characters
[Format] ASCII FS - n
Hex 1C 2D n
Decimal 28 45 n
[Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50
[Description] Turns underline mode for Kanji characters on or off, based on the following values of n.
n Function
0,48 Turns off underline mode for Kanji characters
1,49 Turns on underline mode for Kanji characters (1-dot thick)
2,50 Turns on underline mode for Kanji characters (2-dot thick)
[Details] • The printer can underline all characters (including right- and left-side character spacing), but cannot underline the
space set by HT and 90° clockwise-rotated characters.
• After the underline mode for Kanji characters is turned off by setting n to 0, underline printing is no longer performed,
but the previously specified underline thickness is not changed. The default underline thickness is 1 dot.
• The specified line thickness does not change even when the character size changes.
• It is possible to turn underline mode on or off using FS !, and the last received command is effective.
[Default] n = 0
[Reference] FS !
FS .
24dot
d1 d4 d7 d70 MSB
24dot
d2 d5 d71
d3 d6 d72 LSB
FS W n
[Name] Turn quadruple-size mode on/off for Kanji characters
[Format] ASCII FS W n
Hex 1C 57 n
Decimal 28 87 n
[Range] 0 ≤ n ≤ 255
[Description] • Turns quadruple-size mode on or off for Kanji characters.
• When the LSB of n is 0, quadruple-size mode for Kanji characters is turned off.
• When the LSB of n is 1, quadruple-size mode for Kanji characters is turned on.
[Details] • Only the lowest bit of n is valid.
• In quadruple-size mode, the printer prints the same size characters as when double-width and double-height modes
are both turned on.
• When quadruple-size mode is turned off using this command, the following characters are printed in normal size.
• When some of the characters on a line are different in height, all the characters on the line are aligned at the baseline.
• FS ! or GS ! can also select and cancel quadruple-size mode by selecting double-height and double-width modes, and
the setting of the last received command is effective.
[Default] n = 0
[Reference] FS !, GS !
ESC B n t
[Name] Printer to print single Beeper
[Format] ASCII ESC B n t
Hex 1B 42 n t
Decimal 27 66 n t
[Range] 1 <= n <= 9,1 <= t <= 9
[Description] • printer to print single Beeper.
• n is the number of times the buzzer.
• t is the number of tweets buzzer each time (t × 50) ms
ESC C m t n
[Name] Printer to print single Beeper and alarm light flashes
[Format] ASCII ESC C m t n
Hex 1B 43 m t n
Decimal 27 67 m t n
Range] 1 <= m <= 20,1 <= t <= 20,0 <= n <= 3,
[Description] •printer to print single Beeper and alarm lights blinking.
• m: 1 <= m <= 20, refers to the warning light flashes the number of times or buzzer.
• t: 1 <= t <= 20, refers to the warning lights flashing at intervals of t * 50 ms or buzzer interval of (t × 50) ms.
• When n = 0, the buzzer does not beep while warning light does not blink;
• When n = 1, the buzzer sounds; when n = 2, warning lights flashing;
• When n = 3, the buzzer sounds, while warning lights flashing;
Programming manual for thermal printer SAT 37T/22T
B set of characters
ESC L
Standard Mode Page Mode Print
ESC S
FF
Print
Programming manual for thermal printer SAT 37T/22T
Map
Processing Direction
(x0, y0)
24
base line
A dot
xx8
Barcode
12 (GS k m)
User-defined
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
3
base line
base line
B dot B dot