7265
National Character SET
Programmer’s Manual Copyright 2004 TallyGenicom
Default Character Set for Ansi Emulation, 00 to 7F
Introduction
Ansi
Control Code Summary
ESC J
Ompar ison, 7 Bi t/ 8 Bi
Bit Control Codes
PLD
DC1
Escape Sequence Summary
ESC p` Horizontal Position Absolute
DC3 Printer not Ready
Pr inter Handshaking
DC1 Printer Ready
ETX ETX/ACK Communication Protocol
Printer Control
Genicom Ansi
DEL Delete
Select Emulation
Graphic Size Modification
Reset to Initial State
ENABLE/DISABLE OVERSIZED/EXPANDED/BAR Code Modes
SET Mode Genicom
Reset Mode Genicom
Paper Shear
Straps and Options
Graphics Rendition Fonts and Modes
Select Graphics Rendition
Select National Character SET
USA
3National Character Substitutions 0
Line/Character Spacing
CPI
LINE/CHARACTER Spacing
Forms Setup
Forms Setup
ESC L Superscript Printing PLU
Superscript/Subscript
ESC K Subscript Printing PLD
Vertical Movement
Form Feed
Line Feed
Vertical TAB
ESC D Index IND
Vertical Position Absolute
Vertical Position Relative
Vertical Position Backwards
Vertical and Horizontal Position Absolute
SET Left and Right Margin
Assign Margin Defaults
Margins
Carriage Return
Horizontal Movement
Horizontal TAB
Horizontal Position Relative
Horizontal Position Absolute
Backspace
Tabs
Dot Graphics
5Dot Column Coding
Sample Basic Program for Dot Coding
BEL Bell
ESC P Enter DOT Graphics Mode
ESC \ Exit DOT Graphics Mode
Line Feed NEL
Graphics Density
Horizontal density Vertical density
Ansi Bar Codes
Before You Begin Set the Form Length
Setting Bar Code Parameters
0123456789
General Rules for Assigning Parameters
Bar Code Command Sequences
Cancel OVERSIZED/EXPANDED/BAR Code Modes
MSI
UPC-A
UPC-E
Postnet
Element Widths
1234
P10 Horizontal Resolution
Delimiters
#/E !#/E
Horizontal Tab Delimiter
1234
2345 6789
Calculating Characters per Inch
= 2 x L1 L2
Bar Code Style Characteristics
Interleaved 2 of 5 Style
Matrix 2 of 5 Style
EAN-8 Style
Code 11 Style
Codabar A/t, B/n, C/*, D/e 9, 10, 11
UPC-E Style
Code 93 Style
MSI Style19
ABC
ZIP
ZIP+4
Bars per character 2 tall bars and 3 short bars
Calculating the Checksum for Code 3
Calculating the Checksum for Code
Code 93 Character Table
Code 93 Checksums for Full Ascii
Checksum calculation for the symbol Cat
Ascii
DEL
Ansi Oversized Font
Activate Oversized / Expanded / BAR Code
Control Function Summary
Oversized Control Functions
Exit Oversized / Expanded / BAR Code
Exit Oversized
SET Character Size
Setting the Expansion
Oversized Versus Expanded
Device Timeout with Very Large Characters
ESC pvphSPB
What is a Character Cell?
2Character Cells
Oversized Character Dimensions 0o
3Vertical Character Dimensions
Oversized Character Dimensions 270o
Vertical Position-Relative in Oversized
Implementing the Line Feed Function 0o
ESC PvPhf
Line Spacing and Intercharacter Spacing 270o
Appendix A. Commands and Exceptions
Commands not implemented in the 7265 Ansi Emulation
Programmers Reference
Table of Contents
Page
Page
Appendix B Character Sets
Sorted by Sequences Sorted by Functions
Description of Sequences
Introduction
Introduction
Character explanation and symbol description
Ascii ESC C
Ascii ESC NUL
Ascii ESC
ESC NUL
Paper and Text Formatting
ESC C ESC C NUL
Data Structure Ascii
Next L
Ascii
ESC C
Data Structure
Description Valid values
ESC c
Paper and Text Formatting
ESC N ESC O
ESC N
Example
Description
ESC Q ESC l
ESC Q
REM
ESC a
Width
= INT
Character Spacing
Following sequences will cancel the HMI mode
Ascii ESC SO
SO/ESC SO DC4 ESC W
Syntax
Ascii DC4
Character Spacing
SI/ESC SI DC2
Ascii DC2
ESC P ESC M ESC g
Ascii ESC M
10 REM Single character densities
ESC p
ESC SP
Ascii ESC SP
ESC 0 ESC 1 ESC
Line Spacing
10 REM Fix line spacing
ESC 3 ESC a ESC +
Ascii ESC a
Next END REM
Ascii ESC T
ESC S ESC T
ESC S
Character Styling
Lprint E=M*C
Ascii ESC H
ESC G ESC H
ESC G
ESC
Points
Following sequences are ignored in scaleable font mode
Following sequences will cancel the scaleable font mode
Pitch
ESC
DPQ NLQ
OCR-A
ESC k
OCR-B
Character Styling
ESC q
Beispiel
Ascii ESC F
ESC E ESC F
ESC E
Underline Mode
Loc n1
Type n2
Character Styling
ESC 4 ESC
Print Mode Selection
Stan Con Cond
Next N END
ESC w
Ascii ESC D NUL
ESC D
ESC D
Print Positioning
Horizontal tabs
ESC e
ESC f
ESC $
Example for calculating n1 and n2
Lprint
ESC \
Lprint END
Ascii ESC B NUL
ESC B
ESC B
Vertical tabs
ESC b ESC
Lprint CHR$11
Set Absolute Vertical Print Position
Set Relative Vertical Print Position
Print Positioning
ESC U
ESC Y
ESC K
ESC L
ESC Z
Example for Calculation of n1 and n2
Needle Data Byte
Graphics
ESC G
Graphics
ESC ?
For X=1 to 60REM
Graphics Printing with 9 Print Dots
Example for the calculation of n1 and n2
General
Download Character Generator
Download Character Generator
Copy ROM into RAM
Print Raster Graphics
Description of parameters
Calculating algorithm
Stop
ESC %
SOH
Download Characters
Defining Character 9 Needle Printer
Columns
Evaluation of the bytes in each column is as follows
Attribute a 9 needle printer
Descenders 9 needle printer
Proportional Data 9 needle printer
Computing the Attribute 9 needle printer
Download Character Generator
Download Character Generator
Lprint Lprint Lprint
Definition of NLQ Characters 9 needle printer
Definition of the Character Grid
See next page for the corresponding programming example
Read D
Needle printer
Example
Lprintlprint Lprint Aaaaaaaaaaaaaaaaaaa
Miscellaneous
ESC ESC U
ESC s
ESC J
ESC J
ESC j
ESC r
10 REM Colour selection
USA
ESC R
ESC R
Germany
ESC t
D1 = 1 or Character table
Restore
Brascii
Abicomp
ESC ESC = ESC #
ESC EM
Ascii ESC EM
REM sheet feeder
ESC 6 ESC
END Restore
ESC m
International Code Table
ESC @
ESC 8 ESC
Can
Control Codes
Hex.7F Clear previous characters in the print buffer Dec.127
Hex.01 Start Of Heading Dec.01 Hex.20 Space Dec.32 Hex.0B
Appendix a
ESC % NUL
Sorted by sequences
BEL Can DEL DC1 DC2 DC3 DC4
2Summary of Possible Codes
ESC =
Summary of Possible Codes A-3
ESC EM ESC EM R ESC F
ESC B NUL
ESC D NUL
4Summary of Possible Codes
Summary of Possible Codes A-5
ESC O
ESC SI ESC SO
ESC X FF HT LF NUL SI SO SOH SP VT
6Summary of Possible Codes
Summary of Possible Codes A-7
ESC #
8Summary of Possible Codes
ESC % NUL NUL
Summary of Possible Codes A-9
10Summary of Possible Codes
Appendix B
Ascii B dec.66 hex.42
2Character Sets
Standard Character Set
Character Sets B-3
US Ascii
4Character Sets
Character Sets B-5
6Character Sets
Character Sets B-7
8Character Sets
International Code Table
Character Sets B-9
International Code Table, extended
10Character Sets
Character Sets B-11
Proportional width during scaleable font mode
12Character Sets
Needle Printer
Character Sets B-13
14Character Sets
Character Sets B-15
16Character Sets
Character Sets B-17
18Character Sets
Trademark Acknowledges
Programmer’s Reference
Description of MTPL-Sequences
Page
Page
Page
Appendix C Additional Technical Description Index
Description of MTPL-Sequences
CSI ... t
Ascii CSI
Set to a form length of 72 lines
CSI ... t
Data Sructure
REM
CSI 11 h CSI 11 l
CSI ... SP
CSI ... r CSI r
Examples
For F=1 to For L=2 to Lprint
CSI ... s CSI s
10 REM Left and right margin Width LPT1,255
CSI 10 SP U
CSI ... SP U
CSI SP U
CSI SP
CSI 8 y CSI 9 y CSI 10 y CSI y
CSI ... SP G
CSI ... w
Character densities
CSI ... SP K
Character Spacing SCS
CSI ... SP \
CSI ... SP f
CSI ... p
CSI ... q
CSI ... SP L
CSI 3 z
CSI 4 z
CSI ... SP h
CSI 0 z CSI 1 z CSI 10 z CSI 2 z
Super/sub/microscript
CSI 12 z CSI 13 z CSI 2 z
END
CSI ... SP X CSI ... y
10 REM Print quality
CSI ... m
CSI n1 n2 nx m Character Styling
LQ OCR-B
LQ OCR-A
CSI = z CSI z
CSI 3 m CSI 23 m
CSI n1n2nx m Example
CSI 50 m
CSI 26 m
CSI 2 y
CSI 7 y
10 REM Proportional spacing
CSI 4 m CSI 21 m CSI 24 m
CSI 53 m CSI 55 m
CSI 9 w CSI 8 w
CSI SP B
CSI ... SP C
CSI ... SP B
OCR a
CSI ... SP D
OCR B
= OCR-B = OCR-A
Parameter n1 Register to use
Parameter n2 What to put in the register
HTS
Ascii HTS
CSI ... u ESC H CSI ... g
Examples
Next Lprint
Line Feed
Vertical Tab Stop
Ascii VTS
VTS
IND
IND
CSI ... v CSI 1 g CSI 4 g
10 REM Vertical tabs
CSI ‘
CSI
Data Structure Description
CSI ... a
CSI ... j
CSI ... d
CSI ... e
CSI ... k
CSI ... f
Backspace
Form Feed
PLD
PLD
PLU
PLU
NEL
NEL
Data Ascii CSI
ESC % CSI 6 z CSI 5 z
ESC Data
Example for calculation of n1 and n2
REM bit image print
Restore
CSI ... SP q
CSI ... + z
CSI ... + y
CSI Ps1 Ps2 Ps3 Pn4 Pn5 +
CSI Pn + w
Rgbk Ymck
Ymck Rgbk
Red Green Yellow Blue Magenta Cyan
CSI ... z
Gosub END For I=97 to 103LPRINT CHR$INEXT
CSI ... CSI 2 J
If a cutting device is installed
Paper is inserted on receipt
ESC c CSI 6 ~
Mtpl + Epson FX Mtpl + Epson LQ
CSI ? ... ~
Mtpl
LS2R
SO ESC
LS3R
Set of up to 94 characters is made ready for use
UK-ASCII
ESC ESC +
US-ASCII
Miscellaneous
Lprint US-ASCII Gosub
Activation of Characters
Graphic description of locking shift/single shift pages 81
CSI ? 50 h
CSI ? 50 l
CSI ? 51 h CSI ? 51 l
CSI ? 52 h CSI ? 52 l
CSI ? 53 h CSI ? 53 l
CSI Pn … SP r
CSI ... c
CSI ... n
= Busy
ENQ
Ascii ENQ
STX
NUL
STX
Ascii ETX
ETX
ACK
NAK
NAK
Can
Ascii BEL
DEL BEL
Ascii DEL
Start Character Escape
MTPL-Start Character Control Sequence Introducer
Appendix a
Function Sequence
Summary of Possible Codes A-3
CSI 2 SP K
CSI 2 J
CSI 2 SP
CSI 2 SP L
CSI 4 SP
CSI 7 SP
6Summary of Possible Codes
ESC ~
ESC * F
ESC + F
CSI 5 SP
Summary of Possible Codes A-9
CSI 1 SP K
CSI 0 SP
CSI 0 SP K
CSI 1 SP
Summary of Possible Codes A-11
12Summary of Possible Codes
Summary of Possible Codes A-13
Appendix B
For the contents of the shaded areas, see table at page B-3
International Substitution Table normal font
Programmer’s Reference
Codabar
HRI
Data Formats of Barcode Types
Check Number Calculation
EAN Upca Upce
Appendix
Page
Barcode and LCP Printing
SUB
DLE
Matrix Type a
Please note the following explanatory information
Character explanation and symbol descriptions
Figures n Start code Stop code
Special Feature
Secured/Unsecured Mode
Unsecured mode
Secured mode
ESC PSC0 ESC \
Lprint CHR$27
Barcode Printing
Barcode Printing
LCP commands
Selection Code
HRI
EAN/UPC Barcode X, Y = unregarded
Header Parameter Normal Compressed Enlargement Factor
Barcode Printing
Code 2/5 Matrix Type a
Code 2/5 Industrial Type B
Code 2/5 Interleaved Type C
Not 398 but
Code Type D
Figures/Characters n Start code Stop code
Code BCD Matrix Type E
Code Type F
Codabar
Type G
Code EAN 8 with HRI Type H
Hex Start code Nnnn Separation code Nnnc Stop code Dec
Code EAN 8 without HRI Type
Code EAN 13 with HRI Type K
Hex Start code Nnnnnnn Separation code Nnnnnc Stop code Dec
Code EAN 13 without HRI Type L
Code MSI / modified Plessey Type M
Code UPC a with HRI Type N
Separation code Nnnnnc Stop code
Code UPC a without HRI Type O
Code UPC E with HRI Type P
Hex Start code Nnnnnnnc Stop code Dec
Code UPC E without HRI Type Q
Code Delta distance IBM Type R
Code Type S
Example
Code 128 translation table
Wert
Barcode Printing
EAN Type T
Add-On Barcodes
Barcode Printing
Check Number Calculation
EAN
EAN
Upce
Add-On
Numbers are transmitted check number c and 2 informations n
US Postnet Barcode ESC 1 SP p
US Postnet Barcode
Large Character Printing LCP
Large Character Printing LCP
Hex Dec = all printable characters hex.1F, dec.31
ESC \ Character set US-ASCII Hex Dec
Various Examples
Various Examples
END
Various Examples
Appendix
Ascii B = dec.66, hex.42
LCP Character Set, german
LCP Character Set, US-ASCII
OCR-A Character Set Code
OCR-B Character Set Code