[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-512062-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-512062-en":131,"doc-similar-512062":176},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","commande20escpos","Commande%20ESCPOS","","Command list for an ESC/POS-compatible thermal printer, detailing control codes and their effects on printing and paper handling. Covers core text formatting and movement functions such as tabbing, line feed, carriage return, page-mode printing, initialization, cancellation, and status transmission. Includes commands for character styling (underline, emphasis, rotation), layout control (margins, print direction, absolute/relative positioning), and graphics/bitmap printing, plus barcode and QR/PDF417 symbol commands with parameters.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/commande20escpos/512062/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/commande20escpos/512062.png","ImageObject",300,407,{"name":42,"@type":43},"lugxt","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-13","2026-10-06",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",16,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What do HT, LF, and CR do in ESC/POS printing?","Question",{"text":63,"@type":64},"HT moves the print position to the next tab stop. LF advances the paper by one line (line feed). CR returns the print position to the start of the current line (carriage return).","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How is horizontal tab behavior configured?",{"text":68,"@type":64},"Horizontal tab positions are set using the ESC D command, and HT is ignored unless the next tab position has been set.",{"name":70,"@type":61,"acceptedAnswer":71},"Which commands are used to generate QR Code and PDF417 symbols?",{"text":72,"@type":64},"The document lists GS ( k ... sequences for QR Code model, size, error correction level, data storage, and printing. It also provides GS ( k ... sequences for PDF417 columns, rows, module width/height, error correction level, and symbol data storage/printing.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},512062,1791308331,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":106,"preview_urls":147},3985747862600,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","| No. | Command | Function |  |\n| --- | --- | --- | --- |\n| 1 | HT | Horizontal tab |  |\n| 2 | LF | Print and line feed |  |\n| 3 | CR | Print and carriage return |  |\n| 4 | FF | Print end position label to start printing |  |\n| 5 | CAN | Cancel print data in page mode |  |\n| 6 | DLE EOT | Real-time status transmission |  |\n| 7 | DLE ENQ | Real-time request to printer |  |\n| 8 | DLE DC4 | Generate pulse at real-time |  |\n| 9 | ESC FF | Print data in page mode |  |\n| 10 | ESC SP | Set character right-side spacing |  |\n| 11 | ESC ! | Set print mode |  |\n| 12 | ESC $ | Set absolute print position |  |\n| 13 | ESC % | Select/cancel user-defined character set |  |\n| 14 | ESC & | Define user-defined characters |  |\n| 15 | ESC * | Set bit image mode |  |\n| 16 | ESC- | Turn underline mode on/off |  |\n| 17 | ESC 2 | Set 1/6 inch line spacing |  |\n| 18 | ESC 3 | Set line spacing using minimum units |  |\n| 19 | ESC = | Select peripheral device |  |\n| 20 | ESC ? | Cancel user-defined characters |  |\n| 21 | ESC @ | Initialize printer |  |\n| 22 | ESC D | Set horizontal tab positions |  |\n| 23 | ESC E | Select emphasized mode |  |\n| 24 | ESC G | Select double-strike mode |  |\n| 25 | ESC J | Print end feed paper using minimum units |  |\n| 26 | ESC L | Select page mode |  |\n| 27 | ESC M | Select character font |  |\n| 28 | ESC R | Select international character set |  |\n| 29 | ESC S | Select standard mode |  |\n| 30 | ESC T | Select print direction in page mode |  |\n| 31 | ESC V | Set/cancel 90􀁱 cw rotated character |  |\n| 32 | ESC W | Set printing area in page mode |  |\n| 33 | ESC \\ | Set relative position |  |\n| 34 | ESC a | Align position |  |\n| 35 | ESC c 3 | Select paper sensor(s) to output paper-end signals |  |\n| 36 | ESC c 4 | Select paper sensor(s) to stop printing |  |\n| 37 | ESC c 5 | Enable/disable panel buttons |  |\n| 38 | ESC d | Print and feed paper n lines |  |\n| 39 | ESC p | General pulse |  |\n| 40 | ESC t | Select character code table |  |\n| 41 | ESC { | Set/cancel upside-down character printing |  |\n| 42 | FS p | Print NV bit image |  |\n| 43 | FS q | Define NV bit image |  |\n| 44 | GS ! | Select character size |  |\n| 45 | GS $ | Set absolute vertical print position in page mode |  |\n| 46 | GS * | Define downloaded bit image |  |\n| 47 | GS / | Print down-loaded bit image |  |\n| 48 | GS : | Start/end macro definition | Not avalible |\n| 49 | GS B | Turn white/black reverse printing mode on/off |  |\n| 50 | GS H | Select printing position of HRI characters |  |\n| 51 | GS I | Transmit printer ID |  |\n\n\n| 52 | GS L | Set left margin |  |\n| --- | --- | --- | --- |\n| 53 | GS P | Set horizontal and vertical motion units |  |\n| 54 | GS V | Cut paper |  |\n| 55 | GS W | Set printing area width |  |\n| 56 | GS \\ | Set relative vertical print position in page mode |  |\n| 57 | GS ^ | Execute macro | Not avalible |\n| 58 | GS a | Enable/disable Automatic Status Back(ASB) |  |\n| 59 | GS b | Turn smooting mode on/off | Not avalible |\n| 60 | GS f | Select font for HRI characters |  |\n| 61 | GS h | Set bar code height |  |\n| 62 | GS k | Print bar code |  |\n| 63 | GS r | Transmit status |  |\n| 64 | GS v 0 | Print raster bit image |  |\n| 65 | GS w | Set bar code width |  |\n|  | \u003C Add > |  |  |\n| 1 | ESC i | Full cut |  |\n| 2 | ESC m | Partial cut |  |\n| 3 | GS ( k pL pH cn fn n1 n2(fn=65) | Select the QR Code model. |  |\n| 4 | GS ( k pL pH cn fn n(fn=67) | Set the QR Code size of module |  |\n| 5 | GS ( k pL pH cn fn n(fn=69) | Select the QR Code error correction level |  |\n| 6 | GS ( k pL pH cn fn md1…dk(fn=80) | Store the QR Code data in the symbol storage area |  |\n| 7 | GS ( k pL pH cn fn m (fn=81) | Print the QR Code symbol data in the symbol storage area |  |\n| 8 | GS ( k pL pH cn fn n (fn=65) | Sets the number of columns of the data area for PDF417 |  |\n| 9 | GS ( k pL pH cn fn n (fn=66) | Sets the number of rows of data area for PDF417 |  |\n| 10 | GS ( k pL pH cn fn n (fn=67) | Sets the module width of one PDF417 symbol to n dots |  |\n| 11 | GS (","cbCaiatl0aFPYhw0","https://ap.wps.com/l/cbCaiatl0aFPYhw0","pdf",1039246,64,"English","# Command Descriptions\n## Print Commands\n## Cut Commands\n## QR Code and PDF417 Commands","[{\"question\":\"What do HT, LF, and CR do in ESC/POS printing?\",\"answer\":\"HT moves the print position to the next tab stop. LF advances the paper by one line (line feed). CR returns the print position to the start of the current line (carriage return).\"},{\"question\":\"How is horizontal tab behavior configured?\",\"answer\":\"Horizontal tab positions are set using the ESC D command, and HT is ignored unless the next tab position has been set.\"},{\"question\":\"Which commands are used to generate QR Code and PDF417 symbols?\",\"answer\":\"The document lists GS ( k ... sequences for QR Code model, size, error correction level, data storage, and printing. It also provides GS ( k ... sequences for PDF417 columns, rows, module width/height, error correction level, and symbol data storage/printing.\"}]","Commande%20ESCPOS | PDF",1791264427,161,[148,152,156,160,164,168,172],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0583445c9f5c435b746a69a911793bba.webp",983,1390,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/553ceda61ee533a1658c09a3e002136e.webp",982,1388,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/97b9a0f8e1fed2bd685480fde8a3d484.webp",981,1387,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/bc7a895a4b23a17c7537f74de83232ee.webp",980,1385,{"page_no":97,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d0e2df307c7862a998c7b01d4ae2f70b.webp",979,1384,{"page_no":102,"url":169,"width":170,"height":171},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/88e86836799f8ead0176d13b06d31e43.webp",978,1383,{"page_no":106,"url":173,"width":174,"height":175},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c4827151dcf926b576ebfaa11e50d5d7.webp",977,1381,{"list":177,"token":11},[178,185,191,197,204,210,216,223,229,235],{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":29,"create_tm":184},389838,"Glossary - Printer Terms","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917137874/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=dwsY5USk%2FA0so5QpZc6ZjczjOf4%3D","glossary-printer-terms",13,1790327983,{"doc_id":186,"doc_title":187,"file_type":138,"home_preview_img_url":188,"slug":189,"view_count":30,"category_name":29,"create_tm":190},690348,"Unit-QRCode - All-in-one 1D/2D Code Scanning Unit","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002021162/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=kJkQwyctRoAh9kZ65wmFmiJIoCo%3D","unit-qrcode-all-in-one-1d2d-code-scanning-unit",1794163762,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":26,"category_name":29,"create_tm":196},732727,"PWG Safe G-Code Subset for 3D Printing - v1.0 - Approved best practice","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031410880/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=EdwBrRropMPmTD%2BdLSlT6%2Ffg6eY%3D","pwg-safe-g-code-subset-for-3d-printing-v10-approved-best-practice",1795381937,{"doc_id":198,"doc_title":199,"file_type":138,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},343494,"Honeywell Printers - Print PDF Directly - User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910425225/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=nNPiVA9ZgFi%2F5B%2BQh2DcA%2FQgoXg%3D","honeywell-printers-print-pdf-directly-user-guide",25,1790051312,{"doc_id":205,"doc_title":206,"file_type":138,"home_preview_img_url":207,"slug":208,"view_count":97,"category_name":29,"create_tm":209},683099,"Appendix D - Printer commands - PCL 5e","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000020932/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=DCN3AYI6v0l14bHuq1RS7w4O0KM%3D","appendix-d-printer-commands-pcl-5e",1793995974,{"doc_id":211,"doc_title":212,"file_type":138,"home_preview_img_url":213,"slug":214,"view_count":106,"category_name":29,"create_tm":215},700702,"3.5”480x320 TFT LCD Capacitive Touchscreen - DFR0669 - Product Specifications & Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012033315/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=kxvE9JfC%2FHGq5Yoyjtt17h1qYyk%3D","35480x320-tft-lcd-capacitive-touchscreen-dfr0669-product-specifications-tutorial",1794520107,{"doc_id":217,"doc_title":218,"file_type":138,"home_preview_img_url":219,"slug":220,"view_count":221,"category_name":29,"create_tm":222},393883,"HP Smart Tank 6000 series - User Guide - Safety information","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229918137945/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=JYJY%2Bv4sdf8fiCcgYaKzNfxXQdo%3D","hp-smart-tank-6000-series-user-guide-safety-information",14,1790395389,{"doc_id":224,"doc_title":225,"file_type":138,"home_preview_img_url":226,"slug":227,"view_count":116,"category_name":29,"create_tm":228},642823,"SC-T5400 Series/SC-T3400 Series/SC-T3400N Series User's Guide - User's Guide - Printing and Setup","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970791452/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=ByqoqHSdYw6vY1d5MBSJ2IBETIM%3D","sc-t5400-seriessc-t3400-seriessc-t3400n-series-users-guide-users-guide-printing-and-setup",1792722956,{"doc_id":230,"doc_title":231,"file_type":138,"home_preview_img_url":232,"slug":233,"view_count":116,"category_name":29,"create_tm":234},642825,"SC-T5100 Series/SC-T3100 Series/SC-T5100N Series/SC-T3100N Series User's Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970548640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=zB2Gdq9VxYlN8QkRNzdYmFCU924%3D","sc-t5100-seriessc-t3100-seriessc-t5100n-seriessc-t3100n-series-users-guide",1792722957,{"doc_id":236,"doc_title":237,"file_type":138,"home_preview_img_url":238,"slug":239,"view_count":111,"category_name":29,"create_tm":240},698980,"HP Smart Tank 660-670 Series - User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010528928/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=D0WwksqrJfoTAFFRGyoIFgtpTVw%3D","hp-smart-tank-660-670-series-user-guide",1794458597]