Select your printer model

Parameters are refined by the selected printer.
  • EU-m30
  • TM-J2000
  • TM-J2100
  • TM-L90
  • TM-L90 LFC
  • TM-L100
  • TM-m10
  • TM-m30
  • TM-m30II
  • TM-m30II-H
  • TM-m30III
  • TM-m30III-H
  • TM-m30II-NT
  • TM-m30II-S
  • TM-m30II-SL
  • TM-m50
  • TM-m50II
  • TM-m50II-H
  • TM-P20
  • TM-P20II
  • TM-P60
  • TM-P60II
  • TM-P80
  • TM-P80II
  • TM-T20
  • TM-T20II
  • TM-T20III
  • TM-T20IIIL
  • TM-T20IV-L
  • TM-T20X
  • TM-T20X-II
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82IV-L
  • TM-T82X
  • TM-T82X-II
  • TM-T83III
  • TM-T83IV
  • TM-T88IV
  • TM-T88V
  • TM-T88VI
  • TM-T88VII
  • TM-T90
  • TM-T100
  • TM-U220
  • TM-U220II
  • TM-U230

GS ( A


[Name]

Execute test print

[Format]

ASCII
   
GS
  
(
  
A
  
pL
  
pH
  
n
  
m
Hex
1D
28
41
02
00
n
m
Decimal
29
40
65
2
0
n
m

[Range]

(pL + pH × 256) = 2
n = 0 – 2, 48 – 50
m: different depending on the printers

[Description]

Executes a specified test print.
  • pL and pH specify the number of bytes following n as (pL + pH × 256).
  • n specifies the paper used for the test print as follows:
  • n
    Paper
    0, 48
    Basic sheet (roll paper)
    1, 49
    2, 50
    Roll paper
  • m specifies a test pattern as follows:
  • m
    Test pattern
    1, 49
    Hexadecimal dump
    2, 50
    Printer status printing
    3, 51
    Rolling pattern
    64
    Automatic setting of paper layout

[Notes]

  • This command is effective only when processed at the beginning of the line in Standard mode.
  • This command cannot be included in a macro definition. If this command is processed while a macro is being defined, the printer cancels macro definition and starts processing this command. At that time, the macro becomes undefined.
  • After processing this command, the printer performs a software reset. Executing this command puts the printer in the same status as when the power is turned on. Transmit commands or data after confirming the complete software reset.
    • Clears the receive and print buffers.
    • Resets all setting values in RAM (the print area, the character styles, and others) that were in effect at power-on.(The data in the NV memory is not reset.)
  • If hexadecimal dump (m = 1, 49) is specified, the printer prints a message. Transmit commands or data after the printing.
  • When processing printer status printing (m = 2, 50), rolling pattern printing (m = 3, 51), and automatic setting of paper layout (m = 64), there are the restrictions described below.
    • The printer does not process Real-time commands.
    • Even if "ASB is enabled" is specified, the printer does not send ASB status.
  • 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.
    • Do not turn off the power or reset the printer from the interface when this command is being executed.
    • The printer may be BUSY when storing data and will not receive any data. In this case, be sure not to transmit data from the host.
    • Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: GS ( A (part of functions), GS ( C (part of functions), GS ( E (part of functions), GS ( L   /   GS 8 L (part of functions), GS ( M (part of functions), GS g 0, FS g 1   [obsolete command] , FS q   [obsolete command] .
  • When automatic setting (m = 64) of the paper layout is executed, paper layout which is set by GS ( E   <Function 49> of GS ( E is changed. See GS ( E   <Function 49> of GS ( E for details of paper layout. Paper layout set is valid until the following operations are executed. They are not initialized by power off or ESC @.
  • For the label paper or black paper control, it calculates the effect value used for the actual print operation based on the paper layout set value, the paper width set value, or the limitation value of the mechanical structure (mechanical pitch or position of the print head, and so on). The set value and effect value can be acquired by GS ( E   <Function 50> .
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top