Can only be used in Japanese 2-byte fonts Add Traditional and Simplified Chinese
fonts
Cancelled
Bluetooth Setting-
Cancel Enable/Disable parameter
Cancelled
Can only draw line / box Add draw circle function, parameters and
bytes are different
[Default] n1=1; n2=0 [Default] n1=1; n2=1
Paper Sensor Setting
0x01: Reflective, Light from bottom to top
Paper Sensor Setting
0x01: Reflective, Light from top to bottom
3.00.02
0x05: Reflective top to bottom
0x05: Reflective bottom to top
This Programming Reference (Rev. 2.2) is applied for firmware 3.00.02 version.
If your printer is used the previous firmware 3.00.01 version, please upgrade the firmware to 3.00.02 version.
Page 3
VERSAJET
Programming Reference
Proprietary Statement
The information contained herein is proprietary and is provided sorely for the purpose of allowing customers to operate
and maintain the equipment described herein. PC Worth Int’l Co., Ltd. reserves the right to make changes in
specifications and other information contained in this document without prior notice.
Liability Disclaimer
PC Worth makes no warranty of any kind with regard to this publication, including, but not limited to, the implied warranty
of merchantability and fitness for any particular purpose. PC Worth shall not be liable for technical or editorial errors or
omissions contained herein; nor for incidental consequential damages in connection with the furnishing, performance, or
use of this publication. This publication contains proprietary information that is protected by copyright. All rights are
reserved. No part of this publication may be photocopied, reproduced or translated into any language, in any forms, in an
electronic retrieval system or otherwise, without the prior written permission of PC Worth.
No Liability for Consequential Damage
In no event shall PC Worth or anyone else involved in the creation, production, or delivery of the accompanying product
(including hardware and software) be liable for any damages whatsoever (including, without limitation, damages for loss
of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or
the results of use of or inability to use such product, even if PC Worth has been advised of the possibility of such
damages.
Trademarks & Copyright
All registered and unregistered trademarks used herein are the exclusive property of their respective owners.
ESC D .............................................................................................................................................. 49
ESC E .............................................................................................................................................. 51
ESC G ..............................................................................................................................................52
ESC R .............................................................................................................................................. 58
ESC S .............................................................................................................................................. 59
ESC V .............................................................................................................................................. 62
ESC W ............................................................................................................................................. 63
FS S ................................................................................................................................................. 75
FS W ................................................................................................................................................ 77
GS ( K ..............................................................................................................................................86
GS ( k ...............................................................................................................................................88
GS c ...............................................................................................................................................156
GS k ...............................................................................................................................................160
GS v 0 ............................................................................................................................................ 169
GS w ..............................................................................................................................................171
RS F ...............................................................................................................................................175
RS G .............................................................................................................................................. 176
RS L ............................................................................................................................................... 178
RS a ............................................................................................................................................... 179
RS e ............................................................................................................................................... 181
RS i ................................................................................................................................................ 182
RS m .............................................................................................................................................. 189
RS n ............................................................................................................................................... 190
RS p ............................................................................................................................................... 190
RS t ................................................................................................................................................ 197
RS u ............................................................................................................................................... 199
US 1 ............................................................................................................................................... 201
US 2 ............................................................................................................................................... 202
US 3 ............................................................................................................................................... 203
Page 8
VERSAJET
Programming Reference
US 4 ............................................................................................................................................... 204
US 7 ............................................................................................................................................... 205
US A............................................................................................................................................... 206
US C............................................................................................................................................... 208
US G .............................................................................................................................................. 209
US H............................................................................................................................................... 210
US I ................................................................................................................................................ 211
US J ............................................................................................................................................... 212
US K............................................................................................................................................... 213
US L ............................................................................................................................................... 214
US M .............................................................................................................................................. 215
US a ............................................................................................................................................... 216
US c ............................................................................................................................................... 218
US g ............................................................................................................................................... 220
US h ............................................................................................................................................... 222
US k ............................................................................................................................................... 224
US m .............................................................................................................................................. 225
US n ............................................................................................................................................... 226
US r................................................................................................................................................227
Page 9
VERSAJET
Programming Reference
Introduction
Thank you for choosing Cino VersaJet Mobile Printer. The VersaJet mobile printer is designed with rugged
yet lightweight architecture, delivering the ultimate convenience of mobility to meet your on-demand labels and
receipts printing requirements.
Besides RS232 communication interfaces, the VersaJet is compatible with most Bluetooth-enabled devices by
incorporating Bluetooth
This Programming Guide provides complete descriptions on command functions and instructs programmer to
configure your VersaJet efficiently. If you need more information, please contact your supplier or visit our web
site for details.
This guide is organized into the following chapters:
Introduction
Commands Overview
2.0 wireless technology. You can select the most suitable model to fulfill your demand.
Commands Descriptions
1
Page 10
VERSAJET
Programming Reference
JCL Command Sets
ESC/POS (Epson Standard Code for Point of Sales) is one of the most world-popular command sets, which
was designed to provide the expandability and universal applicability demanded by the market. The JCL (Job
Control Language) is the proprietary printer language of Cino mobile printer supporting ESC/POS emulation.
This not only shortens user’s learning cycle, but also minimizes the system integration efforts.
Furthermore, the VersaJet possesses more practical and useful command sets than ESC/POS., such as the
manipulation on serialization, graphics and 2D bar codes printing. You may refer to “Command Comparison
between JCL and ESC/POS “ for more details.
2
Page 11
VERSAJET
Programming Reference
Commands Comparison between JCL and ESC/POS
ESC / POS Emulation
Command Descriptions
HT
LF
FF Print and return to standard mode (in page mode)
CR
CAN
ESC FF
ESC SP
ESC !
ESC $
ESC %
ESC &
ESC *
ESC -
Set right-side character spacing
Horizontal tab
Print and line feed
Print and carriage return
Cancel print data in page mode
Print data in page mode
Select print mode(s)
Set absolute print position
Select/cancel user-defined character set
Define user-defined characters
Select bit-image mode
Turn underline mode on/off
ESC 2
ESC 3
3
Select default line spacing
Set line spacing
Page 12
VERSAJET
Programming Reference
Command Descriptions
ESC ?
ESC @
ESC {
ESC D
ESC E
ESC G
ESC J
ESC L
ESC M
ESC R
ESC S
ESC T
ESC V
Print and feed paper
Select page mode
Select print direction in page mode
Cancel user-defined characters
Initialize printer
Turn upside-down printing mode on/off
Set horizontal tab positions
Turn emphasized mode on/off
Turn double-strike mode on/off
Select character font
Select an international character set
Turn 90colockwise rotation mode on/off∘
Select standard mode
ESC W
ESC \
ESC a
ESC d
ESC t
4
Set printing area in page mode
Set relative print position
Select justification
Print and feed n lines
Select character code table
Page 13
VERSAJET
Programming Reference
Command Descriptions
FS !
FS &
FS FS 2
FS S
FS W
FS p
FS q
GS ! Select character size
GS $ Set absolute vertical print position in page mode
GS ( K Adjust printing density
GS * Define downloaded bit image
GS / Print downloaded bit image
Set print mode(s) for Kanji characters
Select Kanji character mode
Turn underline mode on/off for Kanji character
Define user-defined Kanji characters
Set left – and right –side Kanji character spacing
Turn quadruple-size mode on/off for Kanji characters
Read the image file from flash memory
Define image, write to flash memory
GS : Start/end macro definition
GS I
GS L
Set horizontal and vertical motion units
GS P
5
Transmit printer ID
Set left margin
Page 14
VERSAJET
Programming Reference
Command Descriptions
GS \
GS ^
GS H
Select font for HRI characters
GS f
GS h
Print bar code
GS k
GS v 0
GS W
GS w
GS B
Print raster bit image
Set bar code width
Set relative vertical print position in page mode
Execute macro
Select printing position of Human Readable Interpretation (HRI) characters
Set bar code height
Set printing area width
Turn white/black reverse printing mode on/off
6
Page 15
VERSAJET
Programming Reference
JCL Feature Command Sets
Command Descriptions
GS C 0
GS C 1
GS C 2
GS c
GS ( k
RS A
RS B
Clear buffer
RS E
RS F
RS G
RS J
RS L
RS a
Select counter print mode
Select counter mode
Sets the serial number counter value
Print counter setup
Specify and print the symbol
Label length measurement
Restore factory default
Remote power off
Paper feed to TOF position
Rewind command (back feed)
Print self-test (Pre-defined)
Bit-map text format setting
RS e
RS i
RS m
7
1D bar code generic setting
Draw graphics
Save *.bmp image into flash
Page 16
VERSAJET
Programming Reference
Command Descriptions
RS n
RS p
RS q
RS r
RS t
RS u
US 1
US 2
US 3
US 4
US 7
US A
US C
Print *.bmp image
Set number of copies of printing data
Serialization setting
Print serialization
Define flash macro
Execute macro
Top of form control
Top of form offset setting
Auto tear-off control
Tear-off offset setting
Paper sensor setting
RS232 setting
Bluetooth setting
US G
US H
US I
US J
US K
Buzzer control
Auto power off duration setting
Set printing intensity (darkness)
Automatic status feedback
Default operation mode setup
8
Page 17
VERSAJET
Programming Reference
Command Descriptions
US L
US M
US a
US c
US g
US h
US k
US m
US n
US r
Feed key control
Panel buttons control
Get RS232 configurations
Get Bluetooth configurations
Get printer configurations
Get system information
Get head resistance
Get printing log
Get battery status
Get printer status
9
Page 18
VERSAJET
Programming Reference
Command Overview
This chapter covers following topics to present the supported commands that are used with VersaJet:
Command Notation
Explanations of Terms
Supported Commands
10
Page 19
VERSAJET
Programming Reference
Command Notation
[Name] The name of the command.
[Format] The code sequence.
[Range]Gives the allowable ranges for the arguments.
[Default] Gives the default values, if any, for the command parameters.
[Description] Describes the command’s function.
[Notes] Provides important information on setting and using the printer command, if necessary.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[ ]k indicates the contents of the [ ] should be repeated k times.
11
Page 20
VERSAJET
Programming Reference
Explanation of Terms
(1) Receive buffer
The receive buffer is a buffer that stores, as is, the data received from the host (the reception data). The
reception data is stored in the receive buffer temporarily, and is then processed sequentially.
(2) Print buffer
The print buffer is a buffer that stores the image data to be printed.
(3) Print buffer full
This is the state where the print buffer is full. If new print data is input while the print buffer is full, the data
in the print buffer is printed out and a line feed is executed. This is the same operation as the LF operation.
(4) Start of line
The start of line state satisfies the following condition:
There is no print data (including spaces and portions of data skipped due to bit image data) currently in
the print buffer.
There is no print data (including portions of data skipped due to HT)
The print position is not specified by the ESC $ or ESC \ command.
12
Page 21
VERSAJET
Programming Reference
(5) Printable area
The maximum range within which printing is possible under the printer specifications. The printable area
for this printer is as follows:
The length of the horizontal direction in standard mode:
approximately 48 mm {1.89 “}
The length of the vertical direction in page mode:
approximately 160 mm {6.3 “}
(6) Printing area
Printing range is set by the command. It must be printing area ≤ printable area.
(7) Ignore
The state in which all codes, including parameters, are read in and discarded, and nothing happens.
(7) Inch
An unit of length. One inch is 25.4 mm.
(8) MSB
Most Significant Bit
13
Page 22
VERSAJET
Programming Reference
(9) LSB
Least Significant Bit
(11) Base line
Standard position when character data is stored in the print buffer.
Normal character in standard mode and page mode:
A y *
* When font A (12×24 dots) is selected, this height is for 24 dots.
* When font B (9×24 dots) is selected, this height is for 24 dots.
Base line
Rotated character in standard mode (only when font A is selected):
10 dots
Base line
14
Page 23
VERSAJET
Programming Reference
Supported Commands
In these tables, click any name to see the command description. Please refer following instructions before you
utilize these commands to configure your VersaJet:
Standard mode
: Enabled.
() : Enabled only when the command is used at the beginning of command codes.
: Enabled only when data is not present in the printer buffer.
Ignored : All command codes including parameters are ignored.
Page mode
: Enabled.
: Only for value setting.
Disabled : Parameters are processed as printable data.
Ignored : All command codes including parameters are ignored.
Classification
Executing : The changes do not affect the following data.
Setting : The changes do affect the following data until power off.
Note : The changes caused by “Flash Command” will be still valid after power on/off
.
15
Page 24
VERSAJET
Programming Reference
Commands Listed by Function
Function
Type
Command
Name
Command
Descriptions
Classification Standard
Mode
Page
Mode
Print LF Print and line feed Executing
Print FF Print and return to standard mode (in page mode) ExecutingIgnored
Print CR Print and carriage return Executing
Print ESC FF Print data in page mode Executing Ignored
Print ESC J Print and feed paper (distance controlled by “GS P”) Executing
Print ESC d Print and feed n lines Executing
Line Spacing ESC 2 Select default line spacing Setting
Line Spacing ESC 3 Set line spacing Setting
Character CAN Cancel print data in page mode Executing Ignored
Character ESC SP Set right-side character spacing Setting
Character ESC ! Select print mode(s) Setting
Character ESC % Select/cancel user-defined character set Setting
Character ESC & Define user-defined characters Setting
Character ESC – Turn underline mode on/off Setting
Character ESC ? Cancel user-defined characters Setting
Character ESC { Turn upside-down printing mode on/off Setting ()
Character ESC E Turn emphasized mode on/off Setting
Character ESC G Turn double-strike mode on/off Setting
16
Page 25
VERSAJET
Programming Reference
Function
Type
Command
Name
Command
Descriptions
Classification Standard
Mode
Page
Mode
Character ESC M Select character font Setting
Character ESC R Select an international character set Setting
Character ESC V Turn 90° clockwise rotation mode on/off Setting
Character ESC t Select character code table Setting
Character GS ! Select character size Setting
Character GS B Turn white/black reverse printing mode on/off Setting
Character RS a Bit-map Text Format Setting Setting
Print Position ESC $ Set absolute print position Executing
Print Position ESC \ Set relative print position Executing
Print Position ESC D Set horizontal tab positions Setting
Print Position ESC T Select print direction in page mode Setting
Print Position ESC W Set printing area in page mode Setting
Print Position ESC a Select justification Setting ()
Print Position GS $ Set absolute vertical print position in page mode ExecutingIgnored
Print Position GS \ Set relative vertical print position in page mode Executing Ignored
Print Position GS L Set left margin Setting ()
Print Position GS W Set printing area width Setting ()
Print Position HT Horizontal tab Executing
17
Page 26
VERSAJET
Programming Reference
Function
Type
Command
Name
Command
Descriptions
Classification Standard
Mode
Page
Mode
Bit Image ESC * Select bit-image mode Executing
Bit Image GS * Define downloaded bit image Setting
Bit Image GS / Print downloaded bit image Executing
Bit Image GS v 0 Print raster bit image Executing
Bit Image FS p Read the image file from flash memory Executing
Bit Image FS q Define image, write to flash memory Executing
BMP Image RS m Save *.bmp image into flash Setting
BMP Image RS n Print *.bmp image Executing
Graphics RS i Draw Line/Box ExecutingIgnored
Executing
Macro GS : Start/end RAM macro definition
Setting
Macro GS ^ Execute RAM macro Executing
Macro RS t Define Flash macro Setting+Executing
Macro RS u Execute Flash macro Executing
Kanji FS ! Set print mode(s) for Kanji characters Setting
Kanji FS - Turn underline mode on/off for Kanji characters Setting
Kanji FS & Select Kanji character mode Setting
Kanji FS 2 Define user-defined Kanji characters Setting
18
Page 27
VERSAJET
Programming Reference
Function
Type
Command
Name
Command
Descriptions
Classification Standard
Mode
Page
Mode
Kanji FS S Set left- and right-side Kanji character spacing Setting
Kanji FS W Turn quadruple-size mode on/off for Kanji character Setting
Miscellaneous ESC @ Initialize printer
Miscellaneous ESC L Select page mode Executing () Ignored
Miscellaneous ESC S Select standard mode Executing Ignored
Miscellaneous GS ( K [49] Printing density setup Executing
Miscellaneous GS I Transmit printer ID Executing
Miscellaneous GS P Set horizontal and vertical motion units Setting
Miscellaneous GS c Print counter Executing
Miscellaneous RS p Set number of copies of printing data Setting+Executing
Bar Code GS ( k Specify and print the symbol Executing
Bar Code
GS H
Select printing position of Human Readable
Interpretation (HRI) characters
Executing
Setting
Setting
Bar Code
Bar Code
Bar Code
Bar Code
Bar Code RS e 1D Bar code Generic Setting Setting
GS f Select font for HRI characters Setting
GS h Set bar code height Setting
GS k Print bar code Executing
GS w Set bar code width Setting
19
Page 28
VERSAJET
A
A
Programming Reference
Function
Type
Command
Name
Command
Descriptions
Classification Standard
Mode
Page
Mode
Set configuration
Set configuration
Set configuration
Set configuration
Set configuration
Set configuration
Set configuration
Set configuration
Set configuration
Get configuration
Get configuration US c Get Bluetooth configurations Executing
Get configuration US g Get printer configurations Executing
Get configuration US h Get system information Executing
US A RS232 Setting Setting
US C Bluetooth setting Setting
US G Buzzer control Setting
US H
US I Set printing intensity (darkness) Setting
US J
US K Default operation mode setup Setting
US L Feed key control Setting
US M Panel buttons control Setting
US a Get RS232 configurations Executing
uto power off duration setting Setting
utomatic status feedback Setting
Get configuration US k Get head resistance Executing
Get configuration US m Get printing log Executing
Get configuration US n Get battery status Executing
Get configuration US r Get printer status Executing
20
Page 29
VERSAJET
A
A
A
A
A
A
A
A
A
Programming Reference
Function
Type
Command
Name
Command
Descriptions
Classification Standard
Mode
Page
Mode
ction Command RS A Label length measurement Executing
ction Command RS B Restore factory default Executing
ction Command RS E Clear buffer Executing
ction Command RS F Remote power off Executing
ction Command RS G Paper feed to TOF position Executing
ction Command RS L Print self-test (pre-defined) Executing
Paper Sensor US 1 Top of form control Setting
Paper Sensor US 2 Top of form offset setting Setting
Paper Sensor US 3
Paper Sensor US 4
Paper Sensor US 7 Paper sensor setting Setting
Serialization GS C 0 Select counter print mode Setting
uto tear-off control Setting
uto Tear-off offset setting Setting
Serialization GS C 1 Select counter mode Setting
Serialization GS C 2 Sets the counter value Setting
Serialization RS q Serialization setting Setting
Serialization RS r Print Serialization Executing
21
Page 30
VERSAJET
Programming Reference
Commands Listed in Alphanumeric Order
Command
Name
Function
Type
Command
Descriptions
Classification Standard
Mode
Page
Mode
HT Print Position Horizontal tab Executing
LF Print Print and line feed Executing
FF Print Print and return to standard mode (in page mode) Executing Ignored
CR
CAN Character Cancel print data in page mode Executing Ignored
ESC FF Print Print data in page mode Executing Ignored
ESC SP Character Set right-side character spacing Setting
ESC ! Character Select print mode(s) Setting
ESC $ Print Position Set absolute print position Executing
ESC % Character Select/cancel user-defined character set Setting
ESC & Character Define user-defined characters Setting
ESC * Bit Image Select bit-image mode Executing
ESC – Character Turn underline mode on/off Setting
Print Print and carriage return Executing
ESC 2 Line Spacing Select default line spacing Setting
ESC 3 Line Spacing Set line spacing Setting
ESC ? Character Cancel user-defined characters Setting
Executing+
ESC @ Miscellaneous Initialize printer
Setting
22
Page 31
VERSAJET
Programming Reference
Command
Name
Function
Type
Command
Descriptions
Classification Standard
Mode
Page
Mode
ESC { Character Turn upside-down printing mode on/off Setting ()
ESC D Print Position Set horizontal tab positions Setting
ESC E Character Turn emphasized mode on/off Setting
ESC G Character Turn double-strike mode on/off Setting
ESC J Print Print and feed paper (distance controlled by “GS P”) Executing
ESC L Miscellaneous Select page mode Executing () Ignored
ESC M Character Select character font Setting
ESC R Character Select an international character set Setting
ESC S Miscellaneous Select standard mode Executing Ignored
ESC T Print Position Select print direction in page mode Setting
ESC V Character Turn 90° clockwise rotation mode on/off Setting
ESC W Print Position Set printing area in page mode Setting
ESC \ Print Position Set relative print position Executing
ESC a Print Position Select justification Setting ()
ESC d Print Print and feed n lines
ESC t Character Select character code table Setting
FS ! Kanji Set print mode(s) for Kanji characters Setting
FS & Kanji Select Kanji characters mode Setting
Executing
23
Page 32
VERSAJET
Programming Reference
Command
Name
Function
Type
Command
Descriptions
Classification Standard
Mode
Page
Mode
FS - Kanji Turn underline mode on/off for Kanji characters Setting
FS 2 Kanji Define user-defined Kanji characters Setting
FS S Kanji Set left- and right-side Kanji character spacing Setting
FS W Kanji
FS p Flash Read the image file from flash memory Executing
FS q Flash Define image, write to flash memory Executing
GS ! Character Select character size Setting
GS $ Print Position Set absolute vertical print position in page mode
GS ( K [49] Miscellaneous Printing density setup Executing
GS ( k Bar Code Specify and print the symbol Executing
GS * Bit Image Define downloaded bit image Setting
GS / Bit Image Print downloaded bit image Executing
GS : Macro Start/end RAM macro definition
Turn quadruple-size mode on/off for Kanji characters
ExecutingIgnored
Executing
Setting
Setting
GS B Character Turn white/black reverse printing mode on/off Setting
GS C 0
GS C 1
GS C 2
Miscellaneous
Miscellaneous
Miscellaneous
Select counter print mode Setting
Select counter mode Setting
Sets the serial number counter value Setting
24
Page 33
VERSAJET
A
A
A
A
A
Programming Reference
Command
Name
GS H Bar Code
Function
Type
Command
Descriptions
Select printing position of Human Readable
Interpretation (HRI) characters
Classification Standard
Mode
Setting
Page
Mode
GS I Miscellaneous Transmit printer ID Executing
GS L Print Position Set left margin Setting ()
GS P Miscellaneous Set horizontal and vertical motion units Setting
GS W Print Position Set printing area width Setting ()
GS \ Print Position Set relative vertical print position in page mode Executing Ignored
GS ^ Macro Execute RAM macro Executing
GS c
GS f Bar Code Select font for HRI characters Setting
GS h Bar Code Set bar code height Setting
GS k Bar Code Print bar code Executing
GS v 0 Bit Image Print raster bit image Executing
GS w Bar Code Set bar code width Setting
RS A
Miscellaneous
ction Label length measurement Executing
Print counter Executing
Disabled
RS B
RS E
RS F
RS G
25
ction
ction Clear buffer Executing
ction Remote power off Executing
ction Paper feed to TOF position Executing
Restore factory default Executing
Page 34
VERSAJET
A
A
Programming Reference
Command
Name
Function
Type
Command
Descriptions
Classification Standard
Mode
Page
Mode
RS J
RS L
RS a Text Format Bit-map text format setting Setting
RS e Linear bar code 1D bar code generic setting Setting
RS i Graphics Draw line/box Executing Ignored
RS m Image Save *.bmp image into flash Setting
RS n Image Print *.bmp image Executing
RS p Miscellaneous Set number of copies of printing data Setting+Executing
RS q Serialization Serialization setting Setting
RS r Serialization Print serialization Executing
RS t Macro Define flash macro Setting
RS u Macro Execute macro Executing
US 1 Paper Sensor Top of form control Setting
ction Rewind command (back feed) Executing
ction Print self-test (pre-defined) Executing
US 2 Paper Sensor Top of form offset setting Setting
US 3 Paper Sensor Auto tear-off control Setting
US 4 Paper Sensor Tear-off offset setting Setting
US 7 Paper Sensor Paper sensor setting Setting
26
Page 35
VERSAJET
Programming Reference
Command
Name
Function
Type
Command
Descriptions
Classification Standard
Mode
Page
Mode
US A Set Configuration RS232 setting Setting
US C Set Configuration Bluetooth setting Setting
US G Set Configuration Buzzer control Setting
US H Set ConfigurationAuto power off duration setting Setting
US I Set Configuration Set printing intensity (darkness) Setting
US J Set ConfigurationAutomatic status feedback Setting
US K Set Configuration Default operation mode setup Settting
US L Set Configuration Feed key control Setting
US M Set Configuration Panel buttons control Setting
US a Get Configuration Get RS232 configurations Executing
US c Get Configuration Get bluetooth configurations Executing
US g Get Configuration Get printer configuration Executing
US h Get Configuration Get system information Executing
US k Get Configuration Get head resistance Executing
US m Get Configuration Get printing log Executing
US n Get Configuration Get battery status Executing
US r Get Configuration Get printer status Executing
27
Page 36
VERSAJET
Programming Reference
Command Descriptions
This section contains the command codes for the VersaJet which allows you to configure your printer for
particular application to match your specific requirements. Each command begins on a separate page with its
own heading to help you find the key information about each command.
28
Page 37
VERSAJET
Programming Reference
HT
[Name] Horizontal tab
[Format] ASCII HT
Hex 09
Decimal 9
[Range] None
[Default] None
[Description] Moves the printing position to the next horizontal tab.
[Notes]
This command is ignored unless the next horizontal tab position has been set.
Horizontal tab positions are set by ESC D.
If the next horizontal tab position exceeds the printing area, the printer sets the printing
position to [Printing area width + 1].
If this command is processed 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. In this case, in page mode, the printer
does not execute printing, but the printing position is moved.
When underline mode is turned on, the underline will not be printed under the tab space
skipped by this command.
29
Page 38
VERSAJET
Programming Reference
LF
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Range] None
[Default] None
[Description] Prints the data in the print buffer and feed one line
[Notes]
The amount of paper feed per line is based on the value set using the line spacing
command (ESC 2 or ESC 3).
After printing, the print position moves to the beginning of the line. When a left margin is
set in standard mode, the position of the left margin is the beginning of the line.
When this command is processed in page mode, only the print position moves, and the
printer does not perform actual printing.
30
Page 39
VERSAJET
Programming Reference
FF (in page mode)
[Name] Print and return to standard mode
[Format] ASCII FF
Hex 0C
Decimal 12
[Range] None
[Default] None
[Description] In page mode, prints the data in the printer buffer collectively and returns to standard mode.
[Notes]
This command is enabled only in page mode. Page mode can be selected by ESC L.
The data is deleted in the printing area after being printed.
This command returns the value set by ESC W to the default value.
The value set by ESC T is maintained.
After printing, the printing position moves to the beginning of the line. When a left margin
is set, the position of the left margin is the beginning of the line.
31
Page 40
VERSAJET
Programming Reference
CR
[Name] Printing and carriage return
[Format] ASCII CR
Hex 0D
Decimal 13
[Range] None
[Default] None
[Description] Executes printing and one line feed as LF.
[Notes]
After printing, the printing position moves to the beginning of the line.
When a left margin is set, the position of the left margin is the beginning of the line.
When this command is processed in page mode, only the printing position moves, and
the printer does not perform actual printing.
32
Page 41
VERSAJET
Programming Reference
CAN
[Name] Cancel printing data in page mode
[Format] ASCII CAN
Hex 18
Decimal 24
[Range] None
[Default] None
[Description] In page mode, deletes all the print data for the current printing area.
[Notes]
This command is only enabled in page mode.
If data set in the previously specified printing area is set in the currently specified printing
area, it is deleted.
33
Page 42
VERSAJET
Programming Reference
ESC FF
[Name] Print data in page mode
[Format] ASCII ESC FF
Hex 1B 0C
Decimal 27 12
[Range] None
[Default] None
[Description] In page mode, prints all buffered data in the printable area collectively.
[Notes]
This command is enabled only in page mode. Page mode can be selected by ESC L.
After printing, the printer does not clear the buffered data, the printing position, or values
set by other command.
The printer returns to standard mode with FF, ESC S and ESC @. When it returns to
standard mode by ESC @, all settings are cancelled.
34
Page 43
VERSAJET
Programming Reference
ESC SP
[Name] Set right-side character spacing
[Format] ASCII ESC SP n Hex 1B 20 n Decimal 27 32 n
[Range] 0≦n≦255
[Default] n = 0
[Description] Sets the right-side character spacing to nx (horizontal or vertical motion unit).
[Notes]
The character spacing set by this command is effective for alphanumeric and
user-defined character.
When characters are enlarged, the character spacing is n times normal value. The
character spacing for double-width mode is twice the normal value.
When standard mode is selected, the horizontal motion unit is used.
When page mode is selected, the vertical or horizontal motion unit is used for the print
direction set by ESC T.
When the starting position is set to the upper left or lower right of the printing area
using ESC T, the horizontal motion unit is used.
When the starting position is set to the upper right or lower left of the printing area
using ESC T, the vertical motion unit is used.
Settings of this command are effective until ESC @ is executed, the printer is reset,
or the printer is turned off.
It is used to change the spacing between characters.
35
Page 44
VERSAJET
Programming Reference
ESC !
[Name] Select print mode(s)
[Format] ASCII ESC ! n Hex 1B 21 n Decimal 27 33 n
[Range] 0≦n255≦
[Default] n = 0
[Description] Selects print mode(s) using n as follows:
Bit Off/OnHexDecimalFunction
0
1 --Undefined.
2 --Undefined.
3
4
5
6 --Undefined.
7
Off 00 0 Character font A (12 × 24).
On 01 1 Character font B (9 × 24).
Off 00 0 Emphasized mode not selected.
On 08 8 Emphasized mode selected.
Off 00 0 Double-height mode not selected.
On 10 16 Double-height mode selected.
Off 00 0 Double-width mode not selected.
On 20 32 Double-width mode selected.
Off 00 0 Underline mode not selected.
On 80 128 Underline mode selected.
32≦c1≦c2126≦
0≦x12(Font A ≦- 12 x 24)
0≦x9(Font B ≦- 9 x 24)
0≦d255≦
k = c2 – c1 + 1
[Default] None
[Description] Defines user-defined characters from character code check c1 to c2.
y specifies the number of bytes in the vertical direction.
x specifies the number of dots in the horizontal direction.
d is the dot data for the user-defined characters.
[Notes]
Character codes from the alphanumeric characters 20H (decimal 32) to 7EH(decimal
126) can be defined.
Data(d) specifies a bit printed to 1 and not printed to 0. The dot pattern is in the horizontal
direction from the left side. Any remaining dots on the right side are blank.
The data to define a user defined character is (yx x) bytes.
39
Page 48
VERSAJET
Programming Reference
When the value of y, c1, c2, or x is out of the range, this command is canceled, and the
following data is processed as normal data.
This command can define user-defined characters for each font independently. To select
a font, use ESC ! or ESC M.
A user-defined character, downloaded graphics, and downloaded bit image cannot be
defined simultaneously.
When this command is executed, the downloaded bit image is cleared.
When GS * is executed, the user-defined character data is cleared.
Once the user-defined characters have been defined, they are available until ESC ?, GS
*, or ESC @ is executed; the user-defined characters are redefined; the power is turned
off; or the printer is reset.
The user-defined characters are not defined at the default, and the resident characters
are printed.
The relationship between the definition data and printing result is as follows.
Example: Downloaded character definition consists of 9 x 24 dots.
d1 d4d7d10 d13 d16 d19
d2 d5d8d11d14 d17 d20 d23 d26
d3 d6d9d12 d15 d18 d21 d24 d27
Only the MSB can be printed in the third byte for vertical direction of font B. A
user-defined character and downloaded bit image cannot be defined simultaneously.
40
d22d25
MSB
LSB
MSB
LSB
MSB
LSB
Page 49
VERSAJET
Programming Reference
ESC *
[Name] Select bit-image mode
[Format] ASCII ESC * m nL nH d1dk 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≦d255≦
k = nL + nH x 256 [in case of m = 0, 1]
k = nL + nH x 256 x 3 [in case of m = 32, 33]
[Description] Selects a bit-image mode using m for the number of dots specified by (nL + nH x256) as
follows:
m Mode Number of bits
0 8-dot single-density 8 single-density nL + nH x 256
1 8-dot double-density 8 double-density nL + nH x 256
32 24-dot single-density 24 single-density nL + nH x 256 x 3
33 24-dot double-density 24 double-density nL + nH x 256 x 3
for vertical
data
dot density in
horizontal
Amount of data(k)
* k indicates the bit image data
41
Page 50
VERSAJET
Programming Reference
[Notes]
Data (d) specifies a bit printed to 1 and not printed to 0.
If the bit image data exceeds the number of dots to be printed on a line, the excess data
is ignored.
The bit-image is not affected by print mode(emphasized, double-strike, underline,
character size, white/black reverse printing, or 90° clockwise-rotated), except for
upside-down printing mode.
After printing a bit image, the printer processes normal data.
This command is used to print a picture or logo.
The relationship between the bit image data and the print result is as follows:
8 dot mode (m = 0, 1)
MSB
d1 d2 … dk
LSB
42
24 dot mode (m = 32, 33)
MSB
d1 d4 … dk-2
LSB
MSB
d2 d5 … dk-1
LSB
MSB
d3 d6 … dk
LSB
Page 51
VERSAJET
Programming Reference
ESC -
[Name] Turn underline mode on/off
[Format] ASCII ESC - n Hex 1B 2D n Decimal 27 45 n
[Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50
[Default] n = 0
[Description] Turns underline mode on or off, based on the following values of n :
n Function
0, 48 Turns off underline mode
1, 49 Turns on underline mode (1-dot thick)
2, 50 Turns on underline mode (2-dots thick)
[Notes]
The printer can underline all characters, but cannot underline the space set by HT.
The printer cannot underline 90° clockwise rotated characters and white/black inverted
characters.
When underline mode is 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 Kanji printing.
43
Page 52
VERSAJET
Programming Reference
ESC 2
[Name] Select default line spacing
[Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50
[Range] None
[Default] None
[Description] Sets the line spacing to the “default line spacing”.
[Notes]
The line spacing can be independently in standard and page mode.
In standard mode this command sets the line spacing of standard mode.
In page mode this command sets the line spacing of page mode.
Selected line spacing is effective until ESC 3 or ESC @ is executed, the printer is reset,
or the power is turned off.
44
Page 53
VERSAJET
Programming Reference
ESC 3
[Name] Set line spacing
[Format] ASCII ESC 3 n Hex 1B 33 n Decimal 27 51 n
[Range] 30≦n≦255
[Default] Amount of line spacing which corresponds to “default line spacing” (See ESC 2 for the line
spacing).
[Description] Set the line spacing to nx (vertical or horizontal motion unit).
[Notes]
The maximum line spacing is 160mm. If the specified amount exceeds 160mm, the line
spacing is automatically set to 160mm. When standard mode is selected, the vertical
motion unit is used. When page mode is selected, the vertical or horizontal motion unit is
used for the print direction set by ESC T.
When the starting position is set to the upper left or lower right of the printing area using
ESC T, the vertical motion unit is used.
When the starting position is set to the upper right or lower left of the printing area using
ESC T, the horizontal motion unit is used.
The line spacing can be set independently in standard and page mode.
In standard mode this command sets the line spacing of standard mode.
In page mode this command sets the line spacing of page mode.
45
Page 54
VERSAJET
Programming Reference
ESC ?
[Name] Cancel user-defined characters
[Format] ASCII ESC ? n Hex 1B 3F n Decimal 27 63 n
[Range] 32≦n≦126
[Default] None
[Description] Cancels the user-defined characters defined for the character code n.
[Notes]
After user-defined characters are canceled, the resident character set is printed.
This command can cancel user-defined characters for each font independently. To select
a font, use ESC ! or ESC M.
46
Page 55
VERSAJET
Programming Reference
ESC @
[Name] Initialize printer
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Range] None
[Default] None
[Description] The data in the print buffer is cleared, and the printer mode(s) is reset to the mode that was
in effect when the power was turned on.
Any macro definitions are not cleared.
Contents of user non-volatile memory are not cleared.
Non-volatile bit image is not cleared.
Printing log is not cleared.
[Notes]
The data in the receive buffer is not cleared.
When this command is processed in page mode, the printer deletes the data in the
printing areas, initializes all settings, and selects standard mode.
This command can cancel all the settings, such as print mode and line feed at the same
time.
The printing position moves to the beginning of the line when this command is executed.
When a left margin is set in standard mode, the position of the left margin is the
beginning of the line or there is no data in the print buffer.
47
Page 56
VERSAJET
Programming Reference
ESC {
[Name] Turn upside-down printing mode on/ff
[Format] ASCII ESC { n Hex 1B 7B n Decimal 27 123 n
[Range] 0≦n255≦
[Default] n = 0
[Description] In standard mode, turns upside-down printing mode on/off
When the LSB of n is 0, upside-down mode is turned off.
When the LSB of n is 1, upside-down mode is turned on.
[Notes]
When standard mode is selected, this command is enabled only when processed at the
beginning of the line.
The upside-down printing mode is effective for all data in standard mode except raster
bit image from GS v 0.
The settings of this command are effective until ESC @ is executed, the printer is reset,
or the power is turned off.
When upside-down printing mode is turned on, the printer prints 180°-rotated characters
from right to left. The line printing order is not reversed; therefore, be careful of the order
of the data transmitted.
48
Page 57
VERSAJET
Programming Reference
ESC D
[Name] Set horizontal tab positions
[Format] ASCII ESC D n …nk NUL Hex 1B 44 n1…nk 0 Decimal 27 68 n1…nk 0
[Range] 1≦n255≦0≦k32≦
[Default] n = 8,16,24,32 (Every eight characters for the default font set by ESC ! or ESCM)
[Description] Sets a horizontal tab to n columns from the beginning of the line. k indicates the number of
horizontal tab positions to be set.
[Notes]
The horizontal tab position is stored as a value of [character width x n] measured from
the beginning of the line. The character width includes the right-side character spacing,
and double-width characters are selected with twice the width of the normal characters.
The character width should be set before using this command. Settings of character
fonts, space width and enlargement affect the setting of character width.
A maximum of 32 horizontal tab positions can be set. Data exceeding 32 horizontal tab
positions is processed as normal data.
This command cancels any previous horizontal tab settings.
Transmit [n]k in ascending order and place a NULL code at the end. ESC DNull
cancels all horizontal tab positions.
49
Page 58
VERSAJET
Programming Reference
When [n] is less than or equal to the preceding value [n]k-1, horizontal tab setting is
finished, and the following data is processed as normal data.
k is not transmission data to the printer.
Even if the character width is changed after setting the horizontal tab position, the setting
of the horizontal tab positions will not be changed.
Horizontal tab positions setting are effective until ESC @ is executed, the printer is reset,
or the power is turned off.
Print positions can be changed by HT.
When the left margin setting is changed, the horizontal tab position is also changed.
50
Page 59
VERSAJET
Programming Reference
ESC E
[Name] Turn emphasized mode on/ff
[Format] ASCII ESC E n Hex 1B 45 n Decimal 27 69 n
[Range] 0≦n255≦
[Default] n = 0
[Description] Turns emphasized mode on/ff
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
[Notes]
This mode is effective for alphanumeric, Kana, multilingual and user-defined character.
The settings of this command are effective until ESC ! or ESC @ is executed, the printer
is reset, or the power is turned off.
51
Page 60
VERSAJET
Programming Reference
ESC G
[Name] Turn double-strike mode on/ff
[Format] ASCII ESC G n Hex 1B 47 n Decimal 27 71 n
[Range] 0≦n255≦
[Default] n = 0
[Description] Turns double-strike mode on/off
[Notes]
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.
52
Page 61
VERSAJET
Programming Reference
ESC J
[Name] Print and feed paper
[Format] ASCII ESC J n Hex 1B 4A n Decimal 27 74 n
[Range] 0≦n≦255
[Default] None
[Description] Prints the data in the print buffer and feeds the paper nx (vertical or horizontal motion unit).
[Notes]
The maximum paper feed amount is 160mm. If the specified amount exceeds 160mm,
the paper feed amount is automatically set to 160mm.
When standard mode is selected, the vertical motion unit is used.
When page mode is selected, the vertical or horizontal motion unit is used for the print
direction set by ESC T.
When the starting position is set to the upper left or lower right of the printing area using
ESC T, the vertical motion unit is used.
When the starting position is set to the upper right or lower left of the printing area using
ESC T, the horizontal motion unit is used.
After printing, the printing position moves to the beginning of the line.
When a left margin is set in standard mode, the position of the left margin is the
beginning of the line.
53
Page 62
VERSAJET
Programming Reference
When this command is processed in page mode, only the printing position moves, and
the printer does not perform actual printing.
This command is used to temporarily feed a specific length without changing the line
spacing set by other commands.
54
Page 63
VERSAJET
Programming Reference
ESC L
[Name] Select page mode
[Format] ASCII ESC L
Hex 1B 4C
Decimal 27 76
[Range] None
[Default] None
[Description] Switches from standard mode to page mode.
[Notes]
This command is only enabled when processed at the beginning of the line in standard
mode. In other cases, this command is ignored.
The printing position is the starting position specified by ESC T within the printing area
defined by ESC W.
The following commands switch the settings for page mode because these commands
can be set independently in standard and page mode: ESC SP, ESC 2, and ESC 3.
The following commands are disabled in page mode: ESC L, and FS q.
The following commands are not effective in page mode. If these commands are
processed in page mode, an internal flag is activated, and this flag is enabled when the
printer returns to standard mode: ESC V, ESC a, ESC {, GS L and GS W.
The printer returns to standard mode with ESC S, FF, ESC @. When it returns to
standard mode by ESC @, all settings are canceled.
55
Page 64
VERSAJET
Programming Reference
Standard mode is selected as the default.
In page mode, the printer prints the data in the print buffer for the printing area specified
by ESC W collectively by FF or ESC FF. When executing the print and paper feed
commands, such as LF, CR, ESC J and ESC d, only the printing position moves, and the
printer does not perform actual printing.
56
Page 65
VERSAJET
Programming Reference
ESC M
[Name] Select character font
[Format] ASCII ESC M n Hex 1B 4D n Decimal 27 77 n
[Range] 0, 1, 48, 49
[Default] n = 0
[Description] Selects a character font, using n as follows:
n Function
0, 48 Font A
1, 49 Font B
[Notes]
This mode is effective for alphanumeric, Kana, multilingual and user-defined character.
Configurations of Font A and Font B depend on printer model.
Settings of this command are effective until ESC @ is executed, the printer is reset, or
the power is turned off.
57
Page 66
VERSAJET
Programming Reference
ESC R
[Name] Select an international character set
[Format] ASCII ESC R n Hex 1B 52 n Decimal 27 82 n
[Range] 0≦n10≦
[Default] n = 0
[Description] Select an international character set n as follows:
[Notes] The selected international character set is effective until ESC @ is executed, the printer is
reset, or the power is turned off.
Hex 23 2440 5B5C 5D 5E 60 7B7C7D 7E
Dec 35 36 64 91 92 93 94 96 123 124 125 126
58
Page 67
VERSAJET
Programming Reference
ESC S
[Name] Select standard mode
[Format] ASCII ESC S
Hex 1B 53
Decimal 27 83
[Range] None
[Default] None
[Description] Switches from page mode to standard mode.
[Notes]
This command is only enabled in page mode. Page mode can be selected by ESC L.
When this command is executed, data in all the printing area is cleared, the printing area
set by ESC W returns to the default value, but the value set by ESC T is maintained.
The following commands switch the settings for standard mode because these
commands can be set independently in standard and page mode: ESC SP, ESC 2, and
ESC 3.
In standard mode, CAN, ESC FF, GS \ are ignored.
The settings of ESC T, and ESC W do not affect printing in standard mode.
The printer selects page with ESC L.
Standard mode is selected as the default.
59
Page 68
VERSAJET
A
Programming Reference
ESC T
[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
[Default] n = 0
[Description] In page mode, selects the print direction and starting position, using n as follows:
n
0, 48 Left to right Upper left (A in the figure)
1, 49 Bottom to top Lower left (B in the figure)
2, 50 Right to left Lower right (C in the the figure)
3, 51 Top to bottom Upper right (D in the figure)
→D
↓
printing area
↑
B ← C
Printing
Direction
Starting Position
[Notes]
The print direction set by this command is effective only in page mode.
60
Page 69
VERSAJET
Programming Reference
This command setting has no effect in standard mode. If this command is processed in
standard mode, an internal flag is activated, and this flag is enabled when the printer
selects page mode.
The parameters for the horizontal or vertical motion unit differ, depending on the starting
position of the printing area as follows:
If the starting position is the upper left or lower right of the printing area:
These commands use horizontal motion units: ESC SP, ESC $, ESC \. These commands use vertical motion units: ESC 3, ESC J, GS $, GS \.
If the starting position is the upper right or lower left of the printing area:
These commands use horizontal motion units: ESC 3, ESC J, GS $, GS \. These
commands use vertical motion units: ESC SP, ESC $, ESC \.
The settings of this command are effective until ESC @ is executed, the printer is reset,
or the power is turned off.
61
Page 70
VERSAJET
Programming Reference
ESC V
[Name] Turn 90° clockwise rotation mode on/off
[Format] ASCII ESC V n Hex 1B 56 n Decimal 27 86 n
[Range] n = 0, 1, 48, 49
[Default] n = 0
[Description] In standard mode, turns 90° clockwise rotation mode on or off, using n as follows:
n Function
0, 48 Turns off 90° clockwise rotation mode
1, 49 Turns on 90° clockwise rotation mode
[Notes]
The 90° clockwise rotation mode is effective for alphanumeric, Kana, multilingual and
user-defined characters.
When underline mode is turned on, the printer does not underline 90° clockwise- rotated
characters.
When character orientation changes in 90° clockwise rotation mode, the relationship
between vertical and horizontal directions is reversed.
The 90° clockwise rotation mode has no effect in page mode. If this command is
processed in page mode, an internal flag is activated, and this flag is enabled when the
printer returns to standard mode.
The settings of this command are effective until ESC @ is executed, the printer is reset,
When the user-defined character set is canceled, the resident character set is
automatically selected.
Settings of this command are effective until ESC @ is executed, the printer is reset, or
the printer is turned off.
69
Page 78
VERSAJET
Programming Reference
FS !
[Name] Select print mode(s) for Kanji characters
[Format] ASCII FS ! n Hex 1C 21 n Decimal 28 33 n
[Range] 0≦n255≦
[Description] Set the print mode(double-width mode, double-height mode and Kanji underline mode) for
Kanji characters, using n as follows:
Bit Function Off/OnHexDecimal
0
Reserved
1
Reserved
2 Double-width
mode is Off
2 Double-width
mode is On
3 Double-height
mode is Off
3 Double-height
mode is On
4~6
Undefined
7 Kanji underline
mode is Off
7 Kanji underline
mode is on
Off 000
Off 000
Off 000
On 044
Off 000
On 088
Off 000
Off 000
On 80128
70
Page 79
VERSAJET
Programming Reference
[Notes]
When both double-height and double-width modes are selected (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 or 90° clockwise-rotated characters.
The thickness of the underline is that selected by FS -, regardless of the character size.
Then some characters in a line are double or more height, all the characters on the line are
aligned at the baseline.
It’s possible to turn under line mode on or off using FS -, and the setting of the last received
command is effective.
71
Page 80
VERSAJET
Programming Reference
FS &
[Name] Select Kanji character mode
[Format] ASCII FS &
Hex 1C 26
Decimal 28 38
[Description] Selects Kanji character mode.
[Notes]
Kanji codes are processed in order of the first byte and the second byte.
The settings of this command are effective until ESC @ is executed, the printer is reset,
or the power is turned off.
When Kanji mode is selected, the printer processes a character code that corresponds
to the first byte of Kanji code, and then processes a consecutive byte as the second byte
of Kanji code. Therefore, when Kanji code is specified, an ASCII code character that
corresponds to the first byte of Kanji code cannot be printed.
Kanji mode is selected at default.
72
Page 81
VERSAJET
Programming Reference
FS -
[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
[Default] n = 0
[Description] Turns underline mode on or off for Kanji characters, 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-dots thick)
[Notes]
The printer can underline all characters, but cannot underline the space set by HT.
The printer cannot underline 90° clock wise rotated characters.
The specified line thickness does not change even when the character size changes.
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.
[Description] Sets left- and right-side Kanji characters spacing n1 and n2.
When the printer model used supports GS P, the left-side character spacing is [n1x
horizontal or vertical motion units] and the right-side character spacing is [n2x horizontal or
vertical motion units].
[Notes]
When double-width mode is set, the left- and right-side character spacing is twice the
normal value.
The horizontal and vertical motion units are set by GS P. The previously specified
character spacing does not change, even if the horizontal or vertical motion unit is
changed using GS P.
The value cannot be less than the minimum horizontal movement amount, and must be
in even units of the minimum horizontal movement amount.
75
Page 84
VERSAJET
Programming Reference
In page mode, the horizontal or vertical motion unit differs in page mode, depending on
starting position of the printable area as follows:
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.
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 for the paper roll and is
approximately 35.983 mm (255/150 inches). Any setting exceeding the maximum is
converted to the maximum automatically.
76
Page 85
VERSAJET
Programming Reference
FS W
[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
[Default] n = 0
[Description] Turn 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 and normal
size is specified. When the LSB of n is 1, quadruple-size mode for Kanji characters is
turned on.
[Notes]
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 turn on.
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.
77
Page 86
VERSAJET
Programming Reference
FS p
[Name] Read the image file from flash memory
[Format] ASCII FS p n m Hex 1C 70 n m Decimal 28 112 n m
[Range] 1≤ n ≤255 0≤ m ≤3, 48≤ m ≤51
[Description] Prints a NV bit image n using the mode specified by m.
[Description] Selects the character height (vertical number of times normal font size) using bits 0 to 2 and
selects the character width (horizontal number of times normal font size) using bits 4 to 6, as
follows:
Character width selection
Bit 6 Bit 5 Bit 4 Hex DecimalWidth
Off Off Off000 1(normal)
Off Off On10162(double-width)
Off On Off20323
Off On On30484
On Off Off40645
On Off On50806
On On Off60967
On On On70 112 8
82
Page 91
VERSAJET
Programming Reference
Bit 2 Bit 1 Bit 0 Hex DecimalHeight
Off Off Off000
Off Off On011
Off On Off022
Off On On033
On Off Off044
On Off On055
On On Off066
On On On077
[Notes]
The character size set by this command is effective for alphanumeric, Kana, multilingual
and user-defined characters.
When the characters are enlarged with different heights on one line, all the characters on
the line are aligned at the baseline.
When the characters are enlarged widthwise, the characters are enlarged to the right,
base on the left side of the character.
ESC ! can also turn double-width and double-height modes on or off.
In standard mode, the character is enlarged in the paper feed direction when
double-height mode is selected, and it is enlarged perpendicular to the paper feed
direction when double-width mode is selected. However, when character orientation
changes in 90° clockwise rotation mode, the relationship between double-height and
double-width is reversed.
Character height selection
1(normal)
2(double-height)
3
4
5
6
7
8
83
Page 92
VERSAJET
Programming Reference
In page mode, double-height and double-width are on the character orientation.
The setting of the character size of alphanumeric and Katakana is effective until ESC ! or
ESC @ is executed, the printer is reset, or the power is turned off.
The setting of the character size of Kanji and multilingual characters is effective until
ESC @ is executed, the printer is reset, or the power is turned off.
84
Page 93
VERSAJET
Programming Reference
GS $
[Name] Set absolute vertical print position in page mode
m < 8Selects pale density
m = 8 Selects standard density
m > 8 Selects strong density
[Notes]
When a standard mode is selected, all the data in a line is printed in the same density.
When a page mode is selected, all the data printed collectively by FF or ESC FF is
[Description] Processes the data concerning two-dimensional code. (PDF417, QR Code, MaxiCode).
Symbol type is specified by cn ; Function is specified by fn.
cnfnFunction
65Function 065PDF 417: Specify the number of columns
66Function 066PDF 417: Specify the number of rows
67Function 067PDF 417: Specify the width of module
68Function 068 PDF 417: Specify the module height
48
69Function 069PDF 417: Specify the error correction level
80Function 080
81Function 081 PDF 417: Print the symbol data in the symbol save area
65Function 165QR Code: Specify the model
67Function 167QR Code: Specify the size of module
69Function 169QR Code: Specify the error correction level
49
80Function 180
81Function 181 QR Code: Print the symbol data in the symbol save area
65Function 265 MaxiCode: Specifies the mode of the MaxiCode
80Function 280
50
81Function 280
PDF 417: Store the received data in the symbol save
area
QR Code: Store the received data in the symbol save
area
MaxiCode: Store the received data in the symbol save
area
MaxiCode: Store the received data in the symbol save
area
88
Page 97
VERSAJET
Programming Reference
cnfnFunction
55
56
57
65
66
67
68
69
80
81
65
66
67
68
80
81
67
68
80
81
Function 765
Function 766
Function 767
Function 768
Function 769
Function 780
Function 781
Function 865
Function 866
Function 867
Function 868
Function 880
Function 881
Function 967
Function 968
Function 980
Function 981
Datamatrix: Specify the number of columns
Datamatrix: Specify the number of rows
Datamatrix: Specify the width of module
Datamatrix: Specify the Bar Code Type
Datamatrix: Specify the Data Mode
Datamatrix: Store the received data in the symbol save
area
Datamatrix: Print the symbol data in the symbol save
area
RSS-14: Specify the mode of RSS-14
Specify the RSS- 14 Expanded Stacked Symbol to
define its number of segment per row.
RSS-14: Specify the width of module
RSS-14: Specify the height of separator
RSS-14: Store the received data in the symbol save
area
RSS-14: Print the symbol data in the symbol save area
Code49: Specify the width of module
Code49: Specify the module height
Code49: Store the received data in the symbol save
area
Code49: Print the symbol data in the symbol save area
* pL and pH specify the parameter number after cn to ( pL + pH x 256) bytes.
89
Page 98
VERSAJET
Programming Reference
[Notes]
The function is specified with the function code (fn). Details of the performance differ
according to the function.
For processing of PDF417 symbol data (when cn = 48)
The symbol data specified by Function 080 d1...dk is stored in the printer and is printed
by the specification of Function 081. The symbol data in the save area is reserved until
the following processing is performed:
Function 080 or 180 or 980 is executed.
ESC @ is executed.
The printer is reset or the power is turned off.
When processing Function 081 or 082, the setting values of Functions 065 to 070 are
used. If the printable area is not large enough, the symbol may not be printed.
Executing Function 081 after executing Function 080 repeatedly prints the same symbol
data.
By using Functions 065 to 070 combined with Function 081, the same symbol data
d1...dk is printed differently.
90
Page 99
VERSAJET
Programming Reference
For process of QR Code symbol (when cn = 49)
The symbol data specified by Function 080 d1...dk is stored in the printer and is printed
by the specification of Function 081. The symbol data in the save area is reserved until
the following processing is performed:
Function 080 or 180 or 980 is executed.
ESC @ is executed.
The printer is reset or the power is turned off.
Executing function 181 after executing Function 180 respectively prints the same symbol
data.
By using Functions 165, 167, 169 combined with Function 181, the same symbol data
d1...dk is printed differently.
This model supports two-dimensional code (PDF417 ). When printing PDF417 with this
printer, note the following:
The recognition rate of the symbol is affected by the height of the symbol, module
height, module width ratio, and the performance of the reader.
It is recommended that the module height be set three to five times the width of the
module.
The module height is specified by Function 068. The width of a module is specified by
Function 067. The number of the rows is specified by Function 066.
91
Page 100
VERSAJET
Programming Reference
GS ( k PDF417<Function 065>
[Format] ASCII GS ( k pL pH cn fn n Hex 1D 28 6B 03 00 30 41 n Decimal 29 40 107 3 00 48 65 n