




KSSM Emulation For The P7000 H-Series Of Line Matrix Printers Programmer’s Reference Manual

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.
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.





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.
Read and comply with all information highlighted under special headings:
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.



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.

ENTER
Figure 1. The Control Panel
Message Display · Ribbon Life Indicator



Load Config. Save Config. Print Config. Delete Config. Power-Up
Current Short* Current Full Factory Power-Up All 1 2 3 4 5 6 7 8
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.
To print a configuration, follow the procedure in Table 1.

Table 1. Printing Configurations



Table 1. Printing Configurations (continued)

press the PRT CONFIG key, and then press ENTER.

EMULATION QUICK SETUP
CONFIG. CONTROL
HOST INTERFACE
PRINTER CONTROL
See the User’s Manual
See the User’s Manual
Host Interface Graphic Spd Up Typeface DBCS CPI Select LPI DBCS ASCII Style Ribbon End Point Reset Cmd CFG Ld Load Config. Save Config. Power-Up Config.
See the User’s Manual
Character Sets Define CR Code CR Bold Select Auto LF Define LF Code Printer Select 20 CPI Condensed Alt Set 80-9F CPI/LPI Select Host Command Font Attributes Graphics Spd Up Page Format Reset Cmd CFG Ld Error Handling
DIAGNOSTICS
USER
See the User’s Manual
See the User’s Manual
Figure 2. Configuration Menu Overview
LinePrinter+ · Printer Protocol


The example in Table 2 explains how to change the LPI value.
Table 2. Changing Configurations


Moving Within The Configuration Menu
Table 2. Changing Configurations (continued)

To SAVE CHANGES AS A CONFIGURATION that is stored in memory and can be loaded later:



Load Config. Save Config. Print Config. Delete Config. Power-Up
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.
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.

Saving Your New Configuration
Table 3. Saving Configurations



Table 3. Saving Configurations (continued)

to print the configuration, then continue with the following steps.

EMULATION
CPI/LPI Select Font Attributes
KSSM (see page 25)
Enable* Ignore All Ignore CPI Ignore LPI Ignore Unidir. Ignore Pg. Fmt.
Normal* Enhanced Turbo Match Typeface
10.0 CPI* 12.0 CPI 13.3 CPI 15.0 CPI 17.1 CPI 20.0 CPI Select LPI
LQ* Near LQ Normal Hi-Speed Super Hi-Speed Ultra Hi-Speed Styling Type
Myungjo* Gothic High Density
5.0 CPI 6.0 CPI* 6.7 CPI 7.5 CPI 8.5 CPI 9.0 CPI 10.0 CPI Other CPI
Disable* Enable Bold Print
Disable* Forward Slant Backward Slant Slashed Zero
DBCS Mode* ASCII Mode DBCS ASCII Style
Normal* 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)
(see the next page)
Disable* Power-Up Config. Current Config. Factory Config.
Illegal Code Pt.
Figure 3. LinePrinter Plus Menu

(from the previous page)
Skip Form Length Form Width
Abs. Length IN
Abs. Width IN
Disable* 1/2 inch 2/3 inch 5/6 inch 1 inch
11.0* inches (0.1-24) Abs. Length MM
13.6* inches (0.1-13.6) Abs. Width MM
0* columns (0-369) Right Margin
279.4* mm (0.1-609.6) Funct. of Lines
345.4* millimeters (0.1-345.4) Funct. of CPI
0* columns (0-369) Bottom Margin

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:
2 3 4 5 6 7 8 9 10 11 12
Bottom of 8 LPI Linespace
Bottom of 6 LPI Linespace
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.

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.
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.
You can set the bottom, left, and right form margins.
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.
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.

EMULATION
KSSM
Auto LF Define LF
LF = CR + LF* LF = LF
IBM PC* Epson Set
Alt. Set 80-9F
Figure 4. KSSM Emulation Menu
This parameter selects a character set for the KSSM emulation.

Define CR Code
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.
Alt. Set 80-9F • Control Code. Interprets data in the range of hex 80 through hex 9F as a control code.

KSSM Emulation
“Emulation” refers to the ability of a printer to execute the commands of other printer control languages.

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
Select LPI 6.0
Select CPI 10.0
DBCS/ASCII Mode DBCS Mode
DBCS ASCII Style Normal
Text Position Bottom of Line
Taller 15 CPI Disable
Graphics Spd Up Normal
Left Margin 0 columns
Right Margin 0 columns
Bottom Margin 0 lines
Form Length 11.0 inches 279.4 millimeters 66 lines
Form Width 13.6 inches 345.4 millimeters 163 characters
Reset Cmd CFG Ld Disable
Illegal Code Pt. Normal
Define CR Code CR = CR

Table 4. Factory Settings
Define LF Code LF = CR + LF
20 CPI Condensed Enable
Alt Set 80-9F Control Code
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):
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:

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 ESC | } ; 1B 7C 7D 3B 27 124 125 59
ASSC ESC | } ; q 1B 7C 7D 3B 71 27 124 125 59 113
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).
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.
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.

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.
Setting the Page Format
Set Bottom Margin ESC N n 67 Cancel Bottom Margin ESC O 67 Set Left Margin ESC 1 n 70 Set Page Length in Inches ESC C NUL n 71 Set Page Length in Lines ESC C n 71 Set Right Margin ESC Q n 72
Moving the Print Position
Advance Print Position Vertically ESC J n 34 Backspace BS 35 Carriage Return CR 39 Form Feed FF 44 Line Feed LF 46 Set Absolute Horizontal Print Position ESC $ n1 n2 67 Set Relative Horizontal Print Position ESC \ n1 n2 72 Tab Horizontally HT 75 Tab Vertically VT 75 Turn Auto-wrap Around On/Off ESC d n 76
Select 1/6-inch Line Spacing ESC 2 50 Select 1/8-inch Line Spacing ESC 0 50 Set n/60-inch Line Spacing ESC A n 66 Set n/180-inch Line Spacing ESC 3 n 66 Set Horizontal Tabs ESC D n1 n2 … nk NUL 68 Set Vertical Tab Channels ESC / m 73 Set Vertical Tabs ESC B n1 n2 … nk NUL 73 Set Vertical Tabs in VFU Channels ESC b m n1 … nk NUL 74
Control Code Index · Setting the Units

FUNCTION ASCII CODE PAGE
Define Pattern for Special Printing Effect ESC ( X n1 n2 a1 a2 a3 40 Master Select ESC ! n 47 Select 10 CPI ESC P 51 Select 12 CPI ESC M 51 Select 15 CPI ESC g 51 Select an International Character Set ESC R n 54 Select Bold Font ESC E 56 Cancel Bold Font ESC F 56 Select Character Style ESC q n 56 Select Character Table ESC t n 57 Select Condensed Printing SI 57 Select Condensed Printing ESC SI 58 Cancel Condensed Printing DC2 58 Select Double-strike Printing ESC G 59 Cancel Double-strike Printing ESC H 59 Select Double-width Printing (One Line) SO 60 Cancel Double-width Printing (One Line) ESC SO 60 Cancel Double-width Printing (One Line) DC4 60 Select Italic Font ESC 4 63 Cancel Italic Font ESC 5 63 Select Print Quality ESC x n 63 Select Superscript/Subscript Printing ESC S n 64 Cancel Superscript/Subscript Printing ESC T 65 Set Intercharacter Space ESC SP n 69 Turn Double-height Printing On/Off ESC w n 76 Turn Double-width Printing On/Off ESC W n 77 Turn Proportional Mode On/Off ESC p n 79 Turn Underline On/Off ESC - n 79
Enable Printing of Upper Control Codes ESC 6 42 Enable Upper Control Codes ESC 7 43

Select Bit Image ESC * m nL nH d1 … dk 55 Select 60-dpi Graphics ESC K nL nH d1 d2 … dk 52 Select 120-dpi Graphics ESC L nL nH d1 d2 … dk 52 Select 120-dpi Graphics ESC Y nL nH d1 d2 … dk 53 Select 240-dpi Graphics ESC Z nL nH d1 d2 … dk 53 Reassign Bit-image Mode ESC ? n m 50
Data and Memory Control
Cancel Line CAN 39 Delete Last Character in Buffer DEL 41 Initialise Printer ESC @ 45 Select Printer DC1 64 Deselect Printer DC3 64
Align SBCS Character with DBCS Character FS U 34 Cancel the Alignment of SBCS Character with DBCS Character FS V 35 Define User-defined Chinese Character FS 2 a1 a2 d1 d2 d3 …d72 41 Divided Hangul Double Height FS X n 42 Master Select in DBCS Mode FS ! n 48 Pair Two Characters in Vertical Printing FS D d1 d2 49 Select DBCS Print Quality FS x n 59 Select Double-width Printing in DBCS Mode (One Line) FS SO 61 Cancel Double-width Printing in DBCS Mode (One Line) FS DC4 61 Select DBCS Mode FS & 62 Cancel DBCS Mode FS . 62 Select Hangul Myunjo/Gothic Style FS k n 62 Select DBCS Super/Subscript Printing FS r n 65 Select Vertical Printing FS J 65 Cancel Vertical Printing (Select Horizontal Printing) FS K 66 Set DBCS Character Half Width FS SI 68 Cancel DBCS Character Half Width and Super/Subscript Printing FS DC2 68 Set Intercharacter Spacing of DBCS Character FS S n1 n2 69 Set Intercharacter Spacing of SBCS Character FS T n1 n2 70 Turn Double-width, Double-height Printing On/Off FS W n 77
Control Code Index · Printing Graphics · Hangul Extension Commands

FUNCTION ASCII CODE PAGE
Hangul Extension Commands (continued)
Turn Extending Table Character On/Off FS v n 78 Turn Underline On/Off FS - n 80
Barcode Printing SSCC c t 36 Graphics Printing: Select Bit Image SSCC * m nL nH d1…dk 45 Turn On/Off OCRB Printing ASSC 0 z n 78 Define User Defined Character ASSC 0 2 40 Font Expansion ASSC 0 e 43 Graphic Printing ASSC 0 * 44 Master Select One-Line Attribute ASSC 0 ! 49
ASCII Code ESC J n
Hex Code 1B 4A n
Dec Code 27 74 n
Purpose Advances the vertical print position n/180 inch.
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.
ASCII Code FS U
Hex Code 28 85
Dec Code 1C 55
Purpose 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.
Superset Command

Cancel The Alignment of SBCS Character With
ASCII Code FS V
Hex Code 28 86
Dec Code 1C 86
Purpose 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.
Purpose 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.
ASCII Code BS · Hex Code 08 · Dec Code 8

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 SSCC 63 t; d data d [; 4E n ; xxxx ; yyyy ][; 58 mmmm ][; 50 p ] [; 43 ][; 48 hh][; 44 ][; 46 q data q]
Dec Code SSCC 99 t; d data d [; 78 n ; xxxx ; yyyy ][; 88 mmmm ][; 80 p ] [; 67 ][; 72 hh][; 68 ][; 70 q data q]
t (ASCII) t (hex) Selects Barcode
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
8 1 F G
EAN-8 EAN-13
FIM German I-2/5 Interleaved 2/5
MSI PDF 417
4 O P R
PostBar POSTNET Royal Mail
UPC-A UPC-E UPC Shipping
Where: d = barcode delimiter, which can be any character not used in the barcode data field.
The following parameters are optional:
Telepen UCC/EAN-128

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:
Near LQ 1/120 1/120
Super Hi-Speed 1/180 1/90
Ultra Hi-Speed 1/180 1/90
The possible magnifications are listed in the table below:

X4 X3 X2 X1 X1.5 X1A X1B *X1C *X1D *X1E X4 X3 X2 X2A X1 X1A X1B 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 X2 X1 X2 X1 X2 X1 X4 X3 X2 X1A X1 X1A X1 X3 X2 X1
Interleaved 2/5 German I-2/5 UPC Shipping Telepen
MSI Code 128 UCC/ EAN-128 Code 93 UPS 11 UPC-A UPC-E EAN 8 EAN 13 Codabar Postnet Royal Mail Postbar FIM 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: 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)
Barcode Type Magnification · Code 39

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.
Purpose Sounds the printer’s beeper for 1/10 second.
Purpose Clears all printable characters and bit-image graphics on the current line.
Moves the print position to the left-margin position.
Purpose 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.

Define Pattern for Special Printing Effect
ASCII Code ESC ( X n1 n2 a1 a2 a3 Hex Code 1B 28 58 n1 n2 a1 a2 a3 Dec Code 27 40 88 n1 n2 a1 a2 a3 Purpose Defines the pattern to be used in background or to fill up outlined characters.
n2 = 0
a1 = 0, 1
0
0
Comment This command covers interline spacing for our printer in both DBCS and SBCS modes.
ASCII Code ASSC 0 2 a1 a2 d1...d144
Hex Code ASSC 30 32 a1 a2 d1...d144
Dec Code ASSC 48 50 a1 a2 d1...d144
Purpose 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.

Define User-Defined Chinese Character
ASCII Code FS 2 a1 a2 d1 d2 d3 …d72 Hex Code 1C 50 a1 a2 d1 d2 d3 …d72 Dec Code 28 32 a1 a2 d1 d2 d3 …d72 Purpose Sets the parameters for user-defined characters
a1 a2 Character code of the character to be user-defined.
d1 d2 d3 … d72
Data to define the character in which the cell size is 24x24.
Where:
C9A1H < a1a2 < C9FEH FEA1H < a1a2 < FEFEH
Comment The user-defined character can be printed by sending a1a2 to the printer.
Purpose 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).
ASCII Code DEL · Hex Code 7F · Dec Code 127

Divided Hangul Double Height
ASCII Code FS X n
Hex Code 28 58 n
Dec Code 1C 88 n
Purpose Turns on/off divided double height printing of all characters as follows:
n = 0 Turns off divided double height
n = 1 Double height upper part of character
n = 2 Double height lower part of character
n = 3 Double height whole character
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.
ASCII Code ESC 6
Hex Code 1B 36
Dec Code 27 54
Purpose 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.

Enable Upper Control Codes
ASCII Code ESC 7
Hex Code 1B 37
Dec Code 27 55
Purpose 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.
ASCII Code ASSC 0 e n1 n2
Hex Code ASSC 30 65 n1 n2
Dec Code ASSC 48 101 n1 n2
Purpose 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.
This control code does not function while in non-DBCS mode.

Form Feed
Purpose 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.
ASCII Code ASSC 0 * m nL nH d1...dk
Hex Code ASSC 30 2A m nL nH d1...dk
Dec Code ASSC 48 42 m nN nH d1...dk
Purpose 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 m is ASSC*
0 180 180 24 3
1 90 180 24 3
2 120 120 16 2
3 90 144 24 3
4 90 120 16 2
5 90 90 16 2

ASCII Code SSCC * m nL nH d1…dk
Hex Code SSCC 2A m nL nH d1…dk
Dec Code SSCC 42 m nL nH d1…dk
Purpose 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
Comment Dot density:
Parameter m in ESC *
48 90 90 12 2
49 120 120 16 2
50 90 90 16 2
ASCII Code ESC @
Hex Code 1B 40
Dec Code 27 64
Purpose Reloads the power-up configuration if “Reset Cmd CFG Ld” is Enable. Otherwise, resets to the internal default value.

Line Feed
Purpose 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.
ASCII Code LF · Hex Code 0A · Dec Code 10

ASCII Code ESC ! n
Hex Code 1B 21 n
Dec Code 27 33 n
Purpose 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:
Bit On/Off Hex Dec Function Equivalent
0 Off 00 0 Select 10 cpi ESC P
On 01 1 Select 12 cpi ESC M
1 Off 00 0 Cancels proportional ESC p 0
On 02 1 Selects proportional ESC p 1
2 Off 00 0 Cancels condensed DC2
On 04 1 Selects condensed SI
3 Off 00 0 Cancels bold ESC F
On 08 1 Selects bold ESC E
4 Off 00 0 Cancels double-strike ESC H
On 10 16 Selects double-strike ESC G
5 Off 00 0 Cancels double-width ESC W 0
On 20 32 Selects double-width ESC W 1
6 Off 00 0 Cancels italics ESC 5
On 40 64 Selects italics ESC 4
7 Off 00 0 Cancel underline ESC - 0
On 80 128 Selects underline ESC - 1
Comment This command cancels any attributes or enhancements that are not selected.
Master Select

Master Select In DBCS Mode
ASCII Code FS ! n
Hex Code 1C 21 n
Dec Code 28 33 n
Purpose Selects any combination of several font attributes and enhancements by setting or clearing the appropriate bit in the n parameter, as shown below:
Bit On/Off Hex Dec Function Equivalent
0 Off 00 0 Cancel vertical printing FS K
On 01 1 Select Vertical printing FS J
1 Off 00 0 Cancel half width FS DC2
On 02 1 Select half width FS SI
2 Off 00 0 Cancel double width ESC W 0
On 04 1 Select double width ESC W 1
3 Off 00 0 Cancel double height FS X 0
On 08 1 Select double height FS X 3
4 Off 00 0 Select quarter printing FS r n
On 10 16 Cancel quarter printing FS DC2
5 Off 00 0 Select superscript FS r 0
On 20 32 Select subscript FS r 1
6 Off 00 0
7 Off 00 0 Cancel underline FS - 0
On 80 128 Selects underline FS - 1
Comment This command cancels any attributes or enhancements that are not selected.
On 40 64

Master Select One-Line Attribute In DBCS Mode
ASCII Code ASSC 0 ! n
Hex Code ASSC 30 21 n
Dec Code ASSC 48 33 n
Purpose Where: 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
00 04 0 4 Cancel double width Select double width
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.
ASCII Code FS D d1 d2 Hex Code 1C 44 d1 d2 Dec Code 28 68 d1 d2 Purpose 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.
2 Off On · 3 Off On

Reassign Bit-image Mode
ASCII Code ESC ? n m
Hex Code 1B 3F n m
Dec Code 27 63 n m
Purpose 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.
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
ASCII Code ESC 2
Hex Code 1B 32
Dec Code 27 50
Purpose 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.”
ASCII Code ESC 0
Hex Code 1B 30
Dec Code 27 48
Purpose 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.”

ASCII Code ESC P
Hex Code 1B 50
Dec Code 27 80
Purpose 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.
ASCII Code ESC M
Hex Code 1B 4D
Dec Code 27 77
Purpose 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.
ASCII Code ESC g
Hex Code 1B 67
Dec Code 27 103
Purpose 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.
Select 10 CPI

Select 60-dpi Graphics
ASCII Code ESC K nL nH d1 d2 … dk Hex Code 1B 4B nL nH d1 d2 … dk Dec Code 27 75 nL nH d1 d2 … dk Purpose 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
Comment The ESC * 0 command is identical to this command.
ASCII Code ESC L nL nH d1 d2 … dk Hex Code 1B 4C nL nH d1 d2 … dk Dec Code 27 76 nL nH d1 d2 … dk Purpose 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
Comment The ESC * 1 command is identical to this command.

ASCII Code ESC Y nL nH d1 d2 … dk Hex Code 1B 59 nL nH d1 d2 … dk Dec Code 27 89 nL nH d1 d2 … dk Purpose 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
Comment The ESC * 2 command is identical to this command.
ASCII Code ESC Z nL nH d1 d2 … dk Hex Code 1B 5A nL nH d1 d2 … dk Dec Code 27 90 nL nH d1 d2 … dk Purpose 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
Comment The ESC * 3 command is identical to this command.
Select 120-dpi Graphics

Select an International Character Set
ASCII Code ESC R n
Hex Code 1B 52 n
Dec Code 27 82 n
Purpose Selects the set of characters printed for specific character codes, as listed below:
n = 0 USA

ASCII Code ESC * m nL nH d1 … dk Hex Code 1B 2A m nL nH d1 … dk Dec Code 27 42 m nL nH d1 … dk Purpose 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 *
0 60 60 8 1
1 120 60 8 1
2 120 60 8 1
3 240 60 8 1
4 80 60 8 1
6 90 60 8 1
32 60 180 24 3
33 120 180 24 3
38 90 180 24 3
39 180 180 24 3
40 360 180 24 3
Where: 0

Select Bold Font
ASCII Code ESC E
Hex Code 1B 45
Dec Code 27 69
Purpose 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.
ASCII Code ESC F
Hex Code 1B 46
Dec Code 27 70
Purpose 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.
ASCII Code ESC q n
Hex Code 1B 71 n
Dec Code 27 113 n
Purpose 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
Comment This command does not affect graphics characters.

ASCII Code ESC t n
Hex Code 1B 74 n
Dec Code 27 116 n
Purpose Selects the character table to be used for printing among the two character tables described below:
n = 0 or 48 Character table 0 0x80-0x9f Control code, 0xa0-0xff Italic
n = 1 or 49 Character table 1 0x80-0xff Printable code, IBM PC437
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.”
Purpose Enters condensed mode, in which character width is reduced as follows:
Selected pitch Condensed pitch
10 cpi 17.14 cpi
12 cpi 20 cpi
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.

Select Condensed Printing
ASCII Code ESC SI
Hex Code 1B 0F
Dec Code 27 15
Purpose Enters condensed mode, in which character width is reduced as follows:
Selected pitch Condensed pitch
10 cpi 17.14 cpi
12 cpi 20 cpi
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.
Purpose Cancels condensed printing selected by the SI or ESC SI commands.
Comment The default is Normal (non-condensed) printing.

Select DBCS Print Quality
ASCII Code FS x n
Hex Code 1C 78 n
Dec Code 28 120 n
Purpose 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
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.
ASCII Code ESC G
Hex Code 1B 47
Dec Code 27 71
Purpose 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.
ASCII Code ESC H
Hex Code 1B 48
Dec Code 27 72
Purpose Cancels double-strike printing selected with the ESC G command.
Comment The default is Normal (non double-strike) style.

Select Double-width Printing (One Line)
Purpose 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.
ASCII Code ESC SO
Hex Code 1B 0E
Dec Code 27 14
Purpose 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.
Purpose 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.

Select Double-width Printing in DBCS Mode (One
ASCII Code FS SO
Hex Code 1C 0E
Dec Code 28 14
Purpose 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.
ASCII Code FS DC4
Hex Code 28 14
Dec Code 1C 20
Purpose 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.

Select DBCS Mode
ASCII Code FS &
Hex Code 1C 26
Dec Code 28 38
Purpose 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.
ASCII Code FS .
Hex Code 1C 2E
Dec Code 28 46
Purpose Cancels DBCS mode. The printer is set back to ASCII mode.
Comment A few ESC commands only work in ASCII mode.
This command affects the front panel setting of “DBCS/ ASCII MODE.”
The default is DBCS mode.
ASCII Code FS k n
Hex Code 1C 6B n
Dec Code 28 107 n
Purpose Selects Myunjo/Gothic style according to the following values:
n = 0 or 2 Set Myunjo style n = 1 or 3 Set Gothic style
Comment The default is Myunjo style.

ASCII Code ESC 4
Hex Code 1B 34
Dec Code 27 52
Purpose 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.
ASCII Code ESC 5
Hex Code 1B 35
Dec Code 27 53
Purpose 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.
ASCII Code ESC x n
Hex Code 1B 78 n
Dec Code 27 120 n
Purpose 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
Comment This command affects the front panel setting of “Typeface.”
Select Italic Font

Select Printer
Purpose 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.
Purpose Deselects the printer.
Comment The printer cannot be reselected by pressing the online button.
ASCII Code ESC S n
Hex Code 1B 53 n
Dec Code 27 83 n
Purpose 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
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.

ASCII Code ESC T
Hex Code 1B 54
Dec Code 27 84
Purpose Cancels super/subscript printing selected by the ESC S command.
Comment The default is Normal (non-super/subscript) printing.
ASCII Code FS r n
Hex Code 28 72 n
Dec Code 1C 114 n
Purpose 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
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).
ASCII Code FS J
Hex Code 28 4A
Dec Code 1C 74
Purpose 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).
Cancel Superscript/Subscript Printing

Cancel Vertical Printing (Select Horizontal Printing)
ASCII Code FS K
Hex Code 28 4B
Dec Code 1C 75
Purpose 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).
ASCII Code ESC A n
Hex Code 1B 41 n
Dec Code 27 65 n
Purpose Sets the line spacing to n/60 inch.
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.”
ASCII Code ESC 3 n
Hex Code 1B 33 n
Dec Code 27 51 n
Purpose Sets the line spacing to n/180 inch.
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 Absolute Horizontal Print Position
ASCII Code ESC $ n1 n2
Hex Code 1B 24 n1 n2
Dec Code 27 36 n1 n2
Purpose Moves the horizontal print position to the position specified by the following formula:
Horizontal position = n1 + (n2 * 256) + left margin.
0
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.
ASCII Code ESC N n
Hex Code 1B 4E n
Dec Code 27 78 n
Purpose 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.
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.
ASCII Code ESC O
Hex Code 1B 4F
Dec Code 27 79
Purpose Cancels the bottom margin settings.
Comment This was formerly called the “Cancel skip-over-perforation” command.
This command affects the front panel setting of “Bottom Margin.”

Set DBCS Character Half Width
ASCII Code FS SI
Hex Code 28 0F
Dec Code 1C 15
Purpose 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.
ASCII Code FS DC2
Hex Code 28 12
Dec Code 1C 18
Purpose 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.
ASCII Code ESC D n1 n2 … nk NUL
Hex Code 1B 44 n1 n2 … nk 00
Dec Code 27 68 n1 n2 … nk 00
Purpose 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
Send an ESC D NUL command to cancel all tab settings.
The tab settings move to match any movement in the left margin.

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.
ASCII Code ESC SP n
Hex Code 1B 20 n
Dec Code 27 32 n
Purpose Increases the space between characters; the unit is according to the current density.
Comment The extra space set with this command doubles during double- width mode.
ASCII Code FS S n1 n2 Hex Code 28 53 n1 n2 Dec Code 1C 83 n1 n2 Purpose 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.
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.
Set Intercharacter Space

Set Intercharacter Spacing Of SBCS Character (Hangul Extension)
ASCII Code FS T n1 n2 Hex Code 28 54 n1 n2 Dec Code 1C 84 n1 n2 Purpose 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.
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.
ASCII Code ESC I n
Hex Code 1B 6C n
Dec Code 27 108 n
Purpose Sets the left margin to n columns in the current character pitch, as measured from the left-most printable column.
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.

Set Page Length In Inches
ASCII Code ESC C NUL n
Hex Code 1B 43 00 n
Dec Code 27 67 0 n
Purpose 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.
Comment Setting the page length cancels the bottom margin setting.
This command affects the front panel setting of “Abs. Length In.”
ASCII Code ESC C n
Hex Code 1B 43 n
Dec Code 27 67 n
Purpose 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.
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.”

Set Relative Horizontal Print Position
ASCII Code ESC \ n1 n2
Hex Code 1B 5C n1 n2
Dec Code 27 92 n1 n2
Purpose 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).
0
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.
ASCII Code ESC Q n
Hex Code 1B 51 n
Dec Code 27 81 n
Purpose Sets the right margin to n columns in the current character pitch, as measured from the left-most printable column.
Where: 1
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.

Set Vertical Tab Channels
ASCII Code ESC / m
Hex Code 1B 2F m
Dec Code 27 47 m
Purpose The value for m specifies the number of the tab sets being changed; these sets of tabs are called vertical formatting unit (VFU) channels.
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).
ASCII Code ESC B n1 n2 … nk NUL
Hex Code 1B 42 n1 n2 … nk 00
Dec Code 27 66 n1 n2 … nk 0
Purpose 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
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.

Set Vertical Tabs In VFU Channels
ASCII Code ESC b m n1 … nk NUL
Hex Code 1B 62 m n1 … nk 00
Dec Code 27 98 m n1 … nk 0
Purpose 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
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.

Purpose 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.
Purpose 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.

Turn Auto-wrap Around On/Off
ASCII Code ESC d n
Hex Code 1B 64 n
Dec Code 27 100 n
Purpose 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.
ASCII Code ESC w n
Hex Code 1B 77 n
Dec Code 27 119 n
Purpose 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
Comment No change for line spacing.
This command only takes effect in SBCS mode.
The default is Normal (non double-height) printing.

Turn Double-Width, Double-Height Printing On/Off
ASCII Code FS W n
Hex Code 28 57 n
Dec Code 1C 87 n
Purpose 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
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.
ASCII Code ESC W n
Hex Code 1B 57 n
Dec Code 27 87 n
Purpose 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.

Turn Extending Table Character On/Off
ASCII Code FS v n
Hex Code 1C 76 n
Dec Code 28 118 n
Purpose Turns on/off extending table characters, as follows:
n = 0 or 48Cancels extending table characters
n = 1 or 49Selects extending table characters
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.
ASCII Code ASSC 0 z n
Hex Code ASSC 30 7A n
Dec Code ASSC 48 122 n
Purpose Turns on/off OCRB selection as follows:
n = 0 or 48Turns off OCRB selection
n = 1 or 49Turns on OCRB selection
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.

Turn Proportional Mode On/Off
ASCII Code ESC p n
Hex Code 1B 70 n
Dec Code 27 112 n
Purpose 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.
ASCII Code ESC - n
Hex Code 1B 2D n
Dec Code 27 45 n
Purpose 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
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.

Turn Underline On/Off (Hangul Extension)
ASCII Code FS - n
Hex Code 1C 2D n
Dec Code 28 45 n
Purpose 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
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.

B7 B6 B5
KEY
B4 B2 B3 B1
33 27 1B
OCTAL DECIMAL HEX
1 0 1 1
ASCII CHARACTER
B7 0 1 B6 0 B5 0 0 1 1 0 1 1 0 0 0 1 1 0 1 1
0 1 2 3 4 5 6 7 BITS
ROW B4 B2 B3 B1
NUL
DLE
SP
P
0
A
Q
0 0 1 0
(XON)
0 0 1 0
DC2
B
R
DC3
0 0 1 1
S
(XOFF)
EOT
DC4
D
T
0 1 0 0
0 1 0 1
NAK
E
U
0 1 1 0
SYN
F
BEL
ETB
G
W
0 1 1 1
1 0 0 0
CAN
H
HT
EM
Y
1 0 0 1
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
SUB
*
:
Z
1 0 1 1
ESC
+
K
11 B
27 1B
43 2B
59 3B
75 4B
91 5B
107 6B
123 7B
14 12 C
34 28 1C
54 44 2C
74 60 3C
114 76 4C
134 92 5C
154 108 6C
174 124 7C
1 1 0 0
FS
1 1 0 1
GS
M
13 D
29 1D
45 2D
61 3D
77 4D
93 5D
109 6D
125 7D
16 14 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 0
RS
N
^
17 15 F
37 31 1F
57 47 2F
77 63 3F
117 79 4F
137 95 5F
157 111 6F
177 127 7F
1
US
O
DEL


Korean Standard Code Table (KSC5601)




Korean Standard Code Table (KSC5601)




Korean Standard Code Table (KSC5601)




Korean Standard Code Table (KSC5601)




Korean Standard Code Table (KSC5601)




Korean Standard Code Table (KSC5601)



Printronix Customer Support Center
Europe, Middle East, and Africa (31) 24 6489 311
Asia Pacific (65) 6548 4114
http://www.printronix.com/support.aspx
Contact the Printronix Supplies Department for genuine Printronix supplies.
Europe, Middle East, and Africa (33) 1 46 25 1900
Asia Pacific (65) 6548 4116 or (65) 6548 4182
http://www.printronix.com/supplies-parts.aspx
Americas (714) 368-2686 · Americas (800) 733-1900

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
Visit the Printronix web site at www.printronix.com








Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.