Ascii Programmer’s Reference Manual
Page
Thermal Label Printers
USA
Trademarks and Service Marks
Page
Table of Contents
Table of Contents
Series XQ Printer Protocol
Serial Matrix Printer Protocol
IBM Proprinter III XL Printer Protocol
123
Epson FX-1050 Printer Protocol
171
EAN
FIM
Graphics
UCC/EAN-128
Ptrsetup Option
Overview
About This Manual
Introduction
Glossary
OCR-A OCR-B
Software Features
IBM PC
Printer Configuration
Printer Configuration
Introduction
Series Printer Protocol
Series Default Values and States
Series Default Settings Characteristic
Ascii USA
CR = CR
Page
Configuring the P-Series Emulation with Control Codes
Format for Control Code Descriptions
Special Function Control Code-Control Code Header
Hex 01 Dec 1
Command Line
Attribute Set and Reset Codes
Command Line
Command Line Error Messages Explanation
Control Code Reference Index
Paper Motion
Format
Print Attributes
Other Functions
Control Code Reference Index
Graphics
Backspace
Bell
Ascii Code BS Hex Code Dec Code
Ascii Code BEL Hex Code Dec Code
Bold Print Reset
Bold Print
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 Printable Symbols
Characters 80-9F Control Codes
Characters 80-9F Control Codes
Ascii Code Sfcc Hex Code
Character Set Select ECMA-94 Latin 1 Extended
Ascii Code Sfcc OSETn
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
Expanded Double Wide Print One Line Only
Expanded Double Wide Print
Ascii Code Sfcc k Hex Code
Extended Character Set Cancel Primary Character Set Select
Extended Character Set
Sfcc 0E Sfcc 6E
Sfcc 0F Sfcc 6F
Form Feed
Forms Length Set Inches
Form Feed
Ascii Code FF Hex Code 0C Dec Code
Forms Length Set Lines
Form Margins, Set
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 1/8 Inch 8 lpi
Line Spacing 8 or 10.3 lpi One Line Only
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
Line Spacing n/216 Inch
Overscoring
Ascii Code Sfcc 3 n Hex Code
Ascii Code Sfcc n Hex Code
Plot, Even Dot P-Series High Density Graphics
Plot, Odd Dot P-Series Normal Density Graphics
Plot, Even Dot P-Series High Density Graphics
Ascii Code EOT
Print Mode/Pitch Selection
Ascii Code Sfcc X mn
Print Mode/Pitch Selection Print Mode and Pitch Sfcc PMODEn
Print Mode and Pitch Sfcc nq
Print Mode and Pitch
OCR-A
OCR-A OCR-B
Superscript/Subscript Printing Reset
Superscript/Subscript Printing
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 Deselect Shift
Alternate Character Set Select Shift Out
Alternate Character Set Deselect Shift
Ascii Code SI Hex Code Dec Code Purpose
Carriage Return
Compressed Print
Compressed Print
Ascii Code SOH
ETX
Delete
Electronic Vertical Format Unit Evfu
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
Line Spacing 8 or 10.3 lpi
Ascii Code ACK Hex Code Dec Code Purpose
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
Plot, Odd Dot P-Series XQ Normal Density Graphics
Select Letter Gothic DP
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
CPI
LPI
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
Bit Image Mode, Double Density Double Speed
Ascii Code ESC L n1 n2 Hex Code
Ascii Code ESC Y n1 n2 Hex Code
Bit Image Mode, Quadruple Density
Bold Print Set
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
Character Pitch 12 cpi
Ascii Code ESC M
Dec Code Purpose
Character Set
IBM PC
Ascii Code ESC Hex Code Dec Code Purpose
Characters 80-9F Printable Symbols
Ascii Code ESC u Hex Code Dec Code Purpose
Ascii Code ESC R n Hex Code
Condensed Print Reset
Condensed Print
Condensed Print
Ascii Code SI
Unexpected print format may result
Ascii Code ESC w n Hex Code
Ascii Code ESC E Hex Code Dec Code Purpose
Ascii Code ESC F Hex Code Dec Code Purpose
Ascii Code ESC @ 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 C n Hex Code
Ascii Code ESC v n1 n2 n3 n4
Horizontal Tab
Horizontal Tab Set
Horizontal Tab
Ascii Code HT Hex Code Dec Code
Line Feed n/216 Inch One Line Only
Ascii Code ESC J n Hex Code
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
Print Mode and Pitch ESCnq
Ascii Code ESC X mn
NLQ OCR-A OCR-B NLQ2
Configuring the Serial Matrix Emulation with Control Codes
Skip-Over Perforation
Printer Deselect
Printer Select
Skip-Over Perforation Cancel
Ascii Code ESC S n Hex Code
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
DC2
DC4
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 Cancel
Bold Print Set
Bottom Margin Cancel
Bottom Margin, Set
Carriage Return, Set
Ascii Code ESC 5 n Hex Code
Control codes. Cancels Character Set Select activated by ESC
Ascii Code DC2
ESC DC
Deselect Printer
Ascii Code ESC Q Hex Code
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
Initialize Parameters
N1 Values
Function
One byte follows n2
Initialize Parameters
N4 Values
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
Margins, Left/Right, Set
Ascii Code ESC X n1 n2 Hex Code
Print Control Codes
Print One Control Code
Overscoring
Ascii Code ESC \ n1 n2 Hex Code
Select Attributes
Select Attributes n1 Values
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
Select Proportional Spacing
Ascii Code ESC P n Hex Code
Superscript/Subscript Printing Reset
Top-of-Form
Unidirectional Printing
Ascii Code ESC U n Hex Code
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
Vertical Motion and Print Execution
Horizontal Motion
Emphasis
Print Quality Control
Character Set Manipulation
Data Manipulation
Backspace
Cancel Line
Ascii Code BEL Hex Code Dec Code Purpose
Character Pitch 15 cpi
Character Pitch 10 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
Cut-Sheet / Paper Feed Control
Define a Download Character
Delete Character
Ascii Code ESC EM n Hex Code
Double Strike
Double High Print, Set/Reset
Double High Print, Set/Reset
Double Strike, Cancel
Double Wide Print
Double Wide Print 1 Line, Cancel
Double Wide Print 1 Line
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
Graphics, Quadruple Density
Half Speed Mode, On/Off
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 Control Codes
Make Hex 80-9F Printable
KEY
Make Hex 80-9F Printable Epson Printable Codes Hex 80-9F
Paper Out Detection, Enable
Master Print Select
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
Reassign Graphics Mode
Remove Downloaded Characters
Ascii Code ESC ? s m Hex Code
Dec Code 27 58 0 n
Select Graphics Mode
Select Graphics Mode
Select 9-Pin Graphics Mode
Select Italic Character Set
Select Print Quality
Ascii Code ESC t n Hex Code
Select/Deselect Proportional Spacing
Select Serif or Sans Serif Font
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, Left
Set Margin, Right
Set Margin, Left
Ascii Code ESC l n Hex Code
Set Forms Length by Lines
Set Forms Length in Inches
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, Cancel
Superscript and Subscript Printing
Superscript and Subscript Printing
Ascii Code ESC T Hex Code Dec Code Purpose
Unidirectional Printing, Set/Reset
Unidirectional Printing, 1 Line
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
Super-Set Commands Proprinter XL Character Sets
MS DOS CP720
Character Spacing n/240 Inch
Character Spacing n/240 Inch
Font Selection
N4 Value Symbol Sets Printer Protocol
Font Size
TrueType Font Selection
TrueType Font Selection
Form Length and Width
Horizontal Movements in Printer Resolution
Host Form Size
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 # -n
Ascii Code Sscc w n1 n2
Image Width
Ascii Code Sscc X n Hex Code
Ascii Code Sscc M n Hex Code
Media Handling
Value Ascii Meaning
Ascii Code Sscc s n Hex Code
Ascii Code Sscc t n Hex Code
Paper Cut
Ascii Code Sscc E -n
Ascii Code Sscc p n1 n2
Power Saver Time
Ascii Code Sscc V n m
Purpose Reboots the printer
Ascii Code Sscc o n Hex Code
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
Printer Protocol Select
Software Page Eject
Ascii Code Sscc P n
Ascii Code Sscc J Hex Code
Software Page Eject
MSI
UPC-A
UPC-E
Bar Code Format
Bar Code Type Codes Selects Bar
Bar Code Format Bar Code Type Codes Selects Bar
Y Coordinate Unit System
Printable Data Field
Selects Location
Bar Code Format
Valid Data Maximum Length
Australian 4-State
FCC Codes and Maximum Bar Code Lengths
Codabar
Codabar
Bar Codes Check Digit
Codabar Character Set Hex
Code
Code 39 Structure
Code 39 Character Set
NUL
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 Code 128C Character Set Hex
Code B
Code a
FNC
EAN
EAN
EAN
FIM
Start/Stop Code
Interleaved 2/5 I-2/5 and German I-2/5
Interleaved 2/5 and German I-2/5 Structure
Maxicode
Maxicode
Standard Data Field
Standard Data Fields Character Title Positions
UPS Shipping Data Field
UPS Shipping Data Fields Character Title Positions
MSI
Security Level
PostBar and Royal Mail
PostBar and Royal Mail
Postnet
Telepen
Telepen
UCC/EAN-128
Content Format
UCC/EAN-128 Application Identifiers
248
Quiet Zone
Modulo-103 Check Digit
UPC-A
UPC-E
Eleven-Digit Compression
Bar Codes
UPC Shipping
UPC Shipping
UPS
UPS 11 Structure
Graphics
Binary Data Byte
Vertical Data Byte Pattern
128
Plotting a Bit Image Pattern
Plotting a Bit Image Pattern
Bit Image Pattern Plan
Bit Image Density
Bit Image Density
Bit Image Programming Format
ESC CC n1 n2 Data
Bit Image Programming Format
Sample Single Density Bit Image Graphics
Series Compatible Plot Mode Odd/Even Dot Plotting
Plot Density
Plot Data Byte Format
Plot Data Byte Format
Plot Data Line Format
Series Plot Data Byte Format
Double Density Plot
Plot Data Line Format
Plotting the Data
Odd Dot Plot Pattern Plan
To Exit the P-Series Plot Mode
To Exit the P-Series Plot Mode
Combining Graphics and Text
Vertical Page Formatting
When the VFU is selected but not loaded
VFU Load/Save/Clear
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
Executing Vertical Tabs
Vertical Tab Positions
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
Config Delete
Reset
LP Mode
Upload
Almenable
Fileio Runfile
Maxsize
Minsize
Engine Imageshfth
Imageshftv
Length
Mediahandling
Operation of the Fileio Command
Series Plot Byte Definition
Byte
Dot
Glossary
Ascii
Appendix D
Always the Ascii ESC character. See also command
Appendix D
Sentence is set in italics
Novram
OCR
RAM
ROM
Special Function Control Character. The first character
Page
300
Index
Config
Ptrsetup
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