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