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 ( k   <Function 480>


[Name]

Composite Symbology: Store the data in the symbol storage area

[Format]

ASCII
   
GS
  
(
  
k
  
pL
  
pH
  
cn
  
fn
  
m
  
a
  
b
  
d1...dk
Hex
1D
28
6B
pL
pH
34
50
30
a
b
d1...dk
Decimal
29
40
107
pL
pH
52
80
48
a
b
d1...dk

[Range]

cn = 52
fn = 80
m = 48
a = 48, 49
b = 65 – 77 [when a = 48]
b = 65, 66 [when a = 49]
k = (pL + pH × 256) - 5
pL, pH: different depending on the printers
d: different depending on the type of line element and 2D composite element. Refer to the tables in [Description].

[Description]

Composite Symbology (d1...dk) is saved in the symbol storage area.
  • When (a = 48), b specifies the type of line element.
  • b
    Line element type
    Symbol data (SP indicates a space)
    Data (k)
    Characters (ASCII)
    Data (d)
    65
    EAN8
    k = 7
    "0" – "9"
    d = 48 – 57
    66
    EAN13
    k = 12
    "0" – "9"
    d = 48 – 57
    67
    UPC-A
    k = 11
    "0" – "9"
    d = 48 – 57
    68
    UPC-E (Abbreviated 0 [6 digits] Version)
    k = 6
    "0" – "9"
    d = 48 – 57
    69
    UPC-E (No abbreviation 0 [11 digits] Version)
    k = 11
    "0" – "9"
    d = 48 – 57 [However d1 = 48]
    70
    GS1 DataBar Omnidirectional
    k = 13
    "0" – "9"
    d = 48 – 57
    71
    GS1 DataBar Truncated
    k = 13
    "0" – "9"
    d = 48 – 57
    72
    GS1 DataBar Stacked
    k = 13
    "0" – "9"
    d = 48 – 57
    73
    GS1 DataBar Stacked Omnidirectional
    k = 13
    "0" – "9"
    d = 48 – 57 [However d1 = 48,49]
    74
    GS1 DataBar Limited
    k = 13
    "0" – "9"
    d = 48 – 57
    75
    GS1 DataBar Expanded
    k = 2 – 255
    0 – 9, A – D, a – d,
    SP, !, ", %, $, ', (,
    ), *, +, ,, −, ., /, :, ;,
    <, =, >, ?, _, {
    d = 48 – 57, 65 ≤d ≤ 90, d = 97 – 122,
    d = 32 – 34, 37 – 47, 58 – 63,
    d = 95,123
    [However d1 = 40, d2 = 48 – 57, d3 = 48 – 57,
    d1 = 48 – 57, 48 ≤d2 ≤ 57]
    76
    GS1 DataBar Expanded Stacked
    k = 2 – 255
    0 – 9, A – D, a – d,
    SP, !, ", %, $, ', (,
    ), *, +, ,, −, ., /, :, ;,
    <, =, >, ?, _, {
    d = 48 – 57, 65 – 90, 97 – 122,
    d = 32 – 34, 37 – 47, 58 – 63,
    d = 95,123
    [However d1 = 40, d2 = 48 – 57, d3 = 48 – 57,
    d1 = 48 – 57, d2 = 48 – 57]
    77
    GS1-128
    k = 2 – 255
    NUL – SP (7Fh)
    d = 0 – 127
  • When (a = 49), b specifies the type of 2D composite element.
  • b
    2D composite element type
    Symbol data (SP indicates a space)
    Data (k)
    Characters (ASCII)
    Data (d)
    65
    Automatic selection
    (CC-A, CC-B or CC-C is selected automatically according to the number of digits)
    k = 1 – 2361
    NUL – SP (7Fh)
    d = 0 – 255
    66
    Fixed (CC-C)
    k = 1 – 2361
    NUL – SP (7Fh)
    d = 0 – 255

[Notes]

[Notes for EAN8, EAN13, and UPC-A]

  • Transmit the data, except for the modular check character, from the host.

[Notes for UPC-E (0 omitted (6 digits) version)]

  • Transmit the data, except for the number system character (NSC) and modular check character, from the host.

[Notes for UPC-E (0 not omitted (11 digits) version)]

  • Transmit the data except for the modular check character from the host.
  • The first data (d1) is processed as a number system character (NSC). Always specify 0.

[Notes for GS1 DataBar Omnidirectional, GS1 DataBar Truncated, GS1 DataBar Stacked, GS1 DataBar Stacked Omnidirectional, and GS1 DataBar Limited]

  • Transmit the 13-digit product identification number, excluding the application identifier (AI) and check digit, from the host.

[Notes for GS1 DataBar Expanded]

  • Transmit the 2-byte data shown in the following table ([Hex = 7Bh / Decimal = 123] + character code) from the host for the special character (FNC1) and symbol data "(", ")". ("+" in the table is not included in the transmission data)]
  • Data
    Transmission data from host
    ASCII
    Hex
    Decimal
    FNC1
    { + 1
    7B + 31
    123 + 49
    (
    { + (
    7B + 28
    123 + 40
    )
    { + )
    7B + 29
    123 + 41
  • The special characters ("(", ")") have the functions shown in the table below.
  • Special characters
    Character
    Hex
    Decimal
    Function
    (
    28
    40
    Each character is inserted for the HRI character.
    It makes the HRI characters look nice when used to enclose the AI.
    The data does not constitute encoded data.
    )
    29
    41

[Notes for GS1 DataBar Expanded Stacked]

  • Transmit the 2-byte data shown in the following table ([Hex = 7Bh / Decimal = 123] + character code) from the host for the special character (FNC1) and symbol data "(", ")". ("+" in the table is not included in the transmission data)
  • Data
    Transmission data from host
    ASCII
    Hex
    Decimal
    FNC1
    { + 1
    7B + 31
    123 + 49
    (
    { + (
    7B + 28
    123 + 40
    )
    { + )
    7B + 29
    123 + 41

[Notes for GS1-128]

  • GS1-128 processes the following structures.
  • (a) Basic structure
  • Start character
    FNC1
    AI
    Data part
    Check digit A
    Check digit B
    Stop character
    Automatically added
    (d1...dk)
    Automatically added
  • (b) Concatenated code structure
  • Start character
    FNC1
    AI
    Data part
    Check digit A
    FNC1
    AI
    Data part
    Check digit A
    Check digit B
    Stop character
    Automatically added
    (d1...dk)
    Automatically added
  • Transmit the data relevant to check digit A along with the application identifier (AI), from the host.
  • The 4 special characters (SP, "(", ")", "*") have the functions shown in the table below.
  • Special characters
    Character
    Hex
    Decimal
    Function
    SP
    20
    32
    A space is inserted for the HRI character.
    It makes the HRI characters look nice when AI and data part are separated with spaces.
    SP does not constitute encoded data.
    (
    28
    40
    Each character is inserted for the HRI character.
    It makes the HRI characters look nice when used to enclose the AI.
    The data does not constitute encoded data.
    )
    29
    41
    *
    2A
    42
    Check digit A (1 character), calculated with modulus 10 is added as the data part at the position of *.
    "*" is not an HRI character, but check digits are inserted for HRI characters.
  • Examples of symbol data using special characters (SP, "(", ")", "*") are shown below.
  • Example: When [AI = 01/data = 9501234567890/Specify to add check digit A/enclose AI in ()]
  • GS k 23 0 52 80 48 48 77 "(01)9501234567890*"
    When HRI characters are designated to be added, the HRI characters are [(01)95012345678903].
  • Example: When [AI = 01/data = 9501234567890/Specify to add check digit A/enclose AI in (), and insert a space between the data]
  • GS k 23 0 52 80 48 48 77 "(01)9501234567890*"
    When HRI characters are designated to be added, the HRI characters are [(01)95012345678903].
  • Example: When linking [AI = 01/data = 9501234567890/Specify to add check digit A/enclose AI in ()] and [AI = 3102/data = 000400/enclose AI in ()], and separating the HRI characters between the link with a space
  • GS k 38 0 52 80 48 77"(01)9501234567890* {1(3102)000400"
    When HRI characters are designated to be added, the HRI characters are [(01)95012345678903 (3102)000400].
  • The range of data (d) that can be processed in each code set (CODE A, CODE B, CODE C) is shown in the table below. Data where the character field is blank cannot be used. Transmit the 2-byte data shown in the following table ([Hex = 7Bh / Decimal = 123] + character code) from the host for the special characters (FNC1, FNC3) and symbol data "(", ")", "*", "{".
  • Graphic

[Notes for 2D composite elements]

  • When automatic selection (b = 65) is specified, the type of 2D composite element is decided according to the amount of data (k).
  • Data (k)
    1 – 56
    57 – 338
    339 – 2361
    2D composite element
    CC-A
    CC-B
    CC-C
  • When CC-C is selected for the 2D composite element with any of the following, specify GS1-128 for the line element.
    • When "Fixed (CC-C)" is specified with (b = 66)
    • When (b = 65) is specified, and the amount of data exceeds 339 bytes
 

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