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