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