Programmer’s Reference Manual 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.
Table Of Contents 1 Introduction............................................................. 9 About This Manual....................................................................................9 Warnings And Special Information ..................................................... 9 Related Product Information .............................................................. 9 Software Features ....................................................................................
Table Of Contents Define User-Defined Chinese Character.......................................... 41 Delete Last Character in Buffer ........................................................41 Divided Hangul Double Height ......................................................... 42 Enable Printing of Upper Control Codes .......................................... 42 Enable Upper Control Codes ........................................................... 43 Font Expansion .......................................
Table Of Contents Cancel Double-width Printing in DBCS Mode (One Line) ........................................................................................61 Select DBCS Mode ..........................................................................62 Cancel DBCS Mode .........................................................................62 Select Hangul Myunjo/Gothic Style ..................................................62 Select Italic Font.........................................................
Table Of Contents Turn Extending Table Character On/Off .......................................... 78 Turn On/Off OCRB Selection ........................................................... 78 Turn Proportional Mode On/Off ........................................................79 Turn Underline On/Off...................................................................... 79 Turn Underline On/Off (Hangul Extension) ...................................... 80 A Standard ASCII Character Set ....................
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 IMPORTANT Conditions that could harm you. Conditions that could damage the printer or related equipment.
Chapter 10 1 Software Features
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.
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.
Table 1. Printing Configurations Step 1. 2. Key Result Notes Make sure the printer is on. ON LINE/CLEAR 3. OFFLINE QUICK SETUP ENTER SWITCH UNLOCKED + Allows you to make configuration changes. OFFLINE QUICK SETUP 4. OFFLINE CONFIG. CONTROL 5. CONFIG. CONTROL Load Config. 6. CONFIG. CONTROL Print Config. UNTIL 7. Print Config. Current Short* 8. Print Config. All Press until the desired option displays. OFFLINE CONFIG. CONTROL The configuration listing begins printing. OR 9. 10.
Chapter 2 Printing The Configuration Table 1. Printing Configurations (continued) Step Key 11. Result ENTER SWITCH LOCKED Notes Locks the ENTER key. + 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.
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. CONFIG.
Chapter 2 The Configuration Menu Moving Within The Configuration Menu The example in Table 2 explains how to change the LPI value. Table 2. Changing Configurations Step 1. 2. Key Result Notes Make sure the printer is on. ON LINE/CLEAR 3. OFFLINE QUICK SETUP ENTER SWITCH UNLOCKED + Allows you to make configuration changes. OFFLINE CONFIG. CONTROL 4. OFFLINE EMULATION UNTIL 5. EMULATION LinePrinter+ 6. LinePrinter+ Printer Protocol 7. LinePrinter+ CPI/LPI Select 8.
Moving Within The Configuration Menu Table 2. Changing Configurations (continued) Step 11. 12. Key Result ENTER Select LPI 8.0 LPI* Notes An asterisk indicates the value selected. 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.
Chapter 2 The Configuration Menu Saving Your New Configuration * = Factory Default CONFIG. CONTROL Load Config. Save Config. Print Config. Delete Config. Power-Up Config. Protect Configs. 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.
Saving Your New Configuration Table 3. Saving Configurations Step 1. 2. Key Result Notes If you are already in the configuration menu, go to step 5. ON LINE/CLEAR 3. OFFLINE QUICK SETUP ENTER SWITCH UNLOCKED + Allows you to make configuration changes. OFFLINE QUICK SETUP 4. OFFLINE CONFIG. CONTROL 5. CONFIG. CONTROL Load Config. 6. CONFIG. CONTROL Save Config. 7. Save Config. 1* 8. Save Config. 2 Press until the desired number (1-8) displays.
Chapter 2 The Configuration Menu Table 3. Saving Configurations (continued) Step Key Result Notes 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. 10. ENTER SWITCH LOCKED + 11. 12. 20 ON LINE/CLEAR ONLINE The printer is ready for operation. Locks the ENTER key.
LinePrinter Plus Menu LinePrinter Plus Menu OFFLINE EMULATION LinePrinter+ Printer Protocol CPI/LPI Select KSSM (see page 25) 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 DBCS CPI 5.0 CPI 6.0 CPI* 6.7 CPI 7.5 CPI 8.5 CPI 9.0 CPI 10.0 CPI Other CPI Page Format (see the next page) Host Command Enable* Ignore All Ignore CPI Ignore LPI Ignore Unidir. Ignore Pg. Fmt. Reset Cmd CFG Ld Disable* Power-Up Config. Current Config. Factory Config.
Chapter 2 The 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 Margins Left Margin Abs. Width IN 0* columns 13.6* inches (0-369) (0.1-13.6) Right Margin Abs. Width MM 0* columns 345.4* millimeters (0-369) (0.1-345.4) Bottom Margin Funct.
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.
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.
KSSM Emulation KSSM Emulation OFFLINE EMULATION LinePrinter+ Printer Protocol KSSM Character Sets Define CR Code Standard Sets* IBM PC* Epson Set CR = CR* CR = CR + LF CR Bold Select Enable* Disable 20 CPI Condensed Enable* Disable Auto LF Enable* Disable Define LF Code LF = CR + LF* LF = LF Printer Select Disable* Enable Alt. Set 80-9F Control Code* Printable Figure 4. KSSM Emulation Menu Character Sets This parameter selects a character set for the KSSM emulation.
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.
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.
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 28 Default Setting Select LPI 6.0 Select CPI 10.0 DBCS CPI 6.
Escape Sequences Table 4. Factory Settings Characteristic Default Setting Auto LF Enable Define LF Code LF = CR + LF Printer Select Disable 20 CPI Condensed Enable Alt Set 80-9F 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.
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 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 Codes Set and reset are other ways of saying turn on and turn off; select and deselect; or enable and disable.
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.
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 Select 15 CPI Select an International Character Set Select Bold Font 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) Cance
Control Code Index FUNCTION ASCII CODE PAGE Printing Graphics Select Bit Image Select 60-dpi Graphics Select 120-dpi Graphics Select 120-dpi Graphics Select 240-dpi Graphics Reassign Bit-image Mode 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 55 52 52 53 53 50 CAN DEL ESC @ DC1 DC3 39 41 45 64 64 FS U 34 FS V 35 FS 2 a1 a2 d1 d2 d3 …d72 FS X n FS ! n 41 42 48 FS D d1 d2 FS x n 49 59 FS SO 61 FS DC4 FS & FS .
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 78 80 SSCC c t SSCC * m nL nH d1…dk ASSC 0 z n ASSC 0 2 ASSC 0 e ASSC 0 * ASSC 0 ! 36 45 78 40 43 44 49 Superset Command Barcode Printing Graphics Printing: Select Bit Image Turn On/Off OCRB Printing Define User Defined Character Font Expansion Graphic Printing Master Select One-Line Attribute Advance
Cancel The Alignment of SBCS Character With Cancel The Alignment of SBCS Character With DBCS Character 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.
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 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] Where: t = type of Barcode t (ASCII) t (hex) Selects Barcode B C 9 D 8 1 F G I M 4 O P R T V
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.
Chapter 3 Configuring The KSSM Emulation With Control Codes Barcode Type Code 39 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 Magnification 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.
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 07 Dec Code 7 Purpose Sounds the printer’s beeper for 1/10 second.
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 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.
Define User-Defined Chinese Character 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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 Where: 0 <= n <= 3 Comment The line spacing of the line with upper part double height (set by FS X 1) will change to
Enable Upper Control Codes 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes Form Feed ASCII Code FF Hex Code 0C Dec Code 12 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. Graphic Printing ASCII Code ASSC 0 * m nL nH d1...dk Hex Code ASSC 30 2A m nL nH d1...
Graphics Printing: Select Bit Image Graphics Printing: Select Bit Image 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
Chapter 3 Configuring The KSSM Emulation With Control Codes Line Feed ASCII Code LF Hex Code 0A Dec Code 10 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.
Master Select Master Select 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: Where: 0 <= n <= 255 Bit On/Off Hex Dec 0 Off 00 On 1 2 3 4 5 6 7 Comment Function Equivalent 0 Select 10 cpi ESC P 01 1 Select 12 cpi ESC M Off 00 0 Cancels proportional ESC p 0 On 02 1 Selects proportional ESC p 1 Off 0
Chapter 3 Configuring The KSSM Emulation With Control Codes 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 0 Off 00 On 1 2 3 4 5 6 7 Function Equivalent 0 Cancel vertical printing FS K 01 1 Select Vertical printing FS J Off 00 0 Cancel half width FS DC2 On 02 1 Sele
Master Select One-Line Attribute In DBCS Mode Master Select One-Line Attribute In DBCS Mode 0 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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.
Select 10 CPI Select 10 CPI 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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.
Select 120-dpi Graphics Select 120-dpi Graphics 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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 = 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
Select Bit Image Select Bit Image 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
Chapter 3 Configuring The KSSM Emulation With Control Codes 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.
Select Character Table Select Character Table 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 Where: 0 <= n <= 1, 48 <= n <= 49 Currently, the setting on the front panel of “Alt.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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: Comment Selected pitch Condensed pitch 10 cpi 17.14 cpi 12 cpi 20 cpi Proportional ½ width This command is ignored under the following two conditions: 15-cpi printing has been selected with the ESC g command.
Select DBCS Print Quality 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 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes Select Double-width Printing (One Line) ASCII Code SO Hex Code 0E Dec Code 14 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.
Select Double-width Printing in DBCS Mode (One Select Double-width Printing in DBCS Mode (One Line) 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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.
Select Italic Font Select Italic Font 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes Select Printer ASCII Code DC1 Hex Code 11 Dec Code 17 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. Deselect Printer ASCII Code DC3 Hex Code 13 Dec Code 19 Purpose Deselects the printer. Comment The printer cannot be reselected by pressing the online button.
Cancel Superscript/Subscript Printing Cancel Superscript/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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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). Set n/60-inch Line Spacing ASCII Code ESC A n Hex Code 1B 41 n Dec Code 27 65 n Purpose Sets the line spacing to n/60 inch.
Set Absolute Horizontal Print Position 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. 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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.
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.
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 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.
Set Page Length In Inches 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. Where: 1 <= n <= 22 Comment Setting the page length cancels the bottom margin setting.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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).
Set Vertical Tab Channels 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. 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).
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 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.
Tab Horizontally Tab Horizontally ASCII Code HT Hex Code 09 Dec Code 09 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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.
Turn Double-Width, Double-Height Printing On/Off 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 Where: n = 0, 1, 48, 49 Comment The baseline of the line includi
Chapter 3 Configuring The KSSM Emulation With Control Codes 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 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.
Turn Proportional Mode On/Off 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.
Chapter 3 Configuring The KSSM Emulation With Control Codes 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 Where: n = 0, 1, 48, 49 Comment If the character is in vertical printing mode, the line prints over the character and becomes overscored.
A Standard ASCII Character Set B7 B6 BITS KEY 0 B5 0 1 B4 B3 B2 B1 1 0 1 ESC 1 OCTAL DECIMAL HEX 33 27 1B ASCII CHARACTER B7 B6 0 B5 BITS 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 0 1 1 1 1 1 0 1 COLUMN 0 B4 B3 B2 B1 ROW 1 0 0 0 0 0 NUL 0 0 0 0 0 0 1 1 SOH 1 1 1 0 0 1 0 2 STX 2 2 2 0 0 1 1 3 ETX 3 3 3 0 1 0 0 4 EOT 0 1 0 1 5 0 1 1 0 DLE DC1 (XON) 2 20 16 10 21 17 11 SP ! 3 40 32 20 41 33 21 4 0 60 48 30 1 61 49 31 5 6 @ 100 64 40 P 120 80 50
Appendix A 82
B Code Table Korean Standard Code Table (KSC5601) Range: hex A1A1 through hex FFFE 83
Appendix B 84 Code Table
Korean Standard Code Table (KSC5601) 85
Appendix B 86 Code Table
Korean Standard Code Table (KSC5601) 87
Appendix B 88 Code Table
Korean Standard Code Table (KSC5601) 89
Appendix B 90 Code Table
Korean Standard Code Table (KSC5601) 91
Appendix B 92 Code Table
Korean Standard Code Table (KSC5601) 93
Appendix B 94 Code Table
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.
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 Visit the Printronix web site at www.printronix.
Index A Configuration, 11 menu, top level, 15, 21 Advance Print Position Vertically, 34 moving within menu, 16 Align SBCS Character with DBCS Character, 34 printing, 12 ASCII Character Set, 81 saving, 18 Auto LF parameter, 26 Contact information, 95 B Control code description format, 30 Control code, index, 31 Backspace, 35 CPI/LPI Select, LinePrinter Plus menu, 22 Barcode Printing, 36 CR Bold Select parameter, 25 Beeper, 39 Bold Print, setting with control panel, 23 Customer Support Cente
Font Expansion, 43 page format, 24 Form Feed, 44 reset cmd cfg ld, 24 M Form Width, setting with control panel, 24 Forms Length, setting with control panel, 24 Manuals, related, 9 FS sequences, 29 G Margins, setting with control panel, 24 Master Select, 47 Graphic Printing, 44 Master Select in DBCS Mode, 48 Graphics Printing, Select Bit Image, 45 Master Select One-Line Attribute In DBCS Mode, 49 graphics spd up, 23 Graphics Spd Up, LinePrinter Plus menu, 23 H Menu, configuration, 15, 21 Menu,
Select Italic Font, 63 Set Relative Horizontal Print Position, 72 Select Print Quality, 63 Set Right Margin, 72 Select Printer, 64 Set Vertical Tab Channels, 73 Select Superscript/Subscript Printing, 64 Set Vertical Tabs, 73 Select Vertical Printing, 65 Set Vertical Tabs in VFU Channels, 74 Select 1/6-inch Line Spacing, 50 Software features, 9 Select 1/8-inch Line Spacing, 50 Super-Set Commands, 30 Select 10 CPI, 51 Supplies Department, 95 T Select 12 CPI, 51 Select 120-dpi Graphics, 52, 53
*179981-001* 179981-001B