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