Integrated Thermal Printer
Integrated Thermal Printer
Service Support Service Support

Service Support

Pursuing high-quality service, providing high-quality, efficient, and attentive service to customers.
Committed to creating high-quality services, never forgetting our original intention, always adhering to our principles, and providing customers with high-quality printing solutions and services.


Home > 
  • Service Support
  • >
  • Basic knowledge
  • >
  • Product selection
  • Basic knowledge

    Video

    Print Example

    Basic knowledge

    Development must see Product selection Instruction details FAQ Drive operation Troubleshooting Other knowledge

    Video Demo

    Maintenance Print test Scanning code demonstration Other demos

    Print Example

    Label printing Pre saved template printing Tickets printing Small ticket Lable Label ESC Other printing

    77 * 45 Small Ticket Instruction Printing Label Example (3)

    77 * 45 Small Ticket Instruction Printing Label Example (3)

    Move the printing line down 5mmHexadecimal instruction

    Command Data

    1B 40

    1B 45 01 50 72 6F 64 75 63 74 20 6E 61 6D 65 3A 20 45 6D 62 65 64 64 65 64 20 70 72 69 6E 74 65 72 20 50 72 6F 64 75 63 74 20 6D 6F 64 65 6C 3A 20 47 59 2D 4E 51 42 32 34 50  0D 0A

    43 6F 6D 6D 75 6E 69 63 61 74 69 6F 6E 20 69 6E 74 65 72 66 61 63 65 3A 20 52 53 32 33 32 2B 54 54 4C 2B 55 53 42 20 50 6F 77 65 72 20 73 75 70 70 6C 79 20 76 6F 6C 74 61 67 65 3A 20 32 34 56 33 41  0D 0A

    46 6F 6E 74 20 6C 69 62 72 61 72 79 20 63 6F 64 65 3A 20 47 42 32 33 31 32 20 42 61 75 64 20 72 61 74 65 3A 20 31 31 35 32 30 30  0D 0A

    1B 40

    1B 61 01

    1D 48 02

    1D 68 50 00

    1D 77 03 00

    1D 6B 49 0B 31 32 33 34 35 36 37 38 39 31 30

    1D 56 42 00

    Instruction Interpretation

    注释

    1B 40(初始化)

    1B 45 01(文本加粗) B2 FA C6 B7 C3 FB B3 C6 A3 BA C4 DA C7 B6 CA BD B4 F2 D3 A1 BB FA 20 B2 FA c6b 7 D0 CD BA C5 A3 ba47 59 2D 4E 51 42 32 34 50(文本内容:产品名称:内嵌式打印机 产品型号:GY-NQB24P)0D 0A

    CD A8 D1 B6 BD D3 BF DA A3 BA 52 53 32 33 32 2B 54 4C 2B 55 53 42 20 B9 A9 B5 E7 B5 e9 D1 B9 A3 BA 32 34 56 33 41(文本内容:通讯接口:RS232+TTL+USB供电电压:24V3A)0D 0A

    D7 D6 BF E2 B1 E0 C2 EB A3 BA 47 42 32 33 31 32 20 20 20 20(文本内容:字库编码:GB2312波 特 率:115200)0D 0A

    1B 40(初始化)

    1B 61 01(图形居中打印)

    1D 48 02(设置下标位置为下方)

    1D 68 50 00(条码高度)

    1D 77 03 00(条码宽度)

    1D 6B 49(条码编码类型) 0B(条码数据长度个数) 31 32 33 34 35 36 37 38 39 31 30 (条形码内容:1234567890)

    1D 56 42 00(查找缝隙位并切纸)

    Example of printing labels for 77 * 45 small ticket instructions (2)

    Example of printing labels for 77 * 45 small ticket instructions (2)

    Move the printing line down 5mmHexadecimal instruction

    Command Data

    1B 40

    1B 45 01

    1B 61 01 50 61 72 61 6D 65 74 65 72 73 20 6F 66 20 38 30 4D 4D 20 65 6D 62 65 64 64 65 64 20 74 68 65 72 6D 61 6C 20 6C 61 62 65 6C 20 70 72 69 6E 74 65 72  0D 0A

    1B 40

    1B 61 01

    1D 28 6B 03 00 31 43 05

    1D 28 6B 00 00 31 45 30

    1D 28 6B A8 00 31 50 30

    B2 FA C6 B7 C3 FB B3 C6 A3 BA 38 30 4D 4D C4 DA C7 B6 CA BD C8 C8 C3 F4 B1 EA C7 A9 B4 F2 D3 A1 BB FA 0D 0A

    B2 FA C6 B7 D0 CD BA C5 A3 BA 47 59 2D 4E 51 42 32 34 50 0D 0A

    B9 A4 D7 F7 B5 E7 D1 B9 A3 BA 32 34 56 33 41 0D 0A

    CD A8 D1 B6 BD D3 BF DA A3 BA 52 53 32 33 32 2B 54 54 4C 2B 55 53 42 BD D3 BF DA 0D 0A

    B2 A8 20 CC D8 20 C2 CA A3 BA 31 31 35 32 30 30 0D 0A

    B2 FA C6 B7 CC D8 B5 E3 A3 BA B4 F8 D7 D4 B6 AF C7 D0 D6 BD B9 A6 C4 DC 0D 0A

    D7 D6 BF E2 B1 E0 C2 EB A3 BA 47 42 32 33 31 32

    1B 61 01

    1D 28 6B 03 00 31 52 30

    1D 28 6B 03 00 31 51 30

    1D 56 42 00

    Instruction Interpretation

    annotation

    1B 40 (initialization)

    1B 45 01 (Bold Text)

    1B 61 01 (text centered printing) 38 30 4D 4D C4 DA C7 B6 CA BD C8 C8 C3 F4 B1 EA C7 A9 B4 F2 D3 A1 BB FA B2 CE CA FD (text content: 80MM embedded thermal label printer parameters) 0D 0A (line feed)

    1B 40 (initialization)

    1B 61 01 (center printing)

    1D 28 6B 03 00 31 43 05 (QR code pixel size)

    1D 28 6B 03 00 31 45 30 (QR code verification level)

    1D 28 6B A8 00 31 50 30

    B2 FA C6 B7 C3 FB B3 C6 A3 BA 38 30 4D 4D C4 DA C7 B6 CA BD C8 C8 C3 F4 B1 EA C7 A9 B4 F2 D3 A1 BB FA (QR code content: Product name: 80MM embedded thermal label printer) 0D 0A

    B2 FA C6 B7 D0 CD BA C5 A3 BA 47 59 2D 4E 51 42 32 34 50 (QR code content: Product model: GY-NQB24P) 0D 0A

    B9 A4 D7 F7 B5 E7 D1 B9 A3 BA 32 34 56 33 41 (QR code content: Working voltage: 24V3A) 0D 0A

    CD A8 D1 B6 BD D3 BF DA A3 BA 52 53 32 33 32 2B 54 4C 2B 55 53 42 BD D3 BF DA (QR code content: Communication interface: RS232+TTL+USB interface) 0D 0A

    B2 A8 20 CC D8 20 C2 CA A3 BA 31 31 35 32 30 30 (QR code content: Baud rate: 115200) 0D 0A

    B2 FA C6 B7 CC D8 B5 E3 A3 BA B4 F8 D7 D4 B6 AF C7 D0 D6 BD B9 A6 C4 DC (QR code content: Product features: with automatic paper cutting function) 0D 0A

    D7 D6 BF E2 B1 E0 C2 EB A3 BA 47 42 32 33 31 32 (QR code content: Font library code: GB2312)

    1B 61 01 (text centered printing)

    1D 28 6B 03 00 31 52 30 (Check if the QR code data is normal)

    1D 28 6B 03 00 31 51 30 (printing QR code)

    1D 56 42 00 (Find gaps and cut paper)

    Example of 55 * 30 label command printing label effect (1)

    Example of 55 * 30 label command printing label effect (1)

    Hexadecimal instruction

    Command Data

    1B 40


    1A 5B 01 00 00 00 00 80 01 F0 00 00


    1A 54 00 00 00 1E 00 50 72 6F 64 75 63 74 3A 20 45 78 70 6C 6F 73 69 6F 6E 20 70 72 6F 6F 66 20 67 6C 61 73 73 20 66 69 6C 6D 00


    1A 54 00 00 00 3C 00 53 69 7A 65 3A 20 35 2E 30 20 69 6E 63 68 65 73 00


    1A 54 00 00 00 5A 00 50 72 69 63 65 3A 20 A3 A4 20 32 35 20 79 75 61 6E 00


    1a 30 00 00 00 82 00 0c 44 02 00 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 00


    1A 5D 00


    1A 4F 00

    Instruction Interpretation

    Annotation

    Definition:

    Each instruction line needs to be followed by a 00 to indicate the end of the line.

    1B 40 (initialization)

    1A 5B 01 (page start) 00 00 00 00 00 00 (initial position) 80 01 (page width 384 points, which is 48MM) F0 00 (page height 240 points, which is 30MM) 00 (page rotation direction "00" is not rotated by default)

    1A 54 00 (print text) 28 00 (X horizontal coordinate 5MM position=5 * 8=40 points) 1E 00 (Y vertical coordinate 3.75MM position=3.75 * 8=30 points) C9 CC C6 B7 A3 BA B7 C0 B1 AC B2 A3 C1 A7 C4 A4 (print content: "Product: Explosion proof Glass Film") 00 (End)

    1A 54 00 (print text) 28 00 (X horizontal coordinate 5MM position=5 * 8=40 points) 3C 00 (Y vertical coordinate 7.5MM position=7.5 * 8=60 points) B3 DF B4 E7 A3 BA 35 2E 30 B4 E7 (print content: "Size: 5.0 inches") 00 (End)

    1A 54 00 (print text) 28 00 (X horizontal coordinate 5MM position=5 * 8=40 points) 5A 00 (Y vertical coordinate 11.25MM position=11.25 * 8=90 points) BC DB B8 F1 A3 BA A3 A4 32 35 D4 AA (print content: "Price: ¥ 25 yuan") 00 (End)

    1a 30 00 (printing barcode) 28 00 (X horizontal coordinate 5MM position, i.e. 5 * 8=40 points) 82 00 (Y vertical coordinate 16.25MM position, i.e. 16.25 * 8=130 points) 0c (identifying barcode type) 44 (barcode height) 02 (barcode width) 00 (rotation angle) 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 30 (barcode content) 00 (end)

    1A 5D 00 (End of Page)

    1A 4F 00 (printing instructions)

    Example of 55 * 30 label command printing label effect (2)

    Example of 55 * 30 label command printing label effect (2)

    Hexadecimal instruction

    Command Data

    1B 40

    1A 5B 01 00 00 00 00 80 01 E0 00 00

    1A 31 00 03 03 00 00 20 00 04 00 68 74 74 70 73 3A 2F 2F 75 2E 77 65 63 68 61 74 2E 63 6F 6D 2F 4D 46 77 41 75 6D 75 63 2D 41 6F 52 5F 4C 64 59 49 48 64 38 43 5F 45 00

    1A 54 00 B0 00 20 00 43 61 6D 70 75 73 20 73 68 61 72 69 6E 67 00

    1A 54 00 B0 00 50 00 53 65 6E 69 6F 72 20 42 72 6F 74 68 65 72 27 73 20 54 72 61 6E 73 6D 69 73 73 69 6F 6E 00

    1A 54 00 90 00 80 00 4D 61 6B 65 72 20 4C 61 62 6F 72 61 74 6F 72 79 20 6F 66 20 48 75 61 69 79 69 6E 20 49 6E 73 74 69 74 75 74 65 20 6F 66 20 54 65 63 68 6E 6F 6C 6F 67 79 

    1A 54 00 10 00 B0 00 4D 65 73 73 61 67 65 3A 20 54 68 69 73 20 69 73 20 61 20 67 6F 6F 64 20 62 6F 6F 6B 20 77 6F 72 74 68 20 72 65 61 64 69 6E 67  00

    1A 5D 00

    1A 4F 00

    Instruction Interpretation

    annotation

    1B 40 (initialization)

    1A 5B 01 (page start) 00 00 00 00 00 00 (initial position) 80 01 (page width 384 points, 48MM) E0 00 (page height 224 points, 28MM) 00 (page rotation direction "00" defaults to not rotating)

    1A 31 00 (Print QR Code Instruction) 03 (Specify Version Symbol) 03 (Error Correction Level) 00 00 (X Horizontal Coordinate 0MM Position=0 * 8=0 Points) 20 00 (Y Vertical Coordinate 4MM Position=4 * 8=32 Points) 04 (QR Code Size) 00 (Rotation Angle) 68 74 70 73 3A 2F 2F 75 2E 77 65 63 68 61 2E 63 6F 6D 2F 4D 46 77 41 75 6D 75 63 2D 41 6F 52 5F 4C 64 59 49 64 38 43 5F 45 (QR Code Content: https://u.wechat.com/MFwAumuc-AoR_LdYIHd8C_E )00

    1A 54 00 (print text instruction) B0 00 (22MM position on X horizontal coordinate, i.e. 22 * 8=176 points) 20 00 (4MM position on Y vertical coordinate, i.e. 4 * 8=32 points) D0 A3 D4 B0 B9 B2 CF ED (print content: campus sharing) 00

    1A 54 00 (print text command) B0 00 (X horizontal coordinate 22MM position, i.e. 22 * 8=176 points) 50 00 (Y vertical coordinate 10MM position, i.e. 10 * 8=80 points) CA A6 D0 D6 B4 AB CA E9 (print content: senior brother transmission) 00

    1A 54 00 (print text instruction) 90 00 (X horizontal coordinate 18MM position, i.e. 18 * 8=144 points) 80 00 (Y vertical coordinate 16MM position, i.e. 16 * 8=128 points) BB B4 D2 F5 B9 A4 D1 A7 D4 BA B4 B4 BF CD CA B5 D1 E9 CA D2 (print content: Maker Laboratory of Huaiyin University of Technology) 00

    1A 54 00 (Print Text Instruction) 10 00 (X Horizontal Coordinate 2MM Position=2 * 8=16 Points) B0 00 (Y Vertical Coordinate 22MM Position=22 * 8=176 Points) C1 F4 D1 D4 3A D5 E2 CA C7 D2 BB B1 BE BA C3 CA E9 A3 AC D6 B5 B5 C3 D2 BB B6 C1 (Print Content: Message: This is a good book worth reading) 00

    1A 5D 00 (End of Page)

    1A 4F 00 (page printing)

    Example of 55 * 30 label command printing label effect (3)

    Example of 55 * 30 label command printing label effect (3)

    This printing rendering uses label commands for layout;The printing effect mainly uses text printing instructions and barcode instructions for layout;The composition structure of the entire tag is "page start+printing effect (GBK code of text+content+barcode instruction)+page end+page printing"

    Command Data

    1B 40

    1A 5B 01 00 00 00 00 80 01 EA 00 00

    1A 30 00 15 00 14 00 08 35 02 00 31 32 30 30 34 34 33 39 32 36 31 35 00

    1A 54 01 FF 00 08 00 00 60 01 11 4C 61 62 6F 72 61 74 6F 72 79 20 44 65 70 61 72 74 6D 65 6E 74  00

    1A 54 01 FF 00 26 00 00 60 00 11 6F 75 74 70 61 74 69 65 6E 74 20 73 65 72 76 69 63 65  00

    1A 54 01 FF 00 44 00 00 60 00 11 50 75 72 70 6C 65 20 74 75 62 65 20 32 6D 6C 00

    1A 54 01 FF 00 62 00 00 60 00 11 76 65 69 6E 61 6C 20 62 6C 6F 6F 64  00

    1A 54 01 00 00 62 00 00 60 00 11 47 79 6E 65 63 6F 6C 6F 67 69 63 61 6C 20 4F 75 74 70 61 74 69 65 6E 74 20 44 65 70 61 72 74 6D 65 6E 74  00

    1A 54 01 00 00 80 00 00 60 01 11 31 35 30 39 30 32 30 30 31 36 20 53 74 61 6C 6C 20 58 69 61 6F 71 69 61 6E 20 47 69 72 6C 2C 20 32 38 20 59 65 61 72 73 20 4F 6C 64  00

    1A 54 01 00 00 9E 00 00 60 00 11 41 70 70 6C 79 69 6E 67 20 64 6F 63 74 6F 72 3A 20 50 65 6E 67 20 47 75 61 6E 67 6D 65 69  00

    1A 54 01 00 00 BC 00 00 60 00 11 42 6C 6F 6F 64 20 72 6F 75 74 69 6E 65 3A 20 48 79 70 65 72 73 65 6E 73 69 74 69 76 69 74 79 20 43 2D 72 65 61 63 74 69 76 65 20 70 72 6F 74 65 69 6E  00

    1A 5D 00

    1A 4F 00

    Instruction Interpretation

    annotation

    1B 40 (Instruction initialization)

    1A 5B 01 (page start) 00 00 00 00 00 00 (initial position) 80 01 (page width 384 points, 48MM) F0 00 (page height 240 points, 30MM) 00

    1A 30 00 (printing barcode) 15 00 (X horizontal coordinate 2.625MM position, i.e. 2.625 * 8=21 points) 14 00 (Y vertical coordinate 2.5mM position, i.e. 2.5 * 8=20 points) 08 (barcode type) 35 (barcode height) 02 (barcode width) 00 (rotation angle) 31 32 30 34 33 39 32 36 31 35 (barcode content: 120044392615) 00

    1A 54 01 (print text) FF 00 (X horizontal coordinate 31.875MM position, i.e. 31.875 * 8=255 points) 08 00 (Y vertical coordinate 1MM position, i.e. 1 * 8=8 points) 00 60 (character height) 01 (character effects) 11 (font default size) BC EC D1 E9 BF C6 (print content: laboratory) 00

    1A 54 01 (print text) FF 00 (X horizontal coordinate 31.875mm position, i.e. 31.875 * 8=255 points) 26 00 (Y vertical coordinate 4.75mm position, i.e. 4.75 * 8=38 points) 00 60 (character height) 00 (character effects) 11 (default font size) C3 C5 D5 EF (print content: outpatient) 00

    1A 54 01 (print text) FF 00 (X horizontal coordinate 31.875mm position, i.e. 31.875 * 8=255 points) 44 00 (Y vertical coordinate 8.5mm position, i.e. 8.5 * 8=68 points) 00 60 (character height) 00 (character effects) 11 (default font size) D7 CF B9 DC 20 20 32 6D 6C (print content: 2ml purple tube) 00

    1A 54 01 (print text) FF 00 (X horizontal coordinate 0MM position=0 * 8=0 points) 62 00 (Y vertical coordinate 12.25MM position=12.25 * 8=98 points) 00 60 (character height) 00 (character effects) 11 (font default size) BE B2 C2 F6 D1 AA (print content: venous blood) 00

    1A 54 01 (print text) 00 00 (X horizontal coordinate 0MM position=0 * 8=0 points) 62 00 (Y vertical coordinate 12.25MM position=12.25 * 8=98 points) 00 60 (character height) 00 (character effects) 11 (font default size) B8 BE BF C6 C3 C5 D5 EF B2 BF (print content: gynecological outpatient department) 00

    1A 54 01 (print text) 00 00 00 (X horizontal coordinate 0MM position, i.e. 0 * 8=0 points) 80 00 (Y vertical coordinate 16MM position, i.e. 16 * 8=128 points) 00 60 (character height) 01 (character effects) 11 (font default size) 31 35 30 39 30 32 30 31 36 20 CC AF D0 A1 D9 BB 20 20 C5 AE 20 20 20 32 38 CB EA (print content: 1509020016 Zhan Xiaoqian, 28 years old) 00

    1A 54 01 00 00 (X horizontal coordinate 0MM position=0 * 8=0 points) 9E 00 (Y vertical coordinate 19.75MM position=19.75 * 8=158 points) 00 60 (character height) 00 (character effects) 11 (font default size) C9 EA C7 EB D2 BD C9 FA A3 BA C5 ED B9 E2 C3 C4 (print content: applying to doctor: Peng Guangmei) 00

    1A 54 01 (print text) 00 00 00 (X horizontal coordinate 0MM position=0 * 8=0 points) BC 00 (Y vertical coordinate 23.5MM position=23.5 * 8=188 points) 00 60 (character height) 00 (character effects) 11 (font default size) D1 AA B3 A3 B9 E6 A3 BA B3 AC C3 F4 43 B7 B4 D3 A6 B5 B0 B0 D7 (print content: blood routine: hypersensitive C-reactive protein) 00

    1A 5D 00 (End of Page)

    1A 4F 00 (printing instructions)

    Example of 55 * 30 label command printing label effect (4)

    Example of 55 * 30 label command printing label effect (4)

    This printing rendering uses label commands for layout;The printing effect mainly uses text printing instructions and barcode instructions for layout;The composition structure of the entire tag is "page start+printing effect (GBK code of text+content+barcode instruction)+page end+page printing"

    Command Data

    1B 40

    1A 5B 01 00 00 00 00 80 01 FA 00 00

    1A 54 01 10 00 20 00 18 00 00 00  43 6F 6E 74 61 69 6E 65 72 20 6E 75 6D 62 65 72 3A 20 41 2D 30 33 20 54 69 6D 65 3A 20 30 32 2D 30 33 20 30 34 3A 30 35  00

    1A 30 00 40 00 3C 00 08 60 02 00 39 37 2D 37 30 38 30 39 37 00

    1A 54 01 10 00 A0 00 18 00 00 00 50 61 73 73 77 6F 72 64 3A 20 30 31 30 36 30 37 30 38 30 39 20 28 66 6F 72 20 73 61 66 65 20 73 74 6F 72 61 67 65 29  00

    1A 54 01 60 00 C0 00 18 00 01 00 2A 49 6E 76 61 6C 69 64 20 61 66 74 65 72 20 75 6E 62 6F 78 69 6E 67 20 6F 6E 63 65 21  00

    1A 5D 00

    1A 4F 00

    Instruction Interpretation

    Annotation

    1B 40 (initialization)

    1A 5B 01 (page start) 00 00 00 00 00 00 (initial position) 80 01 (page width 384 points, 48MM) F0 00 (page height 240 points, 30MM) 00

    1A 30 00 (printing barcode) 00 00 00 (X horizontal coordinate 0MM position=0 * 8=0 points) 20 00 (Y vertical coordinate 4MM position=4 * 8=32 points) 08 (barcode type) 59 (barcode height) 02 (barcode width) 00 (rotation angle) 31 30 31 30 30 30 (barcode content: 10100) 00

    1A 54 00 (print text instruction) F2 00 (X horizontal coordinate 30.25MM position=30.25 * 8=242 points) 20 00 (Y vertical coordinate 4MM position=4 * 8=32 points) C7 E0 B5 BA BB AA C5 B5 D2 BD D1 A7 (print content: Qingdao Huanuo Medical) 00

    1A 54 00 (print text instruction) F2 00 (X horizontal coordinate 30.25MM position=30.25 * 8=242 points) 50 00 (Y vertical coordinate 10MM position=10 * 8=80 points) BF C6 BC D3 D0 CF DE B9 AB CB BE (print content: Technology Co., Ltd.) 00

    1A 54 00 (print text command) A4 00 (X horizontal coordinate 20.5mm position, i.e. 20.5 * 8=164 points) 8C 00 (Y vertical coordinate 17.5mm position, i.e. 17.5 * 8=140 points) D6 C7 C4 DC CC F5 C2 EB D0 C5 CF A2 B4 F2 D3 A1 BB FA (print content: intelligent barcode information printer) 00

    1A 54 00 (print text instruction) 04 00 (X horizontal coordinate 0.5MM position=0.5 * 8=4 points) B4 00 (Y vertical coordinate 22.5MM position=22.5 * 8=180 points) D4 E6 D7 AF CA D0 C1 A2 D2 BD D4 BA CD CB 20 B2 E2 CA D4 CE DE D2 EC B3 A3 (print content: Zaozhuang Municipal Hospital returns test without abnormalities) 00

    1A 5D 00 (End of Page)

    1A 4F 00 (page printing)

    55 * 30 label command printing label effect example (5)

    55 * 30 label command printing label effect example (5)

    Hexadecimal instruction

    Command Data

    1B 40

    1A 5B 01 00 00 00 00 80 01 FA 00 00

    1A 31 00 05 02 64 00 0A 00 04 00 68 74 74 70 73 3A 2F 2F 75 2E 77 65 63 68 61 74 2E 63 6F 6D 2F 4D 46 77 41 75 6D 75 63 2D 41 6F 52 5F 4C 64 59 49 48 64 38 43 5F 45 00 1A 54 01 67 00 A5 00 00 60 00 11 4E 75 6D 62 65 72 3A 20 31 30 30 35 35 36  00

    1A 54 01 43 00 C3 00 00 60 00 11 47 61 72 62 61 67 65 20 63 6C 61 73 73 69 66 69 63 61 74 69 6F 6E 3A 20 65 76 65 72 79 6F 6E 65 20 68 61 73 20 61 20 72 65 73 70 6F 6E 73 69 62 69 6C 69 74 79  00

    1A 5D 00

    1A 4F 00

    Instruction Interpretation

    annotation

    1B 40 (Instruction initialization)

    1A 5B 01 (Page Start) 00 00 00 00 00 00 (Initial Position) 80 01 (Page Width 384 Points, That's 48MM) FA 00 (Page Height 250 Points, That's 31MM) 00 (Page Rotation Direction "00" Default No Rotation)

    1A 31 00 (Print QR Code Instruction) 05 (Specify Version Symbol) 02 (Error Correction Level) 64 00 (X Horizontal Coordinate 12mm Position=12 * 8=100 Points) 0A 00 (Y Vertical Coordinate 1.25mm Position=1.25 * 8=10 Points) 04 (QR Code Size) 00 (Rotation Angle) 68 74 70 73 3A 2F 2F 75 2E 77 65 63 68 61 74 2E 63 6F 6D 2F 4D 46 77 41 75 6D 75 63 2D 41 6F 52 5F 4C 64 59 49 64 38 43 5F 45 00 (QR Code Content: https://u.wechat.com/MFwAumuc-AoR_LdYIHd8C_E )

    1A 54 01 (printed text) 67 00 (X horizontal coordinate 12.875mm position, i.e. 12.875 * 8=103 points) A5 00 (Y vertical coordinate 20.625mm position, i.e. 20.625 * 8=165 points) 00 60 (font height) 00 (font effects) 11 (font magnification) B1 E0 BA C5 A3 BA 31 30 30 35 35 36 (printing content: number: 100556) 00

    1A 54 01 (print text) 43 00 (X horizontal coordinate 8.375MM position, i.e. 8.375 * 8=67 points) C3 00 (Y vertical coordinate 24.375MM position, i.e. 1.25 * 8=195 points) 00 60 (font height) 00 (font special effects) 11 (font magnification) C0 AC BB F8 B7 D6 C0 E0 A3 BA C8 CB C8 CB D3 D0 D4 F0 (print content: garbage classification: everyone is responsible) 00

    1A 5D 00 (End of Page)

    1A 4F 00 (page printing)

    Example of label printing effect for 55 * 40 small ticket instructions (1)

    Example of label printing effect for 55 * 40 small ticket instructions (1)

    The printing effect is up and down layout, using the ESC ticket command to print labels. Set the printing line position to 6mm to adjust the overall content to the center position of the entire label for printing.Hexadecimal instruction

    Command Data

    1B 40

    1f 52 09

    1B 61 01 4F 4B 0D 0A

    1b 40

    1f 53 02

    1f 52 06

    4D 6F 64 65 6C 3A 20 41 42 30 30 31  0D 0A

    CA B1 BC E4 A3 BA 32 30 32 33 2D 30 39 2D 32 30   0D 0A

    1D 56 42 00

    Instruction Interpretation

    annotation

    1B 40 (initialization)

    1f 52 09 (Set English size to 48 * 96)

    1B 61 01 (center printing) 4F 4B (OK) 0D 0A (line break)

    1b 40 (initialization)

    1f 53 02 (Set Chinese size to 32 * 32)

    1f 52 06 (Set English and number sizes to 18 * 36)

    D0 CD BA C5 A3 BA 41 42 30 30 31 (print content: model: AB001) 0D 0A (line feed)

    0D 0A (line break)

    CA B1 BC E4 A3 BA 32 30 32 33 2D 30 39 2D 32 30 (Print Content: Date: September 20, 2023) 0D 0A (Line Break)

    1D 56 42 00 (searching for gap positions)

    Example of 55 * 40 label command printing label effect (2)

    Example of 55 * 40 label command printing label effect (2)

    Use label instructions to print labels, layout and print positions based on XY coordinates, rotate the page 90 degrees for printing!

    Command Data

    1B 40


    1A 5B 01 00 00 00 00 40 01 80 01 01


    1A 54 01 0F 00 00 00 18 00 00 11 41 66 66 69 6C 69 61 74 65 64 20 74 6F 20 53 75 7A 68 6F 75 20 55 6E 69 76 65 72 73 69 74 79    00


    1A 54 00 0F 00 1E 00 44 65 70 61 72 74 6D 65 6E 74 3A 20 49 6E 74 65 72 6E 61 6C 20 4D 65 64 69 63 69 6E 65 20 44 65 70 61 72 74 6D 65 6E 74 20 6F 66 20 49 6E 74 65 6E 73 69 76 65 20 43 61 72 65 20 4D 65 64 69 63 69 6E 65  00


    1A 54 00 0F 00 3C 00 54 79 70 65 3A 20 44 61 6D 61 67 65 20 74 79 70 65  00


    1a 54 00 0F 00 5A 00 57 65 69 67 68 74 3A 20 33 2E 30 31 4B 67 00


    1a 54 00 0F 00 78 00 48 61 6E 64 6F 76 65 72 20 70 65 72 73 6F 6E 3A 20 57 61 6E 67 20 59 69 6D 69 6E 67  00


    1a 54 00 0F 00 96 00 43 6F 6C 6C 65 63 74 65 64 20 62 79 3A 20 5A 68 61 6E 67 20 53 68 75 6D 65 69  00


    1a 54 00 0F 00 B4 00 54 69 6D 65 3A 20 4E 6F 76 65 6D 62 65 72 20 32 31 2C 20 32 30 32 32 20 31 37 3A 31 36 3A 35 34  00


    1A 31 00 04 04 60 00 DC 00 04 00 68 74 74 70 73 3A 2F 2F 75 2E 77 00


    1A 5D 00


    1A 4F 00

    Instruction Interpretation

    Annotation

    1B 40 (initialization)

    1A 5B 01 (Page Start) 00 00 00 00 00 00 (Initial Position) 40 01 (Page Width 320 Points=40MM) 80 01 (Page Height 384 Points=48MM) 01 (Page Rotation 90 degrees)

    1A 54 01 (Print Text Instruction) 0F 00 (X Horizontal Coordinate 1.875mm Position, i.e. 1.875 * 8=15 Points) 00 00 (Y Vertical Coordinate 0MM Position, i.e. 0 * 8=0 Points) 18 00 (Font Height) 00 (Font Effects) 22 (Magnification) CB D5 D6 DD B4 F3 D1 A7 B8 BD CA F4 (Print Content: Affiliated to Suzhou University) 00 (End)

    1A 54 00 (print text instruction) 0F 00 (X horizontal coordinate 1.875mm position, i.e. 1.875 * 8=15 points) 1e 00 (Y vertical coordinate 3.75mm position, i.e. 3.75 * 8=30 points) BF C6 CA D2 A3 BA D6 D8 D6 A2 D2 BD D1 A7 BF C6 C4 DA BF C6 (print content: Department of Intensive Care Medicine Internal Medicine) 00

    1A 54 00 (print text instruction) 0F 00 (X horizontal coordinate 1.875mm position, i.e. 1.875 * 8=15 points) 3c 00 (Y vertical coordinate 7.5mm position, i.e. 7.5 * 8=60 points) C0 E0 D0 CD A3 BA CB F0 C9 CB C0 E0 (print content: type: damage type) 00

    1a 54 00 (print text instruction) 0F 00 (X horizontal coordinate 1.875mm position, i.e. 1.875 * 8=15 points) 5a 00 (Y vertical coordinate 11.25mm position, i.e. 11.25 * 8=90 points) D6 D8 C1 BF A3 BA 33 2E 30 31 4B 67 (print content: weight: 3.01Kg) 00

    1a 54 00 (print text instruction) 0F 00 (X horizontal coordinate 1.875mm position, i.e. 1.875 * 8=15 points) 78 00 (Y vertical coordinate 15mm position, i.e. 15 * 8=120 points) BD BB BD D3 C8 CB A3 BA CD F5 D2 E6 C3 F7 (print content: handover person: Wang Yiming) 00

    1a 54 00 (print text instruction) 0F 00 (X horizontal coordinate 1.875MM position, i.e. 1.875 * 8=15 points) 96 00 (Y vertical coordinate 18.75MM position, i.e. 18.75 * 8=150 points) CA D5 BC AF C8 CB A3 BA D5 C5 CA E7 C3 B7 (print content: Collected by Zhang Shumei) 00

    1a 54 00 (print text instruction) 0F 00 (X horizontal coordinate 1.875mm position, i.e. 1.875 * 8=15 points) B4 00 (Y vertical coordinate 22.5mm position, i.e. 22.5 * 8=180 points) CA B1 BC E4 A3 BA 32 30 32 32 2D 31 31 2D 32 31 20 31 37 3A 31 36 3A 35 34 (print content: time: November 21, 2022 17:16:54) 00

    1A 31 00 (print QR code instruction) 04 (specify version symbol) 04 (error correction level) 60 00 (X horizontal coordinate 12mm position, i.e. 15 * 8=96 points) dc 00 (Y vertical coordinate 27.5mm position, i.e. 27.5 * 8=220 points) 04 (QR code size) 00 (rotation angle) 68 74 74 70 73 3A 2F 2F 75 2E 77 (QR code content) 00

    1A 5D 00 (End of Page)

    1A 4F 00 (printing instructions)

    Example of 55 * 40 label command printing label effect (3)

    Example of 55 * 40 label command printing label effect (3)

    Using embedded label printer GY-EP201T standard label instruction layout

    Command Data

    1B 40

    1A 5B 01 00 00 00 00 80 01 40 01 00

    1A 30 00 18 00 10 00 08 3B 02 00 59 57 32 30 32 32 31 30 31 38 30 30 34 31 00 00

    1A 54 01 18 00 6C 00 18 00 00 22 59 54 2D 57 51 00

    1A 54 01 18 00 A2 00 18 00 00 00 22 4D 61 6E 75 66 61 63 74 75 72 69 6E 67 20 64 61 74 65 3A 20 41 75 67 75 73 74 20 33 31 2C 20 32 30 32 32 22  00

    1A 54 01 18 00 C2 00 18 00 00 00 22 56 61 6C 69 64 69 74 79 20 64 61 74 65 3A 20 41 75 67 75 73 74 20 33 31 2C 20 32 30 32 33 22  00

    1A 54 01 18 00 E0 00 18 00 00 00 22 52 65 66 72 69 67 65 72 61 74 69 6F 6E 20 74 69 6D 65 3A 20 4F 63 74 6F 62 65 72 20 31 38 2C 20 32 30 32 32 22  00

    1A 54 01 18 00 FE 00 18 00 00 00 22 52 65 66 72 69 67 65 72 61 74 69 6F 6E 20 74 69 6D 65 3A 20 4E 6F 76 65 6D 62 65 72 20 32 30 74 68 2C 20 32 30 32 32 22  00

    1A 54 01 18 00 1E 01 18 00 00 00 22 45 66 66 65 63 74 69 76 65 20 74 69 6D 65 20 66 6F 72 20 77 61 72 6D 69 6E 67 20 75 70 3A 20 31 33 3A 35 38 20 6D 69 6E 75 74 65 73 20 61 6E 64 20 31 32 20 73 65 63 6F 6E 64 73 22  00

    1A 5D 00

    1A 4F 00

    Instruction Interpretation

    Annotation

    1B 40 (initialization)

    1A 5B 01 (page start) 00 00 00 00 00 00 (initial position) 80 01 (page width of 384 points is 48MM) 40 01 (page height of 320 points is 40MM) 00 (page rotation direction "00" is not rotated by default)

    1A 30 00 (printing barcode) 18 00 (X horizontal coordinate 3MM position=3 * 8=24 points) 10 00 (Y vertical coordinate 2MM position=2 * 8=16 points) 08 (barcode type CODE128) 3B (barcode height) 02 (barcode width) 00 (rotation angle) 59 57 32 30 32 32 31 30 31 38 30 34 31 00 (barcode content "YW202210180041") 00 (End)

    1A 54 01 (print text) 18 00 (X horizontal coordinate 3MM position, i.e. 3 * 8=24 points) 6C 00 (Y vertical coordinate 13.5MM position, i.e. 13.5 * 8=108 points) 18 00 (font height) 00 (font special effects) 22 (font magnification) 59 54 2D 57 51 (print content "YT-WQ") 00 (end)

    1A 54 01 (print text) 18 00 (X horizontal coordinate 3MM position, i.e. 3 * 8=24 points) A2 00 (Y vertical coordinate 20.25MM position, i.e. 20.25 * 8=162 points) 18 00 (font height) 00 (font effects) 00 (font magnification) D6 C6 D4 EC C8 D5 C6 DA A3 BA 32 30 32 32 2D 38 2D 33 31 (print content "Manufacturing date: August 31, 2022") 00 (End)

    1A 54 01 (printed text) 18 00 (X horizontal coordinate 3MM position, i.e. 3 * 8=24 points) C2 00 (Y vertical coordinate 24.25MM position, i.e. 24.25 * 8=194 points) 18 00 (font height) 00 (font special effects) 00 (font magnification) D3 D0 D0 A7 C8 D5 C6 DA A3 BA 32 30 32 33 2D 38 2D 33 31 (printed content "Effective date: August 31, 2023") 00 (End)

    1A 54 01 (Print Text) 18 00 (X Horizontal Coordinate 3MM Position=3 * 8=24 Points) E0 00 (Y Vertical Coordinate 28MM Position=28 * 8=224 Points) 18 00 (Font Height) 00 (Font Effects) 00 (Font Magnification) C8 EB B1 F9 CF E4 CA B1 BC E4 A3 BA 32 30 32 32 2D 31 30 2D 31 38 (Print Content "Refrigeration Time: October 18, 2022") 00 (End)

    1A 54 01 (print text) 18 00 (X horizontal coordinate at 3MM position, i.e. 3 * 8=24 points) FE 00 (Y vertical coordinate at 31.75mM position, i.e. 31.75 * 8=254 points) 18 00 (font height) 00 (font special effects) 00 (font magnification) B3 F6 B1 F9 CF E4 CA B1 BC E4 A3 BA 32 30 32 32 32 32 2D 31 2D 32 30 (print content "refrigerator out time: November 20, 2022") 00 (End)

    1A 54 01 (print text) 18 00 (X horizontal coordinate at 3MM position, i.e. 3 * 8=24 points) 1E 01 (Y vertical coordinate at 35.75mM position, i.e. 35.75 * 8=286 points) 18 00 (font height) 00 (font effects) 00 (font magnification) BB D8 CE C2 D3 D0 D0 A7 CA B1 BC E4 A3 BA 31 33 B5 E3 35 38 B7 D6 31 32 C3 EB (print content "effective time for temperature recovery: 13:58 minutes 12 seconds") 00 (End)

    1A 5D 00 (End of Page)

    1A 4F 00 (page printing)

    Example of 55 * 40 label command printing label effect (4)

    Example of 55 * 40 label command printing label effect (4)

    Hexadecimal instruction

    Command Data

    1B 40


    1A 5B 01 00 00 00 00 80 01 40 01 00


    1A 54 01 0a 00 64 00 20 00 00 11 32 30 32 32 31 32 30 31 20 31 32 3A 30 30 3A 33 30 00


    1A 54 01 0a 00 96 00 20 00 00 11 48 4F 50 30 30 31 2C 20 41 6C 63 6F 68 6F 6C  00


    1A 54 01 0a 00 c8 00 20 00 00 11 31 32 33 34 35 36 67 A3 BB  00


    1A 54 01 96 00 c8 00 20 00 00 11 31 32 31 6D 69 6E 20 33 30 73  00


    1A 5D 00


    1A 4F 00

    Instruction Interpretation

    annotation

    1B 40 (initialization)

    1A 5B 01 (page start) 00 00 00 00 00 00 (initial position) 80 01 (page width 384 points, 48MM) 40 01 (page height 320 points, 40MM) 00

    1A 54 01 (print text command) 0a 00 (X horizontal coordinate 1.25mm position, i.e. 1.25 * 8=10 points) 64 00 (Y vertical coordinate 12.5MM position, i.e. 12.5 * 8=100 points) 20 00 (font height) 00 (font special effects) 11 (magnification) 32 30 32 32 31 32 30 31 31 20 31 32 3A 30 3A 33 30 (print content: 20221201 12:00:30) 00 (End)

    1A 54 01 (Print Text Instruction) 0a 00 (X Horizontal Coordinate 1.25mm Position=1.25 * 8=10 Points) 96 00 (Y Vertical Coordinate 18.75mm Position=18.75 * 8=150 Points) 20 00 (Font Height) 00 (Font Effects) 11 (Magnification) 48 4F 50 30 31 2C BE C6 BE AB (Print Content: HOP001, Alcohol) 00 (End)

    1A 54 01 (print text instruction) 0a 00 (X horizontal coordinate 1.25mm position=1.25 * 8=10 points) c8 00 (Y vertical coordinate 25MM position=25 * 8=200 points) 20 00 (font height) 00 (font special effects) 11 (magnification) 31 32 33 34 35 36 67 3B (print content: 123456g;) 00 (end)

    1A 54 01 (Print Text Instruction) 0a 00 (X Horizontal Coordinate 1.25MM Position=1.25 * 8=10 Points) c8 00 (Y Vertical Coordinate 25MM Position=25 * 8=200 Points) 20 00 (Font Height) 00 (Font Effects) 11 (Magnification) 31 32 31 6D 69 6E 20 33 30 73 (Print Content: 121min 30s) 00 (End)

    1A 5D 00 (End of Page)

    1A 4F 00 (printing instructions)

    Example of Printing Label Effects for 55 * 40 Pre stored Template Label Instructions (5)

    Example of Printing Label Effects for 55 * 40 Pre stored Template Label Instructions (5)

    Hexadecimal instruction

    Command Data

    1F 32 00 4D 00


    1B 40 1a 5B 01 00 00 00 00 80 01 40 01 00


    1A 54 01 00 00 6a 00 20 00 00 11 44 65 6D 61 67 6E 65 74 69 7A 61 74 69 6F 6E 20 76 6F 6C 74 61 67 65 3A  00


    1A 54 01 00 00 aa 00 20 00 00 11 44 65 6D 61 67 6E 65 74 69 7A 61 74 69 6F 6E 20 66 69 65 6C 64 20 73 74 72 65 6E 67 74 68 3A  00


    1A 54 01 00 00 f0 00 20 00 00 11 44 65 6D 61 67 6E 65 74 69 7A 61 74 69 6F 6E 20 74 69 6D 65 3A  00



    1A 66 00


    1A 54 01 5a 00 1e 00 18 00 00 22 44 65 6D 61 67 6E 65 74 69 7A 61 74 69 6F 6E 20 73 75 63 63 65 73 73 66 75 6C  00


    1A 54 01 96 00 6a 00 20 00 00 11 38 38 36 56 00


    1A 54 01 96 00 aa 00 20 00 00 11 31 30 33 36 32 47 73 00


    1A 54 01 96 00 f0 00 20 00 00 11 32 30 32 32 2D 31 30 2D 31 38 00


    1a 5d 00


    1a 4f 00

    Instruction Interpretation

    Annotation

    Attention: First, send the pre stored template instruction, which only needs to be sent once. For subsequent printing, only send the call template instruction

    1F 32 00 (pre stored template instruction) 4D 00 (pre stored template character count, which is the number of characters in [], totaling 77 characters)

    1B 40 (initialization) 1a 5B 01 (page start) 00 00 00 00 00 (initial position) 80 01 (page width 384 points, 48MM) 40 01 (page height 320 points, 40MM) 00 (page rotation direction "00" defaults to not rotating)

    1A 54 01 (print pre stored template text) 00 00 (X horizontal coordinate 0MM position=0 * 8=0 points) 6a 00 (Y vertical coordinate 13.25MM position=13.25 * 8=106 points) 20 00 (character height) 00 (character effects) 11 (default font size) CF FB B4 C5 B5 E7 D1 B9 3A (pre stored template printing content: demagnetization voltage:) 00 (end)

    1A 54 01 (print pre stored template text) 00 00 (X horizontal coordinate 0MM position=0 * 8=0 points) aa 00 (Y vertical coordinate 21.25MM position=21.25 * 8=170 points) 20 00 (character height) 00 (character effects) 11 (default font size) CF FB B4 C5 B3 A1 C7 BF 3A (pre stored template printing content: demagnetization field strength:) 00 (end)

    1A 54 01 (print pre stored template text) 00 00 (X horizontal coordinate 0MM position=0 * 8=0 points) f0 00 (Y vertical coordinate 30MM position=30 * 8=240 points) 20 00 (character height) 00 (character effects) 11 (default font size) CF FB B4 C5 CA B1 BC E4 3A (pre stored template printing content: demagnetization time:) 00 (end)

    1A 66 00 (calling pre stored template instructions)

    1A 54 01 (print pre stored template text) 5a 00 (X horizontal coordinate 11.25mm position, i.e. 11.25 * 8=90 points) 1e 00 (Y vertical coordinate 3.75mm position, i.e. 3.75 * 8=30 points) 18 00 (character height) 00 (character effects) 22 (font magnification twice) CF FB B4 C5 B3 C9 B9 A6 (print variable data: demagnetization successful) 00 (end)

    1A 54 01 (print pre stored template text) 96 00 (X horizontal coordinate 18.75MM position, i.e. 18.75 * 8=150 points) 6a 00 (Y vertical coordinate 13.25MM position, i.e. 13.25 * 8=106 points) 20 00 (character height) 00 (character effects) 11 (font default size) 38 38 36 56 (print variable data: 886V) 00 (end)

    1A 54 01 (print pre stored template text) 96 00 (X horizontal coordinate 18.75MM position, i.e. 18.75 * 8=150 points) aa 00 (Y vertical coordinate 21.25MM position, i.e. 21.25 * 8=170 points) 20 00 (character height) 00 (character effects) 11 (font default size) 31 30 33 36 32 47 73 (print variable data: 10362Gs) 00

    1A 54 01 (print pre stored template text) 96 00 (X horizontal coordinate 18.75MM position, i.e. 18.75 * 8=150 points) f0 00 (Y vertical coordinate 30MM position, i.e. 30 * 8=240 points) 20 00 (character height) 00 (character effects) 11 (default font size) 32 30 32 2D 31 30 2D 31 38 (print variable data: 2022-10-18) 00

    1a 5d 00 (End of page)

    1a 4f 00 (printing instructions)

    Example of 55 * 40 label command printing label effect (6)

    Example of 55 * 40 label command printing label effect (6)

    Hexadecimal instruction

    Command Data

    1B 40


    1A 5B 01 00 00 00 00 80 01 40 01 00


    1A 54 01 28 00 1E 00 18 00 00 22 4C 65 6D 6F 6E 20 74 65 61   00


    1A 54 00 28 00 64 00 22 50 72 69 63 65 3A 20 31 36 20 79 75 61 6E 22  00


    1A 54 00 28 00 96 00 22 52 65 63 65 69 70 74 20 6E 75 6D 62 65 72 3A 20 30 30 30 30 33 22  00


    1A 54 00 28 00 D2 00 22 41 75 67 75 73 74 20 32 33 2C 20 32 30 32 31 20 31 30 3A 32 31 3A 30 39 22  00


    1A 5D 00


    1A 4F 00

    Instruction Interpretation

    Annotation

    Definition:

    Add 00 after each instruction line to indicate the end of the line

    1B 40 (initialization)

    1A 5B 01 (page start) 00 00 00 00 00 00 (initial position) 80 01 (page width of 384 points is 48MM) 40 01 (page height of 320 points is 40MM) 00 (page rotation direction "00" is not rotated by default)

    1A 54 01 (Print Text) 28 00 (X Horizontal Coordinate 5MM Position=5 * 8=40 Points) 1E 00 (Y Vertical Coordinate 3.75MM Position=3.75 * 8=30 Points) 18 00 (Font Height) 00 (Font Effects) 22 (Font Enlargement) C4 FB C3 CA D5 E4 D6 E9 C4 CC B2 E8 (Print Content: "Lemon Pearl Milk Tea") 00 (End)

    1A 54 00 (printed text) 28 00 (X horizontal coordinate 5MM position=5 * 8=40 points) 64 00 (Y vertical coordinate 12.5MM position=12.5 * 8=100 points) BC DB B8 F1 A3 BA 20 31 36 D4 AA (printed content: "Price: 16 yuan") 00 (End)

    1A 54 00 (print text) 28 00 (X horizontal coordinate 5MM position=5 * 8=40 points) 96 00 (Y vertical coordinate 18.75mM position=18.75 * 8=150 points) CA D5 BE DD BA C5 A3 BA 30 30 30 30 33 (print content: "Receipt number: 00003") 00 (End)

    1A 54 00 (print text) 28 00 (X horizontal coordinate 5MM position=5 * 8=40 points) D2 00 (Y vertical coordinate 26.25MM position=26.25 * 8=210 points) 32 30 32 31 2D 30 38 2D 32 33 20 31 3A 32 3A 30 39 (print content: "2021-08-23 10:21:09") 00 (End)

    1A 5D 00 (End of Page)

    1A 4F 00 (printing instructions)

    Example of printing labels for 77 * 45 small ticket instructions (1)

    Example of printing labels for 77 * 45 small ticket instructions (1)

    Move the printing line down 5mmHexadecimal instruction

    Command Data

    1B 40

    1B 45 01

    50 72 6F 64 75 63 74 20 4E 61 6D 65 3A 20 54 68 65 72 6D 61 6C 20 4C 61 62 65 6C 20 50 61 70 65 72  0D 0A

    50 72 6F 64 75 63 74 20 73 70 65 63 69 66 69 63 61 74 69 6F 6E 73 3A 20 37 37 20 2A 20 34 35 20 2A 20 32 30 30  0D 0A

    1B 40

    1B 45 01

    50 61 70 65 72 20 72 6F 6C 6C 20 64 69 61 6D 65 74 65 72 3A 20 35 30 4D 4D  0D 0A

    1B 40

    1B 61 01

    1D 48 02

    1D 68 50 00

    1D 77 03 00

    1D 6B 49 0B 31 32 33 34 35 36 37 38 39 31 30

    1D 56 42 00

    Instruction Interpretation

    annotation

    1B 40 (initialization)

    1B 45 01 (Bold Text)

    B2 FA C6 B7 C3 FB B3 C6 A3 BA C8 C8 C3 F4 B1 EA C7 A9 D6 BD (Text Content: Product Name: Thermal Label Paper) 0D 0A

    B2 FA C6 B7 B9 E6 B8 F1 A3 BA 37 2A 34 35 2A 32 30 30 (Text content: Product specifications: 77 * 45 * 200) 0D 0A

    1B 40 (initialization)

    1B 45 01 (Bold Text)

    D6 BD BE ED D6 B1 BE B6 A3 BA 1D 35 30 4D 4D (Text content: Paper roll diameter: 50mm) 0D 0A

    1B 40 (initialization)

    1B 61 01 (center printing)

    1D 48 02 (Set subscript position below)

    1D 68 50 00 (barcode height)

    1D 77 03 00 (barcode width)

    1D 6B 08 (Barcode Code Type) 0B (Number of Barcode Data Lengths) 31 32 33 34 35 36 37 38 39 31 30 (Barcode Content: 1234567890)

    1D 56 42 00 (Find gaps and cut paper)

    Example of printing receipts with 58 receipts instruction (1)

    Example of printing receipts with 58 receipts instruction (1)

    Hexadecimal instruction

    Command Data

    1B 40


    1b 33 3c


    1b 61 01 1f 53 02 56 69 62 72 61 74 69 6F 6E 20 72 6F 64  0D 0A


    1b 61 00 1f 53 00 57 6F 72 6B 69 6E 67 20 68 6F 75 72 73 3A 20 41 70 72 69 6C 20 32 32 2C 20 32 30 32 33  0D 0A


    41 70 72 69 6C 20 32 32 2C 20 32 30 32 33 20 30 39 3A 30 30 3A 30 30  0D 0A


    41 70 72 69 6C 20 32 32 2C 20 32 30 32 33 20 31 32 3A 30 30 3A 30 30 0D 0A


    57 6F 72 6B 69 6E 67 20 68 6F 75 72 73 3A 20 34 20 68 6F 75 72 73  0D 0A


    57 6F 72 6B 69 6E 67 20 66 72 65 71 75 65 6E 63 79 3A 20 32 30 20 74 69 6D 65 73  0D 0A


    53 74 6F 72 61 67 65 20 64 61 79 73 3A 20 37 20 64 61 79 73  0D 0A


    0D 0A


    0D 0A


    1b 69

    Instruction Interpretation

    Annotation

    1B 40 (initialization)

    1b 33 3c (set row spacing, 3c is hexadecimal data with a row spacing of 60)

    1b 61 01 (Set center printing) 1f 53 02 (Set text size) D5 F1 B5 B7 B0 F4 (Text content: vibrator) 0D 0A (Line feed command)

    1b 61 00 (Set Right Printing) 1f 53 00 (Set Text Size) B9 A4 D7 F7 CA B1 BC E4 A3 BA 32 30 32 33 2D 30 34 2D 32 32 (Text Content: Working Time: April 22, 2023) 0D 0A (Line Break Instruction)

    C6 F4 B6 AF CA B1 BC E4 A3 BA 32 30 32 33 2D 30 34 2D 32 32 20 30 39 3A 30 3A 30 30 (Text content: 2023-04-22 09:00:00) 0D 0A (Line feed instruction)

    CD A3 D6 B9 CA B1 BC E4 A3 BA 32 30 32 33 2D 30 34 2D 32 32 20 31 32 3A 30 3A 30 30 (Text Content: 2023-04-22 12:00:00) 0D 0A (Line Break Instruction)

    B9 A4 D7 F7 CA B1 B3 A4 A3 BA 34 68 (working time: 4h) 0D 0A (line feed instruction)

    B9 A4 D7 F7 B4 CE CA FD A3 BA 32 30 B4 CE (working 20 times) 0D 0A (line feed command)

    B4 E6 B4 A2 CC EC CA FD A3 BA 37 CC EC (storage days: 7 days) 0D 0A (line feed instruction)

    0D 0A (line feed instruction)

    0D 0A (line feed instruction)

    1b 69

    Example of printing a receipt with a 58 receipt instruction (2)

    Example of printing a receipt with a 58 receipt instruction (2)

    Hexadecimal instruction

    Command Data

    1B 40


    22 50 72 69 6E 74 69 6E 67 20 74 69 6D 65 3A 20 4D 61 72 63 68 20 32 30 2C 20 32 30 32 32 20 32 30 3A 32 30 3A 32 30 22  0D 0A


    22 47 72 6F 75 70 3A 22 

    41 30


    22 4E 75 6D 62 65 72 3A 22 


    30 30 0D 0A


    22 45 78 70 65 72 69 6D 65 6E 74 61 6C 20 64 61 74 65 3A 22 


    22 41 70 72 69 6C 20 32 30 2C 20 32 30 32 32 20 31 30 3A 32 30 3A 33 30 22  0D 0A


    22 45 78 70 65 72 69 6D 65 6E 74 61 6C 20 6D 6F 64 65 3A 22 


    22 54 69 6D 65 72 20 6D 6F 64 65 22  0D 0A


    22 54 6F 75 63 68 20 70 61 6E 65 6C 20 74 65 6D 70 65 72 61 74 75 72 65 3A 22 


    35 30 2E 30 A1 E6 0D 0A


    22 54 65 73 74 20 64 75 72 61 74 69 6F 6E 3A 22 


    30 39 3A 33 35 27 35 30 27 27 30 30 0D 0A


    22 4E 75 6D 62 65 72 20 6F 66 20 66 6F 6F 74 20 6C 69 66 74 73 3A 22 


    30 39 3A 33 35 27 35 30 27 27 30 30 0D 0A


    CC A7 D7 E3 B4 CE CA FD A3 BA


    31 2D 30 39 3A 33 35 27 35 30 27 27 30 30 0D 0A


    32 2D 30 39 3A 33 35 27 35 30 27 27 30 30 0D 0A


    33 2D 30 39 3A 33 35 27 35 30 27 27 30 30 0D 0A


    34 2D 30 39 3A 33 35 27 35 30 27 27 30 30 0D 0A


    35 2D 30 39 3A 33 35 27 35 30 27 27 30 30 0D 0A

    Instruction Interpretation

    Annotation

    Comment:

    1B 40 (initialization)

    B4 F2 D3 A1 CA B1 BC E4 A3 BA 32 30 32 32 2D 30 33 2D 32 30 20 32 30 3A 32 3A 32 30

    D7 E9 B1 F0 A3 BA (Print content: "Group:")

    41 30 (Print content: "A0")

    D0 F2 BA C5 A3 BA (Print content: "Serial number:")

    30 30 (print content: "00") 0D 0A (line feed instruction)

    CA B5 D1 E9 C8 D5 C6 DA A3 BA (Print content: "Experimental date:")

    32 30 32 2D 30 34 2D 32 30 20 31 30 3A 32 30 3A 33 30 (print content: "2022-04-20 10:20:30") 0D 0A (line feed instruction)

    CA B5 D1 E9 C4 A3 CA BD A3 BA (Print content: "Experimental mode:")

    B6 A8 CA B1 C4 A3 CA BD (print content: "timing mode") 0D 0A (line feed instruction)

    B4 A5 B0 E5 CE C2 B6 C8 A3 BA (Print content: "Touch board temperature:")

    35 30 2E 30 A1 E6 (print content: "50.0 ℃") 0D 0A (line feed command)

    B2 E2 CA D4 CA B1 B3 A4 A3 BA (Print content: "Test duration:")

    30 39 3A 33 35 27 35 30 27 30 30 (print content: "09:35'50''00") 0D 0A (line feed command)

    CC A7 D7 E3 CA B1 BC E4 A3 BA (Print content: "Lift foot time:")

    30 39 3A 33 35 27 35 30 27 30 30 (print content: "09:35'50''00") 0D 0A (line feed command)

    CC A7 D7 E3 B4 CE CA FD A3 BA (Print content: "Feet lifting times:")

    31 2D 30 39 3A 33 35 27 35 30 27 30 27 30 30 (print content: "1-09:35'50''00") 0D 0A (line feed instruction)

    32 2D 30 39 3A 33 35 27 35 30 27 30 27 30 (print content: "2-09:35'50''00") 0D 0A (line feed instruction)

    33 2D 30 39 3A 33 35 27 35 30 27 30 27 30 30 (print content: "3-09:35'50''00") 0D 0A (line feed command)

    34 2D 30 39 3A 33 35 27 35 30 27 30 27 30 30 (print content: "4-09:35'50''00") 0D 0A (line feed instruction)

    35 2D 30 39 3A 33 35 27 35 30 27 30 30 30 (print content: "5-09:35'50''00") 0D 0A (line feed instruction)

    If line breaks are required, add 0D 0A (line break instruction) directly after the text content

    If alignment is required, just type the space directly

    Example of printing a receipt with an 80 receipt instruction (1)

    Example of printing a receipt with an 80 receipt instruction (1)

    Hexadecimal instruction

    Command Data

    1B 40


    1b 33 3c


    1B 61 01 47 72 6F 75 74 69 6E 67 20 43 6F 6E 73 74 72 75 63 74 69 6F 6E 20 52 65 63 6F 72 64 20 46 6F 72 6D  0D 0A


    1B 61 00 50 72 6F 6A 65 63 74 20 4E 61 6D 65 3A 


    4B 61 6E 67 64 69 6E 67 20 54 75 6E 6E 65 6C 20 32 20 28 44 33 4B 32 37 39 2B 38 32 30 2D 44 4B 32 38 37 2B 30 36 30 


    0D 0A


    43 6F 6E 73 74 72 75 63 74 69 6F 6E 20 75 6E 69 74 3A 


    43 68 69 6E 61 20 52 61 69 6C 77 61 79 20 31 32 74 68 20 42 75 72 65 61 75 20 47 72 6F 75 70 20 43 6F 2E 2C 20 4C 74 64 


    0D 0A


    43 6F 6E 73 74 72 75 63 74 69 6F 6E 20 64 61 74 65 3A 


    32 30 32 32 2F 31 32 2F 31 32


    0D 0A


    48 6F 6C 65 20 6E 75 6D 62 65 72 3A 


    59 53 32 38 2D 31 2D 31


    0D 0A


    47 72 6F 75 74 69 6E 67 20 74 79 70 65 3A 


    4C 65 61 64 69 6E 67 20 74 68 65 20 70 65 72 69 70 68 65 72 79 


    0D 0A


    53 74 61 74 69 6F 6E 20 6E 75 6D 62 65 72 3A 


    44 34 4B 32 38 32 2B 31 30 33 2E 35 2D 44 34 4B 32 38 32 2B 31 35 31 2E 35


    0D 0A


    2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2d 2d 2d 2d 2d 2d 0d 0a


    53 74 61 72 74 20 74 69 6D 65 3A 


    31 32 3A 35 30 3A 32 35


    0d 0a


    45 6E 64 20 74 69 6D 65 3A 


    31 33 3A 34 35 3A 35 37


    0d 0a


    41 63 63 75 6D 75 6C 61 74 65 64 20 67 72 6F 75 74 69 6E 67 20 76 6F 6C 75 6D 65 20 4C 3A 


    33 34 35 36 37 38 2E 31 32


    0d 0a


    43 65 6D 65 6E 74 20 64 6F 73 61 67 65 20 4B 47 3A 


    31 37 30 36 2E 36 35


    0d 0a


    52 65 6D 61 72 6B 73 3A 


    0d 0a


    2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2d 2d 2d 2d 2d 2d 0d 0a


    53 74 61 74 69 73 74 69 63 73 3A 


    0d 0a


    0d 0a


    0d 0a

    1b 69

    Instruction Interpretation

    Annotation

    Comment:

    1B 40 (initialization)

    1b 33 3c (set row spacing, 3c is hexadecimal data with a row spacing of 60)

    1B 61 01 (Set Center Printing) 1D 21 01 D7 A2 BD AC CA A9 B9 A4 BC C7 C2 BC B1 ED (Grouting Construction Record Form) 0D 0A (Line Break Instruction)

    1B 61 00 (Set Left Print) B9 A4 B3 CC C3 FB B3 C6 A3 BA (Project Name:)

    BF B5 B6 A8 32 BA C5 CB ED B5 C0 28 44 33 4B 32 37 39 2B 38 32 30 2D 44 4B 32 38 37 2B 30 36 30 29 (Kangding Tunnel 2 (D3K279+820-DK287+060))

    0D 0A (line feed instruction)

    CA A9 B9 A4 B5 A5 CE BB A3 BA (Construction unit:)

    D6 D0 CC FA CA AE B6 FE BE D6 BC AF CD C5 D3 D0 CF DE B9 AB CB BE (China Railway 12th Bureau Group Co., Ltd.)

    0D 0A (line feed instruction)

    CA A9 B9 A4 C8 D5 C6 DA A3 BA (Construction Date:)

    32 30 32 32 2F 31 32 2F 31 32 (December 12, 2022)

    0D 0A (line feed instruction)

    BF D7 BA C5 A3 BA (hole number:)

    59 53 32 38 2D 31 2D 31 (YS28-1-1)

    0D 0A (line feed instruction)

    D7 A2 BD AC C0 E0 D0 CD A3 BA (grouting type:)

    B3 AC C7 B0 D6 DC B1 DF (leading perimeter)

    0D 0A (line feed instruction)

    D7 AE BA C5 A3 BA (pile number:)

    44 34 4B 32 38 32 2B 31 30 33 2E 35 2D 44 34 4B 32 38 32 2B 31 35 31 2E 35 (D4K282+103.5-D4K282+151.5)

    0D 0A (line feed instruction)

    2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2d 2d 2d 2d (split line) 0d 0a (line feed instruction)

    BF AA CA BC CA B1 BC E4 A3 BA (Start time:)

    31 32 3A 35 30 3A 32 35 (12:50:25)

    0d 0a (line feed instruction)

    BD E1 CA F8 CA B1 BC E4 A3 BA (End time:)

    31 33 3A 34 35 3A 35 37 (13:45:57)

    0d 0a (line feed instruction)

    C0 DB BC C6 D7 A2 BD AC 4C C1 BF A3 BA (cumulative injection volume:)

    33 34 35 36 37 38 2E 31 32 (345678.12)

    0d 0a (line feed instruction)

    CB AE C4 E0 D3 C3 C1 BF 4B 47 A3 BA (Cement dosage KG:)

    31 37 30 36 2E 36 35 (1706.65)

    0d 0a (line feed instruction)

    B1 B8 D7 A2 A3 BA (Note:)

    0d 0a (line feed instruction)

    2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D