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
OCR-A OCR-B
Software Features
IBM PC
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
Other Functions
Control Code Reference Index
Graphics
Bell
Backspace
Ascii Code BS Hex Code Dec Code
Ascii Code BEL Hex Code Dec Code
Bold Print
Bold Print Reset
CR = CR+LF
Carriage Return
Ascii Code CR Hex Code 0D Dec Code
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
Ascii Code Sfcc w n Hex Code
Elongated Double High Print, Set/Reset
Elongated Double High Print, Set/Reset
Emphasized Print
Emphasized Print Reset
Emulation Reset
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
Ascii Code LF Hex Code 0A Dec Code
Line Feed
Line Feed
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
Ascii Code Sfcc a n Hex Code
Line Spacing n/72 Inch
Line Spacing n/72 Inch
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
Ascii Code Sfcc
Super-Set Commands
Underline
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
Ascii Code BS Hex Code Dec Code Purpose
Elongated Characters Double High Print
Elongated Characters Double High Print
Ascii Code ACK Hex Code Dec Code Purpose
Line Spacing 8 or 10.3 lpi
Ascii Code EOT Hex Code Dec Code
Plot, Even Dot P-Series XQ High Density Graphics
Plot, Even Dot P-Series XQ High Density Graphics
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
LF = LF
Serial Matrix Default Values and States
Serial Matrix Default Settings Characteristic
LPI
CPI
Ascii ESC G Hex 1B Dec 27
Configuring the Serial Matrix Emulation with Control Codes
Escape Control Code Header
Control Code Index
DC3
ESC @
DC1
Ascii Code ESC K n1 n2 Hex Code
Bit Image Mode, Single Density
Bell
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
Ascii Code can Hex Code Dec Code
Cancel
Ascii Code ESC H Hex Code Dec Code Purpose
Ascii Code ESC P Hex Code Dec Code Purpose
Character Pitch 10 cpi
Carriage Return
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
Ascii Code ESC
Line Spacing 1/6 Inch
Line Spacing 1/6 Inch
Ascii Code ESC a n Hex Code
Ascii Code ESC n Hex Code
Line Spacing n/216 Inch
Ascii Code ESC 3 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
Skip-Over Perforation
Printer Deselect
Printer Select
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
ESC DC4
Expanded Double Wide Print Reset 1 Line
Ascii Code 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 Set
Epson Character Sets
Epson Character Sets
Hex 1B Dec 27
Configuring the Epson FX-1050 Emulation with Control Codes
Escape Sequences
Set and Reset Codes
Set and Reset Codes
OCR-A / OCR-B
Character Set Print Mode Support Courier Letter Gothic
Print Modes Supported for Character Sets
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
Ascii Code ESC = Hex Code
Clear Bit 7 of Incoming Data Bytes to
Clear Bit 7 of Incoming Data Bytes to
Define a Download Character
Cut-Sheet / Paper Feed Control
Delete Character
Ascii Code ESC EM n Hex Code
Double Strike
Double High Print, Set/Reset
Double High Print, Set/Reset
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 Execute
Horizontal Tab Set/Release
Italic Printing
Italic Printing, Cancel
Initialize Printer
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 Intercharacter Spacing in n/120 Inch
Set Absolute Horizontal Print Position in 1/60 Inch
Set Bit 7 of Incoming Data Bytes to
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 Relative Horizontal Print Position in n/120 Inch
Set Vertical Tabs in Channels
Ascii Code ESC O Hex Code
Skip Over Perforation, Cancel
Skip Over Perforation
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
Sfcc 7C 7D 3B
Super-Set Control Codes Protocol
Ascii Value Hex Value
Epson FX Character Sets
Character Set Selection
Ascii Code Sscc R n Hex Code
199
MS DOS CP720
Super-Set Commands Proprinter XL Character Sets
Character Spacing n/240 Inch
Character Spacing n/240 Inch
Font Selection
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
Ascii Code Sscc L n Hex Code
PCX Data
Line Spacing n/288 Inch
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 v -n
Ascii Code Sscc N n Hex Code
Ascii Code Sscc n Hex Code
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
Valid Data Maximum Length
Australian 4-State
FCC Codes and Maximum Bar Code Lengths
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
128
Plotting a Bit Image Pattern
Plotting a Bit Image Pattern
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
Start Load Code-Hex 1E or 6E
Channel Assignment
Series Evfu
Using the Evfu
End Load Code-Hex 1F or 6F
SOH STX ETX EOT ENQ ACK BEL
Using the Evfu Series Evfu Codes PI Line Enabled
Data Bits Hex Dec Code Channel
DC1 DC2 DC3 DC4 NAK SYN ETB Can SUB ESC
Series Evfu Series Evfu Codes PI Line Disabled or Not Used
Clearing the Evfu Memory
Relative Line Slewing
Relative Line Slewing
DLE DC1 DC2 DC3 DC4 NAK SYN ETB Can SUB ESC
Serial Matrix VFU Series Evfu Line Slewing
Data Bits Hex Dec Code Lines Slewed
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
Ptrsetup Commands Sub-Command Parameter Description
Commands
Appendix B The Ptrsetup Commands
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