80MM Programmer Manual V2.1
80MM Programmer Manual V2.1
PRINTER
Programmer Manual
1. COMMANDS
1.1 Command Notation
[Name] The name of the command.
[Format] The code sequence.
[Range] Gives the allowable ranges for the arguments.
[Description] Describes the commands function.
[Details] Describes the usage of the command in detail.
[Notes] Provides important information on setting and using the printer command, if necessary.
[Default] Gives the default values, if any, for the command parameters.
[Reference] Lists related commands.
[Example] Gives examples of how to use the command.
HT
[Name] Horizontal tab
[Format] ASCII HT
Hex 09
Decimal 9
[Description] Moves the print position to the next horizontal tab position.
[Details] This command is ignored unless the next horizontal tab position has been set.
If the next horizontal tab position exceeds the printing area, the printer sets the
printing position to [Printing area width + 1].
Horizontal tab positions are set with ESC D.
If this command is received when the printing position is at [printing area width
+ 1], the printer executes print buffer-full printing of the current line and
horizontal tab processing from the beginning of the next line.
The default setting of the horizontal tab position for the paper roll is font A
(12 24) every 8th character (9th, 17th, 25th, ... column).
[Reference] ESC D
LF
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] Prints the data in the print buffer and feeds one line based on the current line
spacing.
[Note] This command sets the print position to the beginning of the line.
[Reference] ESC 2, ESC 3
FF (*)
[Name] Print and return to standard mode in page mode
[Format] ASCII FF
Hex 0C
Decimal 12
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
n = 2: Off-line status
Bit Off/On Hex Decimal Function
n = 3: Error status
Bi Off/On Hex Decimal Function
t
0 0 00 0 Not used.Fixed to Off.
1 1 02 2 Not used.Fixed to On.
2 - - - Undefined.
3 0 00 0 No auto-cutter error.
1 08 8 Auto-cutter error occurs.
4 1 10 16 Not used.Fixed to On.
5 0 00 0 No unrecoverable error.
1 20 32 Unrecoverable error occurs.
6 0 00 0 No auto-recoverable error.
1 40 64 Auto recoverable error occurs.
7 0 00 0 Not used.Fixed to Off.
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
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
0 Off 00 0 Character font A (12 24).
On 01 1 Character font B (9 17).
1 - - - Undefined.
2 - - - Undefined.
[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.
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 ?
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
[Details] If the values of m is out of the specified range, nL and data following are
processed as normal data.
The nL and nH indicate the number of dots of the bit image in the horizontal
direction. The number of dots is calculated by 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 a dot.
If the width of the printing area set by GS L and GS W less than the width
required by the data sent with the ESC * command, the following will be
performed on the line in question (but the printing cannot exceed the maximum
printable area):
The width of the printing area is extended to the right to accommodate the
amount of data.
If step does not provide sufficient width for the data, the left margin is
reduced to accommodate the data.
After printing a bit image, the printer returns to normal data processing mode.
This command is not affected by print modes (emphasized, double-strike,
underline, character size or white/black reverse printing), except upside-down
printing mode.
The relationship between the image data and the dots to be printed is as
follows:
When 8-dot bit image is selected:
ESC n
[Name] Turn underline mode on/off
[Format] ASCII ESC - n
Hex 1B 2D n
Decimal 27 45 n
[Details] The printer can underline all characters (including right-side character spacing),
but cannot underline the space set by HT.
The printer cannot underline 90 clockwise rotated characters and white/black
inverted characters.
When underline mode id turned off by setting the value of n to 0 or 48, the
following data is not underlined, and the underline thickness set before the
mode is turned off does not change. The default underline thickness is 1 dot.
Changing the character size does not affect the current underline thickness.
Underline mode can also be turned on or off by using ESC !. Note, however,
that the last received command is effective.
This command does not affect the setting of Kanji characters.
[Default] n=0
[Reference] ESC !
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
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
ESC = n (*)
[Name] Set peripheral device
[Format] ASCII ESC = n
Hex 1B 3D n
Decimal 27 61 n
[Range] 1 n 2
55
[Description] Selects device to which host computer sends data, using n as follows:
Bit Off/On Hex Decimal Function
0 Off 00 0 Printer disabled
On 01 1 Printer enabled
1-7 - - - Undefined
[Details] W
hen the printer is disabled, it ignores all data except for error-recovery commands ( DLE
EOT, DLE ENQ, DLE DC4) until it is enabled by this command.
[Default] n=1
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.
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 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.
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 90clockwise rotation mode on/off: ESC V
Select justification: ESC a
Turn upside-down printing mode on/off: ESC {
Set left margin: GS L
Set printable area width: GS W
The following command is ignored in page mode:
Execute test print: GS ( A
The following command is not available in page mode:
Print NV bit image: FS p
Define NV bit image: FS q
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 Character 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
7 Spain
8 Japan
9 Norway
10 Denmark
11 Spain
12 Latin
13 Korea
14 Slovenia/Croatia
15 Chinese
The character sets for Slovenia/Croatia and China are supported only in the Simplified
Chinese model.
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:
n Print Direction Starting Position
0, 48 Left to right Upper left
1, 49 Bottom to top Lower left
2, 50 Right to left Lower right
3, 51 Top to bottom Upper right
ESC V n(*)
[Name] Turn 90clockwise rotation mode on/off
[Format] ASCII ESC V n
Hex 1B 56 n
Decimal 27 86 n
[Range] 0 n 1, 48 n 49
[Description] Turns 90clockwise rotation mode on/off
n is used as follows:
n Function
0, 48 Turns off 90clockwise rotation mode
1, 49 Turns on 90clockwise rotation mode
[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 90rotation 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
[Name] Set relative print position
[Format] ASCII ESC \ nL nH
Hex 1B 5C nL nH
Decimal 27 92 nL nH
[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.
This command sets the distance from the current position to [( nL + nH 256)
horizontal or vertical motion unit]
[Details] Any setting that exceeds the printable area is ignored.
When pitch N is specified to the right:
nL+ nH 256 = N
When pitch N is specified to the left (the negative direction), use the
complement of 65536.
When pitch N is specified to the left:
nL+ nH 256 = 65536 - N
The print starting position moves from the current position to [ N h orizontal or
vertical motion unit]
The horizontal and vertical motion unit are specified by GS P.
The GS P command can change the horizontal (and vertical) motion unit.
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
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 n255
[Description] Selects the paper sensor(s) used to stop printing when a paper-end is detected, using n as
follows:
Bit Off/On Hex Decimal Function
0 Off 00 0 Paper roll near-end sensor disabled
On 01 1 Paper roll near-end sensor enabled
1 Off 00 0 Paper roll end sensor disabled
On 02 2 Paper roll near-end sensor enabled
2-7 - - - Undefined
[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
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
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:
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.
When the LSB of n is 0, upside-down printing mode is turned off.
When the LSB of n is 1, upside-down printing mode is turned on.
[Details] Only the lowest bit of n is valid.
FS p
nm
(*)
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 Character height selection. See Table 2.
1
2
3
GS * x y d1...d(x y 8)
[Name] Define downloaded bit image
[Format] ASCII GS * x y d1...d(x y 8)
Hex 1D 2A x y d1...d(x y 8)
Decimal 29 42 x y d1 ...d(x y 8)
[Range] 1 x 255
1 y 48
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.
[Details] The number of dots in the horizontal direction is x 8, in the vertical direction it
is y 8.
If 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
[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:
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 ^
GS B n (*)
[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
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 2 56) 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.
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
m Print mode
0, 1, 49 Partial cut (one point left uncut)
66 Feeds paper (cutting position + [ n (vertical motion unit)]), and cuts the paper 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) h orizontal motion unit]]
inches.
[Details] This command is effective only processed at the beginning of the line.
In page mode, the printer performs only internal flag operations.
This command does not affect printing in page mode.
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
GS ^ r t m (*)
[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.
m specifies macro executing mode.
When the LSB of m = 0:
The macro executes r times continuously at the interval specified by t.
When the LSB of m = 1:
After waiting for the period specified by t, the PAPER OUT LED indicators
blink and the printer waits for the FEED button to be pressed. After the
button is pressed, the printer executes the macro once. The printer
repeats the operation r times.
[Details] The waiting time is t 100 ms for every macro execution.
GS a n (*)
[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:
Bit Off/On Hex Decimal Status for ASB
0 Off 00 0 Drawer kick-out connector pin 3 status
disabled.
On 01 1 Drawer kick-out connector pin 3 status
enabled.
1 - - - Undefined.
2 Off 00 0 Error status disabled.
On 04 4 Error status enabled.
3 Off 00 0 Paper roll sensor status disabled.
On 08 8 Paper roll sensor status enabled.
4-7 - - - Undefined.
[Details] If any of the status items in the table above are enabled, the printer transmits the status when
this command is executed. The printer automatically transmits the status whenever the enabled
status item changes. The disabled status items may change, in this case, because each status
transmission represents the current status.
If all status items are disabled, the ASB function is also disabled.
If the ASB is enabled as a default, the printer transmits the status when the printer data
reception and transmission is possible at the first time from when the printer is turned on.
The following four status bytes are transmitted without confirming whether the host is ready to
receive data. The four status bytes must be consecutive, except for the XOFF code.
Since this command is executed after the data is processed in the receive buffer, there may be
a time lag between data reception and status transmission.
When the printer is disabled by ESC = (Select peripheral device), the four status bytes are
transmitted whenever the status changes.
When using DLE EOT, GS I, or GS r, the status transmitted by these commands and ASB
status must be differentiated, according to the procedure in Appendix G, Transmission Status
Identification.
GS f n (*)
GS h n
[Name] Select bar code height
[Format] ASCII GS h n
Hex 1D 68 n
Decimal 29 104 n
[Range] 1 n 2 55
[Description] Selects the height of the bar code.
n specifies the number of dots in the vertical direction.
[Default] n = 162
[Reference] GS k
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
1, 49 Transmits paper sensor status
2, 50 Transmits drawer kick-out connector status
[Details] When using a serial interface
When DTR/DSR control is selected, the printer transmits only 1 byte after confirming the host is
ready to receive data (DSR signal is SPACE). If the host computer is not ready to receive data
(DSR signal is MARK), the printer waits until the host is ready.
When XON/XOFF control is selected, the printer transmits only 1 byte without confirming the
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 5 1
0 x L 2 55
0 x H 2 55
0 y L 2 55
0 d 255
k = ( xL + xH 2 56) ( yL + yH 2 56) ( k 0 )
[Description] Selects Raster bit-image mode. The value of m selects the mode, as follows:
m 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
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:
[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 !
FS &
[Name] Select Kanji character mode
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 .
[Name] Cancel Kanji character mode
[Format] ASCII FS .
Hex 1C 2E
Decimal 28 46
[Description] Cancels Kanji character mode.
[Reference] FS &, FS C
FS 2 c1 c2 d1...dk
[Name] Define user-defined Kanji characters
[Format] ASCII FS 2 c1 c2 d1...dk
Hex 1C 32 c1 c2 d1...dk
Model type c1 c2
Japanese Kanji supporting model c1 = 77H 21H c2 7EH
(JIS code system)
Japanese Kanji supporting model c1 = ECH 40H c2 7EH
(SHIFT-JIS code system) 80H c2 9EH
Chinese Kanji supporting model c1 = FEH A1H c2 FEH
Taiwanese Kanji supporting model c1 = FEH A1H c2 FEH
0 d 255
k = 72
[Description] Defines user-defined Kanji characters for the character codes specified by c1 and
c2.
[Details] c1 and c2 indicate character codes for the defined characters. c1 specifies for
the first byte, and c2 for the second byte.
d indicates the dot data. Set a corresponding bit to 1 to print a dot or to 0 to not
print a dot.
[Default] All spaces.
[Reference] FS C
FS S n1
n2
[Name]
Set left- and
right-side
Kanji
character
spacing
[Format]
ASCII
FS S
n 1 n2
Hex
1C 53 n 1 n2
Decimal
28 83 n 1 n2
[Range] 0 n 1 255
0 n 2 255
[Description] Sets left- and right-side Kanji character spacing n1 and n2, respectively.
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 !