Preliminary Release Rev
MP3200 Series Programming Reference
Trademarks & Copyright
Proprietary Statement
Liability Disclaimer
No Liability for Consequential Damage
Chapter 1 Introduction
Table of Contents
Chapter 2 Command Overview
Chapter 3 Command Descriptions
ESC ?
GS
GS h
Introduction
JCL Command Sets
ESC/POS
Commands Comparison between JCL and ESC/POS
Command
Descriptions
Cancel user-defined characters
Print and feed n lines
Set relative vertical print position in page mode
Print counter setup
Command
series
Command Overview
Command Notation
Supported Commands
Command Notation
Explanation of Terms
5 Printable area
Page
Classification
Supported Commands
Standard mode
Page mode
Programming Reference
Commands Listed by Function
Command
VERSAJET MP3200
Function
Command
VERSAJET MP3200
Programming Reference
Function
Command
VERSAJET MP3200
Programming Reference
Function
Command
VERSAJET MP3200
Programming Reference
Function
Command
VERSAJET MP3200
Programming Reference
Programming Reference
Commands Listed in Alphanumeric Order
Command
VERSAJET MP3200
Function
Command
VERSAJET MP3200
Programming Reference
Function
Command
VERSAJET MP3200
Programming Reference
Function
Command
VERSAJET MP3200
Programming Reference
Function
Command
VERSAJET MP3200
Programming Reference
Command Descriptions
VERSAJET MP3200
Programming Reference
Page
Page
ESC J
Programming Reference
VERSAJET MP3200
Page
ESC d
ESC FF
Page
ESC T
ESC SP
ESC %
27 38 y c1 c2 x1 d1 dyx x1 xk d1
ESC & y c1 c2 x1 d1 dyx x1 xk d1
dyx xk
1B 26 y c1 c2 x1 d1 dyx x1 xk d1
The data to define a user defined character is yx x bytes
Programming Reference
VERSAJET MP3200
ESC ?
ESC R
Character Code Table
ESC t
Decimal
Function
Off/On
When both double-height and double-width modes are selected, quadruple size characters are printed
Function
This command does not affect Kanji printing
VERSAJET MP3200
Programming Reference
ESC E
ESC G
Page
Function
Programming Reference
VERSAJET MP3200
Character width selection
Decimal
Width
Character height selection
Height
Decimal
In page mode, double-height and double-width are on the character orientation
GS B
Page
n Function
ESC M
ESC $
ESC \
Function
ESC a
Page
68 n1…nk
ESC D
ESC D n …nk NUL
44 n1…nk
k is not transmission data to the printer
GS L
Left margin setting is effective until ESC @ is executed, the printer is reset, or the power is turned off
GS W
27 87 xL xH yL yH dxL dxH dyL dyH
ESC W
ESC W xL xH yL yH dxL dxH dyL dyH
1B 57 xL xH yL yH dxL dxH dyL dyH
Programming Reference
VERSAJET MP3200
VERSAJET MP3200
………………………….xLxH, yLyH
paper
page mode range dyLdyH ………………………… dxLdxH
Starting Position
ESC T
printing area
Printing
commands use vertical motion units ESC SP, ESC $, ESC \
GS $
GS \
Mode
ESC * m nL nH d1dk
1B 2A m nL nH d1 dk
27 92 m nL nH d1 dk
dk-1
dk-2
k = x x y x
GS * x y d1 dx x y x
1D 2A x y d1 dx x y x
29 42 x y d1 dx x y x
dy+2
When this command is executed, the user-defined character is cleared
The downloaded bit image is printed by GS
dy+1
n Mode
If the downloaded bit image to be printed exceeds the printable area, the excess data is not printed
29 118 48 n xL xH yL yH d1 dk
GS v
GS v 0 n xL xH yL yH d1 dk
1D 76 30 n xL xH yL yH d1 dk
Programming Reference
VERSAJET MP3200
Page
Programming Reference
VERSAJET MP3200
Page
The macro is defined by GS
Page
Commands using x ESC 3, ESC J, ESC W, GS $, and GS \
Commands using y ESC SP, ESC $, ESC W, ESC \
GS P
This command does not affect the current setting values
ESC @
Specification
Printer ID
Printer ID
With a serial interface printer, be sure to use this function when the host can receive data
ESC L
Programming Reference
VERSAJET MP3200
ESC S
GS A pL pH n m
GS A
When processing the automatic setting m = 64 of the paper layout, the printer feeds the current roll paper to measure the paper layout. During this time, the printer does not print. After the measuring, it writes the setting of layout from the measuring to the non-volatile memory. Please note the following points when you use this function
1 n
RS G
RS s
30 87 xL xH yL yH dxL dxH dyL dyH
RS W
RS W xL xH yL yH dxL dxH dyL dyH
1E 57 xL xH yL yH dxL dxH dyL dyH
Programming Reference
VERSAJET MP3200
RS b
RS m n
RS p
Function
GS K
GS K pL pH fn m
GS K Function
Function
GS C
Print position
Processing of digits less than those specified
The serial number counter is stored in the print buffer by GS c
VERSAJET MP3200
Programming Reference
Count mode
GS C 1 aL aH bL bH n r
1D 43 31 aL aH bL bH n r
29 67 49 aL aH bL bH n r
The value of the counter is updated when executing GS c
GS C
GS c
The counter value is set by GS C
VERSAJET MP3200
Programming Reference
Function
GS k
Function
For processing of PDF417 symbol data when cn =
For process of QR Code symbol when cn =
GS k pL pH cn fn n
GS k PDF417Function
GS k pL pH cn fn n
GS k PDF417Function
1 n
GS k PDF417Function
GS k pL pH cn fn n
GS k pL pH cn fn n
Function
Number of error correction code word
GS k pL pH cn fn m n
GS k PDF417Function
The error correction code word calculated by modulus
VERSAJET MP3200
Programming Reference
GS k PDF417Function
GS k pL pH cn fn m d1 dk
GS k PDF417Function
GS k pL pH cn fn m
Pad codeword This command is effective only in Page mode
GS k QR CodeFunction
GS k pL pH cn fn n1 n2
Function
GS k QR Code Function
2 n
GS k pL pH cn fn n
Recovery Capacity % approx
GS k QR Code Function
GS k pL pH cn fn n
GS k pL pH cn fn m d1 dk
Category of data
Characters it is possible to specify
GS k QR Code Function
ESC @ is executed The printer is reset or the power is turned off
VERSAJET MP3200
Programming Reference
GS k QR Code Function
GS k p pH cn fn m
Separators for Position Detection Patterns Timing Patterns
GS k MaxiCodeFunction
GS k k pL pH cn fn n
50 n ҏ54 52~54 not support
GS k pL pH cn fn m d1…dk
GS k MaxiCode Function
Size and Type
4 Each item finished adding “GS”
1 RS and GS represents 1EH and 1DH respectively
2 Background is yellowÆStart / End elements necessary
3 Background is blueÆ data elements are mandatory
None
GS k pL pH cn fn m
GS k MaxiCode Function
GS k DatamatrixFunction
GS k pL pH cn fn n
None
GS k pL pH cn fn n
GS k Datamatrix Function
GS k pL pH cn fn n
GS k Datamatrix Function
GS k pL pH cn fn n
Datamatrix Function
n = 0 or
GS k
GS k pL pH cn fn n
Data mode
Description
GS k Datamatrix Function
number
Column
Capacity
Barcode type Rectangle Shape
4 ҏpL + pH x ҏ256
GS k
Datamatrix Function
GS k pL pH cn fn m d1…dk
GS k pL pH cn fn m
GS k Datamatrix Function
Pad codeword
GS k RSS-14Function
GS k pL pH cn fn n
Description
GS k RSS-14Function
GS k pL pH cn fn n
2 ҏҏ n ҏ22
GS k RSS-14Function
GS k pL pH cn fn n
1 ҏҏ n ҏ255
GS k pL pH cn fn n
GS k RSS-14Function
GS k pL pH cn fn m d1…dk
GS k RSS-14Function
RSS Symbol Type
Data Type
Data Capacity
GS k pL pH cn fn m
GS k RSS-14Function
GS k pL pH cn fn n
GS k Code49Function
GS k pL pH cn fn n
GS k Code49Function
Code49Function
GS k
GS k pL pH cn fn m d1 dk
Character
Data capacity
one byte, the others will spend two bytes
VERSAJET MP3200
Function 080 or 180 or 280 or 780 or 880 or 980 is executed
ESC @ is executed The printer is reset or the power is turned off
For example 1 “123ABC” Æ 6 bytes 2 “123abc” Æ3 + 3*2 = 9 bytes
Numeric Æ The numeric can’t exceed 81 bytes
GS k pL pH cn fn m
GS k Code49Function
GS h
GS w
29 107 m d1 dk NULL
GS k
GS k m d1 dk NULL
1D 6B m d1 dk NULL
Character code d
Bar code
Number of
Characters
For I and
For UPC-E m = 0, 66 process
For UPC-A m = 0, 65 process
Data of transmitted by host PC
Printing data
For JAN13/EAN13 m = 2, 67 process
For CODE39 m = 4, 69 process
For JAN8/EAN8 m = 3, 68 process
For ITF Interleaved 2 of 5 m = 5, 70 process
For CODEBAR NW-7 m = 6, 71 process
For CODE93 m = 72 process
For CODE128 m = 73 process
Decimal
Specific Character
Transmit data
ASCII
Check digit is calculated and added automatically
Printing Position
GS H
n Font of HRI characters
GS f
28 113 n xL xH yL yH d1 dk1 xL xH yL yH d1 dk n
FS q
FS q n xL xH yL yH d1 dk1 xL xH yL yH d1 dk n
1C 71 n xL xH yL yH d1 dk1 xL xH yL yH d1 dk n
Y = yL + yH xҏ256
Data is written to the non-volatile memory by this command. Note the following when using this command
Mode
FS p
Scaling for
Scaling for vertical
27 27 0 n, n1 n2 n3 n4, n5, n6, n7, n8, n9, n10, n11
ESC ESC
ESC ESC 00 n, n1 n2 n3 n4, n5, n6, n7, n8, n9, n10, n11
1B 1B 00 n, n1 n2 n3 n4, n5, n6, n7, n8, n9, n10, n11
n9 Reservevalue00 n10 Reservevalue00 n11 Reservevalue00
n5 Data Length 8 bits, fixed n6 Parity N, fixed
n7 Stop Bit 1bit, fixed n8 Communication Protocol
R RTS/CTShardware, use R as a dummy even for IrDA X Xon/Xoffsoftware
0 n 1
ESC ESC
Function
ESC ESC
ESC ESC
ESC ESC
Function
Function
ESC ESC
ESC ESC
0 n 2
ESC ESC
Function
1 n 2
ESC ESC
Function
ESC ESC
ESC ESC
ESC ESC D