This specifications document describes the command specifications for the STAR LINE MODE on line thermal
printers. Information contained herein applies to models with the following conditions.
1) General description of operations in the DTR mode
This mode abides by the DIP switch settings. (Ex-factory settings)
This mode performs communication while handshaking with the DTR signals. In the operations to receive printer
data, this mode controls the DTR signals by confirming the BUSY signal. A SPACE indicates that the printer is ready
to receive data; conversely, a “mark” indicates that the printer cannot receive data.
<When ON-LINE>
RXD DATA DATA DATA
DTR
Printing
Power ON Buffer full Buffer empty
<When out of paper>
RXD OFF-LINE ON-LINE
DTR ON-LINE Recovery
Printing Out of paper
No paper signal
Power ON
If there is no printer error after turning ON the power, the DTR signal line is set to a SPACE. When the host computer
confirms that the DTR signal line is a SPACE, it sends the data text to the RXD signal line. The printer sets the DTR
signal line to a “Mark” after the empty area of the data buffer reaches a maximum of 256 bytes. When the host
computer confirms that the DTR signal line is a Mark, it stops the transmission of data text to the printer buffer, but at
this point as well, the printer is still capable of receiving data, up to the amount of empty space in the data buffer. If
the host computer ignores the DTR signal and transmits data, all data exceeding the amount of space in the data
buffer is simply discarded. The printer sets the DTR signal line to SPACE again when the amount of empty space in
the data buffer increased because of the printing and the data in the buffer is a maximum of 256 bytes.
3) General description of operations in the XON/XOFF mode
This mode is set when DIPSW #1 to #3 are turned OFF. This mode notifies the host of the XON (DC1) data when the
printer can receive data and the XOFF (DC3) data when the printer cannot receive data, using the TXD signals.
This functions so that XON outputs only 1 byte when the printer shifts from OFFLINE (printer busy) to ONLINE
(printer ready) and; XOFF outputs 1 byte when the printer shifts from ONLINE (printer ready) to OFFLINE (printer
busy) .
XON XOFF XON XOFF XON
TXD
RXD DATA DATA DATA
Printing
Out of
paper
signal
Power ON No paper ON-LINE Recovery
If there is no error after turning the power ON, XON (control code name: DC1; Hexadecimal name: 11H) is output by
the TXD signal line. After the host computer receives the XON, it sends the data text to the RXD signal line. XOFF
(CD3; 13H) is output when the empty space in the data buffer is a maximum of 256 bytes. The host computer stops
sending data text when it receives the XOFF, however, the printer is capable of receiving data at that time for the
amount of empty space in the data buffer. Data exceeding the amount of empty space is discarded. As the empty
space in the data buffer increases through printing, XON is output when the data in the buffer is a maximum of 256
bytes.
4) Buffer full/Buffer full cancel in the XON/XOFF mode
Rating:Conforms to IEEE 1284
Mode:Compatibility Mode/Nibble Mode/Byte Mode
Data transfer speed: 1000 to 6000 CPS
Synch method:According to externally supplied strobe pulse
Handshake:According to ACK and BUSY signals
Logic level:Compatible to TTL
1-2-2) Signal array and explanations according to interface connector pin
CRCarriage return (same as line feed)
ESC aFeed paper n lines
ESC zSelect line feed amount
ESC 0Specify line spacing to 3 mm
ESC Jn/4 mm line feed
ESC In/8 mm line feed
ESC sSet two byte Chinese characters left/right spaces
ESC tSet 1 byte Chinese characters left/right spaces
ESC rRegister Chinese download characters
OthersCANCancel print data and initialize commands
ESC @Command initialization
ESC GS #Set memory switch
ESC ?Reset printer
(*) Chinese character commands
• Chinese character control commands are ignored on printers not installed with Chinese character fonts (those
intended for overseas).
• All Chinese character control commands are ignored if the specification for the location of use is specified as
SBCS (single byte countries) by the memory switch.
• Raster related commands
ClassCommandsName
Raster commandsESC * r RInitialize raster mode
ESC * r AEnter raster mode
ESC * r BQuit raster mode
ESC * r CClear raster data
ESC * r DDrive drawer
ESC * r ESet EOT mode
ESC * r FSet FF mode
ESC * r PSet page length
ESC * r QSet print quality
ESC * r m lSet left margin
ESC * r m rSet right margin
ESC * r TSet top margin
ESC * r KSet print color
b n1 n2 d1...dkTransfer raster data (auto line feed)
k n1 n2 d1...dkTransfer raster data
ESC FF NULExecute form feed mode
ESC EOT NULLExecute EOT mode
Black markESC dPaper cut instruction
RelatedFFForm feed
CommandsESC CSet page length to n lines
ESC C 0Set page length in 24 mm units
VTFeed paper to vertical tab position
ESC BSet vertical tab position
• USB I/F related commands
ClassCommandsName
There are no commands for TSP600/700/800 and TUP900.
• 2 color printing related commands
ClassCommandsName
2 color printingESC RS cSpecify printing color in 2 color printing mode
RelatedESC RS CSelect/cancel 2 color printing mode
CommandsESC 4Specify white/black inversion and printing color red
ESC 5Cancel white/black inversion and specify printing color black
ESC RS dSet print density
ESC RS rSet printing speed
ESC FS qRegister logo
ESC FS pPrint logo
• Presenter r el at e d co m m a nd s
ClassCommandsName
PresenterESC SYN 0Execute presenter paper recovery
relatedESC SYN 1Set presenter automatic recovery function and recovery time
commandsESC SYN 3Acquire presenter paper counter
• Reception buffer
The buffer for storing data (reception data) received from the host, as it is called the reception buffer.
Reception data is temporarily stored in the reception buffer, then processed sequentially.
• Line buffer
The buffer for storing image data for printing is called the line buffer.
• Line buffer full
The state in which the buffer has no more space available is called line buffer full. When the buffer is full in
standard mode, data in the line buffer is printed and a line feed is performed when new print data is processed.
This is the same as a Line Feed. When the line buffer is full in the page mode, the printer move the print position
to the head of the next line then starts with the new print data.
• Top of line
The top of line is a state that satisfies the following conditions.
- There is currently no print data in the line buffer.
- The position is not specified with the horizontal direction position command.
• Printable region
This is the maximum printable area with the printer’s specifications.
• Print region
This is the printing area specified by a command. (Print region ≤ printable region)
Codes from <00>H to <1F>H are targeted. When codes not defined as commands in this region are received,
they are discarded.
(Ex.) If processing the data string of <30>H<31>H<03>H<32>H<0A>H<33>H, the printer will discard <03>H as
an undefined code.
2) Undefined commands
When data continuing the codes of ESC, FS, GS, DLE are codes not defined as commands, ESC, FS,GS and
subsequent codes are discarded.
(Ex.) If processing the data string of <30>H<1B>H<22>H<31>H<32>H, the printer will read and discard
<1B>H<22>H as an undefined command.
3) Settings outside of the defined area
Processing values outside of the defined area in commands accompanying arguments, those commands are
ignored and the preset values are unchanged. The processing of commands is terminated at the point values
outside of the defined region are processed in arguments having a plurality of commands. Data after that is
processed as normal data.
(Ex.) If processing the data string of <1B>H<52>H<15>H, the printer will discard the data string of
<1B>H<52>H<15>H because although <1B>H<52>H is defined as a commands (ESC R) , the argument
<15>H is outside of the definition. Therefore, the international character set that is already set
experiences no change.
Upperlines are composed of 2 dot lines.
Upperlines are not applied to horizontal tabs and to specified horizontal direction positions.
Upperlines are expanded if the character expansion is specified. (When double high expansion is
used, upperlines are composed of 4 dots.)
Upperlines are enabled for white/black inversion.
This command is enabled for ANK characters and Chinese characters.
IBM block ignores upperlines.
This command is enabled only when at the top of the line.
Upside down and right-side up characters cannot both exist in the same line.
This command is enabled for following.
[Defined Area]- - [Initial Value]- - [Function]Feeds the currently specified amount of paper.
If print data exists in the line buffer, it prints that data.
The initial value for the amount of paper is set according to the memory switch settings.
CR
[Name]Carriage return (line feed)
[Code]ASCIICR
Hex.0D
Decimal13
[Defined Area]- - [Initial Value]- - [Function]When the CR code is enabled, the CR code functions in the same way as the LF code.
If the CR code is disabled, it ignores 1 byte.
Enabling and disabling the CR code is done using the memory switch settings.
ESC a n
[Name]Feed paper n lines
[Code]ASCIIESCan
Hex.1B61n
Decimal2797n
[Defined Area]1≤n≤127
[Initial Value]- - [Function]Executes a paper feed for (the currently specified line feed amount x n). If print data exists in the
line buffer, it prints that data.
The initial value for the amount of paper is set according to the memory switch settings.
[Defined Area]1≤n≤255
[Initial Value]- - [Function]Executes a n/4mm paper feed.
If print data exists in the line buffer, it prints that data.
Using this command will intermittently feed paper, therefore, it is normally recommended that this
command not be used.
ESC I n
[Name]n/8mm line feed
[Code]ASCIIESCIn
Hex.1B49n
Decimal2773n
[Defined Area]1≤n≤255
[Initial Value]- - [Function]Executes a n/8mm paper feed.
If print data exists in the line buffer, it prints that data.
Using this command will intermittently feed paper, therefore, it is normally recommended that this
command not be used.
If the current position is at the top of the page, it form feeds to the top of the next page.
If there is data existing in the line buffer when executing a form feed, it prints that data, then
executes the form feed.
However, by printing data remaining in the buffer, and moving to the top of the next page, a form
feed is considered to have been executed, so form feed is not performed.
ESC C n
[Name]Set page length to n lines
[Code]ASCIIESCCn
Hex.1B43n
Decimal2767n
[Defined Area]1≤n≤127
[Initial Value](Form feed amount initial value x 42)
[Function]The position whereat this command is processed is considered the top of the page and sets the
page length to (current form feed amount x n).
This command cancels the bottom margin setting when setting page length.
The page length set using this command is unaffected by changing the form feed amount later.
Moving to the top of the page is performed using the following commands.
• Form feed command (FF):Executes a form feed.
• Cutter command (ESC d n):Sets cutter position at top of page.
• Raster command (ESC * r B):Sets top of page when quitting raster mode.
• Error cancel operations:Sets position when quitting error cancellation operations
at top of page.
[Name]Set page length to n x 24 mm units
[Code]ASCIIESCC0n
Hex.1B4300n
Decimal27670n
[Defined Area]1≤n≤22
[Initial Value](Form feed amount initial value x 42)
[Function]The position whereat this command is processed is considered the top of the page and sets the
page length to (n x 24 mm).
This command cancels the bottom margin setting when setting page length.
The page length set using this command is unaffected by changing the form feed amount later.
Moving to the top of the page is performed using the following commands.
• Form feed command (FF):Executes a form feed.
• Cutter command (ESC d n):Sets cutter position at top of page.
• Raster command (ESC * r B):Sets top of page when quitting raster mode.
• Error cancel operations:Sets position when quitting error cancellation operations
at top of page.
[Name]Feed paper to vertical tab position
[Code]ASCIIVT
Hex.0B
Decimal11
[Defined Area]- - [Initial Value]- - [Function]Feeds paper to the next vertical tab position.
This command is ignored if there are no tabs set.
If a vertical tab is set, and the current position is the same as the vertical tab position, or if it is
below that position, it feeds paper to the top of the next page.
If data exists in the line buffer when feeing paper to the vertical tab position, it executes the
paper feed to the vertical tab position after printing that data. However, if moved to the vertical
tab position by printing data remaining in the buffer, the move to the vertical tab position is
considered to have been executed, so a move to the next vertical tab position is not performed.
There is no initial value for the vertical tab.
[Name]Fine density bit image (Compatible with 24 bit wire dots)
[Code]ASCIIESCXn1n2d1...dk
Hex.1B58n1n2d1...dk
Decimal2788n1n2d1 ...dk
[Defined Area]1 ≤ (n1 + n2 x 256) ≤ printable region
k = {(n1 + n2 x 256) x 3}
0≤d≤255
[Initial Value]- - [Function]Prints input bit images with 8 dots/mm resolution for both horizontal and vertical.
The following shows the data processing in this command.
• When {(n1 + n2 x 256) x 3} exceeds the printable region, data after d1 is handled as normal
data.
• When {(n1 + n2 x 256) x 3} exceeds the printable region that is currently set, only the data in
the printing region is printed.
At this time, all data for the print region is discarded.
• If the current position already exceeds the print region, this command discards all data.
• n2 Under-bar character selection and added line feed selection
n2Under-bar character selection and added line feed selection
1, 49No added under-bar charactersExecutes line feed after printing a bar code
2, 50Adds under-bar charactersExecutes line feed after printing a bar code
3, 51No added under-bar charactersDoes not execute line feed after printing a bar code
4, 52Adds under-bar charactersDoes not execute line feed after printing a bar code
• n4 bar code height (dot count)
Specification A
When the height of the bar code is more than the form feed amount, the form feed amount is
automatically doubled.
Specification B
Form feed at (Bar code height + underbar characters)
Supplement:
Specification Type A and Specification Type B differ per model.
See the COMMAND LIST BY MODEL in Chapter 6. SPECIAL APPENDIX for your model.
check digit is automatically applied, so it is specified and
ignored.
The command is ignored for data that cannot be shortened.
Automatically converts data to shortened form.
• UPC – A: k = 11 (or 12)
The 12
th
check digit is automatically applied, so it is specified and
ignored.
• JAN/EAN – 8: k = 7 (or 8)
th
The 8
check digit is automatically applied, so it is specified and ignored.
• JAN/EAN -13: k = 12 (or 13)
The 13th check digit cannot be automatically applied, so it is specified and
ignored.
• CODE 39: k is freely set, and maximum value differs according to the
mode.
Start/stop code (*) is automatically applied.
• ITF: k is freely set, and maximum value differs according to the mode.
If data is oddly numbered, a 0 is applied to the top.
• CODE 128: k is freely set, and maximum value differs according to the
mode and the print character type.
The check character is automatically applied.
• CODE 93: k is freely set, and maximum value differs according to the
mode and the print character type.
The check character (?) is automatically applied.
• NW7: k is freely set, and maximum value differs according to the mode
and the print character type.
Start/stop codes included in the data (not automatically applied).
[Initial Value]- - [Function]Exectes the auto-cutter.
After auto-cutter is executed, the printer considers that to be the top of the page.
nAuto cutter
0, 48Full cut at the current position.
Print data in line buffer is printed before a full cut.
This command is ignored if the printer is not equipped with an auto-cutter.
1, 49Partial cut at the current position.
Print data in line buffer is printed before a partial cut.
This command is ignored if the printer is not equipped with an auto-cutter.
2, 50Paper is fed to cutting position, then a full cut.
Print data in line buffer is printed before the operation described above.
This command is ignored if the printer is not equipped with an auto-cutter.
3, 51Paper is fed to cutting position, then a partial cut.
Print data in line buffer is printed before the operation described above.
This command is ignored if the printer is not equipped with an auto-cutter.
(*) The auto-cutter function operates in the following ways on models that only have a full cut or a
partial cut.
• Models that perform only a full cut. Executes a full cut when there are
• Models that perform only a partial cut.Executes a partial cut when there are for instructions
(*) When connected with a presenter, executes a full cut when instructed for a partial cut.
[Defined Area]- - [Initial Value]- - [Function]Executes the external device drive conditions set according to the command to set the external
drive device pulse width (ESC BEL n1 n2).
As with other commands, it temporarily stores data in the data buffer, then executes in the order
received.
External device 1 and external device 2 cannot be executed simultaneously.
[Defined Area]- - [Initial Value]- - [Function]Executes the external device drive conditions set according to the command to set the external
drive device pulse width (ESC BEL n1 n2).
As with other commands, it temporarily stores data in the data buffer, then executes in the order
received.
External device 1 and external device 2 cannot be executed simultaneously.
The energizing time and delay time for the external device 2 are fixed at 200 ms each.
As with other commands, it temporarily stores data in the data buffer, then executes in the order
received.
External device 1 and external device 2 cannot be executed simultaneously.
The energizing time and delay time for the external device 2 are fixed at 200 ms each.
As with other commands, it temporarily stores data in the data buffer, then executes in the order
received.
External device 1 and external device 2 cannot be executed simultaneously.
Print density 1.2
Print density 1.1
Print density 1.0
Print density 0.9
Print density 0.8
Print density 0.7
(Reserved)
(Reserved)
(Reserved)
(Reserved)
(Reserved)
(Reserved)
(Reserved)
(Reserved)
(Reserved)
[Name]Specify JIS Chinese character mode
[Code]ASCIIESCp
Hex.1B70
Decimal27 112
[Defined Area]- - [Initial Value]JIS Chinese character mode cancelled
[Function]Specifies JIS Chinese character mode
When in JIS Chinese character mode, character codes are all handled as 2 byte Chinese
characters (First byte: upper code; second byte: lower code).
This command is ignored for models not equipped with Japanese and Chinese characters and
when the specification for the location of use is specified as SBCS (single byte countries) by the
memory switch.
ESC q
[Name]Cancel JIS Chinese character mode
[Code]ASCIIESCq
Hex.1B71
Decimal27 113
[Defined Area]- - [Initial Value]JIS Chinese character mode cancelled
[Function]Cancel JIS Chinese character mode
[Name]Specify/cancel Shift JIS Chinese character mode
[Code]ASCIIESC$N
Hex.1B24N
Decimal2736N
[Defined Area]- - [Initial Value]Memory switch setting
[Function]Specifies and cancels the shift JIS Chinese character mode.
When in shift JIS Chinese character mode, character codes are all handled as 2 byte Chinese
characters (First byte: upper code; second byte: lower code).
This command is ignored for models not equipped with Japanese and Chinese characters and
when the specification for the location of use is specified as SBCS (single byte countries) by the
memory switch.
nShift JIS Chinese character mode
0, 48Cancels shift JIS Chinese character mode
[Name]Register Chinese download characters
[Code]ASCIIESCrc1c2d1...dk
Hex.1B72c1c2d1...dk
Decimal27 114c1c2d1...dk
[Defined Area]0≤d≤255
k=72
c1 and c2 differ according to specifications and code type (see table below).
[Initial Value]All spaces
[Function]Registers Chinese download characters to c1 and c2 addresses.
Those already registered to these addresses are overwritten. If c1 and c2 are outside of the
defined are or the printer is model not equipped with Chinese fonts (for overseas) and when the
specification for the location of use is specified as SBCS (single byte countries) by the memory
switch, the printer discards up to d1 and dk.
This command exists in models that have the specifications of A and B below. (See the “Special
Appendix, Command Table per Model” for details.)
Specification A
Specificationc1c2Registration count
Japanese char./JIS typec1=77h
Specification B
Specificationc1c2Registration count
Japanese char./JIS typec1=77h21h≤c2≤7Eh94 characters
Japanese char./Shift JIS typec1=ECh40h≤c2≤7Eh
Chinese charactersc1=FEhA1h≤c2≤FEh94 characters
(*) The registration region is the same for Japanese characters in JIS or shift JIS.
Supplement:
Specification Type A and Specification Type B differ per model.
See the COMMAND LIST BY MODEL in Chapter 6. SPECIAL APPENDIX for your model.
Specification A
48≤N≤57 (“0”≤N≤ “9”) , 65≤N≤70 (“A”≤N≤ “F”), 97≤N≤102 (“a”≤N≤ “f”)
Specification B
48≤N≤57 (“0”≤N≤ “9”) , 65≤N≤70 (“A”≤N “F”), 97≤N≤102 (“a”≤N≤ “f”)
N = 85 (U) User defined area
Supplement:
Specification Type A and Specification Type B differ per model.
See the COMMAND LIST BY MODEL in Chapter 6. SPECIAL APPENDIX for your model.
[Initial Value]- - [Function]Sends command to write after defining memory switch using the definition command specified by
the following classes.
Memory switch information defined by the command to write is written to the volatile memory.
When writing to the volatile memory by the command to write, the printer executes a reset.
This command exists in models that have the specifications of A and B indicated in the above
defined areas.
Models having specifications B can register any 16 bit data by specifying N = 85 (U). (See the
“Special Appendix, Command Table per Model” for details per model.)
UL
FunctionsClassmNn1 n2 n3 n4
Definition data write and resetWriteWFixed at 0Fixed at 0000
Definition data write and reset and
self print
Data definition (data specification)Definition“, ”Nn1 n2 n3 n4
Data definition (specify bit and set) Definition“+”Nn1 n2 n3 n4
Data definition (specy bit and clear) Definition“-”Nn1 n2 n3 n4
Definition data (all data initialized)Definition“@”Fixed at 0Fixed at 0000
• m: Mode selection
• N : Memory switch number to specify
• n1 n2 n3 n4: Specify data m = (,) Specify data
m = (+) Bit number to set
m = (-) Bit number to clear
[Defined Area]- - [Initial Value]- - [Function]Hardware resets the printer and executes on self print.
After sending this command, the next data is not sent until the printer is online (in a state wherein
it can receive data).
When resetting the printer, the following processes are performed.
Raster graphics are command types and incidental specifications that enable high speed and high quality printing of
graphics.
The following shows the characteristics and specifications for raster graphics.
• Defines the raster mode command as the STAR line mode extension set.
Basically no restrictions set in use of conventional STAR line mode.
STAR Page Mode cannot be used.
• Handles high speed data transmission
When using IEEE 1284, data transmission rate of 80 to 100 kbytes ensured.
• Handles IEEE 1284, USB and Ethernet I/F (RS-232C not applicable)
• Handles both fixed length/variable length mode
• Print speed selectable
• Post printing cut operation selectable
• All settings possible by Raster commands.
Most settings are possible without DIPSW/memory switch settings.
• Supports printer driver handling raster mode
The following shows the raster command details.
Note that if not specifically noted, the following commands are effective only in rastr mode and the commands are
ignored (4 bytes ignored) when other than the raster mode. The raster image buffer in the command details
described below indicate the raster dedicated image buffer, the length thereof (vertical direction dot count) differing
between models.
This command is also effective when not in the raster mode.
However, initialization of the raster mode with this command is executed when entering the
raster mode.
The following settings are initialized using this command.
• Raster page length setting (ESC * r P n NUL)
• Raster print quality setting (ESC * Q n NUL)
• Raster print quality setting (ESC * r K n NUL)
• Raster top margin setting (ESC * r T n NUL)
• Raster left margin setting (ESC * r m l n NUL)
• Raster right margin setting (ESC * r m r n NUL)
• Raster EOT mode setting (ESC FF EOT)
• Raster FF mode setting (ESC FF NUT)
• Raster image buffer clear
Note that when entering the raster mode, it executes the same process as initialization of the
raster mode using this command.
However, because initialization is not performed when entering the raster mode only for the
following settings, when initializing the following it sends this initialization command.
• Raster data print color setting (ESC * r K n NUL)
This command is ignored when in the raster mode.
The following shows the details regard processing of this command.
(1) Reception of this command.
(2) When using parallel I/F, IEEE 1284 reverse mode is prohibited.
(3) All data remaining in the reception buffer and image buffer is printed equivalent to the FF
command.
(4) Initialize raster mode
(5) Enter raster mode
When in the raster mode, the raster mode is initialized.
The following shows the contents of the initialization.
• Raster page length setting (ESC * r P n NUL)
• Raster print quality setting (ESC * Q n NUL)
• Raster top margin setting (ESC * r T n NUL)
• Raster left margin setting (ESC * r m l n NUL)
• Raster right margin setting (ESC * r m r n NUL)
• Raster EOT mode setting (ESC FF EOT)
• Raster FF mode setting (ESC FF NUT)
• Raster image buffer clear
(*) Only raster data print color setting is not initialized when entering the raster mode.
When quitting the raster mode, if there is raster data remaining in the image buffer of the raster
mode, it quits the raster mode after executing the raster EOT mode.
Note that with this command, IEEE 1284 reverse mode is allowed in parallel I/F and it sets the
top of page with the line mode.
ESC * r C
[Name]Clear raster data
[Code]ASCIIESC*rC
Hex.1B2A7243
Decimal2742 11467
[Defined Area]- - [Initial Value]- - [Function]Clears image buffer data in the raster mode.
The EOT mode operates to execute using the raster document quit command (ESC EOT NUL).
n is a decimal description (max. 255 digits) using ASCII characters.
Specification A <EOT mode setting format>
nFormFeedCut FeedCutterPresenter
0Set To DefaultSet To DefaultSet To DefaultSet To Default
1○-----2○○---3○TearBar----
When the printer is a model handling BM and is set for BM to be effective, the set raster mode page
length is ignored and BM detecting is performed.
Supplement:
Specification Type A and Specification Type B differ per model.
See the COMMAND LIST BY MODEL in Chapter 6. SPECIAL APPENDIX for your model.
The FF mode operates to execute using the raster document quit command (ESC FF NUL).
n is a decimal description (max. 255 digits) using ASCII characters.
Specification A <FF mode setting format>
nFormFeedCut FeedCutterPresenter
0Set To DefaultSet To DefaultSet To DefaultSet To Default
When the printer is a model handling BM and is set for BM to be effective, the set raster mode page
length is ignored and BM detecting is performed.
Supplement:
Specification Type A and Specification Type B differ per model.
See the COMMAND LIST BY MODEL in Chapter 6. SPECIAL APPENDIX for your model.
This command sets the left margin to (n x 8).
When the left margin exceeds the printable area, or if the left margin specification eliminates the
print area (printable region to right margin) to the left margin specified value, this command is
ignored.
n is a decimal description (max. 255 digits) using ASCII characters.
ESC * r m r n NUL
[Name]Set raster right margin
[Code]ASCIIESC*rmrnNUL
This command sets the right margin to (n x 8).
When the right margin exceeds the printable area, or if the right margin specification eliminates
the print area (printable region to left margin) to the right margin specified value, this command is
ignored.
n is a decimal description (max. 255 digits) using ASCII characters.
This command is effective only when specifying the 2 color mode using the line mode.
This command is ignored when not in the 2 color print mode.
n is a decimal description (max. 255 digits) using ASCII characters.
nPrint color
0Black
1Cyan
2Magenta
3Yellow
(*) This command is effective only when using a model handling 2 color printing. This command
is ignored on non-compatible models.
The following commands control top of form functions using black mark paper.
The following commands are effective only when black mark is set to be effective.
ESC d n
[Name]Auto cutter
[Code]ASCIIESCdn
Hex.1B64n
Decimal27 100n
[Defined Area]0≤d≤3
48≤d≤51 (”0” ≤d≤”3”)
[Initial Value]- - [Function]Executes the auto-cutter.
After auto-cutter is executed, the printer considers that to be the top of the page.
nAuto cutter
0, 48Full cut at the current position.
Print data in line buffer is printed before a full cut.
This command is ignored if the printer is not equipped with an auto-cutter.
1, 49Partial cut at the current position.
Print data in line buffer is printed before a partial cut.
This command is ignored if the printer is not equipped with an auto-cutter.
2, 50After executing top of form, paper is fed to cutting position, then a full cut.
Print data in line buffer is printed before the operation described above.
This command is ignored if the printer is not equipped with an auto-cutter.
3, 51After executing top of form, paper is fed to cutting position, then a partial cut.
Print data in line buffer is printed before the operation described above.
This command is ignored if the printer is not equipped with an auto-cutter.
(*) The auto-cutter function operates in the following ways on models that only have a full cut or a
partial cut.
• Models that perform only a full cut:Executes a full cut when for instructions calling
for a partial cut.
• Models that perform only a partial cut:Executes a partial cut when there are for
instructions calling for a full cut.
(*) When connected with a presenter, executes a full cut when instructed for a partial cut.
The following commands control 2 color printing functions.
The following commands are effective only when using a model handling 2 color printing.
ESC RS c n
[Name]Set print color in 2 color print mode
[Code]ASCIIESC RScn
Hex.1B1E63n
Decimal273099n
[Defined Area]0≤n≤1
48≤n≤49 (”0”≤n≤”1”)
[Initial Value]n = 0, 48 (When in 2 color print mode)
[Function]Specifies print color in 2 color print mode.
This command is ignored when not in the 2 color print mode.
Specifies black for the print color when in 2 color print mode.
The specification of this command is cleared only when the printer is reset. (Not cleared by ESC
@)
The specification of this command is not cleared by ESC @ CAN.
However, print color is initialized to black by the ESC @ and CAN only when in the compatible 2
color print mode.
This command cancels 2 color print mode, when in 2 color print mode.
This command is ignored when the 2 color print mode is already cancelled.
The specification of this command is not cleared by ESC @ CAN.
The following processes are executed by canceling the 2 color print mode using this
command.
• Prints data in line buffer in 2 color print mode, if unprinted data exists in the line buffer.
• Waits to stop printing when printing in 2 color print mode.
• Recovers print density setting to single color mode setting.
• Recovers print speed to single color mode setting.
• Recovers logo print setting to single color mode setting.
1, 49Selects 2 color print mode
This command selects 2 color print mode, when in single color print mode.
This command is ignored already in the 2 color print mode.
The specification of this command is not cleared by ESC @ CAN.
The following processes are executed by selecting the 2 color print mode using this
command.
• Prints data in line buffer in single color print mode, if unprinted data exists in the line buffer.
• Waits to stop printing when printing in single color print mode.
• Initializes print color setting (2 color print mode setting)
• Initializes print density setting (memory switch setting)
• Sets logo print setting to 2 color mode setting.
Supplement:
Specification Type A and Specification Type B differ per model.
See the COMMAND LIST BY MODEL in Chapter 6. SPECIAL APPENDIX for your model.
This command stops printing to be executed.
When in two-color print mode, this can set the print density of red print.
nPrint Density
Single Color Printing ModeTwo Color Printing Mode Red Print Density
0, 48Print density 1.3Print density 1.2
1, 49Print density 1.2Print density 1.2
2, 50Print density 1.1Print density 1.0
3, 51Print density 1.0Print density 1.0
4, 52Print density 0.9Print density 1.0
5, 53Print density 0.8Print density 0.8
6, 54Print density 0.7Print density 0.8
7, 55(Reserved)(Reserved)
8, 56(Reserved)(Reserved)
0≤xn1≤255, 0≤xn2≤3
1≤(xn1 + xn2 x 256)≤1023
0≤yn1≤255, 0≤yn2≤1
1≤(yn1 + yn2 x 256)≤288
0≤d≤255
k = {(xn1 + xn2 x 256) x (yn1 + yn2 x 256) x 8}
• n:Specifies registered logo count
• xn1, xn2: Horizontal size of registered logo {(xn1 + xn2 x 256) x 8} dots
• yn1, yn2: Vertical size of registered logo {(yn1 + yn2 x 256) x 8} dots
• d: Registered logo data
• k:Logo data count
This command should be specified at the top of the line.
When the first parameter is determined to be free of error, the printer starts processing this
command.
When logo register processing starts, all previously defined data is deleted.
(It is not possible to reregister a portion of a plurality of defined logo data.)
Logo registration numbers are defined in rising order from 1.
If the defined area specified by the parameter is not empty, or if there is an error in the parameter
specification, register processing is aborted. (The pre-registered and complete data is effective.)
The printer should be initialized if logo registration is completed or register processing is aborted.
If an error occurs while performing register processing (the time from when the first parameter is
OK until th printer initialization is completed after registering a logo), error processing,
mechanical operation and status processing cannot be performed.
The relationships between input data and the actual print are shown on the next page.
<When registering logos for 2 color printing>
Registration is possible regardless of the 2 color printing mode being specified or cancelled.
Register logos with the same capacity as the logo register number k (odd number) and k + 1
(even number).
If the capacity differs or the logo register number is 255, this command is ignored by the logo
print command in the 2 color print mode.
If there is unprinted data in the line buffer, this command is executed after printing that data.
Therefore, it is not possible to print with other data in the same line (characters, bit images, bar
codes).
Form feed obeys the vertical print size of the logo.
Adornments other than upside-down printing and expansion settings are unaffected.
The horizontal printing start position conforms to the left margin position and the horizontal print
area conforms to the left and right margin settings.
If the logo horizontal print size exceeds the horizontal print region, the portion exceeding the area
is not printed.
<When using the 2 color print mode>
When the logo register number n is odd:
Register number n is printed in black; register number n + 1 is printed in red and overlapped.
The command is ignored when the capacity of the register number n and the capacity of the
register number n + 1 are different.
The command is ignored when the register number n = 255 is specified.
When the logo register number n is even:
Register number n is printed in black; register number n - 1 is printed in red and overlapped.
The command is ignored when the capacity of the register number n and the capacity of the
register number n - 1 are different.
The command is ignored when the register number n = 255 is specified.