KSSM Emulation For The
P7000 H-Series Of Line Matrix Printers
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.
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
Warnings And Special Information
Read and comply with all information highlighted under special headings:
User’s Manual.
WARNING
CAUTION
IMPORTANT
Conditions that could harm you.
Conditions that could damage the printer or related equipment.
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.
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.
Provides configuration instructions, descriptions, and
•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
Chapter1Software Features
10
2Configuring With The
Introduction
Control Panel
IMPORTANT
PRT CONFIG
Circular
Pad
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
SET TOF
Emulation
Status Indicator
JOB SELECT
ENTER
ONLINE<LP+>
RIBBON LIFE 100%
ON LINE/CLEAR
Ribbon Life
Indicator
Figure 1. The Control Panel
VIEW/EJECT
PAPER ADVANCE
CANCEL
11
Chapter2Printing The Configuration
Printing The Configuration
CONFIG.
CONTROL
* = Factory Default
Load Config.
Save Config.Print Config.
Current Short*
Current Full
Factory
Power-Up
All
1
2
3
4
5
6
7
8
Name
Configs.
Reset Cfg.
Names
Delete Config.
Power-Up
Config.
Protect
Configs.
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
To print a configuration, follow the procedure in Table 1.
Table 1. Printing Configurations
StepKeyResultNotes
1.Make sure the printer is on.
2.
3.Allows you to make configuration
4.
5.
6.
ON LINE/CLEAR
+
UNTIL
OFFLINE
QUICK SETUP
ENTER SWITCH
UNLOCKED
OFFLINE
QUICK SETUP
OFFLINE
CONFIG. CONTROL
CONFIG. CONTROL
Load Config.
CONFIG. CONTROL
Print Config.
changes.
7.
8.Press until the desired option
OR
9.The configuration listing begins
ENTER
Print Config.
Current Short*
Print Config.
All
OFFLINE
CONFIG. CONTROL
displays.
printing.
10.Carefully tear off the configuration printout.
13
Chapter2Printing The Configuration
Table 1. Printing Configurations (continued)
StepKeyResultNotes
11.Locks the ENTER key.
ENTER SWITCH
LOCKED
+
12.
ON LINE/CLEAR
ONLINE
13.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
The Configuration Menu
OFFLINE
QUICK
SETUP
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.
ADVANCED
USER
See the
User’s Manual
CONFIG.
CONTROL
See the
User’s Manual
DIAGNOSTICS
See the
User’s Manual
HOST
INTERFACE
See the
User’s Manual
EMULATION
LinePrinter+
Printer Protocol
KSSM
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
PRINTER
CONTROL
See the
User’s Manual
Figure 2. Configuration Menu Overview
15
Chapter2The Configuration Menu
Moving Within The Configuration Menu
The example in Table 2 explains how to change the LPI value.
Table 2. Changing Configurations
StepKeyResultNotes
1.Make sure the printer is on.
2.
3.Allows you to make configuration
4.
5.
6.
7.
ON LINE/CLEAR
+
UNTIL
OFFLINE
QUICK SETUP
ENTER SWITCH
UNLOCKED
OFFLINE
CONFIG. CONTROL
OFFLINE
EMULATION
EMULATION
LinePrinter+
LinePrinter+
Printer Protocol
LinePrinter+
CPI/LPI Select
changes.
8.
9.
10.Press until the desired value
OR
CPI/LPI Select
Select LPI
Select LPI
6.0 LPI*
Select LPI
8.0 LPI
displays.
16
Moving Within The Configuration Menu
Table 2. Changing Configurations (continued)
StepKeyResultNotes
11.An asterisk indicates the value
ENTER
Select LPI
8.0 LPI*
selected.
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.
UNTIL
14.
UNTIL
OFFLINE
EMULATION
OFFLINE
CONFIG. CONTROL
15.Go to Table 3, step 4.
To USE CURRENT CONFIGURATION WITHOUT SAVING:
16.Locks the configuration
ENTER SWITCH
LOCKED
parameters.
+
17.
ON LINE/CLEAR
ONLINE
18.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
Chapter2The Configuration Menu
Saving Your New Configuration
CONFIG.
CONTROL
* = Factory Default
Load Config.
Name Configs.Reset Cfg.
Save Config.Print Config.
1
2
3
4
5
6
7
8
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:
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.
Saving Your New Configuration
Table 3. Saving Configurations
StepKeyResultNotes
1.If you are already in the configuration menu, go to step 5.
2.
3.Allows you to make configuration
4.
5.
6.
ON LINE/CLEAR
+
OFFLINE
QUICK SETUP
ENTER SWITCH
UNLOCKED
OFFLINE
QUICK SETUP
OFFLINE
CONFIG. CONTROL
CONFIG. CONTROL
Load Config.
CONFIG. CONTROL
Save Config.
changes.
7.
8.Press until the desired number
OR
Save Config.
1*
Save Config.
2
(1-8) displays.
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
10.
ENTER
UNTIL
Save Config.
2*
CONFIG. CONTROL
Save Config.
memory. (In this case, config. 2.)
19
Chapter2The Configuration Menu
Table 3. Saving Configurations (continued)
StepKeyResultNotes
NOTE: It is recommended you print the configuration. Go to page 13, step 5. If you decide not
to print the configuration, then continue with the following steps.
LQ*
Near LQ
Normal
Hi-Speed
Super Hi-Speed
Ultra Hi-Speed
Styling Type
Myungjo*
Gothic
High Density
Disable*
Enable
Bold Print
Disable*/Enable
Italic Print
Disable*
Forward Slant
Backward Slant
Slashed Zero
Disable*/Enable
DBCS/ASCII Mode
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)
Graphics
Spd Up
Normal*
Enhanced
Turbo
Match Typeface
Page Format
(see the next
page)
Reset Cmd
CFG Ld
Disable*
Power-Up Config.
Current Config.
Factory Config.
Error
Handling
Illegal Code Pt.
Normal*
As Space
Figure 3. LinePrinter Plus Menu
21
Chapter2The Configuration Menu
Page Format
(from the
previous page)
Form Length
Abs. Length IN
11.0* inches
(0.1-24)
Abs. Length MM
279.4* mm
(0.1-609.6)
Funct. of Lines
66* lines
(1-192)
Form Width
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)
Margins
Left Margin
0* columns
(0-369)
Right Margin
0* columns
(0-369)
Bottom Margin
0* lines
(0-451)
Perforation
Skip
Disable*
1/2 inch
2/3 inch
5/6 inch
1 inch
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
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
Top of Linespace
Bottom of 8 LPI Linespace
Bottom of 6 LPI Linespace
Row
1
2
3
4
5
6
7
8
9
10
11
12
Text Position
Top of Line
1
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
Chapter2The 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.
24
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.
OFFLINE
EMULATION
LinePrinter+
Printer
Protocol
KSSM
KSSM Emulation
KSSM Emulation
Character
Sets
Standard Sets*
IBM PC*
Epson Set
Define CR
Code
CR = CR*
CR = CR + LF
CR Bold
Select
Enable*
Disable
20 CPI
Condensed
Enable*
Disable
Auto LF
Enable*
Disable
Alt. Set 80-9F
Control Code*
Printable
Define LF
Code
LF = CR + LF*
LF = LF
Figure 4. KSSM Emulation Menu
Character Sets
This parameter selects a character set for the KSSM emulation.
Printer Select
Disable*
Enable
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
Chapter2The 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.
26
•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.
3LinePrinter Plus KSSM
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.
Emulation
•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
•Select user-defined set (ESC %
•Define user-defined characters (ESC & NUL
•Copy ROM to RAM (ESC :)
•Select justification (ESC a)
•Select typeface (ESC k)
•Select printing colour (ESC r
•Select 17/180-inch line spacing (ESC 1)
•One line unidirectional printing (ESC <)
•Absolute position of Hangul and Hanji (FS $
•Multiple byte Hangul character printing (FS M
•Print ASCII characters as in ASCII mode (FS a
•Select Hangul completed/combined font (FS t
n
)
n
)
n
)
n m
)
n
)
n1 n2
)
n
)
n
)
27
Chapter3KSSM 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.
CharacteristicDefault Setting
Select LPI6.0
Select CPI10.0
DBCS CPI6.0
Host CommandEnable
TypefaceLQ
Styling TypeMyungjo
Table 4. Factory Settings
High DensityDisable
Bold PrintDisable
Italic PrintDisable
Slashed ZeroDisable
DBCS/ASCII ModeDBCS Mode
DBCS ASCII StyleNormal
Text PositionBottom of Line
EncodingAddress Table
Taller 15 CPIDisable
Graphics Spd UpNormal
Left Margin0 columns
Right Margin0 columns
Bottom Margin0 lines
Perforation SkipDisable
Form Length11.0 inches
279.4 millimeters
66 lines
28
Form Width13.6 inches
345.4 millimeters
163 characters
Reset Cmd CFG LdDisable
Illegal Code Pt.Normal
Define CR CodeCR = CR
Escape Sequences
Table 4. Factory Settings
CharacteristicDefault Setting
Auto LFEnable
Define LF CodeLF = CR + LF
Printer SelectDisable
20 CPI CondensedEnable
Alt Set 80-9FControl 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
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 EHex: 1B 45Dec: 27 69
n
)
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
For example, to rotate DBCS characters by 90
FS character immediately followed by the J character:
ASCII: FS JHex: 1C 4ADec: 28 74
n
)
×counter-clockwise, send an
29
Chapter3Configuring 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 CodeASCII ValueHex ValueDec Value
SSCCESC | } ;1B 7C 7D 3B27 124 125 59
ASSCESC | } ; q1B 7C 7D 3B 7127 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
Loading...
+ 72 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.