Programmer’s Reference Manual
KSSM Emulation For The
P7000 H-Series Of Line Matrix Printers
Download from Www.Somanuals.com. All Manuals Search And Download.
KSSM Emulation For The
P7000 H-Series Of Line Matrix Printers
Programmer’s Reference Manual
Download from Www.Somanuals.com. All Manuals Search And Download.
Printronix, Inc. makes no representations or warranties of any kind regarding
this material, including, but not limited to, implied warranties of
merchantability and fitness for a particular purpose. Printronix, Inc. shall not
be held responsible for errors contained herein or any omissions from this
material or for any damages, whether direct, indirect, incidental or
consequential, in connection with the furnishing, distribution, performance or
use of this material. The information in this manual is subject to change
without notice.
This document contains proprietary information protected by copyright. No
part of this document may be reproduced, copied, translated or incorporated
in any other material in any form or by any means, whether manual, graphic,
electronic, mechanical or otherwise, without the prior written consent of
Printronix, Inc.
COPYRIGHT 2005, 2007 PRINTRONIX, INC.
All rights reserved.
Trademark Acknowledgements
Printronix and LinePrinter Plus are registered trademarks of Printronix, Inc.
IBM is a registered trademark of International Business Machines Corp.
Epson is a registered trademark of Seiko Epson Corporation.
Download from Www.Somanuals.com. All Manuals Search And Download.
Table Of Contents
About This Manual....................................................................................9
Software Features ....................................................................................9
Introduction.............................................................................................11
KSSM Emulation.....................................................................................27
Beeper..............................................................................................39
Cancel Line ......................................................................................39
Download from Www.Somanuals.com. All Manuals Search And Download.
Table Of Contents
Initialize Printer.................................................................................45
Line Feed .........................................................................................46
(One Line) ........................................................................................61
Download from Www.Somanuals.com. All Manuals Search And Download.
Table Of Contents
Cancel Double-width Printing in DBCS Mode
(One Line) ........................................................................................61
Select Printer....................................................................................64
Set Intercharacter Spacing of DBCS Character
(Hangul Extension)...........................................................................69
Set Intercharacter Spacing Of SBCS Character
(Hangul Extension)...........................................................................70
Tab Vertically ...................................................................................75
Download from Www.Somanuals.com. All Manuals Search And Download.
Table Of Contents
Corporate Offices....................................................................................96
Download from Www.Somanuals.com. All Manuals Search And Download.
1
Introduction
About This Manual
This manual is designed so you can quickly find the information you need to
operate your printer with the Korean Standard (KS) emulation.
This book does not explain how to operate the printer. For printer operation,
see the User’s Manual.
Warnings And Special Information
Read and comply with all information highlighted under special headings:
WARNING
CAUTION
Conditions that could harm you.
Conditions that could damage the printer or related equipment.
IMPORTANT
Information vital to proper operation of the printer.
NOTE: Information affecting printer operation.
Related Product Information
Refer to the following book for printer operation:
•
User’s Manual. Provides configuration instructions, descriptions, and
troubleshooting guidelines. Also describes the keys on the control panel
and provides quick reference information on daily printer operations such
as loading paper and replacing ribbons.
Software Features
The KSSM emulation software provides the following features:
•
•
•
•
Graphics and print quality. You can enable graphics mode and specify a
density mode (dots per inch), for either 8-pin or 24-pin images.
Print Attributes. Characters can be bold, italic, double high, double wide,
etc.
Page Formatting. Commands which allow you to set line spacing, page
length, and vertical tabbing.
Font Typefaces. Also referred to as print modes. The six typefaces are
LQ, Near LQ, Normal, Hi-Speed, Super Hi-Speed, and Ultra Hi-Speed.
9
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
1
Software Features
10
Download from Www.Somanuals.com. All Manuals Search And Download.
2
Configuring With The
Control Panel
Introduction
IMPORTANT
Configuration directly affects printer operation. Do not change the
configuration of your printer until you are thoroughly familiar with the
procedures in this chapter.
In order to print data, the printer must respond correctly to signals and
commands received from the host computer. Configuration is the process of
matching the printer's operating characteristics to those of the host computer
and to specific tasks, such as printing labels or printing on different sizes of
paper. The characteristics that define the printer's response to signals and
commands received from the host computer are called configuration
parameters. Examples are line spacing, form length, etc.
You can change the parameters by sending appropriate control codes, or by
pressing keys on the control panel. Control codes offer more versatility, and
they override control panel settings.
This chapter explains how to use the control panel.
Chapter 3 provides information about control codes.
Message Display
PRT CONFIG
Emulation
Status Indicator
Circular
Pad
SET TOF
ONLINE
<LP+>
RIBBON LIFE 100%
JOB SELECT
VIEW/EJECT
PAPER ADVANCE
ON LINE/CLEAR
Ribbon Life
Indicator
CANCEL
ENTER
Figure 1. The Control Panel
11
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
2
Printing The Configuration
Printing The Configuration
* = Factory Default
CONFIG.
CONTROL
Load Config.
Save Config.
Print Config.
Delete Config.
Power-Up
Config.
Protect
Configs.
Current Short*
Current Full
Factory
Power-Up
All
1
2
3
4
5
6
7
8
Name
Configs.
Reset Cfg.
Names
It is recommended you print a configuration to determine what is already
stored and what needs to be modified.
You can print any or all of the configurations shown above. Configurations 1-8
are the customized configurations.
12
Download from Www.Somanuals.com. All Manuals Search And Download.
Table 1. Printing Configurations
Result
Step
Key
Notes
1.
2.
Make sure the printer is on.
ON LINE/CLEAR
OFFLINE
QUICK SETUP
3.
4.
Allows you to make configuration
changes.
ENTER SWITCH
UNLOCKED
+
OFFLINE
QUICK SETUP
OFFLINE
CONFIG. CONTROL
5.
6.
CONFIG. CONTROL
Load Config.
CONFIG. CONTROL
Print Config.
UNTIL
7.
8.
Print Config.
Current Short*
Press until the desired option
displays.
Print Config.
All
OR
9.
The configuration listing begins
printing.
ENTER
OFFLINE
CONFIG. CONTROL
10.
Carefully tear off the configuration printout.
13
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
2
Printing The Configuration
Table 1. Printing Configurations (continued)
Step
Key
Result
Notes
11.
Locks the ENTER key.
ENTER SWITCH
LOCKED
+
12.
13.
ON LINE/CLEAR
ONLINE
Store the printout in a safe place. The printer is ready for operation.
NOTE: Another way to print the current configuration is to go OFFLINE,
press the PRT CONFIG key, and then press ENTER.
14
Download from Www.Somanuals.com. All Manuals Search And Download.
The Configuration Menu
OFFLINE
PRINTER
CONTROL
HOST
INTERFACE
EMULATION
QUICK
SETUP
CONFIG.
CONTROL
See the
User’s Manual
See the
User’s Manual
LinePrinter+
Printer Protocol
KSSM
Host Interface
Graphic Spd Up
Typeface
See the
User’s Manual
Character Sets
Define CR Code
CR Bold Select
Auto LF
DBCS CPI
Select LPI
DBCS ASCII Style
Ribbon End Point
Reset Cmd CFG Ld
Load Config.
Define LF Code
Printer Select
20 CPI Condensed
Alt Set 80-9F
CPI/LPI Select
Host Command
Font Attributes
Graphics Spd Up
Page Format
Save Config.
Power-Up Config.
Reset Cmd CFG Ld
Error Handling
ADVANCED
USER
DIAGNOSTICS
See the
User’s Manual
See the
User’s Manual
Figure 2. Configuration Menu Overview
15
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
2
The Configuration Menu
Moving Within The Configuration Menu
Table 2. Changing Configurations
Step
Key
Result
Notes
1.
2.
Make sure the printer is on.
ON LINE/CLEAR
OFFLINE
QUICK SETUP
3.
4.
Allows you to make configuration
changes.
ENTER SWITCH
UNLOCKED
+
OFFLINE
CONFIG. CONTROL
OFFLINE
EMULATION
UNTIL
5.
6.
7.
EMULATION
LinePrinter+
LinePrinter+
Printer Protocol
LinePrinter+
CPI/LPI Select
8.
9.
CPI/LPI Select
Select LPI
Select LPI
6.0 LPI*
10.
Press until the desired value
displays.
Select LPI
8.0 LPI
OR
16
Download from Www.Somanuals.com. All Manuals Search And Download.
Moving Within The Configuration Menu
Table 2. Changing Configurations (continued)
Result
Step
Key
Notes
11.
An asterisk indicates the value
selected.
ENTER
Select LPI
8.0 LPI*
12.
Use the diagrams on the following pages to navigate your way through the menu.
Press ꢀ or ꢁ to move vertically; press ꢂ or ꢃ to move horizontally and to scroll
through the values. Press ENTER to select a value. Press ONLINE/CLEAR, to move
to the top of the menu.
To SAVE CHANGES AS A CONFIGURATION that is stored in memory and can be loaded
later:
13.
OFFLINE
EMULATION
UNTIL
14.
OFFLINE
CONFIG. CONTROL
UNTIL
15.
To USE CURRENT CONFIGURATION WITHOUT SAVING:
16.
Locks the configuration
parameters.
ENTER SWITCH
LOCKED
+
17.
18.
ON LINE/CLEAR
ONLINE
The printer is ready for operation. All parameters are effective as long as the printer is
on. When you turn off the printer, the parameters will be erased from memory.
17
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
2
The Configuration Menu
Saving Your New Configuration
* = Factory Default
CONFIG.
CONTROL
Load Config.
Save Config.
Print Config.
Delete Config.
Protect
Configs.
Power-Up
Config.
1
2
3
4
5
6
7
8
Name Configs.
Reset Cfg.
Names
After changing all of the necessary parameters, it is recommended you save
them as a configuration that can be stored for future use and loaded later. If
you do not save your configuration before you power off the printer, all of your
parameter changes will be erased. The Save Config. option allows you to
save up to eight configurations to meet different print job requirements.
Configurations 1 through 8 are empty until you save values to them using the
Save Config. option. For example:
Config 1: Selects LQ typeface, 5 cpi, 6 lpi
Config 2: Selects Near LQ typeface, 6 cpi, 8 lpi
Once you have saved a configuration using this option, it will not be lost if you
power off the printer. You can load a configuration for a specific print job and
modify and resave it. You may want to print your configurations and store
them in a safe place, such as inside the printer cabinet.
NOTE: The Protect Configs. parameter must be set to disable before you can
save a configuration. Once you save a configuration, the Protect
Configs. parameter automatically returns to enable. Once you change
active emulations, any changes to the previously selected emulation
will be gone unless they have been saved.
18
Download from Www.Somanuals.com. All Manuals Search And Download.
Saving Your New Configuration
Table 3. Saving Configurations
Result
Step
Key
Notes
1.
2.
If you are already in the configuration menu, go to step 5.
ON LINE/CLEAR
OFFLINE
QUICK SETUP
3.
4.
Allows you to make configuration
changes.
ENTER SWITCH
UNLOCKED
+
OFFLINE
QUICK SETUP
OFFLINE
CONFIG. CONTROL
5.
6.
CONFIG. CONTROL
Load Config.
CONFIG. CONTROL
Save Config.
7.
8.
Save Config.
1*
Press until the desired number
(1-8) displays.
Save Config.
2
OR
NOTE: Do not turn off the printer while Save is in progress because you might lose your
configuration.
9.
The configuration is now saved in
memory. (In this case, config. 2.)
ENTER
Save Config.
2*
10.
CONFIG. CONTROL
Save Config.
UNTIL
19
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
2
The Configuration Menu
Table 3. Saving Configurations (continued)
Result
Step
Key
Notes
to print the configuration, then continue with the following steps.
10.
Locks the ENTER key.
ENTER SWITCH
LOCKED
+
11.
12.
ON LINE/CLEAR
ONLINE
The printer is ready for operation.
20
Download from Www.Somanuals.com. All Manuals Search And Download.
LinePrinter Plus Menu
LinePrinter Plus Menu
OFFLINE
EMULATION
LinePrinter+
Host
Command
Graphics
Spd Up
Printer
Protocol
CPI/LPI Select
Font
Attributes
Enable*
Ignore All
Ignore CPI
Ignore LPI
Ignore Unidir.
Ignore Pg. Fmt.
Typeface
LQ*
Near LQ
Normal
Normal*
Enhanced
Turbo
Select CPI
10.0 CPI*
12.0 CPI
13.3 CPI
15.0 CPI
17.1 CPI
20.0 CPI
Select LPI
6.0 LPI*
8.0 LPI
KSSM
Match Typeface
Hi-Speed
Super Hi-Speed
Ultra Hi-Speed
Styling Type
Myungjo*
Gothic
High Density
Disable*
DBCS CPI
5.0 CPI
Enable
Bold Print
6.0 CPI*
6.7 CPI
Disable*/Enable
Italic Print
7.5 CPI
8.5 CPI
Disable*
9.0 CPI
Forward Slant
Backward Slant
Slashed Zero
Disable*/Enable
DBCS/ASCII Mode
DBCS Mode*
ASCII Mode
DBCS ASCII Style
Normal*
10.0 CPI
Other CPI
OCRB
Normal Thin
Text Position
Bottom of Line*
Top of Line
Encoding
Address Table*
UTF8
Taller 15 CPI
Disable*
Enable
Horizontal Expnd
24* pt size
(24-72)
Vertical Expnd
24* pt size
(24-72)
Error
Handling
Reset Cmd
CFG Ld
Page Format
(see the next
page)
Disable*
Illegal Code Pt.
Normal*
As Space
Power-Up Config.
Current Config.
Factory Config.
Figure 3. LinePrinter Plus Menu
21
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
2
The Configuration Menu
Page Format
(from the
previous page)
Form Length
Form Width
Margins
Perforation
Skip
Abs. Length IN
11.0* inches
(0.1-24)
Abs. Length MM
279.4* mm
(0.1-609.6)
Funct. of Lines
66* lines
Abs. Width IN
13.6* inches
(0.1-13.6)
Abs. Width MM
345.4* millimeters
(0.1-345.4)
Funct. of CPI
163* Characters
(1-272)
Left Margin
0* columns
(0-369)
Right Margin
0* columns
(0-369)
Bottom Margin
0* lines
(0-451)
Disable*
1/2 inch
2/3 inch
5/6 inch
1 inch
(1-192)
CPI/LPI Select
This parameter lets you specify the characters per inch (cpi) and lines per
inch (lpi) values. The defaults are:
•
•
•
Select CPI - 10.0 cpi
Select LPI - 6.0 lpi
DBCS CPI - 6.0 cpi
Host Command
•
•
Enable. The default. Enables all host printing commands.
Ignore All. This function treats all control codes and printing commands
as the data.
•
•
•
•
Ignore CPI. This function ignores the CPI selection commands only
(e.g., ESC M, ESC P, and ESC G).
Ignore LPI. This function ignores the LPI selection commands only
(e.g., ESC 2 and ESC 0).
Ignore Unidir. All unidirectional commands sent by the host are ignored
by the printer.
Ignore Pg. Fmt. This function ignores all page format setting commands
sent from the host.
22
Download from Www.Somanuals.com. All Manuals Search And Download.
LinePrinter Plus Menu
Font Attributes
This submenu allows you to define the following font attributes: typeface, bold
print, and italic print. You can also specify if the ASCII character will print with
the OCRB mode. Also, specify if the zero character will print with a slash.
When High Density is enabled, the LQ Typeface will print in higher print
density. It will not take effect when other typefaces are selected.
Text position specifies where the text will be positioned in the line space.
When set to Top of Line, text will be positioned at the top of the line space.
When set to Bottom of Line, the text will be positioned as if it were at the
bottom of a 6 lpi line space. The following example shows both Top of Line
and Bottom of Line text positions:
Dot
Row
Top of Linespace
1
2
3
4
5
6
7
8
1
Bottom of 8 LPI Linespace
9
10
11
Bottom of 6 LPI Linespace12
Text Position
Top of Line
Text Position
Bottom of Line
The option “DBCS/ASCII Mode” specifies the operating mode of the Hangul
printer. If it is set to DBCS mode, it can print double-byte characters as well as
a limited number of single-byte characters.
The option “Address Table” specifies the address table supported: KSC5601.
The option “UTF8” allows the user to input UTF8 data stream.
The option “Taller 15cpi” specifies the appearance of ASCII character in 15cpi
in Ascii mode. If it is set to “Enable”, the characters in 15cpi will be the same
height with other CPIs like 10cpi. If it is set to “Disable”, the characters in
15cpi will appear shorter than other CPIs like 10cpi.
The option “Horizontal Expnd” specifies the character horizontal expansion in
dot for both ASCII and DBCS characters in DBCS mode.
The option “Vertical Expnd” specifies the character vertical expansion in dot
for both ASCII and DBCS characters in DBCS mode.
Graphics Spd Up
This menu is used to increase (speed up) graphic printing speed by turning on
the Enhanced/Turbo mode.
•
Normal. The default. The printer prints at the given input graphics
resolution.
•
Enhanced. The printer provides first-level speed up, which means the
speed is faster than Normal mode.
23
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
2
The Configuration Menu
•
•
Turbo. The printer provides second-level speed up, which means the
speed is faster than Enhanced mode.
Match Typeface. The input 180x180 dpi grahics resolution will drop-dot
to the resolution which matches the typeface selected.
Page Format
Form Length
Forms length is the number of lines that can be printed on a page. You can
set forms length in inches or in print lines per page. The most accurate
method is lines per page.
Form Width
When using paper that is 8 1/2 inches wide, selecting an 8-inch print width
prevents printing beyond the right margin and damaging the hammer tips and
platen.
Margins
You can set the bottom, left, and right form margins.
Perforation Skip
Perforation Skip allows or prevents printing on the page perforation. When
enabled, it sets up a skip-over margin of 1/2,” 2/3,” 5/6,” or 1.” For example, a
skip-over margin of 1” allows a 1” margin at the bottom of the page
perforation. The default is Disable.
Reset Cmd CFG Ld
When the printer receives a host data stream reset command (ESC @ in
addition to resetting printer variables, the selected configuration will be
loaded.
•
•
•
•
Disable. The default. The active emulation parameters are loaded when
the reset command is executed.
Power-Up Config. The power-up configuration is loaded when the reset
command is executed.
Current Config. The currently selected configuration is loaded when the
reset command is executed.
Factory Config. The factory installed configuration is loaded when the
reset command is executed.
Error Handling of Illegal Code Point
This command determines the way illegal DBCS characters are processed:
•
•
Normal. The default. Will ignore illegal DBCS characters.
As Space. Will insert two space characters (0X20, 0X20) when the data
stream contains error DBCS coding.
24
Download from Www.Somanuals.com. All Manuals Search And Download.
KSSM Emulation
KSSM Emulation
OFFLINE
EMULATION
LinePrinter+
Printer
Protocol
KSSM
Character
Sets
Define CR
Code
Define LF
Code
Printer Select
CR Bold
Select
Auto LF
Standard Sets* CR = CR*
Enable*
Disable
Enable*
Disable
LF = CR + LF* Disable*
LF = LF Enable
IBM PC*
CR = CR + LF
Epson Set
20 CPI
Alt. Set 80-9F
Condensed
Enable*
Disable
Control Code*
Printable
Figure 4. KSSM Emulation Menu
Character Sets
This parameter selects a character set for the KSSM emulation.
CR Bold Select
This option determines whether CR (0x0D) will turn on the bold attribute.
•
Enable. The text after CR will be printed as bold together with the text
before CR.
•
Disable. Normal CR function.
25
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
2
The Configuration Menu
Define CR Code
The Define CR code option controls the action of the printer when it receives
a Carriage Return code (hex 0D) from the host computer. If this feature is
enabled, each time the printer receives a Carriage Return, it inserts an
additional Line Feed code (hex 0A) into the data stream. Do not use this
feature if the host computer sends Line Feeds to the printer.
•
•
CR = CR. Does not insert an extra Line Feed after each Carriage Return.
CR = CR + LF. Inserts an extra Line Feed after each Carriage Return.
Auto LF
This option defines the printer actions when print data is received past the
forms width setting.
•
Enable. Performs an automatic carriage return and line feed when data is
received past the forms width.
•
Disable. Discards any data past the forms width.
Define LF Code
The Define LF code option controls the action of the printer when it receives a
Line Feed code (hex 0A) from the host computer. If this feature is enabled,
each time the printer receives a Line Feed, it inserts an additional Carriage
Return code (hex 0D) into the data stream. This feature can be used in most
installations, but it is required if the host computer does not send Carriage
Returns to the printer.
•
•
LF = CR + LF. Adds an extra Carriage Return with each Line Feed.
LF = LF. Does not add a Carriage Return with a Line Feed.
Printer Select
•
•
Disable. Ignores the ASCII DC1 and DC3 control codes.
Enable. Disables the printer when a DC1 control code is received, and
enables the printer when a DC3 control code is received.
20 CPI Condensed
Compressed print characters are narrower than the normal character set.
This is helpful for applications for which you need to print the maximum
amount of information on a page.
•
Enable. Prints about 60 percent of the width of normal characters when
compressed print is chosen by the host computer. For example, a 12 cpi
font will compress to 20 cpi.
•
Disable. Does not compress print widths, even if condensed print is
chosen by the host.
Alt. Set 80-9F
•
Control Code. Interprets data in the range of hex 80 through hex 9F as a
control code.
•
Printable. Prints data in the range of hex 80 through hex 9F.
26
Download from Www.Somanuals.com. All Manuals Search And Download.
3
LinePrinter Plus KSSM
Emulation
KSSM Emulation
“Emulation” refers to the ability of a printer to execute the commands of other
printer control languages.
Exceptions And Differences
Because of mechanical differences between your printer (a line matrix printer)
and moving printhead serial matrix printers, some features are approximated
or not supported.
•
•
•
The KSSM emulation supports the following print modes: LQ, Near LQ,
Normal, Hi-Speed, Super Hi-Speed, and Ultra Hi-Speed.
Various character sets can be used including IBM-PC Graphics (IBM
Code Page 437) and Epson.
Commands not supported by our printer are:
•
•
•
•
•
•
•
•
•
•
•
•
•
Control paper loading/ejecting (ESC EM n)
Select user-defined set (ESC % n)
Define user-defined characters (ESC & NUL n m)
Copy ROM to RAM (ESC :)
Select justification (ESC a)
Select typeface (ESC k)
Select printing colour (ESC r n)
Select 17/180-inch line spacing (ESC 1)
One line unidirectional printing (ESC <)
Absolute position of Hangul and Hanji (FS $ n)
Multiple byte Hangul character printing (FS M n1 n2)
Print ASCII characters as in ASCII mode (FS a n)
Select Hangul completed/combined font (FS t n)
27
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
KSSM Emulation
Default Values And States
Your printer stores a set of typical operating states and conditions in the flash
memory. The first time you power up the printer, the factory settings in Table
4 are automatically invoked.
Table 4. Factory Settings
Characteristic
Default Setting
Select LPI
Select CPI
DBCS CPI
6.0
10.0
6.0
Host Command
Typeface
Enable
LQ
Styling Type
High Density
Bold Print
Myungjo
Disable
Disable
Disable
Disable
Italic Print
Slashed Zero
DBCS/ASCII Mode
DBCS ASCII Style
Text Position
Encoding
DBCS Mode
Normal
Bottom of Line
Address Table
Disable
Taller 15 CPI
Graphics Spd Up
Left Margin
Normal
0 columns
0 columns
0 lines
Right Margin
Bottom Margin
Perforation Skip
Form Length
Disable
11.0 inches
279.4 millimeters
66 lines
Form Width
13.6 inches
345.4 millimeters
163 characters
Reset Cmd CFG Ld
Illegal Code Pt.
Disable
Normal
CR = CR
Define CR Code
28
Download from Www.Somanuals.com. All Manuals Search And Download.
Escape Sequences
Table 4. Factory Settings
Characteristic Default Setting
Auto LF
Enable
Define LF Code
Printer Select
20 CPI Condensed
Alt Set 80-9F
LF = CR + LF
Disable
Enable
Control Code
Escape Sequences
Some KS control codes consisting of more than one character are called
escape sequences because the first character in the sequence is the ASCII
ESCape character. ESC alerts the printer that a special function command—
not printable characters—follows.
The format for an escape sequence is:
ESC (parameter 1)(parameter 2)...(parameter n)
For example, to select emphasized (offset) print, send the ESC character
immediately followed by the E character (do not add a space character):
ASCII: ESC E
Hex: 1B 45Dec: 27 69
FS Sequences
Another type of control code which consists of more than one character is
called an “FS sequence,” because the first character is the ASCII FS
character. This control code is used when the printer is printing Double Byte
Character Set (DBCS) characters. The FS alerts the printer that a special
function command (not printable characters) follows. Most FS commands
work only on DBCS characters.
The format for an FS sequence is:
FS (parameter 1)(parameter 2)...(parameter n)
For example, to rotate DBCS characters by 90×counter-clockwise, send an
FS character immediately followed by the J character:
ASCII: FS J
Hex: 1C 4ADec: 28 74
29
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Super-Set Commands
The unique control code sequence for both SSCC and ASSC commands are
defined in the table below:
Control Code
ASCII Value
Hex Value
Dec Value
SSCC
ASSC
ESC | } ;
1B 7C 7D 3B
27 124 125 59
ESC | } ; q
1B 7C 7D 3B 71
27 124 125 59 113
Set And Reset Codes
Set and reset are other ways of saying turn on and turn off; select and
deselect; or enable and disable.
Some printer features are set and reset with an escape sequence and the
numbers 1 or 0. In those cases, you can represent 1 and 0 as hexadecimal
codes 01 and 00, or as the ASCII codes for the numerals 1 and 0
(hexadecimal 31 and 30).
Configuring The KSSM Emulation With Control Codes
The remainder of this chapter describes the KS printer control language
codes that may be sent from a host computer attached to the printer in order
to invoke and configure numerous KS emulation functions.
Format For Control Code Descriptions
The following information is listed for each code (where applicable and
possible) in this chapter:
ASCII Mnemonic. The ASCII name for the control code.
Hex Code. The hexadecimal equivalent of the code. (For octal equivalents,
refer to Appendix A.)
Dec Code. The decimal equivalent of the code.
Purpose. The function(s) of the control code.
Comment. A description of exceptions or limitations to normal use.
Example. A sample is provided for some control codes to illustrate how the
code is used.
30
Download from Www.Somanuals.com. All Manuals Search And Download.
Control Code Index
Control Code Index
The following index lists the control codes by function, ASCII mnemonic, and
page number. Some control code functions can also be selected at the control
panel.
FUNCTION
ASCII CODE
PAGE
Setting the Page Format
Set Bottom Margin
Cancel Bottom Margin
Set Left Margin
Set Page Length in Inches
Set Page Length in Lines
Set Right Margin
ESC N n
ESC O
ESC 1 n
ESC C NUL n
ESC C n
ESC Q n
Moving the Print Position
Advance Print Position Vertically
Backspace
Carriage Return
Form Feed
Line Feed
ESC J n
BS
CR
FF
LF
Set Absolute Horizontal Print
Position
ESC $ n1 n2
Set Relative Horizontal Print
Position
Tab Horizontally
Tab Vertically
ESC \ n1 n2
HT
VT
Turn Auto-wrap Around On/Off
ESC d n
Setting the Units
Select 1/6-inch Line Spacing
Select 1/8-inch Line Spacing
Set n/60-inch Line Spacing
Set n/180-inch Line Spacing
Set Horizontal Tabs
Set Vertical Tab Channels
Set Vertical Tabs
Set Vertical Tabs in VFU Channels ESC b m n1 … nk NUL
ESC 2
ESC 0
ESC A n
ESC 3 n
ESC D n1 n2 … nk NUL
ESC / m
ESC B n1 n2 … nk NUL
31
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
FUNCTION
ASCII CODE
PAGE
Selecting Characters
Define Pattern for Special Printing
Effect
Master Select
Select 10 CPI
Select 12 CPI
ESC ( X n1 n2 a1 a2 a3
ESC ! n
ESC P
ESC M
ESC g
Select 15 CPI
Select an International Character
Set
Select Bold Font
ESC R n
ESC E
ESC F
ESC q n
ESC t n
SI
ESC SI
DC2
ESC G
ESC H
Cancel Bold Font
Select Character Style
Select Character Table
Select Condensed Printing
Select Condensed Printing
Cancel Condensed Printing
Select Double-strike Printing
Cancel Double-strike Printing
Select Double-width Printing
(One Line)
SO
Cancel Double-width Printing
(One Line)
ESC SO
Cancel Double-width Printing
(One Line)
Select Italic Font
DC4
ESC 4
ESC 5
ESC x n
Cancel Italic Font
Select Print Quality
Select Superscript/Subscript
Printing
ESC S n
Cancel Superscript/Subscript
Printing
Set Intercharacter Space
ESC T
ESC SP n
Turn Double-height Printing On/Off ESC w n
Turn Double-width Printing On/Off
Turn Proportional Mode On/Off
Turn Underline On/Off
ESC W n
ESC p n
ESC - n
Control-code Character Printing
Enable Printing of Upper Control
Codes
Enable Upper Control Codes
ESC 6
ESC 7
Mechanical Control
Beeper
BEL
32
Download from Www.Somanuals.com. All Manuals Search And Download.
Control Code Index
PAGE
FUNCTION
ASCII CODE
Printing Graphics
Select Bit Image
ESC * m nL nH d1 … dk
ESC K nL nH d1 d2 … dk
ESC L nL nH d1 d2 … dk
ESC Y nL nH d1 d2 … dk
ESC Z nL nH d1 d2 … dk
ESC ? n m
Select 60-dpi Graphics
Select 120-dpi Graphics
Select 120-dpi Graphics
Select 240-dpi Graphics
Reassign Bit-image Mode
Data and Memory Control
Cancel Line
Delete Last Character in Buffer
Initialise Printer
Select Printer
Deselect Printer
CAN
DEL
ESC @
DC1
DC3
Hangul Extension Commands
Align SBCS Character with
DBCS Character
Cancel the Alignment of SBCS
Character with DBCS Character
Define User-defined Chinese
Character
Divided Hangul Double Height
Master Select in DBCS Mode
Pair Two Characters in Vertical
Printing
Select DBCS Print Quality
Select Double-width Printing
in DBCS Mode (One Line)
Cancel Double-width Printing
in DBCS Mode (One Line)
Select DBCS Mode
FS U
FS V
FS 2 a1 a2 d1 d2 d3 …d72
FS X n
FS ! n
FS D d1 d2
FS x n
FS SO
FS DC4
FS &
FS .
Cancel DBCS Mode
Select Hangul Myunjo/Gothic Style FS k n
Select DBCS Super/Subscript
Printing
FS r n
FS J
Select Vertical Printing
Cancel Vertical Printing
(Select Horizontal Printing)
Set DBCS Character Half Width
Cancel DBCS Character Half Width
and Super/Subscript Printing
Set Intercharacter Spacing of
DBCS Character
Set Intercharacter Spacing of
SBCS Character
Turn Double-width, Double-height
Printing On/Off
FS K
FS SI
FS DC2
FS S n1 n2
FS T n1 n2
FS W n
33
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
FUNCTION
ASCII CODE
PAGE
Hangul Extension Commands (continued)
Turn Extending Table Character
On/Off
Turn Underline On/Off
FS v n
FS - n
Superset Command
Barcode Printing
Graphics Printing: Select Bit Image SSCC * m nL nH d1…dk
Turn On/Off OCRB Printing
Define User Defined Character
Font Expansion
SSCC c t
ASSC 0 z n
ASSC 0 2
ASSC 0 e
ASSC 0 *
ASSC 0 !
Graphic Printing
Master Select One-Line Attribute
Advance Print Position Vertically
ASCII Code ESC J n
Hex Code
Dec Code
Purpose
1B 4A n
27 74 n
Advances the vertical print position n/180 inch.
Where:
0 <= n <= 255
Comment
This command does not affect the horizontal print position.
Advances paper to the top-of-form position on the next page if
the ESC J command moves the print position below the
bottom-margin position setting.
Align SBCS Character with DBCS Character
ASCII Code FS U
Hex Code
Dec Code
Purpose
28 85
1C 55
Aligns two SBCS characters to fit the space normally occupied
by a full-width DBCS character that does not have a half-width,
subscript, or superscript feature.
Comment
A DBCS character with half-width, subscript, or superscript
feature is treated as an SBCS character.
The intercharacter space of the next character is set by the FS
S command.
In the default mode, the SBCS character aligns with the DBCS
character.
34
Download from Www.Somanuals.com. All Manuals Search And Download.
Cancel The Alignment of SBCS Character With
Cancel The Alignment of SBCS Character With DBCS
Character
ASCII Code FS V
Hex Code
Dec Code
Purpose
28 86
1C 86
Cancels the spacing adjustment of SBCS characters to fit the
space normally occupied by a full-width DBCS character.
Comment
This command cancels the effect of the FS U command.
This command makes the FS T command affect the spacing of
the SBCS character.
In the default mode, the SBCS character aligns with the DBCS
character.
Backspace
ASCII Code BS
Hex Code
Dec Code
Purpose
08
8
Moves the print position to the left a distance equal to one
character in the current pitch plus any additional intercharacter
space.
Comment
The printer ignores this command if the command would move
the print position to the left of the left margin.
In DBCS mode, the command takes effect in double byte
character setting.
35
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Barcode Printing
ASCII Code SSCC c t; d data d [; N n ; xxxx ; yyyy ][; X mmmm ][; P p ][; C ]
[; H hh][; D ][; F q data q]
Hex Code
Dec Code
SSCC 63 t; d data d [; 4E n ; xxxx ; yyyy ][; 58 mmmm ][; 50 p ]
[; 43 ][; 48 hh][; 44 ][; 46 q data q]
SSCC 99 t; d data d [; 78 n ; xxxx ; yyyy ][; 88 mmmm ][; 80 p ]
[; 67 ][; 72 hh][; 68 ][; 70 q data q]
Where:
t = type of Barcode
t (ASCII)
t (hex)
Selects Barcode
B
C
9
D
8
42
43
39
44
38
31
46
47
49
4D
34
4F
50
52
54
56
41
45
53
55
Codabar
Code 39
Code 93
Code 128
EAN-8
1
EAN-13
FIM
German I-2/5
Interleaved 2/5
MSI
PDF 417
PostBar
POSTNET
Royal Mail
Telepen
UCC/EAN-128
UPC-A
UPC-E
UPC Shipping
UPS 11
F
G
I
M
4
O
P
R
T
V
A
E
S
U
Where:
d = barcode delimiter, which can be any character not used in
the barcode data field.
Where:
data = variable length printable data field (PDF); character set
is Alphanumeric
The following parameters are optional:
Where:
N = activates the offset
Where:
n = the x and y coordinate unit system
36
Download from Www.Somanuals.com. All Manuals Search And Download.
Barcode Printing
n (ASCII)
Selects Value
0
1
2
3
4
Use current cpi and lpi values
Use ¼ inch value
Use ½ centimeter value : 1/(2.54x2)
Use 1 mm value : 1/(25.4)
Use target barcode dot (refer to the table below)
When n = 4:
Front Panel
Typeface
x Offset unit
(inch)
y Offset unit
(inch)
LQ
Near LQ
1/180
1/120
1/180
1/180
1/180
1/180
1/180
1/120
1/144
1/120
1/90
Normal
Hi-Speed
Super Hi-Speed
Ultra Hi-Speed
Where:
1/90
xxxx = 4-digit upper left corner x (horizontal axis)
Where:
yyyy = 4-digit upper left corner y (vertical axis)
Where:
X = activates magnification
Where:
mmmm = bar code magnification
The possible magnifications are listed in the table below:
37
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Barcode Type
Code 39
Magnification
X4 X3 X2 X1 X1.5 X1A X1B *X1C *X1D *X1E
X4 X3 X2 X2A X1 X1A X1B
Interleaved 2/5
German I-2/5
UPC Shipping
Telepen
X4 X3 X2 X2A X1 X1A X1B
X4 X3 X2 X2A X1 X1A X1B
X4 X3 X2 X1 X1.5 X1A X1B *X1C *X1D *X1E
X4 X3 X2 X1
X4 X3 X2 X1 X1.5
X4 X3 X2 X1 X1.5
X4 X3 X2 X1 X1.5
X4 X3 X2 X1 X1.5
X2 X1
MSI
Code 128
UCC/ EAN-128
Code 93
UPS 11
UPC-A
X2 X1
X2 X1
UPC-E
X2 X1
EAN 8
X4 X3 X2 X1
X1
X1 X1A
X1 X1A
X1
EAN 13
Codabar
Postnet
Royal Mail
Postbar
FIM
X3 X2 X1
PDF417
*Note: the X1C, X1D, and X1E values can only be printed for horizontal
180dpi barcodes. If these values are sent for horizontal 120dpi barcodes,
they will print as value X1.
Where:
P = activates printable data field variable
Where:
p = location of PDF ('A' (above), 'B' (below, default), 'N' (none))
(Note: FIM, Postbar, and PDF417 do not support this
parameter.)
Where:
C = Calculate and plot check digit (if available as an option, the
default is No).
Check digit if the check digit is allowed to be optional)
Where:
H = activates the height variable
Where:
hh = 2-digit barcode height in 1/10"
Where:
D = Dark barcode
(Note: This parameter does not take any effect under DBCS
typefaces.)
38
Download from Www.Somanuals.com. All Manuals Search And Download.
Beeper
Where:
[;F q data q] = secondary data field (optional). The secondary
data field is only used to specify the barcode data when the
primary data field is empty (two delimiters without any data).
When the primary data field is not empty, the secondary data
field is ignored.
Beeper
ASCII Code BEL
Hex Code
Dec Code
Purpose
07
7
Sounds the printer’s beeper for 1/10 second.
Cancel Line
ASCII Code CAN
Hex Code
Dec Code
Purpose
18
24
Clears all printable characters and bit-image graphics on the
current line.
Moves the print position to the left-margin position.
Carriage Return
ASCII Code CR
Hex Code
Dec Code
Purpose
0D
13
Moves the print position to the left margin position.
Comment
The user can define CR = CR or CR = CR + LF from the front
panel.
If CR = CR + LF, the CR command is accompanied by a LF
command.
39
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Define Pattern for Special Printing Effect
ASCII Code ESC ( X n1 n2 a1 a2 a3
Hex Code
Dec Code
Purpose
1B 28 58 n1 n2 a1 a2 a3
27 40 88 n1 n2 a1 a2 a3
Defines the pattern to be used in background or to fill up
outlined characters.
a1:
0 – To be filled as background
1 – To be used as fill pattern to fill outlined characters
0 – Black on white, normal
1 – White on black
a2:
2 – Dotted
a3:
Treat different colours as all black
Where:
n1 = 3
n2 = 0
a1 = 0, 1
0 <= a2 <= 2
0 <= a3 <= 6
Comment
This command covers interline spacing for our printer in both
DBCS and SBCS modes.
Define User-Defined Character
ASCII Code ASSC
0
2
a1 a2 d1...d144
a1 a2 d1...d144
a1 a2 d1...d144
Hex Code
Dec Code
Purpose
ASSC
ASSC
30 32
48 50
Sets the ASCII format data for a user-friendly character. The
user-defined characters can be printed by sending a1 a2 to the
printer.
Where:
a1 = high byte code point
a2 = low byte code point
d1...d144 = 144 bytes ASCII format data
Comment
This command takes effect only in DBCS mode.
40
Download from Www.Somanuals.com. All Manuals Search And Download.
Define User-Defined Chinese Character
Define User-Defined Chinese Character
ASCII Code FS 2 a1 a2 d1 d2 d3 …d72
Hex Code
Dec Code
Purpose
1C 50 a1 a2 d1 d2 d3 …d72
28 32 a1 a2 d1 d2 d3 …d72
Sets the parameters for user-defined characters
a1 a2
d1 d2 d3 … d72
Data to define the character in which the cell size is
24x24.
Character code of the character to be user-defined.
Where:
C9A1H < a1a2 < C9FEH
FEA1H < a1a2 < FEFEH
Comment
The user-defined character can be printed by sending a1a2 to
the printer.
Delete Last Character in Buffer
ASCII Code DEL
Hex Code
Dec Code
Purpose
7F
127
Deletes the last printable character in the print buffer’s current
line.
Comment
This command deletes printable characters only; printer control
codes are not affected.
The printer ignores this command if it follows a command that
moves the horizontal print position (ESC $, ESC \, or HT).
41
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Divided Hangul Double Height
ASCII Code FS X n
Hex Code
Dec Code
Purpose
28 58 n
1C 88 n
Turns on/off divided double height printing of all characters as
follows:
n = 0
n = 1
n = 2
n = 3
Where:
Turns off divided double height
Double height upper part of character
Double height lower part of character
Double height whole character
0 <= n <= 3
Comment
The line spacing of the line with upper part double height (set
by FS X 1) will change to 24/180 inch.
The baseline of the line including double-height characters (set
by FS X 3) moves down 24/180 inch, and the line spacing also
increases 24/180 inch.
The default is Normal (non double-width double-height)
printing.
Enable Printing of Upper Control Codes
ASCII Code ESC 6
Hex Code
Dec Code
Purpose
1B 36
27 54
Tells the printer to treat codes 128 to 159 as printable
characters instead of control codes.
Comment
This command affects the front panel setting of “Alt. Set 80-9F.”
This command works in ASCII mode only.
In the default mode, codes 128 to 159 are treated as printable
characters.
42
Download from Www.Somanuals.com. All Manuals Search And Download.
Enable Upper Control Codes
Enable Upper Control Codes
ASCII Code ESC 7
Hex Code
Dec Code
Purpose
1B 37
27 55
Tells the printer to treat codes from 128 to 159 as control codes
instead of printable characters.
Comment
This command affects the front panel setting of “Alt. Set 80-9F.”
In the default mode, codes 128 to 159 are treated as printable
characters.
Font Expansion
ASCII Code ASSC
0
e
n1 n2
n1 n2
Hex Code
Dec Code
Purpose
ASSC
ASSC
30 65
48 101 n1 n2
Expand the DBCS character up to the size of 72.
For this command to work, n1 must be the same value as n2
(i.e. n1 = n2). When n1 and n2 = 25 to 72, this set font
expansion mode is ON. The value of n1 and n2 will determine
the bitmap size. For example, if the size of n1 is 50, then the
size of the bitmap will be set to 50x50. For n1 and n2 = 24, the
font expansion mode will reset to OFF and the bitmap size
reverts to the default, 24x24.
Inter-line spacing and inter-character spacing calculations are
based on standard setting as if bitmap is 24x24. This command
will only increase the size of the bitmap and not affect inter-
character spacing or inter-line spacing. For example, if inter-
line spacing is 6 dot rows, when the bitmap is expanded from
24x24 to 72x72, the inter-line spacing still remains as 6 dot
rows. This is the same for inter-character spacing.
Other commands, such as double height, double width, 2x2
times, left/right margin etc., will not function when font
expansion mode is set on. For different typefaces, the
characters will expand based on approximate typeface
resolution. All commands affecting LPI and CPI will still take
effect and is set based on the bitmap being 24x24.
Where:
n1 = 24 ~ 72
n2 = 24 ~ 72
This control code does not function while in non-DBCS mode.
43
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Form Feed
ASCII Code FF
Hex Code
Dec Code
Purpose
0C
12
Advances the vertical print position on continuous paper to the
top-margin position of the next page.
Moves the horizontal print position to the left-margin position.
Comment
The FF command cancels one-line double-width printing
selected with the SO, ESC SO, or FS SO commands.
Graphic Printing
ASCII Code ASSC
0
*
m
m
m
nL nH d1...dk
nL nH d1...dk
nN nH d1...dk
Hex Code
Dec Code
Purpose
ASSC
ASSC
30 2A
48 42
Prints dot-grphics in 16 or 24-dot columns, depending on the
following parameters:
Where:
m specifies the dot density
nL, nH specifies the total number of columns or graphics data
that follow (number of dot columns) = ((nHx256) + nL)
d1...dk specifies bytes of graphics data; k is determined by
multiplying the total number of columns times the number of
bytes required for each column.
Parameter
Horizontal
Vertical
Dots Per
Column
Bytes Per
Column
m is ASSC* Density (dpi) Density (dpi)
0
1
2
3
4
5
180
90
180
180
120
144
120
90
24
24
16
24
16
16
3
3
2
3
2
2
120
90
90
90
44
Download from Www.Somanuals.com. All Manuals Search And Download.
Graphics Printing: Select Bit Image
Graphics Printing: Select Bit Image
ASCII Code SSCC * m nL nH d1…dk
Hex Code
Dec Code
Purpose
SSCC 2A m nL nH d1…dk
SSCC 42 m nL nH d1…dk
Prints dot-graphics in 12- or 16-dot columns, depending on the
following parameters:
m
Specifies the dot density
nL, nH
Specifies the total number of columns of graphics
data that follow (number of dot columns) =
((nHx 256) + nL)
d1 …dk Bytes of graphics data; k is determined by multiplying
the total number of columns times the number of
bytes required for each column
Where:
0 <= nL <= 255
0 <= nH <= 31
m = 48, 49, 50
Comment
Dot density:
Parameter
m in ESC *
Horizontal
Density (dpi)
Vertical
Density (dpi)
Dots per
column
Bytes per
column
48
49
50
90
120
90
90
120
90
12
16
16
2
2
2
Initialize Printer
ASCII Code ESC @
Hex Code
Dec Code
Purpose
1B 40
27 64
Reloads the power-up configuration if “Reset Cmd CFG Ld” is
Enable. Otherwise, resets to the internal default value.
45
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Line Feed
ASCII Code LF
Hex Code
Dec Code
Purpose
0A
10
Advances the vertical print position one line (in the currently set
line spacing).
The LF command cancels one-line double-width printing
selected with the SO, ESC SO, or FS SO commands.
Comment
The user can define LF = LF or LF = CR + LF from the front
panel.
If LF = CR + LF, the printer moves the horizontal print position
to the left-margin position.
If the LF command moves the print position below the bottom
margin on continuous paper, the printer advances to the top-of-
form position on the next page.
46
Download from Www.Somanuals.com. All Manuals Search And Download.
Master Select
Master Select
ASCII Code ESC ! n
Hex Code
Dec Code
Purpose
1B 21 n
27 33 n
Selects any combination of several font attributes and
enhancements by setting or clearing the appropriate bit in the
n parameter, as shown in the table below:
Where:
0 <= n <= 255
Bit
0
On/Off
Hex
00
01
00
02
00
04
00
08
00
10
00
20
00
40
00
80
Dec
0
Function
Equivalent
ESC P
ESC M
ESC p 0
ESC p 1
DC2
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Select 10 cpi
1
Select 12 cpi
1
0
Cancels proportional
Selects proportional
Cancels condensed
Selects condensed
Cancels bold
1
2
0
1
SI
3
0
ESC F
ESC E
ESC H
ESC G
ESC W 0
ESC W 1
ESC 5
1
Selects bold
4
0
Cancels double-strike
Selects double-strike
Cancels double-width
Selects double-width
Cancels italics
16
0
5
32
0
6
64
0
Selects italics
ESC 4
7
Cancel underline
Selects underline
ESC - 0
ESC - 1
128
Comment
This command cancels any attributes or enhancements that
are not selected.
47
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Master Select In DBCS Mode
ASCII Code FS ! n
Hex Code
Dec Code
Purpose
1C 21 n
28 33 n
Selects any combination of several font attributes and
enhancements by setting or clearing the appropriate bit in the
n parameter, as shown below:
Bit
0
On/Off
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Hex
00
01
00
02
00
04
00
08
00
10
00
20
00
40
00
80
Dec
0
Function
Equivalent
Cancel vertical printing FS K
1
Select Vertical printing
Cancel half width
FS J
1
2
3
4
5
6
7
0
FS DC2
FS SI
1
Select half width
0
Cancel double width
Select double width
Cancel double height
Select double height
Select quarter printing
ESC W 0
ESC W 1
FS X 0
FS X 3
FS r n
1
0
1
0
16
0
Cancel quarter printing FS DC2
Select superscript
Select subscript
FS r 0
FS r 1
32
0
64
0
Cancel underline
Selects underline
FS - 0
FS - 1
128
Where:
0 <= n <= 255
Comment
This command cancels any attributes or enhancements that
are not selected.
48
Download from Www.Somanuals.com. All Manuals Search And Download.
Master Select One-Line Attribute In DBCS Mode
Master Select One-Line Attribute In DBCS Mode
ASCII Code ASSC
0
!
n
n
n
Hex Code
Dec Code
Purpose
ASSC
ASSC
Where:
30 21
48 33
0 < = n < = 255
Select any combination of several one-line attributes by setting
or clearing the appropriate bit in the n parameter, as show in
the table below.
Bit
On/Off
Hex
Dec
Function
2
3
Off
On
00
04
0
4
Cancel double width
Select double width
Off
On
00
08
0
8
Cancel double height
Select double height
Comment
These attributes are canceled when the printer receives the
following commands: LF, FF, VT, and CR.
This command takes effect only in DBCS mode.
Pair Two Characters in Vertical Printing
ASCII Code FS D d1 d2
Hex Code
Dec Code
Purpose
1C 44 d1 d2
28 68 d1 d2
Aligns two rotated characters to fit the space occupied by a
normal size rotated character where d1 is the lower character
and d2 is the upper character. Both d1 and d2 can be SBCS
characters or DBCS characters. If the character is a DBCS
character, it will automatically be half-width.
Comment
This command has an effect only in vertical printing mode.
Only two characters are combined at a time.
49
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Reassign Bit-image Mode
ASCII Code ESC ? n m
Hex Code
Dec Code
Purpose
1B 3F n m
27 63 n m
Assigns the dot density used during the ESC K, ESC L, ESC Y,
or ESC Z commands to the density specified by parameter m in
the ESC * command.
Where:
n = 75, 76, 89, 90
0 <= m <= 40
Comment
The default settings are as follows:
ESC K is assigned density 0
ESC L is assigned density 1
ESC Y is assigned density 2
ESC Z is assigned density 3
Select 1/6-inch Line Spacing
ASCII Code ESC 2
Hex Code
Dec Code
Purpose
1B 32
27 50
Sets the line spacing to 1/6 inch.
Comment
Changing the line spacing does not affect previous settings for
vertical tabs or page length.
This command affects the front panel setting of “Select LPI.”
Select 1/8-inch Line Spacing
ASCII Code ESC 0
Hex Code
Dec Code
Purpose
1B 30
27 48
Sets the line spacing to 1/8 inch.
Comment
Changing the line spacing does not affect previous settings for
vertical tabs or page length.
This command affects the front panel setting of “Select LPI.”
50
Download from Www.Somanuals.com. All Manuals Search And Download.
Select 10 CPI
Select 10 CPI
ASCII Code ESC P
Hex Code
Dec Code
Purpose
1B 50
27 80
Selects 10-cpi character pitch.
Comment
If you change the fixed-pitch setting with this command during
proportional mode (selected with the ESC p command), the
change takes effect when the printer exits proportional mode.
This command affects “Select CPI” on the front panel.
This command takes effect only in SBCS mode.
Select 12 CPI
ASCII Code ESC M
Hex Code
Dec Code
Purpose
1B 4D
27 77
Selects 12-cpi character pitch.
Comment
If you change the fixed-pitch setting with this command during
proportional mode (selected with the ESC p command), the
change takes effect when the printer exits proportional mode.
This command affects “Select CPI” on the front panel.
This command takes effect only in SBCS mode.
Select 15 CPI
ASCII Code ESC g
Hex Code
Dec Code
Purpose
1B 67
27 103
Selects 15-cpi character pitch.
Comment
If you change the fixed-pitch setting with this command during
proportional mode (selected with the ESC p command), the
change takes effect when the printer exits proportional mode.
Characters from 0x80 to 0xFE cannot be printed in this mode.
This command affects “Select CPI” on the front panel.
This command takes effect only in SBCS mode.
51
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Select 60-dpi Graphics
ASCII Code ESC K nL nH d1 d2 … dk
Hex Code
Dec Code
Purpose
1B 4B nL nH d1 d2 … dk
27 75 nL nH d1 d2 … dk
Prints bit-image graphics in 8-dot columns, at a density of 60
horizontal by 60 vertical dpi, according to the following
parameters:
nL , nH Specifies the total number of columns (k) of graphics
data.
k = ((nH x 256) + nL)
d1 … dk Bytes of graphic data
Where:
0 <= nL <= 255
0 <= nH <= 31
0 <= d <= 255
Comment
The ESC * 0 command is identical to this command.
Select 120-dpi Graphics
ASCII Code ESC L nL nH d1 d2 … dk
Hex Code
Dec Code
Purpose
1B 4C nL nH d1 d2 … dk
27 76 nL nH d1 d2 … dk
Prints bit-image graphics in 8-dot columns, at a density of 120
horizontal by 60 vertical dpi, according to the following
parameters:
nL , nH
Specifies the total number of columns (k) of graphics
data.
k = ((nH x 256) + nL)
d1 … dk Bytes of graphic data
Where:
0 <= nL <= 255
0 <= nH <= 31
0 <= d <= 255
Comment
The ESC * 1 command is identical to this command.
52
Download from Www.Somanuals.com. All Manuals Search And Download.
Select 120-dpi Graphics
Select 120-dpi Graphics
ASCII Code ESC Y nL nH d1 d2 … dk
Hex Code
Dec Code
Purpose
1B 59 nL nH d1 d2 … dk
27 89 nL nH d1 d2 … dk
Prints bit-image graphics in 8-dot columns, at a density of 120
horizontal by 60 vertical dpi, according to the following
parameters:
nL , nH Specifies the total number of columns (k) of graphics
data.
k = ((nH x 256) + nL)
d1 … dk Bytes of graphic data
Where:
0 <= nL <= 255
0 <= nH <= 31
0 <= d <= 255
Comment
The ESC * 2 command is identical to this command.
Select 240-dpi Graphics
ASCII Code ESC Z nL nH d1 d2 … dk
Hex Code
Dec Code
Purpose
1B 5A nL nH d1 d2 … dk
27 90 nL nH d1 d2 … dk
Prints bit-image graphics in 8-dot columns, at a density of 240
horizontal by 60 vertical dpi, according to the following
parameters:
nL, nH Specifies the total number of columns (k) of graphics
data.
k = ((nH x 256) + nL)
d1 … dk Bytes of graphic data
Where:
0 <= nL <= 255
0 <= nH <= 31
0 <= d <= 255
Comment
The ESC * 3 command is identical to this command.
53
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Select an International Character Set
ASCII Code ESC R n
Hex Code
Dec Code
Purpose
1B 52 n
27 82 n
Selects the set of characters printed for specific character
codes, as listed below:
n = 0
USA
= 1France
= 2Germany
= 3United Kingdom
= 4Denmark
= 5 Sweden
= 6Italy
= 7Spain I
= 8Japan (English)
= 9Norway
= 10Denmark II
= 11Spain II
= 12Latin America
= 13Korean
Where:
0 <= n <= 13
54
Download from Www.Somanuals.com. All Manuals Search And Download.
Select Bit Image
Select Bit Image
ASCII Code ESC * m nL nH d1 … dk
Hex Code
Dec Code
Purpose
1B 2A m nL nH d1 … dk
27 42 m nL nH d1 … dk
Prints dot-graphics in 8- or 24-dot columns, depending on the
following parameters:
m
Specifies the dot density
nL, nH
Specifies the total number of columns of graphics
data that follows (number of dot columns) = ((nHx
256) + nL)
d1 … dk Bytes of graphics data; k is determined by multiplying
the total number of columns times the number of
bytes required for each column
Dot density is described in the table below:
Parameter
m in ESC *
Horizontal
density (dpi)
Vertical
density (dpi)
Dots per
column
Bytes per
column
0
1
60
120
120
240
80
60
60
8
8
1
1
1
1
1
1
3
3
3
3
3
2
60
8
3
60
8
4
60
8
6
90
60
8
32
33
38
39
40
60
180
180
180
180
180
24
24
24
24
24
120
90
180
360
Where:
0 <= nL <= 255
0 <= nH <= 31
m = 0, 1, 2, 3, 4, 6, 32, 33, 38, 39 40
55
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Select Bold Font
ASCII Code ESC E
Hex Code
Dec Code
Purpose
1B 45
27 69
Sets the weight attribute of the font to Bold.
Comment
This command increases the weight of printed lines and
characters, resulting in bolder printing.
This command affects “Bold Print” on the front panel.
The default is Normal (non-bold) print.
Cancel Bold Font
ASCII Code ESC F
Hex Code
Dec Code
Purpose
1B 46
27 70
Sets the font to Normal (cancels the bold print previously set
with the ESC E command).
Comment
This command affects “Bold Print” on the front panel.
The default is Normal (non-bold) print.
Select Character Style
ASCII Code ESC q n
Hex Code
Dec Code
Purpose
1B 71 n
27 113 n
Turns on/off outline and shadow printing, according to the
parameters below:
n = 0 Turns off outline/shadow printing
n = 1Turns on outline printing
n = 2Turns on shadow printing
n = 3Turns on outline and shadow printing
Where:
0 <= n <= 3
Comment
This command does not affect graphics characters.
56
Download from Www.Somanuals.com. All Manuals Search And Download.
Select Character Table
Select Character Table
ASCII Code ESC t n
Hex Code
Dec Code
Purpose
1B 74 n
27 116 n
Selects the character table to be used for printing among the
two character tables described below:
n = 0 or 48
n = 1 or 49
Character table 0 0x80-0x9f Control code, 0xa0-0xff Italic
Character table 1 0x80-0xff Printable code, IBM PC437
Where:
0 <= n <= 1, 48 <= n <= 49
Currently, the setting on the front panel of “Alt. Set 80-9F”
determines whether n = 0 would be treated as Control Code or
Printable Code. Thus, this determines the setting n = 1.
Comment
This command affects the front panel setting of “Character Set.”
Select Condensed Printing
ASCII Code SI
Hex Code
Dec Code
Purpose
0F
15
Enters condensed mode, in which character width is reduced
as follows:
Selected pitch
10 cpi
Condensed pitch
17.14 cpi
12 cpi
20 cpi
Proportional
½ width
Comment
This command is ignored under the following two conditions:
15-cpi printing has been selected with the ESC g command.
This command reduces character width by about 50% when
proportional spacing is selected with the ESC p command.
Cancel condensed printing with the DC2 command.
This command only takes effect in SBCS mode.
The default is Non-condensed printing.
57
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Select Condensed Printing
ASCII Code ESC SI
Hex Code
Dec Code
Purpose
1B 0F
27 15
Enters condensed mode, in which character width is reduced
as follows:
Selected pitch
10 cpi
Condensed pitch
17.14 cpi
12 cpi
20 cpi
Proportional
½ width
Comment
This command is ignored under the following two conditions:
15-cpi printing has been selected with the ESC g command.
This command reduces character width by about 50% when
proportional spacing is selected with the ESC p command.
Cancel condensed printing with the DC2 command.
If the front panel setting of “20 CPI Condensed” is Disable,
12-cpi printing will ignore the Condense command.
The default is Non-condensed printing.
Cancel Condensed Printing
ASCII Code DC2
Hex Code
Dec Code
Purpose
12
18
Cancels condensed printing selected by the SI or ESC SI
commands.
Comment
The default is Normal (non-condensed) printing.
58
Download from Www.Somanuals.com. All Manuals Search And Download.
Select DBCS Print Quality
Select DBCS Print Quality
ASCII Code FS x n
Hex Code
Dec Code
Purpose
1C 78 n
28 120 n
Selects different print quality according to the following values:
n = 0 or 48LQ
n = 1 or 49Hi-Speed
n = 2 or 50Near LQ
n = 3 or 51Super Hi-Speed
n = 4 or 52Normal
n = 5 or 53Ultra Hi-Speed
Where:
n = 0, 1, 2, 3, 4, 5, 48, 49, 50, 51, 52, 53
Comment
This command affects the front panel selection of “Typeface.”
This command only works in DBCS mode.
The default mode is according to the setting of front panel.
Select Double-strike Printing
ASCII Code ESC G
Hex Code
Dec Code
Purpose
1B 47
27 71
Prints each dot twice, with the second slightly below and right to
the first, creating a bolder character.
Comment
The default is Normal (non double-strike) style.
Cancel Double-strike Printing
ASCII Code ESC H
Hex Code
Dec Code
Purpose
1B 48
27 72
Cancels double-strike printing selected with the ESC G
command.
Comment
The default is Normal (non double-strike) style.
59
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Select Double-width Printing (One Line)
ASCII Code SO
Hex Code
Dec Code
Purpose
0E
14
Doubles the width of all characters, spaces, and intercharacter
spacing (set with the ESC SP command) on the same line as
the command.
Comment
This command is cancelled when the printer receives the
following commands: LF, FF, VT, DC4, ESC W 0, and CR.
This command works under both ASCII and Hangul modes.
The default is Normal (non double-width) printing.
Cancel Double-width Printing (One Line)
ASCII Code ESC SO
Hex Code
Dec Code
Purpose
1B 0E
27 14
Cancels the double-width printing of all characters, spaces, and
intercharacter spacing (set with the SO command).
Comment
This command works under both ASCII and Hangul modes.
Cancel Double-width Printing (One Line)
ASCII Code DC4
Hex Code
Dec Code
Purpose
14
20
Cancels double-width printing selected by the SO or ESC SO
commands.
Comment
This command does not cancel double-width printing selected
with the ESC W command.
The default is Normal (non double-width) printing.
60
Download from Www.Somanuals.com. All Manuals Search And Download.
Select Double-width Printing in DBCS Mode (One
Select Double-width Printing in DBCS Mode
(One Line)
ASCII Code FS SO
Hex Code
Dec Code
Purpose
1C 0E
28 14
Doubles the width of all characters, spaces, and intercharacter
spacing (set with the FS S or FS T commands) on the same
line as the command.
Comment
This command is cancelled when the printer receives the
following commands: LF, FF, VT, DC4, FS W 0, and CR.
This command can be cancelled by FS W 0 and FS !
This command works under ASCII mode, and it works the
same as the SO or ESC SO commands.
The default is Normal (non double-width) printing.
Cancel Double-width Printing in DBCS Mode
(One Line)
ASCII Code FS DC4
Hex Code
Dec Code
Purpose
28 14
1C 20
Cancels double-width printing selected by the FS SO
command.
Comment
This command does not cancel double-width printing selected
by the FS W command.
The default is Normal (non double-width) printing.
61
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Select DBCS Mode
ASCII Code FS &
Hex Code
Dec Code
Purpose
1C 26
28 38
Sets the printer in DBCS mode.
Comment
In DBCS mode, all the data received by the printer with the
MSB set will be paired with the next character to be a DBCS
(double byte character system) character. Otherwise, the
character will be treated individually as SBCS (single byte
character system) character and printed accordingly.
The DBCS mode should be set before processing Hangul
characters.
This command affects the front panel setting of “DBCS/ASCII
mode.”
The default is DBCS mode.
Cancel DBCS Mode
ASCII Code FS .
Hex Code
Dec Code
Purpose
1C 2E
28 46
Cancels DBCS mode. The printer is set back to ASCII mode.
A few ESC commands only work in ASCII mode.
Comment
This command affects the front panel setting of “DBCS/ ASCII
MODE.”
The default is DBCS mode.
Select Hangul Myunjo/Gothic Style
ASCII Code FS k n
Hex Code
Dec Code
Purpose
1C 6B n
28 107 n
Selects Myunjo/Gothic style according to the following values:
n = 0 or 2 Set Myunjo style
n = 1 or 3 Set Gothic style
Where:
0 <= n <= 3
Comment
The default is Myunjo style.
62
Download from Www.Somanuals.com. All Manuals Search And Download.
Select Italic Font
Select Italic Font
ASCII Code ESC 4
Hex Code
Dec Code
Purpose
1B 34
27 52
Sets the style attribute of the font to Italics.
Comment
This command selects italic printing even if the italic character
table is not selected.
This command affects “Italic Print” on the front panel.
The default is Normal (non-italic) style.
Cancel Italic Font
ASCII Code ESC 5
Hex Code
Dec Code
Purpose
1B 35
27 53
Sets the font style to Normal (cancels the italic style previously
selected with the ESC 4 command).
Comment
This command affects “Italic Print” on the front panel.
The default is Normal (non-italic) style.
Select Print Quality
ASCII Code ESC x n
Hex Code
Dec Code
Purpose
1B 78 n
27 120 n
Selects the print quality according to the following values:
n = 0 or 48Hi-Speed
n = 1 or 49LQ
n = 2 or 50Near LQ
n = 3 or 51Super Hi-Speed
n = 4 or 52Normal
n = 5 or 53Ultra Hi-Speed
Where:
n = 0, 1, 2, 3, 4, 5, 48, 49, 50, 51, 52, 53
Comment
This command affects the front panel setting of “Typeface.”
63
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Select Printer
ASCII Code DC1
Hex Code
Dec Code
Purpose
11
17
Selects the printer after it has been deselected with the DC3
command.
Comment
The printer ignores this command if the user has set the printer
offline by pressing the online button.
Deselect Printer
ASCII Code DC3
Hex Code
Dec Code
Purpose
13
19
Deselects the printer.
Comment
The printer cannot be reselected by pressing the online button.
Select Superscript/Subscript Printing
ASCII Code ESC S n
Hex Code
Dec Code
Purpose
1B 53 n
27 83 n
Prints characters that follow at about 2/3 their normal height;
the printing location depends on the value of n as follows:
n = 1 or 49Lower part of the character space
n = 0 or 48Upper part of the character space
Where:
n = 0, 1, 48, 49
Comment
This command does not affect graphics characters.
The width of super/subscript characters when using
proportional spacing is the same as that of normal characters.
The underline strikes through the descenders on subscript
characters during underline mode.
Use the ESC T command to cancel super/subscript printing.
This command only takes effect in SBCS mode.
The default is Normal (non-super/subscript) printing.
64
Download from Www.Somanuals.com. All Manuals Search And Download.
Cancel Superscript/Subscript Printing
Cancel Superscript/Subscript Printing
ASCII Code ESC T
Hex Code
Dec Code
Purpose
1B 54
27 84
Cancels super/subscript printing selected by the ESC S
command.
Comment
The default is Normal (non-super/subscript) printing.
Select DBCS Super/Subscript Printing
ASCII Code FS r n
Hex Code
Dec Code
Purpose
28 72 n
1C 114 n
Prints characters that follow at about ½ their normal width and
½ their normal height; the printing location depends on the
value of n as follows:
n = 1 or 49Lower part of the character space
n = 0 or 48Upper part of the character space
Where:
n = 0, 1, 48, 49
Comment
Use the FS DC2 command to cancel super/subscript printing.
This command resets DBCS half-width printing set by the FS SI
command.
The default is Normal (non-super/subscript).
Select Vertical Printing
ASCII Code FS J
Hex Code
Dec Code
Purpose
28 4A
1C 74
The character is printed in the same position with 90 degrees
rotation in a counter-clockwise direction under Hangul mode.
Comment
Use the FS K command to cancel vertical printing.
This command does not take effect on single-byte characters.
The default is Normal (horizontal).
65
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Cancel Vertical Printing (Select Horizontal Printing)
ASCII Code FS K
Hex Code
Dec Code
Purpose
28 4B
1C 75
Prints all characters horizontally.
Comment
This command cancels vertical printing set with the FS J
command.
This is the default setting at power-up.
The default is Normal (horizontal).
Set n/60-inch Line Spacing
ASCII Code ESC A n
Hex Code
Dec Code
Purpose
1B 41 n
27 65 n
Sets the line spacing to n/60 inch.
Where:
0 < n <= 85
Comment
Changing the line spacing does not affect previous settings for
vertical tabs or page length.
Does not support 0 lpi. When n = 0, the printer prints according
to the previous LPI.
This command affects the front panel setting of “Select LPI.”
Set n/180-inch Line Spacing
ASCII Code ESC 3 n
Hex Code
Dec Code
Purpose
1B 33 n
27 51 n
Sets the line spacing to n/180 inch.
Where:
0 < n <= 255
Comment
Changing the line spacing does not affect previous settings for
vertical tabs or page length.
Does not support 0 lpi. When n = 0, the printer prints according
to the previous lpi.
This command affects the front panel setting of “Select LPI.”
66
Download from Www.Somanuals.com. All Manuals Search And Download.
Set Absolute Horizontal Print Position
Set Absolute Horizontal Print Position
ASCII Code ESC $ n1 n2
Hex Code
Dec Code
Purpose
1B 24 n1 n2
27 36 n1 n2
Moves the horizontal print position to the position specified by
the following formula:
Horizontal position = n1 + (n2 * 256) + left margin.
Where:
0 <= n1 <= 127
0 <= n2 <= 255
The unit setting for this command is 1/60 inch.
Comment
The printer ignores this command if the specified position is to
the right of the right margin.
Set Bottom Margin
ASCII Code ESC N n
Hex Code
Dec Code
Purpose
1B 4E n
27 78 n
Sets the bottom margin on continuous paper to n lines (in the
current line spacing) from the top-of-form position on the next
page.
Where:
1 <= n <= 127
0 < n *(current line spacing) < page length
Comment
This was formerly called the “Set skip-over-perforation”
command.
This command affects the front panel setting of “Bottom
Margin.”
The default depends on the power-up configuration.
Cancel Bottom Margin
ASCII Code ESC O
Hex Code
Dec Code
Purpose
1B 4F
27 79
Cancels the bottom margin settings.
skip-over-perforation”
Comment
This was formerly called the “Cancel
command.
This command affects the front panel setting of “Bottom
Margin.”
67
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Set DBCS Character Half Width
ASCII Code FS SI
Hex Code
Dec Code
Purpose
28 0F
1C 15
Prints DBCS characters that follow at about half their normal
width, and SBCS characters maintain their normal width.
Comment
Use the FS DC2 command to cancel half-width DBCS
character printing.
This command resets subscript/ superscript printing set by the
FS r command.
The default is Normal (non half-width) printing.
Cancel DBCS Character Half Width and
Super/Subscript Printing
ASCII Code FS DC2
Hex Code
Dec Code
Purpose
28 12
1C 18
This command cancels the FS SI (half-width DBCS character)
and FS r (set super/subscript printing) commands.
Comment
The default is Normal (non half-width and non-super/subscript)
printing.
Set Horizontal Tabs
ASCII Code ESC D n1 n2 … nk NUL
Hex Code
Dec Code
Purpose
1B 44 n1 n2 … nk 00
27 68 n1 n2 … nk 00
Sets horizontal tab positions (in the current character pitch) at
the columns specified by n1 to nk as measured from the left-
margin position.
The values for n must be in ascending order; a value of n less
than the previous n ends tab setting (like the NUL code).
Where:
0 <= k <= 32
1 <= n <= 255
nk > nk-1
Comment
Changing the character pitch does not affect current tab
settings.
Send an ESC D NUL command to cancel all tab settings.
The tab settings move to match any movement in the left
margin.
68
Download from Www.Somanuals.com. All Manuals Search And Download.
Set Intercharacter Space
A maximum of 32 horizontal tabs can be set.
The printer does not move the print position to any tabs beyond
the right-margin position. However, all tab settings are stored in
the printer’s memory; if you move the right margin, you can
access previously ignored tabs.
The printer calculates tab positions based on 10 cpi if
proportional spacing is selected with the ESC p command.
The default is every eight characters.
Set Intercharacter Space
ASCII Code ESC SP n
Hex Code
Dec Code
Purpose
1B 20 n
27 32 n
Increases the space between characters; the unit is according
to the current density.
Where:
0 <= n <= 127
Comment
The extra space set with this command doubles during double-
width mode.
Set Intercharacter Spacing of DBCS Character
(Hangul Extension)
ASCII Code FS S n1 n2
Hex Code
Dec Code
Purpose
28 53 n1 n2
1C 83 n1 n2
Sets intercharacter space to the left and right of the DBCS
character.
n1 Specifies the space to the left of the printed character.
n2 Specifies the space to the right of the printed character.
The dot size of n1 and n2 is 1/180 inch.
Where:
0 < n1 < 127
0 < n2 < 127
Comment
A DBCS character with a half-width feature set by the FS SI
command is treated as an SBCS character.
This command also affects an SBCS character if the character
is aligned with DBCS by the FS U command.
If the SBCS character is aligned with the DBCS character, the
intercharacter space of the SBCS character is half of n1 and n2.
This command affects the front panel setting of “DBCS CPI.”
The default is n1 = 0, n2 = 3.
69
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Set Intercharacter Spacing Of SBCS Character
(Hangul Extension)
ASCII Code FS T n1 n2
Hex Code
Dec Code
Purpose
28 54 n1 n2
1C 84 n1 n2
Sets intercharacter space to the left and right of the SBCS
character.
n1
Specifies the space to the left of the printed character in
1/180 of an inch.
n2
Specifies the space to the right of the printed character in
1/180 of an inch.
The units of n1 and n2 are 1/180 inch.
Where:
0 < n1 < 127
0 < n2 < 127
Comment
A DBCS character with a half-width feature set by the FS SI
command is treated as an SBCS character.
This command only affects SBCS characters when the FS V
command is set.
The default is n1 = 0, n2 = 2.
Set Left Margin
ASCII Code ESC I n
Hex Code
Dec Code
Purpose
1B 6C n
27 108 n
Sets the left margin to n columns in the current character pitch,
as measured from the left-most printable column.
Where:
1 <= n <= 255
0 < left margin < right margin
Comment
In DBCS mode, the character pitch is according to the width of
the DBCS character.
This command affects the front panel setting of “Left Margin.”
The default depends on the power-up configuration.
70
Download from Www.Somanuals.com. All Manuals Search And Download.
Set Page Length In Inches
Set Page Length In Inches
ASCII Code ESC C NUL n
Hex Code
Dec Code
Purpose
1B 43 00 n
27 67 0 n
Sets the page length to n inches.
This command sets the page length in 1-inch increments only.
Sets the page length before paper is loaded or when the print
position is at the top-of-form position. Otherwise, the current
print position becomes the top-of-form position.
Where:
1 <= n <= 22
Comment
Setting the page length cancels the bottom margin setting.
This command affects the front panel setting of “Abs. Length
In.”
Set Page Length In Lines
ASCII Code ESC C n
Hex Code
Dec Code
Purpose
1B 43 n
27 67 n
Sets the page length to n lines in the current line spacing.
Sets the page length before paper is loaded or when the print
position is at the top-of-form position. Otherwise the current
print position becomes the top-of-form position.
Where:
1<= n <= 127
0 < n *(current line spacing) <= 22 inches
Comment
Setting the page length cancels the bottom margin setting.
Changing the line spacing does not affect the current page-
length setting.
This command affects front panel setting of “Funct. Of Lines.”
71
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Set Relative Horizontal Print Position
ASCII Code ESC \ n1 n2
Hex Code
Dec Code
Purpose
1B 5C n1 n2
27 92 n1 n2
Moves the horizontal print position left or right from the current
position.
For right movement: horizontal position = n2 * 256 + n1.
For left movement: horizontal position = 65536 - (n2*256 + n1).
Where:
0 <= n1 <= 127
0 <= n2 <= 255
Comment
The printer ignores this command if the command would move
the print position outside the printing area.
The default defined unit for this command is according to the
current density: 1/120 inch for Near LQ and 1/180 inch for LQ,
Normal, Hi-Speed, Super Hi-Speed, and Ultra Hi-Speed.
Set Right Margin
ASCII Code ESC Q n
Hex Code
Dec Code
Purpose
1B 51 n
27 81 n
Sets the right margin to n columns in the current character
pitch, as measured from the left-most printable column.
Where:
1 <= n <= 255
left margin < (current pitch) * n < printable area width
Comment
In DBCS mode, the right margin will be set according to the
width of the DBCS character.
This command affects the front panel setting of “Right Margin.”
The default depends on the power-up configuration.
72
Download from Www.Somanuals.com. All Manuals Search And Download.
Set Vertical Tab Channels
Set Vertical Tab Channels
ASCII Code ESC / m
Hex Code
Dec Code
Purpose
1B 2F m
27 47 m
The value for m specifies the number of the tab sets being
changed; these sets of tabs are called vertical formatting unit
(VFU) channels.
Where:
0 <= m <= 7
Comment
You must use this command to select a tab set (VFU channel)
other than set 0; the VT (tab vertically) command then uses the
settings for the selected channel.
You can select from eight sets of tabs (VFU channels).
Set Vertical Tabs
ASCII Code ESC B n1 n2 … nk NUL
Hex Code
Dec Code
Purpose
1B 42 n1 n2 … nk 00
27 66 n1 n2 … nk 0
Sets vertical tab positions (in the current line spacing) at the
lines specified by n1 to nk, as measured from the top-margin
position.
The values for n must be in ascending order; a value of n less
than the previous n ends tab setting (just like the NUL code).
Where:
0 <= k <= 16
1 <= n <= 255
nk > nk-1
Comment
Changing the line spacing does not affect previous tab settings.
The tab settings move to match any subsequent movement in
the top-margin position.
Send an ESC B NUL command to cancel all tab settings.
A maximum of 16 vertical tabs can be set.
The printer stores all tab settings, even if outside the printing
area; if you increase the page length to include previously set
tabs, you can move to those positions with the VT (tab
vertically) command.
Sending the ESC B command clears any previous tab settings.
73
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Set Vertical Tabs In VFU Channels
ASCII Code ESC b m n1 … nk NUL
Hex Code
Dec Code
Purpose
1B 62 m n1 … nk 00
27 98 m n1 … nk 0
Sets vertical tab positions at the lines specified by n1 to nk (in
the current line spacing) in tab set m, as measured from the
top-of-form position.
The value for m specifies the number of the tab sets being
changed; these sets of tabs are called vertical formatting unit
(VFU) channels.
The values for n must be in ascending order; a value of n less
than the previous n ends tab setting (just like the NUL code).
Where:
0 <= m <= 7
1 <= n <= 255
nk > nk-1
1 <= k <= 16
Comment
Up to eight sets of tabs can be set.
Send the ESC / command to select a VFU channel other than
channel 0; the VT (tab vertically) command then uses the
settings for the selected channel.
Changing the line spacing does not affect previous settings for
vertical tabs.
Sending the ESC b command clears any previous tab settings
in that tab set.
Send an ESC b m NUL command to cancel all tab settings in
the tab set m.
A maximum of 16 vertical tabs can be set in each VFU channel.
The printer stores all tab settings, even if outside the printing
area; if you increase the page length to include previously set
tabs, you can move to those positions with the VT (tab
vertically) command.
74
Download from Www.Somanuals.com. All Manuals Search And Download.
Tab Horizontally
Tab Horizontally
ASCII Code HT
Hex Code
Dec Code
Purpose
09
09
Moves the horizontal print position to the next tab to the right of
the current print position.
Comment
The printer ignores this command if no tab is set to the right of
the current position or if the next tab is to the right of the right
margin.
Character scoring (underline, overscore, and strike through) is
not printed between the current print position and the next tab
when this command is sent.
In DBCS mode, the command takes effect in double byte
character setting.
Tab Vertically
ASCII Code VT
Hex Code
Dec Code
Purpose
0B
11
Moves the vertical print position to the next vertical below the
current print position.
Moves the horizontal print position to the left-margin position.
Comment
The printer advances to the top-margin position of the following
page if the next tab is below the bottom-margin position or if no
tab is set below the current position.
The VT command functions the same as a CR command
(moves the horizontal print position to the left-margin position) if
all tabs have been cancelled with the ESC B NUL command.
The VT command functions the same as an LF command
(advances one line in the current line spacing and moves the
horizontal print position to the left-margin position) if no tabs
have been set since the printer was turned on or was reset with
the ESC@ command.
The VT command functions the same as an FF command
(advances to the top-margin position on the next page) if some
tabs have been set, but no tab is set between the current print
position and the bottom-margin position.
This command cancels double-width printing set with the SO,
ESC SO, or FS SO commands.
75
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Turn Auto-wrap Around On/Off
ASCII Code ESC d n
Hex Code
Dec Code
Purpose
1B 64 n
27 100 n
Turns Auto-wrap Around on/off according to the following
values:
n = 0 Turn off Auto-wrap Around. The characters beyond right
margin will be cut.
n = 1 Turn on Auto-wrap Around. The characters beyond right
margin will be printed on the next line.
Where:
n = 0, 1
Turn Double-Height Printing On/Off
ASCII Code ESC w n
Hex Code
Dec Code
Purpose
1B 77 n
27 119 n
Turns on/off double-height printing of all characters, as
measured from the current baseline:
n = 1 or 49Turns on double-height
n = 0 or 48Turns off double-height
Where:
n = 0, 1, 48, 49
Comment
No change for line spacing.
This command only takes effect in SBCS mode.
The default is Normal (non double-height) printing.
76
Download from Www.Somanuals.com. All Manuals Search And Download.
Turn Double-Width, Double-Height Printing On/Off
Turn Double-Width, Double-Height Printing On/Off
ASCII Code FS W n
Hex Code
Dec Code
Purpose
28 57 n
1C 87 n
Turns on/off double-width, double height printing of all
characters, spaces, and intercharacter spacing (set with the
FS S or FS T commands) on the same line as this command,
as follows:
n = 0 or 48Turns off double-width double-height
n = 1 or 49Turns on double-width double-height
Where:
n = 0, 1, 48, 49
Comment
The baseline of the line including double-width, double-height
characters moves down 24/180 inch, and the line spacing also
increases 24/180 inch.
The default is Normal (non double-width double-height)
printing.
Turn Double-Width Printing On/Off
ASCII Code ESC W n
Hex Code
Dec Code
Purpose
1B 57 n
27 87 n
Turns on/off double-width printing of all characters, spaces, and
intercharacter spacing (set with the ESC SP command)
following this command as follows:
n = 1 or 49Turns on double-width
n = 0 or 48Turns off double-width
Comment
This command works under both ASCII and Hangul modes.
The default is Normal (non double-width) printing.
77
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Turn Extending Table Character On/Off
ASCII Code FS v n
Hex Code
Dec Code
Purpose
1C 76 n
28 118 n
Turns on/off extending table characters, as follows:
n = 0 or 48Cancels extending table characters
n = 1 or 49Selects extending table characters
Where:
n = 0, 1, 48, 49
Comment
This command extends the table characters so they touch in
both horizontal and vertical directions.
The limitation of extension is ½ inch.
Our printer could extend the table characters in the range of
A6A1H to A6E4H in the Hangul Complete font.
The default is Table Character not extended.
Turn On/Off OCRB Selection
ASCII Code ASSC 0 z n
Hex Code
Dec Code
Purpose
ASSC 30 7A n
ASSC 48 122 n
Turns on/off OCRB selection as follows:
n = 0 or 48Turns off OCRB selection
n = 1 or 49Turns on OCRB selection
Where:
n = 0, 1, 48, 49
Comment
When OCRB selection is turned on, the OCRB character can
be printed out.
This command affects the front panel setting of “OCRB
Selection.”
This command works only in DBCS mode.
The default is n = 0.
78
Download from Www.Somanuals.com. All Manuals Search And Download.
Turn Proportional Mode On/Off
Turn Proportional Mode On/Off
ASCII Code ESC p n
Hex Code
Dec Code
Purpose
1B 70 n
27 112 n
Selects either proportional or fixed character spacing according
to the following values:
n = 0 or 48Returns to current fixed character pitch.
n = 1 or 49Selects proportional spacing.
Comment
Changes made to the fixed-pitch setting with the ESC P, ESC
M, or ESC g commands during proportional mode take effect
when the printer exits proportional mode.
Characters from 0x80 to 0xFE cannot be printed in this mode
This command affects “Prop. Spacing” on the front panel.
This command only affects the character printing in ASCII
mode.
Turn Underline On/Off
ASCII Code ESC - n
Hex Code
Dec Code
Purpose
1B 2D n
27 45 n
Turns on/off printing of a line below all characters and spaces
following the command:
n = 0 or 48 Turns underline off
n = 1 or 49 Turns underline on
Where:
n = 0, 1, 48, 49
Comment
The underline does not print across the horizontal space with
the following commands: ESC $, ESC \ (when the print position
is moved to the left), and HT.
Graphics characters are not underlined.
This command does not change line spacing.
The default is Normal (non-underlined) style.
79
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter
3
Configuring The KSSM Emulation With Control Codes
Turn Underline On/Off (Hangul Extension)
ASCII Code FS - n
Hex Code
Dec Code
Purpose
1C 2D n
28 45 n
Turns on/off printing of a line below all characters and spaces
following the command:
n = 0 or 48Turns underline off
n = 1 or 49Prints one dot underline
n = 2 or 50Prints two dot underline
Where:
n = 0, 1, 48, 49
Comment
If the character is in vertical printing mode, the line prints over
the character and becomes overscored.
Underline and overscore each increase 4/180 inch line spacing.
The default is Normal (non-underlined) style.
80
Download from Www.Somanuals.com. All Manuals Search And Download.
A
Standard ASCII Character
Set
0
B7
0
BITSB6
1
B5
B4 B3 B2 B1
KEY
33
27
OCTAL
DECIMAL
HEX
1
0
1
1
ESC
1B
ASCII CHARACTER
B7
0
0
0
0
1
1
1
1
B6
0
0
1
1
1
0
0
1
1
1
B5
0
1
0
0
0
1
BITS
COLUMN
B4 B3 B2 B1
ROW
0
0
1
2
3
4
5
6
7
0
0
0
20
16
10
40
32
20
60
48
30
100
64
40
120
80
50
140
96
60
160
112
70
0
@
P
p
q
0 0
0
0
NUL
SOH
DLE
SP
!
1
21
41
61
101
121
141
161
DC1
1
A
B
Q
R
a
1
1
17
11
33
21
49
31
65
41
81
51
97
61
113
71
0 0
0 0
0
1
1
0
1
2
(XON)
2
2
2
22
18
12
42
34
22
62
50
32
102
66
42
122
82
52
142
98
62
162
114
72
DC2
"
2
b
r
STX
ETX
EOT
ENQ
ACK
BEL
3
3
3
23
19
13
43
35
23
63
51
33
103
67
43
123
83
53
143
99
63
163
115
73
DC3
0 0
1
1
3
4
#
$
3
4
5
6
7
C
D
E
F
S
T
c
d
e
f
s
t
(XOFF)
4
4
4
24
20
14
44
36
24
64
52
34
104
68
44
124
84
54
144
100
64
164
116
74
DC4
NAK
SYN
0 1
0 1
0 1
0 1
1 0
0
0
1
1
0
0
1
0
1
0
5
5
5
25
21
15
45
37
25
65
53
35
105
69
45
125
85
55
145
101
65
165
117
75
5
6
7
8
9
%
U
V
u
v
w
6
6
6
26
22
16
46
38
26
66
54
36
106
70
46
126
86
56
146
102
66
166
118
76
&
'
7
7
7
27
47
39
27
67
55
37
107
71
47
127
87
57
147
103
67
167
119
77
ETB 23
G
W
g
17
10
8
8
30
24
18
50
40
28
70
56
38
110
72
48
130
88
58
150
104
68
170
120
78
BS
HT
LF
VT
CAN
(
)
8
9
:
H
I
X
Y
Z
[
h
i
x
y
z
{
11
9
9
31
51
41
29
71
57
39
111
73
49
131
89
59
151
105
69
171
121
79
1 0
0
1
EM 25
19
12
10
0 A
32
26
1A
52
42
2A
72
58
3A
112
74
4A
132
90
5A
152
106
6A
172
122
7A
1 0
1 0
1
1
0
1
10
11
SUB
J
K
j
*
13
33
53
73
113
133
153
173
ESC
+
;
k
11
0 B
27
1B
43
2B
59
3B
75
4B
91
5B
107
6B
123
7B
14
12
0 C
34
54
44
2C
74
60
3C
114
76
4C
134
92
5C
154
108
6C
174
124
7C
1 1
1 1
0
0
0
1
12
13
FF
FS
28
1C
<
=
L
\
l
|
,
15
35
55
75
115
135
155
175
CR
GS
-
M
]
m
}
13
0 D
29
1D
45
2D
61
3D
77
4D
93
5D
109
6D
125
7D
16
14
0 E
36
30
1E
56
46
2E
76
62
3E
116
78
4E
136
94
5E
156
110
6E
176
126
7E
1 1
1 1
1
1
0
1
14
15
SO
SI
RS
US
.
/
>
?
N
O
n
o
~
^
17
15
0 F
37
31
1F
57
47
2F
77
63
3F
117
79
4F
137
95
5F
157
111
6F
177
127
7F
_
DEL
81
Download from Www.Somanuals.com. All Manuals Search And Download.
Appendix A
82
Download from Www.Somanuals.com. All Manuals Search And Download.
Appendix B Code Table
84
Download from Www.Somanuals.com. All Manuals Search And Download.
Korean Standard Code Table (KSC5601)
85
Download from Www.Somanuals.com. All Manuals Search And Download.
Appendix B Code Table
86
Download from Www.Somanuals.com. All Manuals Search And Download.
Korean Standard Code Table (KSC5601)
87
Download from Www.Somanuals.com. All Manuals Search And Download.
Appendix B Code Table
88
Download from Www.Somanuals.com. All Manuals Search And Download.
Korean Standard Code Table (KSC5601)
89
Download from Www.Somanuals.com. All Manuals Search And Download.
Appendix B Code Table
90
Download from Www.Somanuals.com. All Manuals Search And Download.
Korean Standard Code Table (KSC5601)
91
Download from Www.Somanuals.com. All Manuals Search And Download.
Appendix B Code Table
92
Download from Www.Somanuals.com. All Manuals Search And Download.
Korean Standard Code Table (KSC5601)
93
Download from Www.Somanuals.com. All Manuals Search And Download.
Appendix B Code Table
94
Download from Www.Somanuals.com. All Manuals Search And Download.
C
Contact Information
Printronix Customer Support Center
IMPORTANT
Please have the following information available prior to calling the
Printronix Customer Support Center:
•
•
•
•
Model number
Serial number (located on the back of the printer)
Installed options (i.e., interface and host type if applicable to the problem)
Configuration printout:
Line Matrix Printer
Press PRT CONFIG on the control panel, then press Enter.
•
•
•
Is the problem with a new install or an existing printer?
Description of the problem (be specific)
Good and bad samples that clearly show the problem (faxing of these
samples may be required)
Americas
Europe, Middle East, and Africa (31) 24 6489 311
Asia Pacific (65) 6548 4114
(714) 368-2686
Printronix Supplies Department
Contact the Printronix Supplies Department for genuine Printronix supplies.
Americas (800) 733-1900
Europe, Middle East, and Africa (33) 1 46 25 1900
Asia Pacific
(65) 6548 4116
or (65) 6548 4182
95
Download from Www.Somanuals.com. All Manuals Search And Download.
Appendix C Contact Information
Corporate Offices
Printronix, Inc.
14600 Myford Road
P.O. Box 19559
Irvine, CA 92623-9559
Phone: (714) 368-2300
Fax: (714) 368-2600
Printronix, Inc.
Nederland BV
P.O. Box 163, Nieuweweg 283
NL-6600 Ad Wijchen
The Netherlands
Phone: (31) 24 6489489
Fax: (31) 24 6489499
Printronix Schweiz GmbH
42 Changi South Street 1
Changi South Industrial Estate
Singapore 486763
Phone: (65) 6542 0110
Fax: (65) 6546 1588
96
Download from Www.Somanuals.com. All Manuals Search And Download.
Index
A
B
D
C
Cancel DBCS Character Half Width and Super/
Subscript Printing, 68
Cancel Double-width Printing in DBCS Mode (One
Line), 61
E
Error Handling of Illegal Code Point, LinePrinter
Plus menu, 24
Cancel the Alignment of SBCS Character with
DBCS Character, 35
Cancel Vertical Printing (Select Horizontal Printing),
66
F
97
Download from Www.Somanuals.com. All Manuals Search And Download.
M
G
Master Select One-Line Attribute In DBCS Mode,
49
H
P
I
K
KS emulation
R
KS emulation menu
KSSM emulation menu
S
L
Select Double-width Printing in DBCS Mode (One
Line), 61
98
Download from Www.Somanuals.com. All Manuals Search And Download.
T
Turn Double-width, Double-height Printing On/Off,
77
Set Intercharacter Spacing of DBCS Character
(Hangul Extension), 69
U
Set Intercharacter Spacing of SBCS Character
(Hangul Extension), 70
Z
99
Download from Www.Somanuals.com. All Manuals Search And Download.
100
Download from Www.Somanuals.com. All Manuals Search And Download.
Download from Www.Somanuals.com. All Manuals Search And Download.
*179981-001*
179981-001B
Download from Www.Somanuals.com. All Manuals Search And Download.
|