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-T20X
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82X
  • TM-T83III
  • TM-T88IV
  • TM-T88V
  • TM-T88VI
  • TM-T88VII
  • TM-T90
  • TM-T100
  • TM-U220
  • TM-U220II
  • TM-U230

GS ( E   <Function 50>


[Name]

Transmit the paper layout information

[Format]

ASCII
   
GS
  
(
  
E
  
pL
  
pH
  
fn
  
n
Hex
1D
28
45
02
00
32
n
Decimal
29
40
69
2
0
50
n

[Range]

(pL + pH × 256) = 2
fn = 50
n = 64, 80

[Description]

Transmits the paper layout information specified by n.
n
Paper layout information
64
Setting value of the paper layout (unit: 0.1 mm {0.004"})
80
Actual value of the paper layout (unit: dot)
  • ESC/POS Handshaking Protocol is not required for this function.

[Notes]

  • This function works both in user setting mode and during normal printer operation.
  • [Header to NUL] are transmitted by this function as follows.
  • Send data
    Hex
    Decimal
    Number of bytes
    Header
    37h
    55
    1 byte
    Identifier
    39h
    57
    1 byte
    Type of information (∗1)
    30h – 39h
    48 – 57
    2 bytes
    Separator
    1Fh
    31
    1 byte
    Layout information (∗2)
    Origin of layout (sa)
    30h – 39h
    48 – 57
    0 – 3 bytes
    Separator
    1Fh
    31
    1 byte
    Vertical layout (sb)
    30h – 39h
    48 – 57
    0 – 5 bytes
    Separator
    1Fh
    31
    1 byte
    Vertical layout (sc)
    30h – 39h
    48 – 57
    0 – 5 bytes
    Separator
    1Fh
    31
    1 byte
    Vertical layout (sd)
    30h – 39h
    48 – 57
    0 – 5 bytes
    Separator
    1Fh
    31
    1 byte
    Vertical layout (se)
    30h – 39h
    48 – 57
    0 – 5 bytes
    Separator
    1Fh
    31
    1 byte
    Vertical layout (sf)
    30h – 39h
    48 – 57
    0 – 5 bytes
    Separator
    1Fh
    31
    1 byte
    Horizontal layout (sg)
    30h – 39h
    48 – 57
    0 – 5 bytes
    Separator
    1Fh
    31
    1 byte
    Horizontal layout (sh)
    30h – 39h
    48 – 57
    0 – 5 bytes
    Separator
    1Fh
    31
    1 byte
    NUL
    00h
    0
    1 byte
  • (∗1)
    "Type of information" transmits the value n converted into character data expressed by decimal numbers from the high order end.
    Example:
    When the setting of "Type of information" is (n = 64), it is 2-byte data of "64" [Hex = 36h, 34h / Decimal = 54, 52].
    When the setting of "Type of information" is (n = 80), it is 2-byte data of "80" [Hex = 38h, 30h / Decimal = 56, 48].
    (∗2)
    "Layout information" is transmitted sequentially, converting the character data into decimal data.
    Example:
    When "Layout basis" is "64," it is 2-byte of "64" [Hex = 36h, 34h / Decimal = 54, 52]
    Type of information (n)
    Send data
    Hex
    Decimal
    Number of bytes
    Setting value (n = 64)
    36h, 34h
    54, 52
    2 bytes
    Effect value (n = 80)
    38h, 30h
    56, 48
    2 bytes
  • Setting value (n = 64) is specified as the type of information, transmit data are as follows:
    • (sash) of the layout information corresponds to (sa) and (sb) – (sh) of GS ( E   <Function 49> .
    • "Setting value" means the paper layout information: setting value of GS ( E   <Function 49> and GS ( A ( m = 64), stored in the non-volatile memory.
    • The paper layout information that is not stored in non-volatile memory cannot be transmitted. In this case, only the separator is transmitted.
  • Transmit data when effect value is specified (n = 80) as the type of information are as follows:
    • (sash) of the layout information corresponds to (sa) of GS ( E   <Function 49> and each element (sb) – (sh) of vertical and horizontal layout illustrated in the GS ( E   <Function 49> .
    • "Effect value" means the value used in actual operation, calculated based on the following values (in one dot units.)
      • Paper layout information (setting value of GS ( E   <Function 49> and GS ( A (auto set of the paper layout)), stored in the non-volatile memory.
      • Setting value of the paper width.
      • Regulated value by the mechanical structure (minimum pitch, left and right margin of the print area).
      • The paper layout information that is not used in actual print operation cannot be transmitted. In this case, only the separator is transmitted.
  • The relationship between setting value of vertical layout (sg) and effect value is as follows.
  • Graphic
    A = Edge of the paper – left edge of the printable area
    B = Setting value of paper layout (sg)
    C = Effective value (A-B) of paper layout (sg)
 

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