Ascii Programmer’s Reference Manual
Page
Thermal Label Printers
USA
Trademarks and Service Marks
Page
Table of Contents
Series XQ Printer Protocol
Table of Contents
Serial Matrix Printer Protocol
IBM Proprinter III XL Printer Protocol
123
Epson FX-1050 Printer Protocol
171
FIM
EAN
UCC/EAN-128
Graphics
Ptrsetup Option
About This Manual
Overview
Introduction
Glossary
Software Features
IBM PC
OCR-A OCR-B
Printer Configuration
Printer Configuration
Introduction
Series Printer Protocol
Series Default Settings Characteristic
Series Default Values and States
Ascii USA
CR = CR
Page
Format for Control Code Descriptions
Configuring the P-Series Emulation with Control Codes
Special Function Control Code-Control Code Header
Hex 01 Dec 1
Attribute Set and Reset Codes
Command Line
Command Line
Command Line Error Messages Explanation
Paper Motion
Control Code Reference Index
Format
Print Attributes
Control Code Reference Index
Graphics
Other Functions
Bell
Backspace
Ascii Code BS Hex Code Dec Code
Ascii Code BEL Hex Code Dec Code
Bold Print
Bold Print Reset
Carriage Return
Ascii Code CR Hex Code 0D Dec Code
CR = CR+LF
Character Set Select
Character Set Select
Hex Code Sfcc 6C xyz Dec Code Sfcc 108 xyz
Multinational Ecma Latin DEC Multinational
IBM PC
Characters 80-9F Control Codes
Characters 80-9F Printable Symbols
Characters 80-9F Control Codes
Ascii Code Sfcc Hex Code
Ascii Code Sfcc OSETn
Character Set Select ECMA-94 Latin 1 Extended
Character Set Select International Languages
Elongated Double High Print One Line Only
Elongated Double High Print, Set/Reset
Elongated Double High Print, Set/Reset
Ascii Code Sfcc w n Hex Code
Emphasized Print Reset
Emulation Reset
Emphasized Print
Expanded Double Wide Print One Line Only
Expanded Double Wide Print
Expanded Double Wide Print
Ascii Code Sfcc k Hex Code
Extended Character Set
Extended Character Set Cancel Primary Character Set Select
Sfcc 0E Sfcc 6E
Sfcc 0F Sfcc 6F
Forms Length Set Inches
Form Feed
Form Feed
Ascii Code FF Hex Code 0C Dec Code
Form Margins, Set
Forms Length Set Lines
Ascii Code Sfcc LINESn
Ascii Code Sfcc v n1 n2 n3 n4
Line Feed
Line Feed
Ascii Code LF Hex Code 0A Dec Code
Line Spacing 1/6 Inch 6 lpi
Line Spacing 8 or 10.3 lpi One Line Only
Line Spacing 1/8 Inch 8 lpi
Line Spacing 1/8 Inch 8 lpi
Ascii Code ACK
Line Spacing 7/72 Inch
Line Spacing n/72 Inch
Line Spacing n/72 Inch
Ascii Code Sfcc a n Hex Code
Overscoring
Line Spacing n/216 Inch
Ascii Code Sfcc 3 n Hex Code
Ascii Code Sfcc n Hex Code
Plot, Odd Dot P-Series Normal Density Graphics
Plot, Even Dot P-Series High Density Graphics
Plot, Even Dot P-Series High Density Graphics
Ascii Code EOT
Ascii Code Sfcc X mn
Print Mode/Pitch Selection
Print Mode and Pitch Sfcc nq
Print Mode/Pitch Selection Print Mode and Pitch Sfcc PMODEn
Print Mode and Pitch
OCR-A
OCR-A OCR-B
Superscript/Subscript Printing
Superscript/Subscript Printing Reset
Super-Set Commands
Underline
Ascii Code Sfcc
VFU Commands P-Series
VFU Commands P-Series
Vertical Tab
Ascii Code VT Hex Code 0B Dec Code
Configuring the P-Series Emulation with Control Codes
Series XQ Printer Protocol
Series XQ Default Values and States
Page
Configuring the XQ Emulation with Control Codes
Configuring the XQ Emulation with Control Codes
Edit Mode
Edit Mode
CR Edit Mode Example Enter in Print Buffer Printed Result
NUL Code
Control Code Index
Alternate Character Set Select Shift Out
Alternate Character Set Deselect Shift
Alternate Character Set Deselect Shift
Ascii Code SI Hex Code Dec Code Purpose
Carriage Return
Compressed Print
Compressed Print
Ascii Code SOH
ETX
Electronic Vertical Format Unit Evfu
Delete
Ascii Code DEL Hex Code 7F Dec Code
Delete Example Enter in Print Buffer Printed Result
Elongated Characters Double High Print
Elongated Characters Double High Print
Ascii Code BS Hex Code Dec Code Purpose
Ascii Code ACK Hex Code Dec Code Purpose
Line Spacing 8 or 10.3 lpi
Plot, Even Dot P-Series XQ High Density Graphics
Plot, Even Dot P-Series XQ High Density Graphics
Ascii Code EOT Hex Code Dec Code
Select Letter Gothic DP
Plot, Odd Dot P-Series XQ Normal Density Graphics
Ascii Code ENQ Hex Code Dec Code
Ascii Code STX
Space
Space
Ascii Code SP Hex Code Dec Code
Hex Code 5F Dec Code
Vertical Tab
Serial Matrix Printer Protocol
Serial Matrix Default Values and States
Serial Matrix Default Settings Characteristic
LF = LF
LPI
CPI
Configuring the Serial Matrix Emulation with Control Codes
Escape Control Code Header
Ascii ESC G Hex 1B Dec 27
Control Code Index
ESC @
DC1
DC3
Bit Image Mode, Single Density
Bell
Ascii Code ESC K n1 n2 Hex Code
Bit Image Mode, Double Density Double Speed
Bit Image Mode, Double Density
Ascii Code ESC L n1 n2 Hex Code
Ascii Code ESC Y n1 n2 Hex Code
Bold Print Set
Bit Image Mode, Quadruple Density
Bit Image Mode, Quadruple Density
Ascii Code ESC Z n1 n2 Hex Code
Cancel
Ascii Code ESC H Hex Code Dec Code Purpose
Ascii Code can Hex Code Dec Code
Character Pitch 10 cpi
Carriage Return
Ascii Code ESC P Hex Code Dec Code Purpose
Ascii Code ESC M
Character Pitch 12 cpi
Dec Code Purpose
Character Set
IBM PC
Ascii Code ESC Hex Code Dec Code Purpose
Ascii Code ESC u Hex Code Dec Code Purpose
Characters 80-9F Printable Symbols
Ascii Code ESC R n Hex Code
Condensed Print
Condensed Print Reset
Condensed Print
Ascii Code SI
Unexpected print format may result
Ascii Code ESC E Hex Code Dec Code Purpose
Ascii Code ESC w n Hex Code
Ascii Code ESC @ Hex Code Dec Code Purpose
Ascii Code ESC F Hex Code Dec Code Purpose
Ascii Code SO
Through FF using codes hex 20 through hex 7F
Ascii Code ESC C NUL n Hex Code
Ascii Code ESC v n1 n2 n3 n4
Ascii Code ESC C n Hex Code
Horizontal Tab Set
Horizontal Tab
Horizontal Tab
Ascii Code HT Hex Code Dec Code
Ascii Code ESC J n Hex Code
Line Feed n/216 Inch One Line Only
Line Spacing 1/6 Inch
Line Spacing 1/6 Inch
Ascii Code ESC
Ascii Code ESC a n Hex Code
Line Spacing n/216 Inch
Ascii Code ESC 3 n Hex Code
Ascii Code ESC n Hex Code
Ascii Code ESC X mn
Print Mode and Pitch ESCnq
NLQ OCR-A OCR-B NLQ2
Configuring the Serial Matrix Emulation with Control Codes
Printer Deselect
Printer Select
Skip-Over Perforation
Ascii Code ESC S n Hex Code
Skip-Over Perforation Cancel
Super-Set Commands
Vertical Tab
Vertical Tab, Set/Clear
Vertical Tab, Set/Clear
112
IBM Proprinter III XL Printer Protocol
Proprinter III XL Emulation Default Settings
CPI
Escape Control Code Header
DC4
DC2
ESC K n1 NUL n2 n3 n4 n5
Bell
Bit Image Mode, Double Density
Bit Image Mode, Double Density Double Speed
Bit Image Mode, Quadruple Density
Bold Print Set
Bold Print Cancel
Bottom Margin, Set
Bottom Margin Cancel
Ascii Code ESC 5 n Hex Code
Carriage Return, Set
Control codes. Cancels Character Set Select activated by ESC
ESC DC
Ascii Code DC2
Ascii Code ESC Q Hex Code
Deselect Printer
Control code or DC4
Expanded Double Wide Print Reset 1 Line
Ascii Code DC4
ESC DC4
Forms length is defined in inches therefore, subsequent line
Forms length set becomes the current forms length. Forms
Horizontal Tab Set/Reset
Horizontal Tab Set/Reset
Horizontal/Vertical Tabs Clear
Ascii Code ESC D n1 n2...nk NUL
N1 Values
Initialize Parameters
Function
One byte follows n2
N4 Values
Initialize Parameters
Function OFF
N5 Values
If the emulation is configured for LF equals newline
Line Spacing 1/6 Inch 6 lpi
Line Spacing 7/72 Inch 10.3 lpi
Commands following an ESC 2 sequence* are at n/72-inch line
Ascii Code ESC X n1 n2 Hex Code
Margins, Left/Right, Set
Print One Control Code
Print Control Codes
Overscoring
Ascii Code ESC \ n1 n2 Hex Code
Select Attributes n1 Values
Select Attributes
Select Attributes n2 Values
N2 Hex Function
Select Font Print Mode
Select Font Print Mode
Select Font Print Mode Hex
Ascii Code ESC I n Hex Code
Ascii Code ESC P n Hex Code
Select Proportional Spacing
Top-of-Form
Superscript/Subscript Printing Reset
Ascii Code ESC U n Hex Code
Unidirectional Printing
Vertical Tab Set/Clear
Vertical Tab Set/Clear
148
Epson FX-1050 Printer Protocol
Epson FX-1050 Default Values and States
CPI
Epson Emulation Exceptions and Differences
Epson Character Sets
Epson Character Sets
Epson Character Set
Configuring the Epson FX-1050 Emulation with Control Codes
Escape Sequences
Hex 1B Dec 27
Set and Reset Codes
Set and Reset Codes
Character Set Print Mode Support Courier Letter Gothic
Print Modes Supported for Character Sets
OCR-A / OCR-B
Horizontal Motion
Vertical Motion and Print Execution
Print Quality Control
Emphasis
Character Set Manipulation
Data Manipulation
Backspace
Ascii Code BEL Hex Code Dec Code Purpose
Cancel Line
Character Pitch 10 cpi
Character Pitch 15 cpi
Ascii Code ESC M Hex Code
OCR B
Epson International Character Sets
Clear Bit 7 of Incoming Data Bytes to
Clear Bit 7 of Incoming Data Bytes to
Ascii Code ESC = Hex Code
Define a Download Character
Cut-Sheet / Paper Feed Control
Delete Character
Ascii Code ESC EM n Hex Code
Double High Print, Set/Reset
Double High Print, Set/Reset
Double Strike
Double Wide Print
Double Strike, Cancel
Double Wide Print 1 Line
Double Wide Print 1 Line, Cancel
Double Wide Print 1 Line
Ascii Code DC4 Hex Code Dec Code
Emphasized Print, Cancel
Enable Printing Hex Codes 00-1F and 80-9F
Enable Printing Hex Codes 00-1F and 80-9F
KEY
Graphics, Standard Density
Graphics, Double Density
Graphics, Double Density Double Speed
Graphics, Double Density Double Speed
Half Speed Mode, On/Off
Graphics, Quadruple Density
Horizontal Tab Execute
Horizontal Tab Set/Release
Horizontal Tab Execute
Italic Printing, Cancel
Initialize Printer
Italic Printing
Line Feed n/216 Inch
2 is Ascii character 2, not hex
Line Spacing 7/72 Inch
Make Hex 80-9F Printable
Make Hex 80-9F Control Codes
Make Hex 80-9F Printable Epson Printable Codes Hex 80-9F
KEY
Master Print Select
Paper Out Detection, Enable
Ascii Code ESC ! n Hex Code
Master Print Select Bit Values Bit No Bit =
Paper Out Detection, Disable
Paper Out Detection, Disable
Pass Bit 7 from Host
Ascii Code ESC # Hex Code Dec Code Purpose
Remove Downloaded Characters
Reassign Graphics Mode
Ascii Code ESC ? s m Hex Code
Dec Code 27 58 0 n
Select Graphics Mode
Select Graphics Mode
Select Italic Character Set
Select 9-Pin Graphics Mode
Select Print Quality
Ascii Code ESC t n Hex Code
Select Serif or Sans Serif Font
Select/Deselect Proportional Spacing
Select User-Defined Font
Select Vertical Tab Channel
Set Absolute Horizontal Print Position in 1/60 Inch
Set Bit 7 of Incoming Data Bytes to
Set Intercharacter Spacing in n/120 Inch
Set Margin, Right
Set Margin, Left
Set Margin, Left
Ascii Code ESC l n Hex Code
Set Forms Length in Inches
Set Forms Length by Lines
Set Relative Horizontal Print Position in n/120 Inch
Set Vertical Tabs in Channels
Set Relative Horizontal Print Position in n/120 Inch
Skip Over Perforation, Cancel
Skip Over Perforation
Ascii Code ESC O Hex Code
Superscript and Subscript Printing
Superscript and Subscript Printing, Cancel
Superscript and Subscript Printing
Ascii Code ESC T Hex Code Dec Code Purpose
Unidirectional Printing, 1 Line
Unidirectional Printing, Set/Reset
Vertical Tab, Execute
Vertical Tab, Execute
196
Super-Set Control Codes Protocol
Ascii Value Hex Value
Sfcc 7C 7D 3B
Character Set Selection
Ascii Code Sscc R n Hex Code
Epson FX Character Sets
199
MS DOS CP720
Super-Set Commands Proprinter XL Character Sets
Character Spacing n/240 Inch
Font Selection
Character Spacing n/240 Inch
Font Size
N4 Value Symbol Sets Printer Protocol
TrueType Font Selection
TrueType Font Selection
Form Length and Width
Host Form Size
Horizontal Movements in Printer Resolution
PCX Data
Line Spacing n/288 Inch
Ascii Code Sscc L n Hex Code
Orientation Select
Orientation Select
Portrait
Print Engine Options
Ascii Code Sscc w n1 n2
Ascii Code Sscc # -n
Image Width
Ascii Code Sscc X n Hex Code
Media Handling
Ascii Code Sscc M n Hex Code
Value Ascii Meaning
Ascii Code Sscc s n Hex Code
Paper Cut
Ascii Code Sscc t n Hex Code
Ascii Code Sscc E -n
Ascii Code Sscc p n1 n2
Ascii Code Sscc V n m
Power Saver Time
Ascii Code Sscc o n Hex Code
Purpose Reboots the printer
Ascii Code Sscc i + n
Ascii Code Sscc ! n Hex Code
Ascii Code Sscc N n Hex Code
Ascii Code Sscc n Hex Code
Ascii Code Sscc v -n
Software Page Eject
Printer Protocol Select
Ascii Code Sscc P n
Ascii Code Sscc J Hex Code
MSI
Software Page Eject
UPC-A
UPC-E
Bar Code Type Codes Selects Bar
Bar Code Format
Y Coordinate Unit System
Bar Code Format Bar Code Type Codes Selects Bar
Selects Location
Printable Data Field
Bar Code Format
Australian 4-State
FCC Codes and Maximum Bar Code Lengths
Valid Data Maximum Length
Codabar
Codabar
Codabar Character Set Hex
Bar Codes Check Digit
Code 39 Structure
Code
NUL
Code 39 Character Set
Code 93 Data Field
Code 93 Character Set Hex
Code 128A Data Field
Bar Codes Readable Data
Code Code 128A Character Set Hex Character Hex
Code 128B Character Set Hex
Code B
Code Code 128C Character Set Hex
Code a
FNC
EAN
EAN
EAN
FIM
Start/Stop Code
Interleaved 2/5 and German I-2/5 Structure
Interleaved 2/5 I-2/5 and German I-2/5
Maxicode
Maxicode
Standard Data Field
Standard Data Fields Character Title Positions
UPS Shipping Data Fields Character Title Positions
UPS Shipping Data Field
MSI
Security Level
PostBar and Royal Mail
PostBar and Royal Mail
Postnet
Telepen
Telepen
UCC/EAN-128
UCC/EAN-128 Application Identifiers
Content Format
248
Quiet Zone
Modulo-103 Check Digit
UPC-A
UPC-E
Eleven-Digit Compression
Bar Codes
UPC Shipping
UPC Shipping
UPS 11 Structure
UPS
Graphics
Vertical Data Byte Pattern
Binary Data Byte
Plotting a Bit Image Pattern
Plotting a Bit Image Pattern
128
Bit Image Pattern Plan
Bit Image Density
Bit Image Density
ESC CC n1 n2 Data
Bit Image Programming Format
Sample Single Density Bit Image Graphics
Bit Image Programming Format
Plot Density
Series Compatible Plot Mode Odd/Even Dot Plotting
Plot Data Byte Format
Plot Data Byte Format
Series Plot Data Byte Format
Plot Data Line Format
Plot Data Line Format
Double Density Plot
Odd Dot Plot Pattern Plan
Plotting the Data
To Exit the P-Series Plot Mode
To Exit the P-Series Plot Mode
Combining Graphics and Text
Vertical Page Formatting
VFU Load/Save/Clear
When the VFU is selected but not loaded
Start Load Code-Hex 1E or 6E
Channel Assignment
Start Load Code-Hex 1E or 6E
Using the Evfu
End Load Code-Hex 1F or 6F
Series Evfu
Using the Evfu Series Evfu Codes PI Line Enabled
Data Bits Hex Dec Code Channel
SOH STX ETX EOT ENQ ACK BEL
Series Evfu Series Evfu Codes PI Line Disabled or Not Used
Clearing the Evfu Memory
DC1 DC2 DC3 DC4 NAK SYN ETB Can SUB ESC
Relative Line Slewing
Relative Line Slewing
Serial Matrix VFU Series Evfu Line Slewing
Data Bits Hex Dec Code Lines Slewed
DLE DC1 DC2 DC3 DC4 NAK SYN ETB Can SUB ESC
Vertical Tab Positions
Executing Vertical Tabs
Executing Vertical Tabs
Form Data Form Line Vertical Tabs Number
Serial Matrix VFU
Standard Ascii Character Set
Appendix a
Ptrsetup Option
Commands
Appendix B The Ptrsetup Commands
Ptrsetup Commands Sub-Command Parameter Description
Reset
Config Delete
LP Mode
Upload
Fileio Runfile
Almenable
Maxsize
Minsize
Imageshftv
Engine Imageshfth
Length
Mediahandling
Operation of the Fileio Command
Series Plot Byte Definition
Dot
Byte
Ascii
Glossary
Appendix D
Always the Ascii ESC character. See also command
Appendix D
Sentence is set in italics
OCR
Novram
ROM
RAM
Special Function Control Character. The first character
Page
300
Index
Ptrsetup
Config
Page
Page
Evfu
Page
Oset
Postnet
Page
Page
Page
312
Readers’ Comments We’d Like to Hear from You
Business Reply Mail
Page
176977-001