InfoPrint LQ-1600K Programmer's Reference Manual

InfoPrint 6500 Line Matrix Printers
LQ-1600K Programmer’s Reference Manual
G550-1006-01
InfoPrint 6500 Line Matrix Printers
LQ1600-K Programmer’s Reference Manual
G550-1006-01
Note!
Before using this information and the product it supports, read the information in “Notices” on page 111.
Second Edition (January 2010)
Visit our home page at: http://www.infoprint.com
You can send comments by e-mail to printpub@infoprint.com or by mail to: InfoPrint Solutions Company, LLC
6300 Diagonal Hwy 002J Boulder, CO 80301-9270 U.S.A.
This product is or contains commercial computer software and commercial computer software documentation developed exclusively at private expense. As specified in Federal Acquisition Regulation 12.212 in the case of civilian agencies and Defense Federal Acquisition Regulation Supplement 227.7202 in the case of military agencies, use, duplication and disclosure by agencies of the U.S. Government shall solely be in accordance with the accompanying International Program License Agreement in case of software products and in accordance with the licensing terms specified in the product’s documentation in the case of hardware products.
© Copyright InfoPrint Solutions Company 2008, 2010. All rights reserved.
InfoPrint 6500 Line Matrix Printers: LQ1600-K Programmer’s Reference Manual,
Internet
Table of Contents
1 Introduction ........................................................... 9
About This Manual................................................................................. 9
Warnings and Special Information .................................................. 9
Related Product Information ........................................................... 9
Software Features ................................................................................. 9
2 LinePrinter Plus LQ-1600K Emulation ................ 11
LQ-1600K Emulation ........................................................................... 11
Exceptions And Differences .......................................................... 11
Default Values And States ............................................................ 12
Epson Character Sets ................................................................... 15
Escape Sequences ....................................................................... 16
FS Sequences............................................................................... 16
Super-Set Commands................................................................... 16
Set And Reset Codes.................................................................... 16
DBCS Mode .................................................................................. 17
Configuring The LQ-1600K Emulation With Control Codes................. 17
Format For Control Code Descriptions.......................................... 17
Control Code Index ...................................................................... 18
Adjust Half-Width Characters To Fit Into DBCS Character
Spacing ......................................................................................... 21
Adjust Table Characters................................................................ 21
Align Two Half-Width Rotated Characters In DBCS Mode............ 22
Backspace..................................................................................... 23
Barcode Printing............................................................................ 24
Bell ................................................................................................ 27
Cancel Character Rotation ............................................................ 27
Cancel Line ................................................................................... 28
Cancel Spacing Adjustment .......................................................... 28
Carriage Return............................................................................. 28
CC DOS Control Code .................................................................. 29
Character Pitch 10 CPI ................................................................. 29
Character Pitch 12 CPI ................................................................. 29
Character Pitch 15 CPI ................................................................. 30
Condensed Print (Set/Reset) ........................................................ 30
DBCS Mode (Select) ..................................................................... 31
Table of Contents
DBCS Mode (Cancel).................................................................... 31
DBCS Mode Underline .................................................................. 31
DBCS Superscript/Subscript Print (Set/Cancel)............................ 32
Define A Download Character (DBCS) ......................................... 32
Define Pattern For Special Printing Effect..................................... 33
Define User-Defined Character..................................................... 34
Delete Character ........................................................................... 35
Double High Print, Set/Reset ....................................................... 35
Double Strike (Select) ................................................................... 35
Double Strike (Cancel) .................................................................. 36
Double Wide Print ......................................................................... 36
Double Wide Print (One Line) ....................................................... 37
Double Wide Print (One Line), Cancel .......................................... 38
Double Wide Print (One Line) ...................................................... 38
Double Wide Print (One Line), Cancel .......................................... 38
Double Wide, Double High (2x2) Print .......................................... 39
Download Chinese Font (For Hanzi Big5 Printer Only)................. 39
Emphasized Print (Select)............................................................. 39
Emphasized Print (Cancel) ........................................................... 40
Enable Printing Of Control Codes ................................................. 41
Font Expansion ............................................................................. 41
Form Feed..................................................................................... 42
Graphic Printing ............................................................................ 42
Graphics, Double Density ............................................................. 43
Graphics, Double Density, Double Speed..................................... 44
Graphics, Quadruple Density ........................................................ 45
Graphics, Standard Density .......................................................... 46
Half-Width Print ............................................................................. 47
Half-Width Print Cancel ................................................................. 47
Home Print Head........................................................................... 47
Horizontal Tab Execute ................................................................. 47
Horizontal Tab Set/Release .......................................................... 48
Initialize Printer.............................................................................. 49
Italic Printing (Select) .................................................................... 49
Italic Printing (Cancel) ................................................................... 49
Line Feed ...................................................................................... 50
Line Feed n/180 Inch .................................................................... 50
Line Spacing 1/6 Inch (6 lpi).......................................................... 51
Line Spacing 1/8 Inch (8 lpi).......................................................... 52
Line Spacing n/60 Inch.................................................................. 53
Line Spacing n/180 Inch................................................................ 54
Line Spacing n/360 Inch................................................................ 55
Table of Contents
Make Hex 80-9F Control Codes.................................................... 56
Make Hex 80-9F Printable............................................................. 56
Master Print Select ........................................................................ 58
Master Print Select In DBCS Mode ............................................... 59
Master Select One-Line Attribute in DBCS Mode ......................... 60
Printer Deselect............................................................................. 60
Printer Select................................................................................. 61
Proportional Spacing, Select/Deselect ......................................... 61
Rotate Character 90 Degrees Counter-Clockwise ........................ 61
Select Autowrap Mode (For Hanzi Big5 Printer Only) ................... 62
Select Bit Image ............................................................................ 62
Select DBCS ASCII Character Type ............................................. 63
Select DBCS Character Bitmap .................................................... 63
Select DBCS Character Font ........................................................ 63
Select DBCS Print Quality............................................................. 64
Select Graphics Mode................................................................... 65
Select Italic Character Set............................................................. 66
Select Print Quality........................................................................ 66
Select Special Printing Effect ........................................................ 67
Select Super/Subscript Printing (For Hanzi BIG5 Printer only) ..... 68
Select Typeface (For Hanzi BIG5 Printer only) ............................. 68
Select Underline Printing (For Hanzi Big5 Printer Only)................ 68
Select Vertical Printing (for Hanzi BIG5 Printer only) .................... 69
Select Vertical Tab Channel.......................................................... 69
Set 0-dot Intercharacter Spacing of DBCS Characters................. 69
Set 3-dot Intercharacter Spacing of DBCS Characters................. 70
Set 6-dot Intercharacter Spacing of DBCS Characters................. 70
Set 12-dot Intercharacter Spacing of DBCS Characters............... 70
Set Absolute Horizontal Print Position In 1/60 Inch....................... 71
Set Chinese Font Rotate (For Hanzi Big5 Printer Only)................ 71
Set Chinese Inner Code (For Hanzi Big5 Printer Only)................. 72
Set Font/Line Gap (For Hanzi Big5 Printer Only).......................... 72
Set Font Scale (For Hanzi Big5 Printer Only)................................ 72
Set Form Length By Lines............................................................. 73
Set Form Length In Inches............................................................ 74
Set Font Pitch (For Hanzi Big5 Printer Only)................................. 74
Set Intercharacter Spacing............................................................ 75
Set Intercharacter (One-Byte) Spacing In DBCS Mode ................ 75
Set Intercharacter (Two-Byte) Spacing In DBCS Mode ................ 76
Set International Character Set..................................................... 76
Set Left Margin (For Hanzi Big5 Printer Only)............................... 78
Set Line Pitch (For Hanzi Big5 Printer Only)................................. 78
Table of Contents
Set Logic Right Margin (For Hanzi Big5 Printer Only)................... 78
Set Logical Left Margin (For Hanzi Big5 Printer Only) .................. 79
Set Margin (Left) ........................................................................... 79
Set Margin (Right) ......................................................................... 80
Set Paper Length (For Hanzi Big5 Printer Only) ........................... 80
Set Relative Horizontal Print Position In 1/120 Inches.................. 81
Set Right Margin (For Hanzi Big5 Printer Only) ............................ 81
Set Vertical Tabs In Channels....................................................... 82
Skip Over Perforation.................................................................... 82
Skip Over Perforation Cancel ....................................................... 83
Static Barcode Function (For Hanzi Big5 Printer Only)................. 83
Superscript And Subscript Printing ............................................... 84
Superscript And Subscript Printing (Cancel)................................. 85
Turn On/Off Compress Mode ........................................................ 85
Turn On/Off OCRB Printing........................................................... 86
Underline....................................................................................... 86
Unidirectional Printing For One Line ............................................. 87
Unidirectional Printing, Set/Reset ................................................ 87
Vertical and Horizontal Extension ................................................. 87
Vertical Tab, Execute .................................................................... 88
Vertical Tab, Set/Clear .................................................................. 88
A Standard ASCII Character Set............................ 89
B Vertical Page Formatting..................................... 91
Overview.............................................................................................. 91
Executing Vertical Tabs ................................................................ 91
Vertical Tab Positions ................................................................... 92
C Graphics.............................................................. 93
Bit Image Graphics .............................................................................. 93
Designing a Bit Image Pattern ...................................................... 95
Bit Image Density .......................................................................... 95
Bit Image Programming Format .................................................... 96
Bit Image Sample .......................................................................... 97
Glossary .............................................................. 99
Notices .............................................................. 111
Product Recycling And Disposal........................................................ 114
Trademarks........................................................................................ 114
Communication Statements............................................................... 115

1 Introduction

About This Manual

This manual is designed so you can quickly find the information you need to use the LQ-1600K 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:
InfoPrint 6500 Line Matrix Printers: User’s Manual.
WARNING
CAUTION
IMPORTANT
Conditions that could harm you as well as damage the equipment.
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:
InfoPrint 6500 Line Matrix Printers: User’s Manual.
instructions and descriptions and troubleshooting guidelines.

Software Features

The LQ-1600K 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/24-pin images.
Print Attributes. Characters can be bold, italic, double high, double wide,
etc.
Page Formatting. Commands which allow you to set line spacing, page
length, and vertical tabbing.
Provides configuration
Font Typefaces. Also referred to as print modes. There are six typefaces
that can print both SBCS and DBCS characters: LQ, Near LQ, Normal, Hi-Speed, Super Hi-Speed, and Ultra Hi-Speed.
9
Chapter 1 Software Features
10
2 LinePrinter Plus

LQ-1600K Emulation

LQ-1600K Emulation
“Emulation” refers to the ability of a printer to execute the commands of other printer control languages. In LQ-1600K emulation mode, your printer prints files coded for Epson LQ series printers, particularly the LQ-1600K.

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.
Commands not supported by our printer:
1. Control paper loading/ejecting (ESC EM n)
2. Select user-defined set (ESC % n)
3. Define user-defined characters (ESC k NUL
4. Copy ROM to RAM (ESC : NUL
5. Select justification (ESC
6. Set MSB to 1 (ESC >)
7. Set MSB to 0 (ESC =)
8. Cancel MSB Control (ESC #)
9. Reassign bit-image mode (ESC ?)
a n
n m
)
)
n m
)
11
Chapter 2 LQ-1600K 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 1 are automatically invoked.
Table 1. Factory Settings for Hanzi GB
Characteristic Default Setting
Select CPI 10.0 Select LPI 6.0 DBCS CPI 6.7 Host Command Ignore Unidir. Typeface Near LQ Styling Type SONG High Density Disable Proportional Spacing Disable
Table
Bold Print Disable Italic Print Disable Slashed Zero Disable Text Position Bottom of Line DBCS/ASCII Mode DBCS Mode DBCS ASCII Style Normal Compressed Mode Disable DBCS Compressed Disable Encoding Address Table Taller 15 CPI Disable Graphics Spd Up Normal Left Margin 0 columns Right Margin 0 columns Bottom Margin 0 lines Perforation Skip Disable Form Length 11.0 inches
279.4 millimeters 66 lines
12
Form Width 13.6 inches
345.4 millimeters
136 characters Reset Cmd CFG Ld Disable Illegal Code Pt. Normal Define CR Code CR = CR
Default Values And States
Table 1. Factory Settings (continued) for Hanzi GB
Characteristic Default Setting
Auto LF Enable Define LF Code LF = CR + LF Printer Select Disable Character Set Standard Sets (Epson Set; ASCII) 20 CPI Condensed Enable Alt Set 80-9F Printable Currency Sign RMB Select AR3240 Compat. Disable
Table 2. Factory Settings for Hanzi Big5
Characteristic Default Setting
Select CPI 10.0 Select LPI 6.0 DBCS CPI 6.7 Host Command Ignore Unidir. Typeface LQ Styling Type MING High Density Disable Proportional Spacing Disable Bold Print Disable Italic Print Disable Slashed Zero Disable Text Position Bottom of Line DBCS/ASCII Mode DBCS Mode DBCS ASCII Style Normal Compressed Mode Disable DBCS Compressed Disable Encoding Address Table Taller 15 CPI Disable Graphics Spd Up Normal Left Margin 0 columns Right Margin 0 columns Bottom Margin 0 lines
13
Chapter 2 LQ-1600K Emulation
Table 2. Factory Settings (continued) for Hanzi Big5
Characteristic Default Setting
Perforation Skip Disable Form Length 11.0 inches
Form Width 13.6 inches
Reset Cmd CFG Ld Disable Illegal Code Pt. Normal Define CR Code CR = CR Auto LF Enable Define LF Code LF = CR + LF Printer Select Disable Character Set Standard Sets (Epson Set; ASCII)
279.4 millimeters
66 lines
345.4 millimeters
136 characters
20 CPI Condensed Enable Alt Set 80-9F Printable
14

Epson Character Sets

Epson Character Sets
The LQ-1600K printer uses two character sets: the IBM PC set and the Epson set. The Epson set is the ASCII character set with the upper, non-ASCII set defined as italics and the usually unprintable codes designed as international characters. (See
Table 3.)
Table 3. Epson Character Set
Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 à § SP 0 @ P p
1 è ß ! 1 A Q a q
2 ù DC2 " 2 B R b r
3 ò DC3 # 3 C S c s
4 ì DC4 $ 4 D T d t
5 ° ø % 5 E U e u
6 £ ¨ & 6 F V f v
7 BEL Ä 7 G W g w
8 BS CAN ( 8 H X h x
9 HT Ü ) 9 I Y i y
A LF ä * : J Z j z
B VT ESC + ; K [ k {
C FF ü < L \ l |
D CR É = M ] m }
E SO é . > N ^ n ~
F SI ¥ / ? O _ o DEL
à § SP 0 @ P p
è ß ! 1 A Q a q
ù Æ " 2 B R b r
ò æ # 3 C S c s
ì ø $ 4 D T d t
° ø % 5 E U e u
£ ¨ & 6 F V f v
i Ä 7 G W g w
¿ Ö ( 8 H X h x
Ñ Ü ) 9 I Y i y
ñ ä * : J Z j z
¤ ö + ; K [ k {
P
t
ü , < L \ l |
Å É = M ] m }
å é . > N ^ n ~
Ç ¥ / ? O _ o ø
15
Chapter 2 LQ-1600K Emulation

Escape Sequences

Some LQ-1600K control codes consisting of more than one character are called escape sequences because the first character in the sequence is the ASCII ESCape character. ESC alerts the printer that a special function command—not printable characters—follows.
The format for an escape sequence is:
ESC (parameter 1)(parameter 2)...(parameter n)
For example, to select emphasized (offset) print, send the ESC character immediately followed by the E character (do not add a space character):
ASCII: ESC E Hex: 1B 45Dec: 27 69

FS Sequences

Another type of control code which consists of more than one character is called an “FS sequence,” because the first character is the ASCII FS character. This control code is used when the printer is printing Double Byte Character Set (DBCS) characters. The FS alerts the printer that a special function command (not printable characters) follows. Most FS commands work only on DBCS characters.
The format for an FS sequence is:
FS (parameter 1)(parameter 2)...(parameter n)
For example, to rotate DBCS characters by 90° counter-clockwise, send an FS character immediately followed by the J character:
ASCII: FS J Hex: 1C 4ADec: 28 74

Super-Set Commands

The unique control code sequence for both SSCC and ASSC commands are defined in the table below:
Control
Code
SSCC ESC | } ; 1B 7C 7D 3B 27 124 125 59
ASSC ESC | } ; q 1B 7C 7D 3B 71 27 124 125 59 113
ASCII Value Hex Value Dec Value

Set And Reset Codes

Set and reset are other ways of saying turn on and “turn off; select and deselect; or enable” and disable.”
16
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).

DBCS Mode

DBCS Mode
When the printer is in DBCS mode, it can print double byte characters— characters that require two bytes to define. It can also print a limited number of single byte ASCII characters. If a form hex 0x20 through hex 0x7F is sent to the printer, it will be printed as a standard ASCII character. If a character is larger that 0x7F, it will be combined with the next character to produce one DBCS character.
DBCS characters are only available in the LQ, Near LQ, Normal, Hi-Speed, Super Hi-Speed, and Ultra Hi-Speed typefaces. The command to select DBCS mode (FS &) switches the printer to one of these typefaces. Near LQ is the default typeface, but if another print quality has been selected previously through the FS x command, then that print quality is the DBCS typeface selected.
The character printed when the printer combines two characters into one double byte character depends on the character set of your particular printer.

Configuring The LQ-1600K Emulation With Control Codes

The remainder of this chapter describes the LQ-1600K printer control language codes that may be sent from a host computer attached to the printer in order to invoke and configure numerous LQ-1600K 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. Expression. The control codes used in the BASIC programming language. Comment. A description of exceptions or limitations to normal use. Example. A sample expression written in the BASIC programming language
is provided for some control codes to illustrate how the code is used.
17
Chapter 2 Configuring The LQ-1600K Emulation With Control Codes

Control Code Index

The following index lists the control codes by function, ASCII mnemonic, and page number. Some control code functions can also be selected at the control panel.
FUNCTION ASCII CODE PAGE
Vertical Motion and Print Execution
Carriage Return CR 28 Form Feed FF 42 Line Feed LF 50 Line Feed n/180 Inch ESC J Line Spacing 1/6 Inch (6 lpi) ESC 2 51 Line Spacing 1/8 Inch (8 lpi) ESC 0 52 Line Spacing n/60 Inch ESC A Line Spacing n/180 Inch ESC 3 Line Spacing n/360 Inch ESC + Select Vertical Tab Channel ESC / Set Form Length by Lines ESC C Set Form Length in Inches ESC C NUL Set Vertical Tabs in Channels ESC b Skip Over Perforation ESC N Skip Over Perforation, Cancel ESC O 83 Vertical Tab, Execute VT 88 Vertical Tab Set/Clear ESC B
Horizontal Motion
Backspace BS 23 Carriage Return CR 28 Character Pitch 10 cpi ESC P 29 Character Pitch 12 cpi ESC M 29 Character Pitch 15 cpi ESC g 30 Horizontal Tab Execute HT 47 Horizontal Tab Set/Release ESC D Proportional Spacing, Select/Deselect ESC p Set Absolute Horizontal Print Position in 1/60” ESC $ Set Intercharacter Spacing ESC SP Set Relative Horizontal Print Position in 1/120” ESC \ Set Margin (Left) ESC l Set Margin (Right) ESC Q
Emphasis
Condensed Print SI (or ESC SI) 30 Condensed Print Reset DC2 30 Define Pattern for Special Printing Effect ESC ( X Double High Print, Set/Reset ESC w Double Strike (Select) ESC G 35 Double Strike (Cancel) ESC H 36 Double Wide Print ESC W
n
n n n
c
n
n
c n1 n2 n3...n16
n
n1 n2 n3...nk
n1...nk
NUL 48
n
n1 n2
n
n1 n2 n
n
n1 n2 a1 a2 a3
n
n
50
53 54 55 69 73 74
NUL 82
82
NUL 88
61
71 75
81 79 80
33 35
36
18
Control Code Index
FUNCTION ASCII CODE PAGE
Double Wide Print (1 line) SO (or ESC SO) 37 Double Wide Print (1 line) Cancel DC4 38 Emphasized Print (Select) ESC E 39 Emphasized Print (Cancel) ESC F 40 Italic Printing, Select ESC 4 49 Italic Printing, Cancel ESC 5 49 Select Italic Character Set ESC t Select Special Printing Effect ESC q Superscript and Subscript Printing ESC S Superscript and Subscript Printing, Cancel ESC T 85 Underline ESC –
Print Quality Control
Master Print Select ESC ! Select Print Quality ESC x Select Typeface (TW printer only) ESC k
Character Set Manipulation
Enable Printing of Control Codes ESC I Make Hex 80-9F Printable ESC 6 56 Make Hex 80-9F Control Codes ESC 7 57 Set International Character Set ESC R
Data Manipulation
Cancel Line CAN 28 Delete Character DEL 35
Graphics
Graphics, Standard Density ESC K Graphics, Double Density ESC L Graphics, Double Density, Double Speed ESC Y Graphics, Quadruple Density ESC Z Select Graphics Mode ESC *
Miscellaneous Printer Control
Bell BEL 27 Home Print Head ESC < 47 Initialize Printer ESC @ 49 Printer Select DC1 61 Printer Deselect DC3 60 Unidirectional Printing for One Line ESC < 87 Unidirectional Printing, Set/Reset ESC U
Superset Commands
Graphic Printing (Bit Image) SSCC * 62 Barcode Printing SSCC c 24 Select Vertical Printing SSCC + Select Superscript/Subscript SSCC ~ Turn On/Off Compress Mode ASSC 0 x
n
n
n
n
n
n n
n
n
n1 n2
n1 n2
n1 n2
n1 n2
m n1 n2
n
n n
n
66 67 84
86
58 66 68
41
76
46 43
44 45 65
87
69 68 85
19
Chapter 2 Configuring The LQ-1600K Emulation With Control Codes
FUNCTION ASCII CODE PAGE
Define User-Defined Character ASSC 0 2 Master Select One-line Attribute 60 in DBCS Mode ASSC 0 ! Turn On/Off OCRB Printing ASSC 0 z
AR3240 Commands (for GB and Kanji printer only)
Set 0-dot Intercharacter Spacing of DBCS Characters SUB Q 69 Set 3-dot Intercharacter Spacing of DBCS Characters SUB N 70 Set 6-dot Intercharacter Spacing of DBCS Characters SUB E 70 Set 12-dot Intercharacter Spacing of DBCS Characters SUB P 70 Select DBCS ASCII Character Type FS k Select DBCS Character Font ESC u Vertical and Horizontal Extension ESC e Select DBCS Character Bitmap FS e
DBCS Command Set
Adjust Half-Width Characters to Fit into DBCS character spacing FS U 21 Adjust Table Characters FS v Align Two Half-Width Rotated Characters in DBCS Mode FS D 22 Cancel Character Rotation FS K 27 Cancel Spacing Adjustment FS V 28 CC DOS Control Code ESC I DBCS Mode (Select) FS & 31 DBCS Mode (Cancel) FS . 31 DBCS Mode Underline FS – DBCS Superscript/Subscript Print (Set/Cancel) FS r n 32 Define a Download Character (DBCS) FS 2 Double Wide Print (1 line) FS SO 38 Double Wide Print (1 line), Cancel FS DC4 38 Double Wide, Double High (2x2) Print FS W Half-Width Print FS SI 47 Half-Width Print Cancel FS DC2 47 Master Print Select in DBCS Mode FS ! Rotate Character 90 degrees Counter-Clockwise FS J 61 Select DBCS Print Quality FS x Set Intercharacter Spacing (one-byte) in DBCS Mode FS T Set Intercharacter Spacing (two-byte) in DBCS Mode FS S
n
n
n
n
n n1 n2
n1 n2
n
n
n
n1 n2 n3...n74
n
n
n
n1 n2
n1 n2
34
86
63 63 87 63
21
29
31
32
39
59
64
75
76
20

Adjust Half-Width Characters To Fit Into DBCS Character Spacing

Adjust Half-Width Characters To Fit Into DBCS Character Spacing
ASCII Code FS U Hex Code 1C 55 Dec Code 28 85 Purpose Aligns two half-width characters to fit the space normally
occupied by a single full-width DBCS character.
Comment This control code does not function while in non-DBCS mode.

Adjust Table Characters

ASCII Code FS v Hex Code 1C 76 Dec Code 28 118 Purpose Extends the table (line draw) characters in the following ranges:
n
n
n
GB: A854~A870, A9A4~A9A7, A9B0~A9EF BIG5: BIG5 A271~A275, A277~A278, A27A~A27E,
A2A1~A2A7, F9DD~F9FD CNS A3B3~A3B7, A3B9~A3BA, A3BC~A3C7 TCA 8249~824D, 824F~8250, 8252~825A,
8261~8263 ETEN 8249~824D, 824F~8250, 8252~825A,
8261~8263 IBM5550 8A6E~8A72, 8A74~8A75, 8A77~8A7E,
8A80~8A83 TELETEXT NIL WANG 8E58~8E5A, 8E61~8E62, 8E64~8E65,
8E67~8E72 BIG5+ A271~A275, A277~A278, A27A~A27E,
A2A1~A2A7, F9DD~F9FD BIG5E A271~A275, A277~A278, A27A~A27E,
A2A1~A2A7, F9DD~F9FD HKSCS-2001
A271~A275, A277~A278, A27A~A27E, A2A1~A2A7, F9DD~F9FD
They are extended so they touch in both horizontal and vertical directions.
Where:
n
= 0 to turn off this function
n
= 1 to turn on this function
21
Chapter 2 Configuring The LQ-1600K Emulation With Control Codes

Align Two Half-Width Rotated Characters In DBCS Mode

ASCII Code FS D Hex Code 1C 44 Dec Code 28 68 Purpose Aligns two half-width rotated characters to fit the space
occupied by a normal size rotated character.
Comment Right after the control code sequence, two characters are
paired. The characters are not required to be half-width to be aligned, because the command automatically takes care of that. It is only necessary for the characters to be rotated in order for the command to take effect. Only two characters are combined at a time.
This command does not function while in non-DBCS mode.
Example The following program demonstrates the function of the
command.
22

Backspace

Backspace
ASCII Code BS Hex Code 08 Dec Code 08 Purpose Moves the simulated print head to the left, one-byte space
toward the first character column. In DBCS mode, the movement is two one-byte spaces.
Comment Moves the character position indicator one-byte space (two
one-byte spaces in DBCS mode) to the left at the current character pitch setting. The code is ignored if the simulated print head is positioned at the first character column.
Example Print and send two backspaces in ASCII and DBCS mode.
23
Chapter 2 Configuring The LQ-1600K Emulation With Control Codes

Barcode Printing

ASCII Code SSCC c
[; C ] [; H hh] [; D ] [; F
Hex Code SSCC 63
[; 50 p ] [; 43 ] [; 48 hh] [; 44 ] [; 46
Dec Code SSCC 99
[; 80 p ] [; 67 ] [; 72 hh] [; 68 ] [; 70
Where:
t
= type of Barcode
t (ASCII) t (hex) Selects Barcode
B 42 Codabar
C 43 Code 39
9 39 Code 93
D 44 Code 128
8 38 EAN-8
t; d data d
t; d data d
t; d data d
[; N n ;
[; 4E n ;
[; 78 n ;
xxxx ; yyyy
q data q
xxxx ; yyyy
xxxx ; yyyy
]
] [; X
] [; 58
q data q
] [; 88
q data q
mmmm
mmmm
]
mmmm
]
] [; P p ]
]
]
1 31 EAN-13
F 46 FIM
G 47 German I-2/5
I 49 Interleaved 2/5
M 4D MSI
4 34 PDF 417
O 4F PostBar
P 50 POSTNET
R 52 Royal Mail
T 54 Te l ep e n
V 56 UCC/EAN-128
A 41 UPC-A
E 45 UPC-E
S 53 UPC Shipping
U 55 UPS 11
24
Where:
d
= barcode delimiter, which can be any character not used in
the barcode data field.
data
= variable length printable data field (PDF); character set
is Alphanumeric The following parameters are optional: where:
N = activates the offset
n
= the x and y coordinate unit system
n
(ASCII) Selects Value
0 Use current cpi and lpi values
1 Use 1/4 inch value
2 Use 1/2 centimeter value : 1/(2.54x2)
Barcode Printing
3 Use 1 mm value : 1/(25.4)
4 Use target barcode dot (refer to table immediately below)
when:
n
= 4
Front Panel Typeface X Offset Unit (Inch) Y Offset Unit (Inch)
LQ 1/180 1/180
Near LQ 1/120 1/120
Normal 1/180 1/144
Hi-Speed 1/180 1/120
Super Hi-Speed 1/180 1/90
Ultra Hi-Speed 1/180 1/90
25
Chapter 2 Configuring The LQ-1600K Emulation With Control Codes
Where:
xxxx
= 4-digit upper left corner x (horizontal axis)
yyyy
= 4-digit upper left corner y (vertical axis)
X = activates magnification
mmmm
The possible magnification is as follows:
Barcode Type Magnification
Code 39 X4 X3 X2 X1 X1.5 X1A X1B *X1C *X1D *X1E
Interleaved 2/5 X4 X3 X2 X2A X1 X1A X1B
German I-2/5 X4 X3 X2 X2A X1 X1A X1B
UPC Shipping X4 X3 X2 X1 X1.5 X1A X1B *X1C *X1D *X1E
Telepen X4 X3 X2 X1
= bar code magnification
X4 X3 X2 X2A X1 X1A X1B
X4 X3 X2 X1 X1.5
MSI X4 X3 X2 X1 X1.5
Code 128 X4 X3 X2 X1 X1.5
UCC/EAN-128 X4 X3 X2 X1 X1.5
Code 93 X2 X1
UPS 11 X2 X1
UPC-A X2 X1
UPC-E X2 X1
EAN 8 X4 X3 X2 X1
EAN 13 X1
Codabar X1 X1A
POSTNET X1 X1A
Royal Mail X1
Postbar X3 X2 X1
FIM
PDF 417
26
* The X1C, X1D, and X1E values can only be printed for a 180 dpi horizontal barcode. If these values are sent for a 120 dpi horizontal barcode, it will print as value X1.

Bell

Where: P = activates printable data field variable
p
= location of PDF (“A” {above}, “B” {below,default}, “N”
{none}) NOTE: FIM, Postbar, and PDF417 do not support this
parameter.
C = Calculate and plot check digit (if the check digit is optional) H = activates the height variable
hh
= 2-digit barcode height in 1/10”
D = Dark barcode (Note: This parameter does not take effect under any DBCS typefaces.)
[;F
q data q
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.
] = secondary data field (optional). The secondary
Bell
ASCII Code BEL Hex Code 07 Dec Code 07 Purpose Sounds the printer's buzzer/beeper. Comment The BEL function will sound the buzzer/beeper for 0.2 seconds
upon receipt of this command

Cancel Character Rotation

ASCII Code FS K Hex Code 1C 4B Dec Code 28 75 Purpose Cancels character rotation (horizontal printing mode). Comment This command cancels the effect of FS J. This control code
does not function while in non-DBCS mode.
27
Chapter 2 Configuring The LQ-1600K Emulation With Control Codes

Cancel Line

ASCII Code CAN Hex Code 18 Dec Code 24 Purpose Clears all data not yet printed from a line, but does not affect
control codes.
Comment You can use this control code to delete a line, but do so with
caution to avoid possible misprinting. This control code cancels the double wide attribute set by SO. No other print attributes are affected. The simulated print head goes to the print position it had after the last CR or paper motion command.

Cancel Spacing Adjustment

ASCII Code FS V Hex Code 1C 56 Dec Code 28 86 Purpose Cancels the spacing adjustment of half-width characters to fit
into the full-width DBCS character space.
Comment This command cancels the effect of FS U. This control code
does not function while in non-DBCS mode.

Carriage Return

ASCII Code CR Hex Code 0D Dec Code 13 Purpose Returns the simulated print head to the left margin. Comment The CR code may or may not cause printing or paper motion,
depending on the configuration as set from the control panel. If CR=CR is set, the characters following the CR are printed over the previous characters on the line. If CR=CR+LF is set, the paper is also moved one line at the current line spacing. This automatic LF will also cancel all single line print attributes.
28

CC DOS Control Code

CC DOS Control Code
ASCII Code ESC I Hex Code 1B 49 Dec Code 27 73
Value of
n
A Characters print normal size.
B Characters print double width, in both ASCII and Hanzi
C Characters print double height, only in Hanzi mode.
D Characters print double width and double height, but
n n
n
Table 4. CC DOS Control Code Parameters
mode.
double height only prints in Hanzi mode.

Character Pitch 10 CPI

ASCII Code ESC P Hex Code 1B 50
Function
Dec Code 27 80 Purpose Sets character pitch to 10 characters per inch (cpi). Comment This command is available in all print modes except DBCS
mode. This command is normally used to cancel 12 cpi. This command affects the front panel setting of cpi.

Character Pitch 12 CPI

ASCII Code ESC M Hex Code 1B 4D Dec Code 27 77 Purpose Sets character pitch to 12 characters per inch (cpi). Comment This command is available in all print modes except DBCS
mode. This command affects the front panel setting of cpi.
29
Chapter 2 Configuring The LQ-1600K Emulation With Control Codes

Character Pitch 15 CPI

ASCII Code ESC g Hex Code 1B 67 Dec Code 27 103 Purpose Sets character pitch to 15 characters per inch (cpi). Comment This command is available in all print modes except DBCS
mode. This command affects the front panel setting of cpi.

Condensed Print (Set/Reset)

ASCII Code SI ESC SIDC2 Hex Code 0F 1B 0F18 Dec Code 15 27 1512 Purpose Condenses print pitch as close as possible to 60 percent of the
former character width.
Comment 10 cpi condenses to 17.1 cpi
12 cpi or 13.3 cpi condenses to 20 cpi 15 cpi will not have condense print
Control code SI affects all subsequent characters. After receiving code SI, all characters are printed condensed until the printer is reset by ESC M, ESC P, DC2, a printer reset, or a new print mode control code. SI code (hex 0F) is equivalent to the ESC SI code. If condensed print is not allowed in the current font, this code is ignored. Proportional spacing overrides condensed printing. This control code does not function while in DBCS mode. 12 cpi will condense to 20 cpi
only
if the menu option “20 CPI Condensed” is enabled.
Example The program below shows condensed character printing and
reset.
30
Loading...
+ 98 hidden pages