Home

Star Micronics Line Thermal/Dot Printer User's Manual

image

Contents

1. 2 Regulations e By selecting interleaved 2 of 5 bar code symbols start and stop patterns are automatically inserted e When the bar code data digit count is odd a zero is added to the highest value digit e Details conform to standards for AIM USS 12 5 ANSI and JIS x 0502 STAR LIne Mode Command Specifications 5 1 SQI Rev 0 00 5 1 3 JAN EAN UPC Used numbers not only the bar code symbols are controlled using JAN EAN and UPC as shared common commer cial codes Mainly they are used for supermarkets such as shops and grocery stores 1 Each mode and bar code width Items Mode 1 Mode 2 Mode 3 Module Width 2 Dots 3 Dots 4 Dots Bar Code Width JAN EAN 8 16 75mm 25 125mm 33 5mm JAN EAN 13 23 75mm 35 625mm 47 5mm UPC A 23 75mm 35 625mm 47 5mm UPC E 12 75mm 19 125mm 25 5mm Includes the guard bar left right center but not the white space 2 Regulations e JAN EAN 8 Data is in 7 or 8 digits The command is ignored for others The check digit uses a modulus weight of 10 3 and is automatically applied When the calculated value and the numerical value of the 8 digit differ the calculated value has priority e JAN EAN 13 Data is in 12 or 13 digits The command is ignored for others The check digit uses a modulus weight of 10 3 and is automatically applied When the calculated value and the numerical value of the 13 digit differ t
2. 00001100B OC Hex 00001110B OE Hex 00100000B 20 Hex 00100010B 22 Hex O CO NI D O A TOJN 30 01101100B 6C Hex 31 01101110B 6E Hex Printer Status Version Model Name Version No Status HSP7000 3 06 Hex Up to printer status 7 9 byte loaded STAR LIne Mode Command Specifications 5 8 SQI Rev 0 00 3 Printer Status Printer status is the status of the printer sent from the 3 byte of the automatic status For the printer status the number of bytes added in Header 1 minus two is returned Printer status is always updated for new information No log exists The following shows the composition of the status lt Printer status 1 Printer status Third Byte gt Bit Contents Status By model 0 as bi HSP7000 7 Fixed at 0 6 OFFLINE By Switch Input No Occurs x 5 Cover Status Closed Open o 4 Fixed at 0 3 ONLINE OFFLINE Status ONLINE OFFLINE o 2 Compulsion SW Open Closed 1 ETB Command Not Executed Executed 0 Fixed at 0 ETB Command Cleared when received at the host by clearing bit 1 to 0 automatic status is not targeted to occur lt Printer status 2 Error Information Fourth Byte gt Bit Contents Status By model g
3. STAR LIne Mode Command Specifications 2 1 SAIF Rev 0 00 Class Commands Name Thermal Slip Validation Page control FF Form feed ESC C Set page length to n lines ESC C 0 Set page length in n x 24 mm units __ VT Feed paper to vertical tab position ESCB Set vertical tab position o Horizontal ESC Set left margin oe direction position ESC Q Set right margin E HT Move horizontal tab i ESC D Set cancel horizontal tab be ESC GSA Move absolute position z ESC GS R Move relative position zn ESC GS a Specify position alignment Download ESC amp Register delete download a characters ESC Set cancel download characters Bit image ESC K Standard density bit image _ Graphics ESC L High density bit image ie ESC k Fine bit image ESC X Fine bit image E ESC _ 9 Dot bit image Logos ESC FS q Register logo T ESC FS p Print logo em ESC RSL Logo batch control r Bar Codes ESC b Print bar code Cutter control ESC d Auto cutter External device ESC BEL Set external drive device 1 pulse drive width BEL External device 1 drive instruction FS External device 1 drive instruction SUB External device 2 drive instruction lt EM External device 2 drive instruction lt ESC GS BEL Ring buzzer ESC GS EM DC1 Set external buzzer drive pulse lt condition l E
4. e With NW7 lengths differ because narrow elements and wide elements are included according to the characters e Normal characters narrow 5 wide 2 and numbers 0 to 9 and e Wide characters narrow 4 wide 3 A to D e Character spaces are included in 1 character length STAR LIne Mode Command Specifications 5 5 SAIF 5 2 Appendix 2 Status Specifications lt Shared gt This function is valid only when using an interface capable of bi directional data communications Refer to your printer s product specification manual to verify if the interface cable on the printer you use is capable of bi directional data communications 5 2 1 This status is the one the printer transmits using the ENQ command ENQ Command Status Bit Contents Status By model O a ld HSP7000 7 Compulsion SW Open Closed o 6 Reception Buffer Overflow Does not occur Occurs o 5 Reception Buffer Empty Has Data Empty o 4 Fixed at 0 3 Paper end Paper No paper o 2 Other Errors No Yes o 1 Framing Error No Yes o O Parity Error No Yes o e Reception over flow errors Framing errors Parity errors These errors are after holding the error and using this command to inquire the status and the error status is sent e Compulsion SW When the conversion switch is ON Bit 7 1 e Other Errors Indicates non recoverable errors and cover open errors
5. SEQ e Auto Logo Commands Rev 0 00 Class Commands n laSS Set i Executed odel Name n HSP7000 Thermal Slip Auto Logo ESC GS W O O ie ESC GS C O ESC GS 1 ESC GS 2 ESC GS 3 ESC GS 4 fe t t t PDF417 Commands ojojo ojo o fe fe fe fe O fe fe Class Commands TASS a Model Name __ HSP7000 _ Set Executed Thermal Slip PDF417 ESC GS xS0 o o t ESC GS xS 1 o o ESC GS xS2 o o t ESC GS xS 3 o o t ESC GS xD o 3 ESC GS x P o o x ESC GSx o o o Print Start Trigger Control Commands Class Commands fo Class Model Name HSP7000 a Set _ Executed Thermal Slip rint Start ing Trigger ESC GSg0 Contro ESC GS g1 o o f 6 4 STAR LIne Mode Command Specifications SAIF QR Code Commands Rev 0 00 Class Commands aaa ASS Model Name HSP7000 Set Executed Thermal Slip QR Codes ESC GSyS0 o o t ESC
6. 2 and lt ESC gt lt GS gt x S 3 The X direction size of the module is determined by lt ESC gt lt GS gt x S 2 and the Y direction size of the module is determined from an aspect ratio using lt ESC gt lt GS gt x S 3 The module size setting is the basis for the generated bar code image so print results will differ according to these settings lt Printable Bar Code Size gt Vertical Size Dots Horizontal Size Dots 640 640 STAR Line Mode Command Specifications 3 133 SQI Rev 0 00 These are individual settings so the following errors may occur even if there are no problems In such cases the bar code will not be generated and the 3 print command lt ESC gt lt GS gt x P will be ignored e An error occurs when generating the bar code by the combination of bar code settings e When the generated bar code exceeds the printable PDF417 size e When the print data exceeds the currently set print region It is recommended to use the 4 Get bar code expansion information command lt ESC gt lt GS gt x I as a means for checking for these errors prior to printing 2 Bar code data setting command This command set the bar code print data 3 Bar code printing command This command prints the bar codes based on the settings of 1 and 2 4 Get bar code expansion information command This command checks wheth
7. 97 lt N lt 104 a lt N lt h N 85 U User defined region Slip n1 48 0 n2 48 0 n3 48 0 n4 48 0 48 lt N lt 57 0 lt N lt 9 65 lt N lt 72 A SNS H 97 lt N lt 104 a lt N lt h N 85 U User defined region Validation n1 48 0 n2 48 0 n3 48 0 n4 48 0 48 lt N lt 57 0 lt N lt 9 65 lt N lt 72 A lt N lt H 97 lt N lt 104 a lt N lt h N 85 U User defined region Initial Value Thermal Slip Validation Function Sends the memory switch settings STAR LIne Mode Command Specifications By specifying N 85 U it is possible to read out any user registered 16 bit data eN Memory Switch Number Transmission Format ESC N d1 d2 d3 d4 LF NUL eN Memory number e d1 d2 d3 d4 Memory switch settings 3 86 St ir ESC LF NUL Name Inquire printer version Code ASCII ESC LF Hexadecimal 1B 23 2A OA Decimal 27 35 42 10 Defined Area Thermal De NUL 00 0 Slip Doe Validation Initial Value Thermal Doe Slip Doe Validation Function Sends printer version ESC printer version LF NUL lt Ex For HSP7000 Ver 1 0 ESC HSP7000 Ver 1 0 LF NUL gt ESC LF NUL Name Reset printer execute self print Code ASCII ESC LF NUL Hexadecimal 1B 3F OA 00 Decimal
8. n Print color 0 Black 1 Cyan 2 Magenta 3 Yellow This command is valid only when using a model that supports 2 color printing This command is ignored on non compatible models lt Slip gt lt Validation gt Use prohibited STAR Line Mode Command Specifications 3 99 SEQ b n1 n2 data Name Send raster data auto line feed Code ASCII b ni n2 d1 d2 dk Hexadecimal 62 ni n2 d1 d2 dk Decimal 98 ni n2 di d2 dk Defined Area Thermal 0 lt n1 lt 255 0 lt n2 lt 255 0 lt d lt 255 k n1 n2x 256 1 lt k Slip Doe Validation Doe Initial Value Thermal Doe Slip a Validation Doe Function lt Thermal gt Sends raster data Raster data is sent in n1 n2 x 256 byte counts as binary data Raster data exceeding the print area currently set is discarded Rev 0 00 The image buffer expanded position is automatically line fed one dot row and moved to the left mar gin on the next line after expanded the image buffer data 1 dot row using this command Also data expansion is duplicated on the data in the current image buffer OR process The following shows expanded image buffer for the set raster print color n is a decimal description max 255 digits using ASCII characters Print color Expanded image buffer Black Image buffer for black Cyan Image buffer for color Magenta Image buffer for color Yellow Image buffer for color lt Slip gt lt Validation gt
9. ofo olo fofo lolo fo fl x ttl xlo lolo ele fofe elef fololefelololofelololo ololofofo olofo fo pl lo fo fo Hlo HE STAR Line Mode Command Specifications 6 1 SQI Rev 0 00 Class Commands Set Class Executed odel Name n HSP7000 Thermal Slip Bit Image Graphics ESC K O O ESC L ESC k ESC X ESC Logo Bar Codes ESC FSq ESC FSp O O O O O O ESC RSL ESC b Cutter Control External Device Drive ESC d ESC BEL 0 BEL FS SUB EM ESC GS BEL 00 00 Jo ESC GS EM DC1 ESC GS EM DC2 Print Setting ESC RS d ESC RSr Q Status ESC RS a ESC ACK SOH ENQ EOT ETB ESC RS E ojo jo jojo Kanji Character ESC p ESC q ESC ESC s ESC t ESC r ESC un ESC xn ESC wn 00 9 90 0 09 0 0 Others RS CAN e ESC O 0 0 H IHIO OJ O OJO OJO OJO O JOJO JOJO JOJSOJOJSOJOJOJOJSOJSOJOJOJOJO XIO OIO ESC U ESC GS m 0 ESC ESC N ESC ESC DC3 0 DC1 OIOJOJOJOJOJOJOJSOJSOJOJO JOJO JOJO JOJO JOJO JOJO JOJO 0 O HH H IO OJOJ OJO OJOJ O X O O O JO O xX xX oO ojojojojo jojo STAR LIne Mode Command Specifications 6 2 stair e Raster related commands Rev 0 00 Class Co
10. 5 2 2 This status is the one the printer transmits using the EOT command EOT Command Status Bit Contents Status By model Q Gi es HSP7000 7 6 Presenter Paper Jam Error No Yes x 5 Paper Near end Outer Side Paper No paper x 4 Fixed at 1 3 Paper end Paper No paper o 2 Paper Near end Inner Side Paper No paper o 1 BM Error No Yes o 0 Fixed at 0 BM Error On models that use a common PE and BM sensor if a continuous error is detected beyond a determined amount it indicates not a black mark error but a paper out error STAR Line Mode Command Specifications 5 6 SQI Rev 0 00 5 2 3 Automatic Status Automatic status is a group of states that are automatically returned from the printer to the host when the printer s sta tus has changed Automatic status is composed of Header 1 Header 2 and plurality of bytes of the printer sta tus and is continuously returned to the host The host always uses an identifying method to identify the data for every byte received It is possible that Xon Xoff codes are exceptionally mixed in the auto status in the Xon Xoff mode when using a serial I F so it is necessary to consider that on the receiving side The valid invalid conditions of the automatic status abide by the DIPSW settings for the initial values It is possible to change the conditions using the ESC
11. lt n lt F Slip Doe Validation Initial Value Thermal Memory switch setting Slip Doe Validation Function lt Thermal gt Sets print density This command stops printing to be executed When in 2 color print mode this can set the print density of red print n a nn aee a ANE DENSI e a aea a Single Color Printing Mode 1 2 color Printing Mode Red Print Density 0 48 Print density 1 3 i Print density 1 2 1 49 Print density 1 2 i Print density 1 2 2 50 Print density 1 1 i Print density 1 0 3 51 Print density 1 0 Print density 1 0 4 52 Print density 0 9 Print density 1 0 5 53 Print density 0 8 Print density 0 8 6 54 Print density 0 7 Print density 0 8 7 55 Reserved Reserved 8 56 Reserved Reserved 9 57 Reserved Reserved 10 65 Reserved Reserved 11 66 Reserved Reserved 12 67 Reserved Reserved 13 68 Reserved Reserved 14 69 Reserved i Reserved 15 70 Reserved i Reserved lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 113 Rev 0 00 SCQF Rev 0 00 ESC RSrn Name Set printing speed Code ASCII ESC RS r n Hexadecimal 1B 1E 72 n Decimal 27 30 114 n Defined Area Thermal Osns2 48 lt n lt 50 O sns 2 Slip Doe Validation Doe Initial Value Thermal Memory switch setting Slip 2 Validation o Function lt Thermal gt Sets print speed Thi
12. dXx23 1 dXx23 2 lt Slip gt lt Validation gt All data received and discarded STAR Line Mode Command Specifications 3 51 SCQF Rev 0 00 ESC X n1 n2 d1 dk Name Fine density bit image Wire dot 24 pin compatible Code ASCII ESC X m n2 d1 dk Hexadecimal 1B 58 ni n2 d1 dk Decimal 27 88 ni n2 d1 dk Defined Area Thermal z 1 lt n1 n2 x 256 lt printable region k n1 n2 x 256 x 3 Osds255 Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Prints input bit images with 8 dots mm resolution for both horizontal and vertical The following shows the details of data processing with this command e When n1 n2 x 256 x 3 exceeds the printable region only the data in the printing region is printed e When n1 n2 x 256 x 3 exceeds the currently set printable region only the data in the printing region is printed At this time all data for the print region is discarded e If the current position already exceeds the print region this command discards all data b7 b6 b5 b4 b3 b2 b1 bo b7 be b5 b4 b3 b2 b1 bo b7 b6 b5 b4 b3 b2 b1 bo T T TEN lt Slip gt lt Validation gt All data received and discarded STAR LIne Mod
13. n 0 1 2 3 8 9 12 13 Set raster EOT mode The EOT mode operates to execute using the raster document quit command ESC FF EOT n is a decimal description max 255 digits using ASCII characters EOT mode setting format n Form Feed Cut Feed Cutter 0 Set To Default Set To Default Set To Default 1 o 1 2 o 1 o 3 0 1 Tear Bar 8 o 1 Full Cut 9 o 1 o Full Cut 12 o 1 Partial Cut 13 o 1 o Partial Cut 1 Form Feed When the printer is a model handling BM and is set for BM to be effective the set raster mode page length is ignored and BM detecting is performed lt Slip gt lt Validation gt Use prohibited STAR LIne Mode Command Specifications 3 94 Rev 0 00 SAIF ESC r F n NUL Name Set raster FF mode Code ASCII ESC r F n NUL Hexadecimal 1B 2A 72 46 n 00 Decimal 27 42 114 70 n 0 Defined Area Thermal n 0 1 2 3 8 9 12 13 Slip Validation Initial Value Thermal n 13 Slip i Validation Function lt Thermal gt Sets raster FF mode The FF mode operates to execute using the raster document quit command ESC FF NUL n is a decimal description max 255 digits using ASCII characters FF mode setting format n Form Feed Cut Feed Cutter 0 Set To Default Set To Default Set To Default 1 o 1 2 o 1 o a 3 o 1 Tear Bar 8 o 1 Full Cut 9 o 1 o Full Cut
14. share Shared Valid Valid Shared Invalid aShared irek i Five bytes ignored Valid Shared i aodion Valid _ Shared Invalid Five bytes ignored ESC GS x Independent Station selection command dependent hared Invalid Valid Shared Four bytes ignored Sends Error Invalid Valid Shared Four bytes ignored Sends Error Maintenance Counter ESC GSM Independent Station selection command dependent Valid only Line Page Mode Six bytes ignored Valid only Line Page Mode Six bytes ignored Program Overwrite ESC GS ared Valid Shared Valid Shared Printer Driver ESC GS CAN Shared Valid Shared Valid Shared Print Start Trigger ESC GSg0 Independent Station selection command dependent Invalid Six bytes ignored Invalid _ Six bytes ignored QR Codes ESC GSyP Spee ego Independent Station selection command dependent OEE STAR Line Mode Command Specifications Invalid ay a a Four bytes ignored Invalid Four bytes ignored SQI Rev 0 00 Execution Thermal Slip Validation Station Type Command Thermal Slip Line Other Precautions Line Page Other Precautions Line Page Other Precautions Validation Head ESC RS Independent Invalid Four bytes ignored Invalid Four bytes ignored Invalid Four bytes ignored Failure Station sel
15. 1 lt n1 n2 x 256 x 3 lt printable region Prints bit images using 3 dots wide and 3 dots high per 1 dot of input data The following shows the details of data processing with this command e When n1 n2 x 256 x 3 exceeds the printable region only the data in the printing region is printed Rev 0 00 e When n1 n2 x 256 x 3 exceeds the currently set printable region only the data in the printing region is printed At this time all data for the print region is discarded e If the current position already exceeds the print region this command discards all data b7 b6 b5 b4 b2 b1 STAR LIne Mode Command Specifications 3 48 SQI Rev 0 00 lt Slip gt lt Validation gt This command prints bit images with only the data count determined by n1 The amount of data that can be printed in one line is limited to the total dot count Data that exceeds the total dot count or the right margin is ignored See each printer s product specifications manual for details regarding the total dot count After printing the bit image the printer automatically returns to the character mode The following drawing shows the relationship of the print head needle wires and the data Upper Lower b8 b7 b6 b5 b4 b3 b2 bt 9Le Not Used STAR Line Mode Command Specifications 3 49 SU QIF ESC L n1 n2 d1 dk Name High density bit image Code ASC
16. 5 11 STAR LIne Mode Command Specifications SQI Rev 0 00 5 2 4 Printer Status Transmission Specification when using Ethernet and Wireless LAN Interfaces The following explains the printer status transmission specification when using Ethernet and wireless LAN interfaces 1 Transmission format e When transmitting only STAR ASB STAR ASB Second Byte Bit 7 1 Length Length 0x0000 e When transmitting printer status other than STAR ASB STAR ASB Second Byte Bit 7 1 Length Status Data lt Length Details gt e 2 byte value indicating status data byte count 0x0000 lt Length lt 0x0200 e When the status data is 10 bytes Length 0x000a e When transmitting only STAR ASB Add Length 0x0000 e When Star ASB Second byte Bit 7 and Length is added Bit 7 1 is set For status analysis the total byte count of ASB is detected using the first byte of Star ASB and whether length is added with the second byte Bit 7 of Star ASB is detected By getting the byte count of subsequent status data using the length the status can be analyzed 2 Status Data Transmission Format Status Type Delimiter 1 Data Type Status Length Printer Status Delimiter 2 1 Status Type 2byte or 4byte e First and second bytes Indicate a factor of printer status occurring 00 Reserved e 01 to 09 Star real time status request command e 10 to 49 STAR Status Request C
17. 999 Slip lt Validation Doe Initial Value Thermal Non volatile memory Slip Doe Validation Doe Function lt Thermal gt Specifies mark color and mark horizontal width in each mark number m indicates the mark number c indicates the mark color w indicates the mark horizontal width number of dots If w exceeds the currently set print region this command is ignored m c w are ASCII character strings that are expressed in decimal They are composed of character codes from 0 to 9 c Mark Color 0 48 White 1 49 Black lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 120 SQI Rev 0 00 ESC GS W Name Register mark format to non volatile memory Code ASCII ESC GS W Hexadecimal 1B 1D 2A 57 Decimal 27 29 42 87 Defined Area Thermal Doe Slip Doe Validation Initial Value Thermal Doe Slip De Validation Function Registers the mark format mark height mark line feed amount mark color and mark horizontal width in non volatile memory After registration to the non volatile memory execute a printer reset ESC GS C Name Initialize mark format in non volatile memory Code ASCII ESC GS C Hexadecimal 1B 1D 2A 43 Decimal 27 29 42 67 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation o Function Initializ
18. ESC GS 2 Shared Only valid for thermal Shared Only valid for thermal Invalid Invalid Valid after switch to thermal a Valid after switch to thermal Invali Invalid Valid after switch to thermal Valid after switch to _ thermal Auto Logo ESC GS 1 ESC GS 2 ESC GS 3 ESC GS 4 ESC GS 5 ESC GS 6 Shared Only valid for thermal Shared __Only valid for thermal Shared Only valid for thermal Shared Only valid for thermal _ Shared Only valid for thermal Shared Only valid for thermal Invalid Invalid Invalid Invalid Invalid Invalid Valid after switch to _ thermal En Valid after switch to thermal i Valid after switch to thermal Valid after switch to __ thermal Valid after switch to thermal cal Valid after switch to thermal Invalid Invalid invalid invalid Invalid Invalid Valid after switch to thermal Valid after switch to _ thermal a Valid after switch to thermal Valid after switch to __ thermal Valid after switch to thermal Valid after switch to thermal User ID ESC GS 0 Shared Valid Shared Valid Shared PDF 417 STAR Line Mode Command Specifications ESC GS x Shared Only valid for thermal Shared Only valid for thermal Shared _Only valid for thermal Shared Only valid for thermal _ Sh
19. Function Specifies the function according to the memory switch value See each printers product specifications manual for details on the memory switch settings lt Thermal gt Memory SW Function Condition 1 Ignored Condition 2 Same as the LF code lt Slip gt lt Validation gt Memory SW Function Condition 1 Ignored Condition 2 Same as the LF code Condition 3 Executes only printing with no paper feed STAR Line Mode Command Specifications 3 25 Rev 0 00 SQI Rev 0 00 ESCan Name Feed paper n lines Code ASCII ESC a n Hexadecimal 1B 61 n Decimal 27 97 n Defined Area Thermal gt 1sns127 Slip 1sns127 Validation 1 lt n lt 127 Initial Value Thermal Memory switch setting Slip 1 6 inch Validation 1 6 inch Function Executes paper feed of currently specified line feed amount x n If print data exists in the line buffer it prints that data This paper feed amount is unaffected even if there are vertical expanded characters in one line STAR LIne Mode Command Specifications 3 26 St ir ESC zn Name Select line feed amount Code ASCII ESC Zz Hexadecimal 1B 7A n Decimal 27 122 n Defined Area Thermal n 1 49 Slip n 0 1 n 48 49 Validation n 0 1 n 48 49 Initial Value Thermal Memory switch setting Slip 1 6 inch Validation 1 6 inch Function lt Thermal gt Specifies the line feed amount n Amount of Line Feed 1 49 Specifies 4
20. STAR LIne Mode Command Specifications 3 116 SAIF Rev 0 00 ESC FS pnm Name Print logo Code ASCII ESC FS p n m Hexadecimal 1B 1C 70 n m Decimal 27 28 112 n m Defined Area Thermal Tsns255 0 lt m lt 3 48 lt m lt 51 0 lt m lt 3 Slip 1sns lt 255 0 lt m lt 3 48 lt m lt 51 0 lt m lt 3 Validation 1 lt n lt 255 O lt m lt 3 48 lt m lt 51 0 lt m lt 3 Initial Value Thermal o Slip m Validation Function Prints the logo of registration number n registered using the logo registration command ESC FS q according to the print mode m n Logo Specification n Function 1 to 255 Specified logo number m Printing Mode m Logo print mode 0 48 Normal mode 1 49 Double wide mode 2 50 Double high mode 3 51 Double high wide mode If the parameter is within the defined region execute this command after printing the unprinted data in the line buffer Unprinted data is printed regardless of whether the specified logo was registered by n It is not possible to print with other data in one line characters bit images bar codes Form feed obeys the vertical print size of the logo Print modes excluding upside down printing enhanced double underline character size black white inverted and 90 right rotation are unaffected If the logo horizontal print size exceeds the horizontal print region the portion exceedin
21. dk ESC m n1 n2 d1 d2 dk 3 3 9 Logo ESC FS q n x11 x12 y11 y12 d1 dk 1 xn1 xn2 yn1 yn2 d1 dk n ESC FSpnm ESC RS Lm 3 3 10 Bar Codes ESC b n1 n2 n3 n4 d1 dk RS 3 3 11 Cutter Control ESC dn 3 3 12 External Device Drive ESC BEL n1 n2 BEL FS SUB EM ESC GS BEL mt1 t2 ESC GS EM DC1 mn1 n2 ESC GS EM DC2 mn1 n2 3 3 13 Print Settings ESC RS dn ESC RS rn 3 3 14 Status ESC RS an ESC ACK SOH ENQ EOT ETB ESC RS En 3 3 15 Kanji Characters ESC p ESC q ESC n ESC s n1 n2 ESC tn1 n2 ESC r c1 c2 d1 dk ESCun ESC xn ESC wn 3 3 16 Others RS CAN ESC Un ESC GS m N n1 n2 n3 n4 LF NUL ESC LF NUL ESC N n1 n2 n3 n4 LF NUL 3 38 3 39 3 39 3 40 3 40 3 41 3 42 3 43 3 43 3 44 3 45 3 47 3 48 3 48 3 50 3 51 3 52 3 53 3 54 3 54 3 56 3 57 3 58 3 58 3 60 3 60 3 61 3 61 3 62 3 62 3 63 3 63 3 64 3 65 3 66 3 67 3 67 3 68 3 69 3 69 3 70 3 70 3 71 3 71 3 72 3 73 3 73 3 73 3 74 3 75 3 76 3 77 3 79 3 80 3 81 3 82 3 82 3 82 3 84 3 85 3 86 3 86 CHARACTER CODE TABLES APPENDIX 5 1 Appendix 1 Bar Code Specification Details lt Thermal gt 5 1 1 Code 39 Interleaved 2 of 5 5 1 3 JAN EAN UPC Code 128 Code 93 5 1 6 NW7 CODERBAR 5 2 Appendix 2 Status Specifications lt Shared gt 5 2 1 ENQ Command Status 5 2 2 EOT Command Status 5 2 3 Automatic Status 5 2 4 Printer Status Transmission Specification when using Ethernet and Wireless LAN Inte
22. id sa UB DEMOGIES eilon aer a ala Valid only Line TT ie only Line Page mode Valid after switch to line mode samme after switch to line mode Valid eleen Na oC eRe eR Page mode Valid after switch to line Valid only Line mode Valid only Line only Line Valid Valid only Line aa Page mode Valid after switch to line mode Page mode Valid after switch to line mode J Shared Page mode Valid after switch to line mode SAIF Type Command Execution Station Thermal Slip Validation Thermal Slip Rev 0 00 Validation Other Precau tions Line Page Other Precautions Line Page Other Precautions Download ESC amp iay e Shared sea a E E T Valid Valid Shared i Shared with validation sO MON OG a enana aa on Valid i Shared with slip SPO e ai AEE Valid Shared Logos ESC FS q Shared Valid Shared Valid Shared External ESC BEL Drive Device a REEERE ESC GS EM DC1 Shared Shared Valid Shared Valid Shared Valid Shared Valid Shared Print Set ting ESC RS d Status Shared Only valid for thermal Shared Only valid for thermal Shared Invalid Invalid Valid after switch to thermal Valid after switch to thermal Invalid Invalid Valid after switch to thermal lt Valid after switch to thermal
23. lt Validation gt Defines line feed amount for one line as n 72 inch Line feed amounts can be set independently for both line mode and page mode ESC 2 Name Specify line feed amount ESC An Code ASCII ESC 2 Hexadecimal 1B 32 Decimal 27 50 Defined Area Thermal o Slip is Validation Doe Initial Value Thermal Memory switch setting Slip 1 6 inch line feed Validation 1 6 inch line feed Function Specifies the line feed amount to the value defined by ESC An STAR LIne Mode Command Specifications 3 30 SAIF ESC 3n Name Specify n 216 inch paper feed Code ASCII ESC 3 n Hexadecimal 1B 33 n Decimal 27 51 n Defined Area Thermal Doe Slip Osns255 Validation Osns255 Initial Value Thermal Doe Slip 1 6 inch line feed Validation 1 6 inch line feed Function lt Thermal gt Three bytes ignored lt Slip gt lt Validation gt Sets subsequent line feed amounts to a value approximate to n 216 inch Because the minimum pitch for the paper feed mechanism is 1 144 of an inch the setting value will be approximated according to the following equation INT n x 2 3 0 5 144 of an inch Line feed amounts can be set independently for both line mode and page mode ESC yn Name Specify n 144 inch paper feed Code ASCII ESC y n Hexadecimal 1B 79 n Decimal 27 121 n Defined Area Thermal Doe Slip Osns255 Validation Osns255 Initial Value Thermal Doe Slip 1 6 inch line feed Validatio
24. 0x0001 Status ey Printer Status Request ESC SYN 3n ASB 0x0011 13 Ooo sns a B 0x0008 Status es Presenter Counter iis Request 30 sns 34 ESC GS x1 ASB 0x000C 16 Omitted s B 0x0005 Status T PDF417 Information Request ESC GS y ASB 0x000D 19 Omitted B 0x0006 Status i QR Code Information Request ESC FSMmn ASB Variable A0 30 lt n lt 31 B Variable Status Length Length MICR Function STAR Line Mode Command Specifications 5 13 SQI Rev 0 00 5 3 Appendix 3 Blank Code Page Configuration lt Thermal gt Blank code pages are character code tables that are empty from character code 80H to FFH They can be specified using the command below e ESC GS tn n 255 Also it is possible to write data to the blank code page area using the command below e ESC GS When registering data Font A and Font B data must be registered as a set 1 Example configuration of Font A data 12 x 24 font MSB LSB MSB LSB d1 d2 0 0 00 d3 HA d4 olololo d5 JE JK AK AK JK dio o olololo d7 0 d8 0 0 00 d9 0 o d10 01010 0 d11 d12 0 010 0 d13 d14 0 0 00 d15 d16 0 1010 0 d17 di8 0 0 00 d19 d20 0 0100 d21 e dle 0 0 0 0 d23 d24 0 0 0
25. 1 e Not Used 2je aje ajo 5 eje 7e ajo gje Upper Lower 2 When m 128 80h D8 D7 De DS D4 D3 D2 D1 Pin No 1 e 2je aje ajo 5 e eje 7Le Bjo 9 Not Used Note e When registering 7 x 9 fonts dots adjacent in the horizontal direction do not print eWhen character rotation is specified 7 x 9 font registered characters cannot be printed 5 x 9 font characters are always printed STAR Line Mode Command Specifications 3 45 SEAI Rev 0 00 Ex When selecting 7 x 9 fonts and defining the character to 21H 7 dot ie To 00 anil MSB d1 d2 d3 d4 d5 d6 d7 00000 00000 ESC amp NUL n1 n2 m d1 d2 d3 d4 d5 d6 d7 Code Hexadecimal 1B 26 00 21 21 80 3E 40 88 00 88 40 3E 1 when printing corresponding bits and 0 for no print Ex When selecting 5 x 9 fonts and defining the character to 21H 5 dot eee Lager MSB ke d1 d2 d3 d4 d5 e0 L es LSB 6 8 L L _ ESC amp NUL n1 n2 m d1 d2 d3 d4 d5 Code Hexadecimal 1B 26 00 21 21 00 38 45 45 45 7E 1 when printing correspond
26. 12 o 1 Partial Cut 13 o 1 o Partial Cut 1 Form Feed When the printer is a model handling BM and is set for BM to be effective the set raster mode page length is ignored and BM detecting is performed lt Slip gt lt Validation gt Use prohibited STAR Line Mode Command Specifications 3 95 Rev 0 00 SEQ ESC r P n NUL Name Set raster page length Code ASCII ESC r Hexadecimal 1B 2A 72 Decimal 27 42 114 80 Defined Area Thermal Doe NUL 00 Slip roz Validation Initial Value Thermal Raster image buffer length Slip Doe Validation Function lt Thermal gt Sets raster page length n is a decimal description max 255 digits using ASCII characters n Page length 0 Continuous print mode no page length setting 1sn Specify page length lt Slip gt lt Validation gt Use prohibited ESC rQn NUL Name Set raster print quality Code ASCII ESC r Hexadecimal 1B 2A 72 Decimal 27 42 114 Defined Area Thermal Osns2 Slip Doe Validation Initial Value Thermal gt n 0 Slip Doe Validation Function lt Thermal gt Sets raster print quality NUL 00 n is a decimal description max 255 digits using ASCII characters e Print quality Specify high speed printing Normal print quality N gt oJ 3 High print quality lt Slip gt lt Validation gt Use prohibited STAR LIne Mode Command
27. ESC In e Right margin ESC Q n e Position alignment ESC GS a n e Print region setting ESC RS A n e Upside down printing SI e After batch printing output is ended paper is fed automatically to the cutting position paper is cut if the printer is equipped with a cutter and the printer is reset lt Slip gt lt Validation gt When page mode is selected four bytes ignored STAR Line Mode Command Specifications 3 57 SEAI Rev 0 00 3 3 10 Bar Codes ESC b n1 n2 n3 n4 d1 dk RS Name Print bar code Code ASCII ESC b nt n2 n3 n4 di dk RS Hexadecimal 1B 62 n n2 n3 n4 di dk 1E Decimal 27 98 ni n2 n3 n4 d1 dk 30 Defined Area Thermal Osn1s8 48sn1 lt 56 0 sn1 Ss 8 Initial Value Function lt Thermal gt 1 lt n2s4 49sn2s52 1 sn2s 4 1 lt n4s255 n3 bar code mode d bar code data Defined area of k bar code data count is different depending on the bar code type Slip Bos Validation Doe Thermal Doe Slip Pos Validation Doe Bar code printing is executed according to the following parameters Ifn1 n2 n3 and n4 are acquired and detected to be out of the defined area data up to RS is dis carded e n1 Bar Code Type Selection e n2 Charact n1 Bar Codes Types 0 48 UPC E 1 49 UPC A 2 50 JAN EAN8 3 51 JAN EAN13 4 52 Code39 5 53 ITF 6 54 Code128 7 55 Code93 8 56 NW 7 er Selection Under Bar Code and Line Feed Additio
28. For each Line Page For each Line Page Valid For each Line Page For each Line Page Valid For each Line Page a me ae ae Line Page mode settings Independent Line Page mode settings Independent Line Page mode gt settings Independent Line Page mode settings Independent i Line Page mode settings Independent Line Page mode settings Independent Line Page mode settings Independent hared Only valid for therma Shared Only valid for thermal Shared Only valid for thermal Shared Only valid for thermal Shared ajara aca Vali Va invalid Three bytes ignored ec sa AP Invalid Invalid Invalid invalid invalid invalid Valid after switch to therma Valid after switch to therma Valid after switch to thermal Three bytes ignored Two bytes ignored Valid after switch to thermal Invalid invalid invalid invalid Valid after switch to therma Valid after switch to therma Valid after switch to therma Valid after switch to therma Three bytes ignored invalid Horizontal Direction Position ESC D ere aie ine STAR Line Mode Command Specifications Independent Station selec tion command Independent Station selec tion command dependent tow hared Va Te REMI ol he anil ae Two bytes ignored
29. SCQF Rev 0 00 ESC 4 Name Thermal Specify black white inversion Slip specify black white inversion red black color substitute function Code ASCII ESC 4 Hexadecimal 1B 34 Decimal 27 52 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal White black inversion cancelled Slip White black inversion cancelled black color printing specified Validation White black inversion cancelled black color printing specified Function lt Thermal gt Specifies white black inversion for ANK characters and Kanji characters IBM block ignores white black inversion lt Slip gt lt Validation gt This command function is based on the selection of red black substitute function The red black substitute function is selected by the memory switch or the command ESC GS 4 mn For details on selecting the red black substitute function using a command see the explanation of ESC GS 4 below and for details on selecting the red black substitute function using the memory switch see the printer specifications manual Note The settings using this command are valid for all stations and modes ESC 5 Name Thermal Cancel black white inversion Slip cancel black white inversion red black color substitute function Code ASCII ESC 5 Hexadecimal 1B 35 Decimal 27 53 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal White black inversion cancelled Slip White black inversion cancelle
30. Use prohibited STAR LIne Mode Command Specifications 3 100 He pa SEAIA Rev 0 00 k n1 n2 data Name Transfer raster data Code ASCII k nt n2 di d2 dk Hexadecimal 6B nt n2 d1 d2 dk Decimal 107 ni n2 di d2 dk Defined Area Thermal Osn1s255 0sn2s255 0sds 255 k n1 n2x256 1sk Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Sends raster data Raster data is sent in n1 n2 x 256 byte counts as binary data Raster data exceeding the print area currently set is discarded The image buffer expanded position returns to the head of the current dot row without an automatic line fed after expanding the image buffer data 1 dot row using this command Also data expansion is duplicated on the data in the current image buffer OR process The following shows expanded image buffer for the set raster print color n is a decimal description max 255 digits using ASCII characters Print color Expanded image buffer Black Image buffer for black Cyan Image buffer for color Magenta Image buffer for color Yellow Image buffer for color lt Slip gt lt Validation gt Use prohibited STAR Line Mode Command Specifications 3 101 SCQF Rev 0 00 ESC r Y n NUL Name Move vertical direction position Line feed for specified dots Code ASCII ESC gt r Y n NUL Hexadecimal 1B 2A 72 59 n 00 Decimal 27 42 114 89 n 0 Defined Area
31. dxH 2 dyL 128 dyH 5 X 0 Y 0 dx 540 dy 1408 The following commands are valid only when slip validation have been selected Their use is prohib ited when thermal has been selected lt Slip gt lt Validation gt Set page mode print region Use the left edge coordinate of the current position when the printer enters page mode as 0 0 and specify the starting point X Y of the page region using xLxH yLyH and specify the length dx of the X direction using dxL dxH and the length dY of the Y direction using dyL dyH Current Positon 0 0 e X0 YO Dx Paper Feed Direction Starting Point X xL xH x 256 dots Starting Point Y yL yH x 256 dots Length of Horizontal Direction Dx dxL dxH x 256 dots Length of Vertical Direction Dy dyL dyH x 256 dots If the parameter is out of range this command is invalid This command is stored even in line mode However the position when the printer enters page mode is applied for the reference point 0 0 Expansion of print data into the page is performed using the bottom edge of the characters as the base line so a print region higher than the minimum of 9 dots is necessary for the height direction of the characters When using vertical double tall expanded characters it is necessary to execute an extra paper feed in advance STAR LIne Mode Command Specifications 3 156 SQI Rev 0 00 ESC T n Name Set page mode rotation directio
32. lt Slip gt lt Validation gt Use prohibited ESC rcC Name Clear raster data Code ASCII ESC r C Hexadecimal 1B 2A 72 43 Decimal 27 42 114 67 Defined Area Thermal zo Slip zo Validation Initial Value Thermal o Slip ios Validation Function lt Thermal gt Clears the image buffer data of the raster mode lt Slip gt lt Validation gt Use prohibited STAR LIne Mode Command Specifications 3 92 SQI Rev 0 00 ESC r D n NUL Name Drawer drive Code ASCII ESC r D n NUL Hexadecimal 1B 2A 72 44 n 00 Decimal 27 42 114 68 n 0 Defined Area Thermal OSns3 Slip Doe Validation De Initial Value Thermal gt n 0 Slip Doe Validation Doe Function lt Thermal gt Drives the drawer in the raster mode Drawer drive conditions conform to line mode setting command ESC BEL n1 n2 n is a decimal description max 255 digits using ASCII characters Drive circuits None External device drive 1 drive External device drive 2 drive External device drive 1 drive and external device drive 2 drive WINM oO s5 lt Slip gt lt Validation gt Use prohibited STAR Line Mode Command Specifications 3 93 SEQ ESC r E n NUL Name Set raster EOT mode Code ASCII ESC Hexadecimal 1B Decimal 27 Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function lt Thermal gt s r E n NUL 2A 72 45 n 00 42 114 69 n 0
33. lt n lt 51 O sns 3 Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Executes the auto cutter After auto cutter is executed the printer considers that to be the top of the page Auto cutter 0 48 Full cut at the current position Print data in line buffer is printed before a full cut This command is ignored if the printer is not equipped with an auto cutter 1 49 Partial cut at the current position Print data in line buffer is printed before a partial cut This command is ignored if the printer is not equipped with an auto cutter 2 50 After executing top of form paper is fed to cutting position then a full cut Print data in line buffer is printed before the operation described above This command is ignored if the printer is not equipped with an auto cutter 3 51 After executing top of form paper is fed to cutting position then a partial cut Print data in line buffer is printed before the operation described above This command is ignored if the printer is not equipped with an auto cutter The auto cutter function operates in the following ways on models that only have a full cut or a partial cut e Models that perform only a full cut Executes a full cut when for instructions calling for a partial cut e Models that perform only a partial cut Executes a partial cut when there are for instructions
34. n2 Hexadecimal 1B 07 ni n2 Decimal 27 7 mM n2 Defined Area Thermal gt 1sn1 lt 127 15n2 2 127 Slip gt 1 lt n1 lt 127 1 lt n2 lt 127 Validation 1 lt n1 lt 127 1 lt n2 lt 127 Initial Value Thermal n1 20 Energizing time 200 msec n2 20 Delay time 200 msec Slip n1 20 Energizing time 200 msec n2 20 Delay time 200 msec Validation n1 20 Energizing time 200 msec Function n2 20 Delay time 200 msec Sets the energizing and delay times for drive of the external device e Energizing time 10 x n1 ms e Delay time 10 x n2 ms ON Drive Pulse OFF 10 x n1 msec 10x n2 msec I I I I I l 1 Energizing Time 1 Delay Time I I I I I I I I I Print Operation Printing and Paper Feed Prohibited After printing this is executed by BEL External device 1 drive instruction or FS External device 1 drive instruction Handled in the following way when n1 and n2 are out of range e When n1 0 or n2 0 this command is ignored e When n1 gt 127 is specified n1 127 when n2 gt 127 is specified n2 127 Note The settings using this command are valid for all stations and modes STAR Line Mode Command Specifications 3 61 St QIr Rev 0 00 BEL Name External device 1 drive instruction Code ASCII BEL Hexadecimal 07 Decimal 7 Defined Area Thermal Doe Slip Doe Validation 2 Initial Value Thermal o Slip o Validation o F
35. q HSP7000 7 Fixed at 0 6 S An a heag Not stopped Stopped 5 Non recoverable Error No Yes o 4 Fixed at 0 3 Auto cutter Error No Yes o 2 Mechanical Error No Yes o 1 Not Used Fixed at 0 0 Fixed at 0 z lt Printer status 3 Error Information Fifth Byte gt Bit Contents Status By model g 4 HSP7000 7 Fixed at 0 6 Reception Buffer Overflow Does not occur Occurs 5 ae Error in Page No Yes 4 Fixed at 0 3 BM Error No Yes 2 Presenter Paper Jam Error No Yes 1 Head Up Error No Yes x 0 Fixed at 0 e Reception Buffer Overflow Cleared to 0 when returned to the host Command Error in Page Mode Command errors cleared to 0 when returned to the host BM Error On models that use a common PE and BM sensor if a continuous error is detected beyond a determined amount it indicates not a black mark error but a paper out error STAR LIne Mode Command Specifications SAIF Rev 0 00 lt Printer status 4 Sensor Information Sixth Byte gt Bit Contents Status By model O mae HSP7000 7 Fixed at 0 6 Not Used Fixed at 0 5 Not Used Fixed at O 4 Fixed at 0 3 Paper end Paper No pa
36. 0 00 SQI Rev 0 00 3 3 3 Print mode ESC E Name Select emphasized printing Code ASCII ESC E Hexadecimal 1B 45 Decimal 27 69 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Emphasized printing cancelled Slip Emphasized printing cancelled Validation Emphasized printing cancelled Function lt Thermal gt Specifies emphasized printing for ANK characters IBM block ignores emphasized printing lt Slip gt lt Validation gt Specifies emphasized printing for subsequent data When in emphasized printing data is printed in two passes This command is valid for ANK and Kanji characters Kanji 2 pass Japanese characters are printed with four passes 4 pass Japanese characters are printed with 8 passes When page mode is selected the emphasized printing specification is in page units Note The settings using this command are valid for all stations and modes STAR LIne Mode Command Specifications 3 16 SAIF Rev 0 00 ESC F Name Cancel emphasized printing Code ASCII ESC F Hexadecimal 1B 46 Decimal 27 70 Defined Area Thermal o Slip Doe Validation Doe Initial Value Thermal Emphasized printing cancelled Slip Emphasized printing cancelled Validation Emphasized printing cancelled Function lt Thermal gt Cancels emphasized printing for ANK characters lt Slip gt lt Validation gt Cancels emphasized printing for subsequent data When page
37. 2071 1423 876 H 2625 1591 1093 673 38 169 L 6479 3927 2699 1661 M 5039 3054 2099 1292 Q 3599 2181 1499 923 H 2735 1658 1139 701 39 173 L 6743 4087 2809 1729 M 5313 3220 2213 1362 Q 3791 2298 1579 972 H 2927 1774 1219 750 40 177 L 7089 4296 2953 1817 M 5596 3391 2331 1435 Q 3993 2420 1663 1024 H 3057 1852 1273 784 5 19 stair 6 SPECIAL APPENDIX COMMAND LIST BY MODEL o Valid Commands x Invalid comm and Ignored Standard Commands e Valid Commands Independent Functions on Thermal Slip Rev 0 00 Command where only settings are valid Class Commands er ASS Set Executed _ HSP7000_ Thermal Font Style ESC RS F ie and ESC GS t Character ESC GS Set ESC R ESC ESC SP ESC M ESC P efesOoso o o o ESC ESC g Character ESC i Expansion ESC W Settings ESC h SO DC4 ESC SO ESC DC4 Print Mode ESC E ESC F ESC ESC ESC 4 ESC 5 ESC GS 4 0 0 0 0 09 0 0 9 0 0 0 0 0 9 0 0 0 0 09 9 0 1010 0 0 1010 Line Spacing 0 e jojojo ojolHjojojojo oj ojojojo ojojojoj jo e O a ejx e o Page ojojojo Control Horizontal Direction Position Download e ojojojojojojojojojojojojojojx x jo e
38. 27 63 10 0 Defined Area Thermal Doe Slip Doe Validation z Initial Value Thermal Doe Slip Doe Validation Doe Function Hardware resets the printer and executes on self print After sending this command the next data is not sent until the printer is online in a state wherein it can receive data When resetting the printer the following processes are performed I F Mode Process Parallel BUSY output RS 232C DTR mode DTR mark output Xon Xoff Mode Xoff output lt Validation gt Executes only a reset does not execute a self print STAR Line Mode Command Specifications 3 87 Rev 0 00 SEQ DC3 Name Printer deselect Code ASCII DC3 Hexadecimal Decimal Defined Area Thermal Slip Validation Initial Value Thermal Select printer Slip Select printer Validation Select printer Function Deselects printer All received data is discarded until the next DC1 printer select is received DC1 Name Select printer Code ASCII DC1 Hexadecimal 11 Decimal 17 Defined Area Thermal Slip Validation Initial Value Thermal Select printer Slip Select printer Validation Select printer Function This cancels the deselect state of the DC3 printer deselect and selects the printer STAR LIne Mode Command Specifications 3 88 Rev 0 00 SQI Rev 0 00 3 4 Raster Graphics Command Details Raster graphics are command types and incidental specifications
39. 3 6 Horizontal Direction Printing Position ESC In Name Set left margin Code ASCII ESC l n Hexadecimal 1B 6C n Decimal 27 108 n Defined Area Thermal Osns255 Slip 0 lt n lt right margin 2 lt 255 Validation 0 lt n lt right margin 2 lt 255 Initial Value Thermal n 0 Slip n 0 Validation n 0 Function Setting this command partway will take affect from the next line lt Thermal gt Uses the left edge as a standard to set the left margin current ANK character pitch x n Character spacing is included in the character pitch but is unaffected by expansion settings The left margin set using this command is unaffected by changing the character pitch The right edge is also the reference for upside down printing This command is ignored if settings are for a printing region less than 36 mm lt Slip gt lt Validation gt The left edge is also the reference for upside down printing Rev 0 00 The left margin must be at least a minimum of 18 dots therebetween with the right margin 1 If the printable region as set by the left and right margins is smaller than one character including the space between characters printing is not possible A question mark is printed instead of the character 1 More than four characters of 7 x 9 fonts more than three characters of 5 x 9 fonts 2P 1 when character spacing 0 When page mode is selected only setting is valid Setting is valid after
40. 3283 1990 1367 842 M 2544 1542 1059 652 Q 1804 1094 751 462 H 1425 864 593 365 27 125 L 3514 2132 1465 902 M 2701 1637 1125 692 Q 1933 1172 805 496 H 1501 910 625 385 28 129 L 3669 2223 1528 940 M 2857 1732 1190 732 Q 2085 1263 868 534 H 1581 958 658 405 29 133 L 3909 2369 1628 1002 M 3035 1839 1264 778 Q 2181 1322 908 559 H 1677 1016 698 430 30 137 L 4158 2520 1732 1066 M 3289 1994 1370 843 Q 2358 1429 982 604 H 1782 1080 742 457 5 18 STAR LIne Mode Command Specifications i SQI STAR LIne Mode Command Specifications Rev 0 00 Version Number of Error Numbers English Binary Kanji Cells on One Correction Language Character Side Characters Level 31 141 L 4417 2677 1840 1132 M 3486 2113 1452 894 Q 2473 1499 1030 634 H 1897 1150 790 486 32 145 L 4686 2840 1952 1201 M 3693 2238 1538 947 Q 2670 1618 1112 684 H 2022 1226 842 518 33 149 L 4965 3009 2068 1273 M 3909 2369 1628 1002 Q 2805 1700 1168 719 H 2157 1307 898 553 34 153 L 5253 3183 2188 1347 M 4134 2506 1722 1060 Q 2949 1787 1228 756 H 2301 1394 958 590 35 157 L 5529 3351 2303 1417 M 4343 2632 1809 1113 Q 3081 1867 1283 790 H 2361 1431 983 605 36 161 L 5836 3537 2431 1496 M 4588 2780 1911 1176 Q 3244 1966 1351 832 H 2524 1530 1051 647 37 165 L 6153 3729 2563 1577 M 4775 2894 1989 1224 Q 3417
41. 7Eh 94 Characters 80h lt c2 lt 9Eh They are designed as shown below and data is sent sequentially a Horizontal 24 dot gt dije e je e o e o o d2 e o o o o o o o d3 jo o o o je e o o d4 e e o o o e o o d5joe o o o o o o o djo o o o o o o o d7 e e e o o o o o d8jo o o o o o e o do o o o o o o jo di0je e e e o jo jo o d11i e o o e jo o o o d12 e o jo o e jo o o d1i3le e e jo o jo jo o d14 e o o e e o o o di5 oe o jo o e jo o o di6je e e e e e e o d17 e e o e e o o o d18 e o jo o o jo o o di9 e e e e o jo jo o d20 e e o e e o o o d21 e o jo o o jo o o d22 e e e e o jo jo o d23le e o e e o o o d24 o o jo o e jo o o d25 e e e e o e jo o d26 e e o e e o o o d27 oe e jo o jo jo o o d28 e e e e o jo jo o d29 e e o e e o o o d30 e e jo o e jo o o d31 e e e jo o e jo o d32 e e o e e o o o d33l e e jo o o jo o o Vertical 24 dot d34 e e e e e o o o d35o lo lo o o o o o d3dle o o e o lo o o d37 e e e e o jo jo o d38je e o e jo o o o d39e o jo o o jo o o d40 e e e je o jo jo o d41i e o o e e o o o d42 e jo o o jo o o d43 e e e e o jo jo o d44 e e o e e o o o d45 e e jo o o o o o d46 e e e e e e jo o d47 e o o e jo o
42. 9 fonts more than three characters of 5 x 9 fonts 2P 1 when character spacing 0 When page mode is selected only setting is valid Setting is valid after switching to line mode t Printable Region 4 Left Margin r Print Region eae Right Margin STAR LIne Mode Command Specifications 3 38 HS ae SEAIA Rev 0 00 HT Name Move horizontal tab Code ASCII HT Hexadecimal 09 Decimal 9 Defined Area Thermal Doe Slip Doe Validation poa Initial Value Thermal Slip Doe Validation Doe Function Move print position to next horizontal tab position The current position moves to the next tab position when at the horizontal tab position This command is ignored with under the following conditions e When there is no horizontal tab set e When the current position is the same as the furthest right horizontal tab position or to the right of it There is no initial value for the horizontal tab In the underline upperline modes underlines and upperlines are not printed in the spaces created by a horizontal tab ESC D n1 n2 nk NUL Name Set horizontal tab Code ASCII ESC D ni n2 nk NUL Hexadecimal 1B 44 ni n2 nk 00 Decimal 27 68 ni n2 nk 0 Defined Area Thermal 1sns255 0sns32 Slip 1 lt ns255 0sns32 Validation 1sns255 0sns32 Initial Value Thermal Slip zo Validation o Function Uses the left edge as a standard to set the horizontal tab to the position of
43. Also if logo 1 of the header is used in the company logo and cut command logo 1 print command are registered in the user macro 2 of 5 the company name of logo 1 will be printed The user macro 1 of 3 is used when a center alignment of the auto logo is necessary In such a case it is necessary to register the left alignment command in the user macro 2 of 5 and to return based on the settings kkkkkkkkkkkkkkkkkkkk Log 0 1 MCDONALD S 1 CHEESEBURGER 2 00 MCDONALD S 1 CHEESEBURGER 2 00 COKE 1 00 Current System Print Data 1 AutoLogo triggered by cut l command Partial Cut Current System Print Data 3 User macro 1 executed Logo2 4 AutoLogo printed Ramal cut Logo3 o User macro p Paper is cut Header logo is printed Header Kk kk kkk k k kkk kk k kkk RK MCDONALD S STAR LIne Mode Command Specifications 3 122 SAIF Rev 0 00 2 Simple Auto Logo Function Preset the simple Auto Logo function and execute the following operations with the printing cut command under the existing system as a trigger 1 Simple Auto Logo function starts up using the existing system cut command as a trigger 2 Center alignment command process Execute printing of logo 2 Execute printing of logo 1 2 3 4 Paper is fed to cutting position then a partial cut is executed 5 6 6 Recover position alignment command to setting to before execution of simple Auto Logo With the simple Auto Logo fu
44. EM Name External device 2 drive instruction Code ASCII EM Hexadecimal 19 Decimal 25 Defined Area Thermal Doe Slip Doe Validation Initial Value Thermal o Slip Doe Validation toe Function Drives external device 2 The energizing time and delay time for the external device 2 are fixed at 200 ms each As with other commands it temporarily stores data in the data buffer then executes in the order received Note External device 1 and external device 2 cannot be executed simultaneously STAR Line Mode Command Specifications 3 63 SQI Rev 0 00 ESC GS BEL m t1 t2 Name Ring buzzer Code ASCII ESC GS BEL m tt t2 Hexadecimal 1B 1D 07 m ti t2 Decimal 27 29 T m ti t2 Defined Area Thermal 1 lt m lt 2 49 lt m lt 50 1 lt m lt 2 1 lt t1 lt 255 1st2s 255 Slip 1 lt m lt 2 49 lt m lt 50 1 lt m lt 2 1 lt t1 lt 255 1 lt t2 lt 255 Validation 1 lt m lt 2 49 lt m lt 50 1 lt m lt 2 1 lt t1 lt 255 1st2s 255 Initial Value Thermal Doe Slip Doe Validation De Function Rings buzzer m specifies the buzzer drive terminal m Buzzer Drive Terminals 1 49 Buzzer drive terminal 1 2 50 Buzzer drive terminal 2 t1 specifies the energizing time t2 specifies the delay time e Energizing time 20msecxtt e Delay time 20 msec x t2 Buzzer cannot ring whle printer is printing This command is prohibited for use for anything other th
45. F 97 lt N lt 104 a lt N lt h N 85 U User defined region Slip m 87 84 44 43 45 64 75 76 m W T K L 48 lt n1 lt 57 0 lt n1 lt 9 65 lt n1 lt 70 A lt n1 lt F 97 lt n1 lt 102 a lt n1 lt f 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A lt n2 lt F 97 lt n2 lt 102 a lt n1 lt f 48 lt n3 lt 57 0s n3 lt 9 65 lt n3 lt 70 A lt n3 lt F 97 lt n3 lt 102 a lt n1 lt f 48 lt n4 lt 57 0 lt n4 lt 9 65 lt n4 lt 70 A lt n4 lt F 97 lt n4 lt 102 a lt n1 lt f 48 lt N lt 57 0 lt N lt 9 65 lt N lt 72 A lt N lt F 97 lt N lt 104 a lt N lt h N 85 U User defined region Validation m 87 84 44 43 45 64 75 76 m W T K L 48 lt n1 lt 57 0 lt n1 lt 9 65 lt n1 lt 70 A lt n1 lt F 97 lt n1 lt 102 a lt n1 lt f 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A lt n2 lt F 97 lt n2 lt 102 a lt n1 lt f 48 lt n3 lt 57 0 lt n3 lt 9 65 lt n3 lt 70 CA lt n3 lt F 97 lt n
46. GS W Register Auto Logo setting to non Commands volatile memory ESC GS C Initialize Auto Logo setting from non volatile memory ESC GS 1 Set ON OFF for Auto Logo function ESC GS 2 Set command characters ESC GS 3 Set user macro 1 ESC GS 4 Set user macro 2 ESC GS 5 Set command character switching method ESC GS 6 Set partial cut just prior to Auto Logo printing e PDF417 Commands Class Commands Name a iin PDPM Bet a Set PDF417 bar code size Commands ESC GSxS1 Set PDF417 ECC security level ESC GSxS2 Set PDF417 module x direction size ESC GS x 3 Set PDF417 module aspect ratio ESC GS x D Set PDF417 bar code data ESC GS xP Print PDF417 bar code ESC GS x Get PDF417 bar code expansion information e Print Start Trigger Control Commands Class Commands Name ee ee ec eae cece Sip ainsi e Print staring Een pagu Print starting trigger trigger ESC GSg1 Set print start timer e QR Code Commands Class Commands Name Thermal Slip Validation QR Code ESC GSyS0 Set QR code model ESC GSyS1 Set QR code mistake correction level ESC GSyS2 Set QR code cell size ESC GSyD1 Set QR code data auto setting ESC GSy D2 Set QR code data manual setting ESC GS yP Print QR code ESC GS y Get QR code expansion information STAR LIne Mode Command Specifications 2 5 SQI Rev 0 00 e Page Function Commands Class Commands Name STOE lo a a Slip Validation ERE Page Function ESC GSh0 180 inversion function o ESCGSh1 Wate
47. Header 1 7 00001111B OF Hex 8 00100001B 21 Hex 9 00100011B 23 Hex 10 00100101B 25 Hex 11 00100111B 27 Hex 12 00101001B 29 Hex 13 00101011B 2B Hex 14 00101101B 2D Hex 15 00101111B 2F Hex STAR LIne Mode Command Specifications 5 7 SQI Rev 0 00 2 Header 2 Header 2 is the 1 byte length information transmitted from the second byte of the automatic status The table below shows the composition of the Header 2 Header 2 represents the automatic status version called automatic status version below using bit 1 to bit 3 and bit 5 For reference the table below shows the relationship of actual version bytes and the Header 2 The automatic status version will be used as new information is added to the printer status bit positions that were empty by adding new functions in the future When the host does not control the automatic status version it is acceptable to ignore Header 2 received lt Header 2 Second Byte gt Bit Contents Status By model Q ou I HSP7000 7 ASB Status Expansion No Expansion Expansion 6 Version No o 5 Version No o 4 Fixed at 0 3 _ Version No o 2 Version No o 1 Version No o 0 Fixed at 0 Actual automatic status version and header 2 table Version No n Header 2 00000010B 02 Hex 00000100B 04 Hex 00000110B 06 Hex 00001000B 08 Hex 00001010B 0A Hex
48. RS a n command after turning ON the power Also it is possible to get the automatic status using the ESC ACK SOH command regardless of the valid invalid con ditions 1 Header 1 Header 1 is the 1 byte length information transmitted at the head of the automatic status The table below shows the composition of the Header 1 Header 1 represents the entire status transmission byte count including Header 1 using bit 1 to bit 3 and bit 5 The host gets the transmission byte information and always receives the status data for that amount transmission bytes For reference the table below shows the relationship of actual transmission bytes and the Header 1 Because the bit 0 that indicates that this is the Header 1 is normally 1 the second byte and beyond is 0 to detect the Header 1 it is acceptable to verify that bit O is 1 and bit 4 0 for this data Note that bit 6 is for future expansion and is ignored in host side processes lt Header 1 First Byte gt Bit Contents Status By model 0 mae HSP7000 7 Fixed at 0 6 Reserved Fixed at 0 5 Printer Status Byte Count o 4 Fixed at 0 3 Printer Status Byte Count o 2 Printer Status Byte Count o d Printer Status Byte Count o 0 Fixed at 1 Actual transmission byte count and header 1 table Transmission Byte Count n 7 lt n lt 15
49. Send lt ESC gt lt GS gt x I 1 error STAR LIne Mode Command Specifications 3 138 SAIF 3 10 Print Starting Trigger Control Command Details Rev 0 00 This command is for models equipped with an expansion control function that page controls the command in line units by page controlling the image buffer ESC GSg0mn Name Print starting trigger GS g 0 m n 1D 67 30 m n 29 103 48 m n Code ASCII ESC Hexadecimal 1B Decimal 27 Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function lt Thermal gt Starts printing if there is unprinted data in the image buffer Transmission of this command is prohibited when in raster mode lt Slip gt lt Validation gt Six bytes ignored ESC GSg1mn Name Set print start timer 1 to 255 Print start timer n x 10 msec lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 139 Code ASCII ESC GS g 1m n Hexadecimal 1B 1D 67 31 m n Decimal 27 29 103 49 m n Defined Area Thermal m 0 Osns255 Slip Validation Initial Value Thermal See the models below Slip g Validation Function lt Thermal gt Sets the print starting timer specified by n x 10 msec The print starting timer starts measuring from the point where the reception of print data stops up to the set printing starting time When
50. Slip specify 7 x 9 font half dots default Code ASCII ESC M Hexadecimal 1B 4D Decimal 27 77 Defined Area Thermal Doe Slip Validation Doe Initial Value Thermal Memory switch setting Slip Doe Validation Doe Function lt Thermal gt Specifies the right space for ANK 12 x 24 dot fonts in 0 dots lt Slip gt lt Validation gt Specifies 7 x 9 half dot font Sets the number of printable digits in one line to total half dot count 10 character right space amount When page mode is selected it is fixed at 5 x 9 fonts and only the setting is valid Setting is valid after switching to line mode Note The settings by this command are valid for all stations ESC P Name Thermal Specify 15 dot pitch Slip specify 5 x 9 font 2P 1 Code ASCII ESC P Hexadecimal 1B 50 Decimal 27 80 Defined Area Thermal Doe Slip Doe Validation Initial Value Thermal Memory switch setting Slip Doe Validation Function lt Thermal gt Specifies the right space for ANK 12 x 24 dot fonts in 3 dots lt Slip gt lt Validation gt Specifies 5 x 9 2 pulse 1 dot fonts Sets the number of printable digits in one line to total half dot count 12 character right space amount Note The settings by this command are valid for all stations STAR LIne Mode Command Specifications 3 8 SQI Rev 0 00 ESC Name Thermal Specify 16 dot pitch Slip specify 5 x 9 font 3P 1 Code ASCII ESC Hexade
51. Specifications 3 96 Rev 0 00 SAIF ESC rmInNuL Name Set raster left margin Code ASCII ESC i r Hexadecimal 1B 2A 72 Decimal 27 42 114 Defined Area Thermal o Slip Doe Validation o Initial Value Thermal n 0 Slip De Validation Doe Function lt Thermal gt Sets raster left margin This command sets the left margin to n x 8 dots m n NUL 6D 6C n 00 109 108 n 0 Rev 0 00 When the left margin exceeds the printable area or if the left margin specification eliminates the print area printable region right margin 2 left margin specified value this command is ignored nis a decimal description max 255 digits using ASCII characters lt Slip gt lt Validation gt Use prohibited ESC rmrnNuL Name Set raster right margin Code ASCII ESC i Hexadecimal 1B 2A 72 Decimal 27 42 114 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal gt n 0 Slip Doe Validation De Function lt Thermal gt Sets raster right margin This command sets the right margin to n x 8 dots m f n NUL 6D 72 n 00 109 114 n 0 When the right margin exceeds the printable area or if the right margin specification eliminates the print area printable region left margin 2 right margin specified value this command is ignored n is a decimal description max 255 digits using ASCII characters lt Slip gt lt Validation gt Use prohibited STAR Line Mode
52. a target for this setting The following is an example of each setting It is possible to avoid unnecessary adornment in printing patterns that provide spacing of printing positions with ANK space characters 20H when red is specified Print Example Print Data lt ESC gt 4 TOTAL 20H 20H 20H 20H 20H 20H 20H 20H 20H 1234 lt LF gt lt Condition 1 gt ANK adornment black white inverted printing ANK space characters red black adornment TOTAL 1234 lt Condition 2 gt ANK adornment black white inverted printing ANK space characters no red black adornment STAR LIne Mode Command Specifications 3 22 SAIF SI Name Select upside down printing Code ASCII SI Hexadecimal OF Decimal 15 Defined Area Thermal o Slip Doe Validation Initial Value Thermal Upside down printing cancelled Slip Upside down printing cancelled Validation Upside down printing cancelled Function Specifies upside down printing This command is enabled only when at the top of the line Upside down and right side up characters cannot both exist in the same line This command is enabled for following ANK characters e Kanji characters e Bit images e Logos e Bar codes lt Slip gt lt Validation gt When page mode is selected only setting is valid Setting is valid after switching to line mode Note The settings by this command are valid for all stations DC2 Name Ca
53. and errors is sent to the printer Therefore it is possible to confirm whether printing is possible before actual printing with this com mand If there is an error in the bar code expansion the command is ignored even if the expansion com mand ESC GS y P is sent Also if the following errors occur Error information is sent to the printer e When an error occurs when generating the bar code by the combination of bar code settings e When the generated bar code exceeds the printable size Transmission format lt ESC gt lt GS gt y n1 n2 Bar Code Information 0x0000 Error 0x0001 to Oxffff Size of one side of generated bar code data Units Dots lt Slip gt lt Validation gt Send lt ESC gt lt GS gt y I 0 0 error STAR Line Mode Command Specifications SQI Rev 0 00 3 12 Page Function Command Details ESC GSh0kmn Name 180 inversion function Code ASCII ESC GS h 0 k m n Hexadecimal 1B 1D 68 30 k m n Decimal 27 29 104 48 k m n Defined Area Thermal Osks1 m 0 n 0 Slip Validation o Initial Value Thermal Doe Slip ns Validation Doe Function lt Thermal gt Sets to make 180 inversion function valid invalid k 180 Inversion Function 0 Invalid 1 Valid lt 180 Inversion Function gt When the 180 inversion function is valid it is executed by the 180 inversion trigger However this function is executed on print data that fits in the
54. black swithing function printing valid Cancel white black inverted printing After switch to slip validation red black swithing function slip valdation Valid Walid i EE nan invalid Valid after switch to slip valdation Seis white black T i printing canceled alid after switch to Valid Shared Invalid maja Shared Invalid egaj Shared Valid Shared Valid Shared Two bytes ignored f Two bytes ignored Sets red black sub stitute function Valid After switch to thermal white black inversion printing valid Valid Shared Cancel white black inverted printing After switch to slip red black swithing function printing gees Shared Valid only Line TT eae only Line Valid only Line EGANCEIED occcccscccsssendf Bage mode Valid after switch to line ENO GY ac annia Page Mode Valid after switch to line mode oar Page mode Valid after switch to line mode Valid Shared Invalid soa Shared Invalid Two bytes ignored Two bytes ignored eT ae Shared Valid Vali Shared Valid Shared a Shared Valid only Line ee ae only Line Valid only Line Shared id Sets red black sub stitute function Valid After switch to gt thermal white black inversion printing valid Cancel whit
55. calling for a full cut lt Slip gt lt Validation gt Three bytes ignored STAR Line Mode Command Specifications 3 105 SEI FF Name Execute top of form Code ASCII FF Hexadecimal OC Decimal 12 Defined Area Thermal Doe Slip Validation Initial Value Thermal Doe Slip Doe Validation Function lt Thermal gt Executes top of form lt Slip gt lt Validation gt One byte ignored ESC Cn Name Set page length to n lines Code ASCII ESC n Hexadecimal 1B 43 n Decimal 27 67 n Defined Area Thermal 1sns127 Slip Doe Validation Initial Value Thermal Form feed amount initial value x 42 Slip De Validation Function lt Thermal gt When black mark is effective this command is ignored lt Slip gt lt Validation gt Three bytes ignored STAR LIne Mode Command Specifications 3 106 Rev 0 00 SAIF ESC COn Name Set page length to n x 24 mm units Code ASCII ESC C 0 n Hexadecimal 1B 43 0 n Decimal 27 67 0 n Defined Area Thermal tsns22 Slip Doe Validation Doe Initial Value Thermal Form feed amount initial value x 42 Slip Doe Validation Doe Function lt Thermal gt When black mark is effective this command is ignored lt Slip gt lt Validation gt Four bytes ignored STAR Line Mode Command Specifications 3 107 Rev 0 00 SCQF VT Name Feed paper to vertical tab position Code ASCII VT Hexadecimal 0B Decimal 11 Defined Are
56. character adornment expansion e Kanji character mode ANK right space e Kanji character right and left spaces e Character pitch e International characters e Code pages e Set slash zero e Set specify cancel external character external register character data is retained e Line feed amount e Set upside down position alignment e Right left margins e Horizontal tab lt Thermal gt e Page length e Current position move to top of page top of line e Vertical tab lt Slip gt lt Validation gt e Paper discharge lt Other Information gt The following shows the specifications that are not initialized by this command e Set print density e Set print speed e Two Color Printing Mode Setting e Printing color in 2 color printing mode e External device drive condition e Auto status valid invalid conditions STAR Line Mode Command Specifications 3 83 SCQF Rev 0 00 ESC U n Name Select printing direction Code ASCII ESC U n Hexadecimal 1B 55 n Decimal 27 85 n Defined Area Thermal yos Slip OSns2 48 lt n lt 50 0 lt n lt 2 Validation Osns2 48 lt n lt 50 0 lt n lt 2 Initial Value Thermal o Slip n 0 Validation n 0 Function lt Thermal gt Only setting is valid Setting is valid after switching to slip or validation lt Slip gt lt Validation gt Executes print direction specified by this command after printing data in the line buffer n State Transition 0 4
57. command is executed only for logo registration and does not accompany the printing operation Logos are printed using the ESC FS p print NV logo command e The NV memory capacity is 4 Mbits 512 Kbytes 524 288 bytes However 4 Kbytes 4 096 bytes are kept as parameter information separate to the data so the data region memory capacity is 520 192 Bytes Ex When the registered data size per each one is 6 Kbytes 6 144 bytes it is possible to regis ter 520 192 6144 84 lt When registering logos for 2 color printing gt Registration is possible regardless of the 2 color printing mode being specified or cancelled Register logos with the same capacity as the logo register number k odd number and k 1 even number If the capacity differs or the logo register number is 255 this command is ignored by the logo print command in the 2 color print mode 3 115 IL SQI Rev 0 00 Note The registered data is shared by all stations and modes If this command is used frequently there is the possibility of damaging the non volatile memory Write to the non volatile memory less than 10 times in one day Relationship of logo and registered data xn xn1 xn2 x 256 yn yn1 yn2 x 256 xn 1 xn2 x 256 x 8 dot Data MSB d 11 d 21 d n1 d 12 d 22 d n2 yn1 yn2 x 256 bite 7 yn1 yn2 x 256 x 8 dot LSB d x1 d x2 d xn
58. counter overflows it counts up from 31 to 0 This counter is incremented by 1 using the lt ETB gt command The ETB counter is initialized by the following commands When doing so ASB ETB status is cleared However when initializing the ETB counter ASB is not transmitted lt ETB Counter Initialization Commands gt e lt ESC gt lt RS gt En ETB Counter Initialization e lt CAN gt Cancel print data and initialize commands lt Printer status 7 Position for Presenter Paper Ninth Byte gt Bit Contents Status By model g HSP7000 Fixed at 0 Not Used Fixed at 0 Not Used Fixed at 0 Fixed at 0 Presenter Paper Position Presenter Paper Position Presenter Paper Position Fixed at 0 OJAI NM W RI aIOIN 4 lt Note gt Do not use ENQ EOT ESC ACK and SOH when automatic status is valid Invalidate the automatic status in advance using the DIPSW memory switch or the ESC RS a n command to query these 5 Status identification method Command Functions Status bit7 bit6 bit5 bit4 bit3 bit2 bit1 bitO XON 0 0 0 1 0 0 0 1 XOFF 0 0 1 0 0 1 1 ENQ x x x 0 x x x x EOT x x x 1 x x x 0 ASB Header 1 0 0 1 ASB Other than Header 1 0 id 2 0 id z 0 0 fixed at 0 bits 1 fixed at 1 bits variable bits
59. d28 d30 d32 The font of Kanji download characters is composed of 16 x 16 dot patterns Bits that correspond to the dots to print are 1 and the bits that correspond to the dots that are not printed are 0 When page mode is selected only registration is possible Printing is possible after switching to line mode Registered data is shared by slip and validation STAR LIne Mode Command Specifications 3 78 SQI Rev 0 00 ESC u Name Code n Specify two byte 16 x 16 dot Kanji character Single density double density ASCII ESC u n Hexadecimal 1B 75 n Decimal 27 117 n Defined Area Thermal zo Slip n 0 1 n 48 49 0 1 Validation n 0 1 n 48 49 0 1 Initial Value Thermal Doe Slip Specify two byte 16 x 16 dot Kanji characters single density Validation Specify two byte 16 x 16 dot Kanji characters single density Function lt Thermal gt Only setting is valid Setting is valid after switching to slip or validation lt Slip gt lt Validation gt Specifies two byte 16 x 16 dot Kanji character Single density double density See Relationship of Japanese Character Size Selection State Transition 0 48 Specify two byte 16 x 16 dot double density Japanese characters When two bytes is selected they become four pass characters state A to state B Dots continuous horizontal
60. d41 d43 d45 d47 5 15 STAR Line Mode Command Specifications SAIF Rev 0 00 5 4 Appendix 4 QR Code Maximum Input Character Count in Each Verson lt Thermal gt 1 Model 1 Versions and Maximum Input Character Count STAR Line Mode Command Specifications Version Number of Error Numbers English Binary Kanji Cells on One Correction Language Character Side Characters Level 1 21 L 40 24 17 10 M 33 20 14 8 Q 25 15 11 6 H 16 10 7 4 2 25 L 81 49 34 20 M 66 40 28 17 Q 52 31 22 13 H 33 20 14 8 3 29 L 131 79 55 33 M 100 60 42 25 Q 81 49 34 20 H 52 31 22 13 4 33 L 186 113 78 48 M 138 84 58 35 Q 114 69 48 29 H 76 46 32 19 5 37 L 253 154 106 65 M 191 116 80 49 Q 157 95 66 40 H 105 63 44 27 6 41 L 321 194 134 82 M 249 151 104 64 Q 201 122 84 51 H 133 81 56 34 7 45 L 402 244 168 103 M 311 188 130 80 Q 253 154 106 65 H 167 101 70 43 8 49 L 493 299 206 126 M 378 229 158 97 Q 301 183 126 77 H 203 123 85 52 9 53 L 585 354 244 150 M 441 267 184 113 Q 369 223 154 94 H 239 145 100 61 10 57 L 690 418 287 177 M 526 319 219 135 Q 433 262 180 111 H 291 176 121 74 11 61 L 800 485 333 205 M 608 368 253 156 Q 493 299 205 126 H 342 207 142 87 12 65 L 915 555 381 234 M 694 421 289 178 Q 579 351 241 148 H 390 236 162 100 13 69 L 1030
61. for the X direction is 0 159 mm 1 half dot and the 1 coordinate for the Y direction is 0 176 mm 1 half dot as the units of the X and Y coordinates The printing results will not be doubled in the X and Y directions for 0 180 rotations and 90 270 rotations With 90 270 rotations the amount of paper feed and the height of the characters are reduced The font horizontal expansion and horizontal movement amounts are increased For example when using 1 6 inch line feed with 0 rotation 24 half dots x 0 176 mm 4 224 mm However with 90 270 rotations 24 half dots x 0 159 mm 3 816 mm There is a difference of 4 224 3 816 0 408 mm To rotate a check print of a determined form 90 or 270 create a program that considers this difference 3 e Setting Commands Received While in Page Mode The following outlines three cases See each command for details e Valid Command e Commands that are valid when line mode is selected e Ignored commands Batch printing of page region data is executed by FF After the FF the printer returns to line mode When returning to line mode all conditions such as print data in the print region region coordinate information and rotation direction are cleared STAR LIne Mode Command Specifications 3 154 SQI Rev 0 00 ESC Name Select line mode Default Code ASCII ESC Hexadecimal 1B 21 Decimal 27 33 Defined Area Thermal Doe Slip Doe Validation o Initial Value Th
62. h 10 dots Mark Line Feed Amount V 20 dots Mark number 0 Mark Color c White Mark Horizontal Width w 16 dots Mark number 1 Mark Color c Black Mark Horizontal Width w 40 dots Mark number 2 Mark Color c White Mark Horizontal Width w 40 dots Mark 1 Mark 0 Mark 2 Mark 1 Mark 0 Mark 1 Mark 0 Mark 1 Mark 0 Mark 2 f var height h Mark LF amount v lt Mark 1 Mark 0 Mark 2 Mark 0 Mark 1 Mark 0 Mark 1 f var heighth TMark LF amount v Mark 1 Mark 0 Mark 1 Mark 0 Mark 2 Mark 0 Mark 2 Tie heighth Mark LF amount v e Transmission Example 1 Mark Height Line Feed Amount Setting lt ESC gt lt GS gt 1 h v h 010 v 020 2 Color of Each Mark Number Horizontal Width Setting lt ESC gt lt GS gt 2 m c w Mark Number 0 Setting m 0 c 0 w 016 lt ESC gt lt GS gt 2 m c w Mark Number 0 Setting m 1 c 1 w 040 lt ESC gt lt GS gt 2 m c w Mark Number 0 Setting m 2 c 0 w 040 3 Register mark format specified by 1 and 2 in advance to the non volatile memory It is possible to print a mark without registering in the non volatile memory lt ESC gt lt GS gt W 4 Mark Printing lt ESC gt lt GS gt 0 n m1 m2 m3 m4 m5 m6 m7 n 007 m1 1 m2 0 m3 1 m4 0 m5 1 m6 0 m7 2 lt ESC gt lt GS gt 0 n
63. m1 m2 m3 m4 m5 m6 m7 n 007 m1 1 m2 0 m3 2 m4 0 m5 1 m6 0 m7 1 lt ESC gt lt GS gt 0 n m1 m2 m3 m4 m5 m6 m7 n 007 m1 1 m2 0 m3 1 m4 0 m5 2 m6 0 m7 2 STAR LIne Mode Command Specifications 3 118 SAIF Rev 0 00 ESC GS 0 n m1 m2 m3 mk Name Print Mark Code ASCII ESC GS i 0 n m1 m2 m3 mk Hexadecimal 1B 1D 2A 30 n m1 m2 m3 mk Decimal 27 29 42 48 n m1 m2 m3 mk Defined Area Thermal 001 lt n lt 255 O sms 9 k n Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Prints mark number specified by m based on the pre specified mark format mark height mark line feed amount mark color and mark horizontal width n indicates the number of marks to print When there are 10 marks m1 to m10 n 010 m indicates the mark number to print n m are ASCII character strings that are expressed in decimal They are composed of character codes from 0 to 9 This command is ignored if print data exists in the image buffer Therefore this cannot exist with other print data characters bit images bar codes If the specified mark does not fit in the remaining print region the number of bytes specified by n are received and discarded If n is outside of the defined area data thereaf
64. n Logo Specification n Function 1 to 255 Specified logo number m Print Mode m Logo Print Mode 0 48 Normal mode 1 49 Horizontal double size mode 2 50 Vertical double size mode 3 51 Double high wide mode e If the parameter is within the defined region execute this command after printing the unprinted data in the line buffer Unprinted data is printed regardless of whether the specified logo was registered by n e It is not possible to print with other data in the same line characters bit images bar codes e Form feed obeys the vertical print size of the logo e Print modes excluding upside down printing enhanced double underline character size black white inverted and 90 right rotation are unaffected e If the logo horizontal print size exceeds the horizontal print region the portion exceeding the area is not printed e When page mode is selected supports only vertical double high and horizontal double wide modes e Logos are printed according to the following command settings e Left margin ESC I n e Right margin ESC Q n e Position alignment ESC GS a n e Absolute position movement ESC GS A n1 n2 e Relative position movement ESC GS R n1 n2 e Horizontal tab HT e Upside down printing SI STAR LIne Mode Command Specifications 3 56 SAIF ESC RS L m Name Logo batch control Code ASCII ESC RS L m Hexadecimal 1B 1E 4C m D
65. position Code ASCII ESC B ni n2 nk NUL Hexadecimal 1B 42 ni n2 nk 00 Decimal 27 66 ni n2 nk 0 Defined Area Thermal 1 ns255 0sns16 Slip zo Validation Initial Value Thermal Doe Slip Doe Validation Function lt Thermal gt Sets the vertical tab to the current form feed amount x n position All other vertical tabs set before setting the vertical tab using this command are cancelled A maximum of 16 vertical tabs can be set However the tab position must satisfy the condition of 1 lt nisn2 lt nk When receiving such an illegal code tabs up to the illegal code are set but those after the illegal code are discarded up to the NUL code so illegal code tab are not set The vertical tab set using this command is unaffected by changing the form feed amount later Vertical tabs set using the ESC B NUL command are cleared There is no initial value for the vertical tab lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal ESC B NUL Name Clear vertical tab position Code ASCII ESC B NUL Hexadecimal 1B 42 00 Decimal 27 66 0 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Clears the currently set vertical tab lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 36 SAIF 3
66. specifications manual Note The settings using this command are valid for all stations and modes ESC 5 Name Thermal Cancel black white inversion Slip cancel black white inversion specify red black color Code ASCII ESC 5 Hexadecimal 1B 35 Decimal 27 53 Defined Area Thermal o Slip o Validation Initial Value Thermal White black inversion cancelled Slip White black inversion cancelled black color printing specified Validation White black inversion cancelled black color printing specified Function lt Thermal gt Cancels white black inversion for ANK characters and Kanji characters lt Slip gt lt Validation gt This command function is based on the selection of red black substitute function The red black substitute function is selected by the memory switch or the command ESC GS 4 mn For details on selecting the red black substitute function using a command see the explanation of ESC GS 4 below and for details on selecting the red black substitute function using the memory switch see the printer specifications manual Note The settings using this command are valid for all stations and modes STAR LIne Mode Command Specifications 3 112 SAIF ESC RS d n Name Set print density Code ASCII ESC RS d Hexadecimal 1B 1E 64 Decimal 27 30 100 Defined Area Thermal Osns15 48 lt n lt 57 0 lt n lt 9 65 lt n lt 70 A
67. switching to line mode Left Margin Printable Region Print Region Aenea poe oed Right Margin STAR Line Mode Command Specifications 3 37 SEAI Rev 0 00 ESC Qn Name Set right margin Code ASCII ESC Q n Hexadecimal 1B 51 n Decimal 27 81 n Defined Area Thermal Osns255 Slip 2 lt n lt maximum printable digits lt 255 Validation 2 lt n lt maximum printable digits lt 255 Initial Value Thermal o Slip Maximum printable digits Validation Maximum printable digits Function Uses the left edge as a standard to set the print region as current ANK character pitch x n Setting this command partway will take affect from the next line Character spacing is included in the character pitch but is unaffected by expansion settings The left margin set using this command is unaffected by changing the character pitch lt Thermal gt The right edge is also the reference for upside down printing This command is ignored if settings are for a printing region less than 36 mm lt Slip gt lt Validation gt The left edge is also the reference for upside down printing The print region within the defined range must be at least a minimum of 18 dots for the right margin If the printable region as set by the left and right margins is smaller than one character including the space between characters printing is not possible A question mark is printed instead of the character 1 More than four characters of 7 x
68. the amount of the counter received and discarded Data received and discarded up to lt NUL gt H Three bytes ignored Three bytes ignored Data for the amount of the counter received and discarded Invalid Data for the amount of the counter received and discarded Invalid Invalid Invalid he Data recewed aad kn discarded up to lt NUL gt Invalid Invalid Data received and discarded up to lt NUL gt Data for the amount of the counter received and discarded pata for the amount of the counter received and i discarded Data received and discarded up to lt NUL gt Three bytes ignored Three bytes ignored Data for the amount of the counter received and discarded Data received and discarded up to lt NUL gt Mark Com mands ESC OS Wook ESC GS C Independent Station selection command dependent hared Shared agaj eene Shared Valid Shared All data for the counter received and discarded Invalid All data for the counter received and discarded Vaig Shared Valid Shared Auto Logo ESC GS W vpegeggpen po Shared E Valid Valid Valid Shared eee Valid Shared ESC GS W ESC OST Op ESC GS P Shared Independent Station selection command dependent
69. the set print starting time is reached this starts printing if there is unprinted data in the image buffer Transmission of this command is prohibited when in raster mode n Operating Mode 0 Print start timer default value IL Va SAIF Rev 0 00 3 11 2 dimensional Bar Codes QR Code Command Details QR code is a registered trademark of DENSO WAVE Incorporated This command prints 2 dimensional bar codes of QR code Commands for 2 dimensional bar codes QR code are separated into the following four functions 1 Bar code type setting lt ESC gt lt GS gt y S 2 Bar code data setting lt ESC gt lt GS gt y D 3 Page mode setting Reserved 4 Barcode printing lt ESC gt lt GS gt y P 5 Get bar code expansion information lt ESC gt lt GS gt y I The details of the functions are outlined below 1 Bar code type settin These commands set the bar code type These are all set to default Only use them if you wish to change them Refer to following details for settings lt 4 Cell Alignment Pattern Specify model using lt ESC gt lt GS gt y S 0 Currently supported models are model 1 and model 2 To improve tolerance to distortion when codes are large on model 2 an alignment pattern has been added to the structure Specify the error correction level usi
70. 0 d25 d26 0 0 00 d27 0 o d28 0 0 00 d29 0 0 d30 0 0 00 d31 o 0 oo d32 0 1010 0 d33 d34 0 0 00 d35 d36 0 0 00 d37 0 d38 0 0 00 d39 0 00o o M4 eee 0 0 00 d41 0 0000 142 0 olojolo d43 d44 0 0 00 d45 d46 0 0 00 d47 d48 0 0 00 Fig A 1 12 x 24 Font STAR Line Mode Command Specifications 5 14 Rev 0 00 9 x 24 font 2 Example configuration of Font B data Fig A 2 9 x 24 Font LSB MSB LSB MSB 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 d2 d4 d6 d8 d10 d12 d14 d16 d18 d20 d22 d24 d26 d28 d30 d32 d34 d36 d38 d40 d42 d44 d46 d48 d1 d3 d5 d7 d9 d11 d13 d15 d17 d19 d21 d23 d25 d27 d29 d31 d33 d35 d37 d39
71. 00 lt Slip gt After printing data in the line buffer the slip paper operation is executed according to the n value n Slip Operation 2to5 Discharges paper toward the back the forward direction 50 to 53 lt Validation gt After printing data in the line buffer the validation printer operation is executed according to the n value n Slip Operation 2to5 Discharges paper toward the back the forward direction 50 to 53 STAR Line Mode Command Specifications 3 151 SEQ ESC VT m Name Code Defined Area Initial Value Function ESC EM n Name ASCII Hexadecimal Decimal n Thermal Slip Validation Thermal Slip Validation 0B m n 11 m n Four bytes ignored m LF NUL Set slip validation automatic clamp Sets slip paper discharge direction and discharge length ESC VT m n 1B 27 Code ASCII ESC EM n M LF NUL Hexadecimal 1B 19 n M OA 00 Decimal 27 25 n M 10 0 Defined Area Thermal Slip Osns255 m 0 1 48 49 Validation Osns255 m 2 3 50 51 Initial Value Thermal Slip n MSW Setting m 0 Validation n MSW Setting m 0 Function m Function 0 1 48 49 Sets the waiting time from inserting slip paper until the start of execution of automatic clamp according to n nis the same as the MSW slip opening time setting for details refer to the MSW settings for each printer 2 3 50 51 Sets the waiting time from inserting validation paper until the start of execut
72. 1s255 0syn2 lt 1 1S yn1 yn2 x 256 lt 288 Osds255 k xn1 xn2 x 256 x yn1 yn2 x 256 x 8 Initial Value Thermal Doe Slip Los Validation Function STAR Line Mode Command Specifications Parameter details en Specifies registered logo count e xn xn2 Horizontal size of registered logo xn1 xn2 x 256 x 8 dots e yn yn2 Vertical size of registered logo yn1 yn2 x 256 x 8 dots ed Registered logo data ek Logo data count This command should be specified at the top of the line When the first parameter is determined to be free of error the printer starts processing this com mand When logo register processing starts all previously defined data is deleted It is not possible to re register a portion of a plurality of defined logo data Logo registration numbers are defined in rising order from 1 If the defined area specified by the parameter is not empty or if there is an error in the parameter specification register processing is aborted The pre registered and complete data is effective The printer should be reset if logo registration is completed or register processing is aborted If an error occurs while performing register processing the time from when the first parameter is OK until the printer initialization is completed after registering a logo error processing mechanical op eration and status processing cannot be performed Also data must not be sent from the host during that time This
73. 2 differ according to specifications and code type see table below Slip OsdS255 k 32 c1 and c2 differ according to specifications and code type see table below Validation gt Osds 255 k 32 c1 and c2 differ according to specifications and code type see table below Initial Value Thermal All spaces Slip All spaces Validation All spaces Function Registers Chinese download characters to c1 and c2 addresses Those already registered to these addresses are overwritten If c1 and c2 are outside of the defined are or the printer is model not equipped with Chinese fonts for overseas and when the specification for the location of use is specified as SBCS single byte countries by the memory switch the printer discards up to d1 and dk Chinese download characters once defined are valid until redefined or the power is turned OFF Defined Chinese download characters are accessed with two bytes in the same way as other Kanji characters At that time c1 is the first byte c2 is the second byte d1 d2 e d32 are character data lt Thermal gt The defined ranges are shown below The registration region is the same for Japanese characters in JIS or shift JIS Specifications c1 c2 Registration count Japanese characters JIS type c1 77h 21h lt c2 lt 7Eh 94 Characters Japanese characters Shift JIS type c1 ECh 40h lt c2 lt
74. 21 d22 d2k ml dik Decimal m2 n2L n2H D21 d22 d2k mi dik Defined Area Thermal 1sas255 isms4 O0 lt nls255 OS nHs 255 1 lt nL nHx 256s 7089 k nL nH x 256 Osds255 1 lt 1 lt 255 Slip Doe Validation Initial Value Thermal Doe Slip Doe Validation Function lt Thermal gt Specifies the bar code data type and sets the data e Parameter details e a Block count e m Input data type e nL nH x 256 Bar code data byte count e dk Bar code data max 7089 bytes m Data Type Data Defined Area d 1 Numbers 0 to 9 2 English Language E SOS e Ea E pa Te aa Characters 0 to 9 A to Z 3 Binary 0x00 to OxFF 4 Kanji characters 0x8140 to Ox9FFC 0xE040 to OxEBBF Shift JIS However the lower 8 bits are 0x40 to 0x7E 0x80 to OxFC lt Slip gt lt Validation gt The printer receives the data type specified by m based on the block count specified by a and the data of the number of bytes k specified by nL and nH and sets that as the bar code data One block specified by a specifies m1 n1L n1H d11 ed1k data type data count bar code data and by sending a multiple of these continuously data types can be included in one bar code It is possible to set a maximum of 255 blocks with one command transmission nL and nH specify the number of data bytes so for Kanji characters calculation is done using 1 character for two bytes If the parameter is ou
75. 3 lt 102 a lt n1 lt f 48 lt n4 lt 57 0 lt n4 lt 9 65 lt n4 lt 70 CA lt n4 lt F 97 lt n4 lt 102 a lt n1 lt f 48 lt N lt 57 0 lt N lt 9 65 lt N lt 72 A lt N lt F 97 lt N lt 104 a lt N lt h N 85 U User defined region Initial Value Thermal Slip Validation Function Sends command to write after defining memory switch using the definition command specified by the following classes Memory switch information defined by the command to write is written to the volatile memory When writing to the volatile memory by the command to write the printer executes a reset By specifying N 85 U it is possible to register any 16 bit data Function Class m N n1 n2 n3 n4 Definition data write and reset Write W Fixed at 0 Fixed at 0000 Definition data write and reset and test print Write T Fixed at 0 Fixed at 0000 Data Definition Data Specification Definition N n1 n2 n3 n4 Data definition set specified bit Definition N n1 n2 n3 n4 Data definition clear specified bit Definition N n1 n2 n3 n4 Data Definition initialize all data Definition Fixed at 0 Fixed at 0000 Definition data write reset test print and dot adjustment Definition data w
76. 32 lt n lt 127 0 lt d lt 255 Rev 0 00 Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Registers 12 x 24 dot font download characters to the nth address Download characters can be registered to lt 20 gt H to lt 7F gt H 96 characters can be registered for each font Those already registered to these addresses are overwritten When parameters c1 and c2 and n are outside of the defined area subsequent data is handled as normal data Horizontal lt _ _ 12 dot a di e e e e e d2 e e e e o o o o d3 e e e e e e d4 e e e e o o o o d5 e e e e e e d6 e e e e o o o o d7 e e e e e e d8 e e e e o o o o d9 e e e e e e e di0 e e e o o o o d11 e e e e e d12 e o o o o d13 e e e e e d14 o o o o d15 e e e e e di6 e o o o o d17 e e d18 e o o o o d19 e e e e e e e d20 e o o o o d21 e e e e d22 e o o o o d23 e e e e e e e d24 e e e e o o o o Vertical d25 e e e e e e e d26 e e e e o o o o 24 dot d27 e e d28 e o o o o d29 e e e e e e d30 e e e e o o o o d31 e e e e e e d32 e e e e o o o o d33 e e e e d34 e e e e o o o o d35 e e e e e e d36 e e e e o o o o d37
77. 4 31H to 34H applied behind Start codes represent 6 to 8 36H to 38H applied behind e Stop code SC Check character CK are automatically applied e When start code is omitted Uses START C when more than 4 digits continue after header Uses START A when initial data other than numbers are the control code Uses START B for other cases STAR LIne Mode Command Specifications 5 3 SAIF 3 2 Character set code table lt Control Codes gt lt Control Codes gt lt Control Codes gt Code Format 25H 0 25H 30H lt Function Codes gt Code Format FNC1 1 25H 31H FNC2 2 25H 32H FNC3 3 25H 33H FNC4 4 25H 34H lt Start Codes gt Code Format NUL 00H 25H 40H SOH 01H A 25H 41H STX 02H B 25H 42H ETX 03H C 25H 43H EOT 04H D 25H 44H ENQ 05H E 25H 45H ACK 06H F 25H 46H BEL 07H G 25H 47H BS 08H H 25H 48H HT 09H l 25H 49H LF OAH J 25H 4AH VT OBH K 25H 4BH FF OCH L 25H 4CH CR ODH M 25H 4DH SO OEH N 25H 4EH SI OFH O 25H 4FH DLE 10H P 25H 50H DC1 11H Q 25H 51H DC2 12H R 25H 52H DC3 13H S 25H 53H DC4 14H T 25H 54H NAK 15H U 25H 55H SYN 16H 25H 56H ETB 17H W 25H 57H CAN 18H X 25H 58H EM 19H Y 25H 59H SUB 1AH Z 25H 5AH ESC 1BH 25H 5BH FS 1CH 25H 5CH GS 1DH 25H 5DH RS 1EH 25H 5EH US 1FH _ 25H 5F
78. 41 149 H 427 259 177 109 14 73 L 1101 667 458 282 M 871 528 362 223 Q 621 376 258 159 H 468 283 194 120 15 77 L 1250 758 520 320 M 991 600 412 254 Q 703 426 292 180 H 530 321 220 136 5 17 STAR LIne Mode Command Specifications SAIF Rev 0 00 Version Number of Error Numbers English Binary Kanji Cells on One Correction Language Character Side Characters Level 16 81 L 1408 854 586 361 M 1082 656 450 277 Q 775 470 322 198 H 602 365 250 154 17 85 L 1548 938 644 397 M 1212 734 504 310 Q 876 531 364 224 H 674 408 280 173 18 89 L 1725 1046 718 442 M 1346 816 560 345 Q 948 574 394 243 H 746 452 310 191 19 93 L 1903 1153 792 488 M 1500 909 624 384 Q 1063 644 442 272 H 813 493 338 208 20 97 L 2061 1249 858 528 M 1600 970 666 410 Q 1159 702 482 297 H 919 557 382 235 21 101 L 2232 1352 929 572 M 1708 1035 711 438 Q 1224 742 509 314 H 969 587 403 248 22 105 L 2409 1460 1003 618 M 1872 1134 779 480 Q 1358 823 565 348 H 1056 640 439 270 23 109 L 2620 1588 1091 672 M 2059 1248 857 528 Q 1468 890 611 376 H 1108 672 461 284 24 113 L 2812 1704 1171 721 M 2188 1326 911 561 Q 1588 963 661 407 H 1228 744 511 315 25 117 L 3057 1853 1273 784 M 2395 1451 997 614 Q 1718 1041 715 440 H 1286 779 535 330 26 121 L
79. 624 429 264 M 790 479 329 202 Q 656 398 273 168 H 454 275 189 116 14 73 L 1167 707 486 299 M 877 531 365 225 Q 738 447 307 189 H 498 302 207 127 5 16 IL SQI Rev 0 00 2 Model 2 Versions and Maximum Input Character Count Version Number of Error Numbers English Binary Kanji Cells on One Correction Language Character Side Characters Level 1 21 L 41 25 17 10 M 34 20 14 8 Q 27 16 11 7 H 17 10 7 4 2 25 L 77 47 32 20 M 63 38 26 16 Q 48 29 20 12 H 34 20 14 8 3 29 L 127 77 53 32 M 101 61 42 26 Q 77 47 32 20 H 58 35 24 15 4 33 L 187 114 78 48 M 149 90 62 38 Q 111 67 46 28 H 82 50 34 21 5 37 L 255 154 106 65 M 202 122 84 52 Q 144 87 60 37 H 106 64 44 27 6 41 L 322 195 134 82 M 255 154 106 65 Q 178 108 74 45 H 139 84 58 36 7 45 L 370 224 154 95 M 293 178 122 75 Q 207 125 86 53 H 154 93 64 39 8 49 L 461 279 192 118 M 365 221 152 93 Q 259 157 108 66 H 202 122 84 52 9 53 L 552 335 230 141 M 432 262 180 111 Q 312 189 130 80 H 235 143 98 60 10 57 L 652 395 271 167 M 513 311 213 131 Q 364 221 151 93 H 288 174 119 74 11 61 L 772 468 321 198 M 604 366 251 155 Q 427 259 177 109 H 331 200 137 85 12 65 L 883 535 367 226 M 691 419 287 177 Q 489 296 203 125 H 374 227 155 96 13 69 L 1022 619 425 262 M 796 483 331 204 Q 580 352 2
80. 72 in reverse direction paper feed If print data exists in the line buffer it prints that data Rev 0 00 This paper feed amount is unaffected even if there are vertical expanded characters in one line The single line feed amount setting value is not changed by this command If print data exists in the line buffer it prints that data This paper feed amount is unaffected even if there are vertical expanded characters in one line The single line feed amount setting value is not changed by this command Executes a n 8 mm paper feed Using this command will intermittently feed paper therefore it is normally recommended that this command not be used Currently set line feed amount n 8mm portion is not printed lt Slip gt lt Validation gt Executes a n 144 in paper feed STAR Line Mode Command Specifications 3 29 SCQF Rev 0 00 ESCAn Name Defines thermal a 3 mm 4 mm line feed amount Defines slip n 72 inch pitch line feed Code ASCII ESC A n Hexadecimal 1B 41 n Decimal 27 65 n Defined Area Thermal Osns255 Slip Osns85 Validation Osns85 Initial Value Thermal Doe Slip Pos Validation Function Defines the line feed amount The line feed amount defined using this command is specified to the current line feed amount by the ESC 2 command lt Thermal gt n Amount of Line Feed OsnsQ Defines a 3 mm line feed amount 10 lt n Defines a 4 mm line feed amount lt Slip gt
81. 8 Specify bi directional printing 1 49 Specify uni directional printing Bi directional printing is faster than uni directional printing With uni directional printing printing is performed only when the print head moves from left to right The printing direction can be set independently for both line mode and page mode Setting values are shared for slip and validation line mode and page mode is selected STAR LIne Mode Command Specifications 3 84 SAIF Rev 0 00 ESC GS m N n1 n2 n3 n4 LF NUL Name Set memory switch Code ASCII ESC GS m N M n n3 n4 LF NUL Hexadecimal 1B 1D 23 m N M n2 n3 n4 OA 00 Decimal 27 29 35 m N nMi n2 n3 n4 10 0 Defined Area Thermal m 87 84 44 43 45 64 75 76 m W T K L 48 lt n1 lt 57 0s n1 lt 9 65 lt n1 lt 70 A lt n1 lt F 97171 lt 102 a lt n1 lt f 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A lt n2 lt F 97 lt n2 lt 102 a lt n1 lt f 48 lt n3 lt 57 0 lt n3 lt 9 65 lt n3 lt 70 A lt n3 lt F 97 lt n3 lt 102 a lt n1 lt f 48 lt n4 lt 57 0 lt n4 lt 9 65 lt n4 lt 70 A lt n4 lt F 97 lt n4 lt 102 a lt n1 lt f 48 lt N lt 57 0 lt N lt 9 65 lt N lt 72 A lt N lt
82. AR LIne Mode Command Specifications 3 10 SQI Rev 0 00 3 3 2 Character Expansion Settings ESC i n1 n2 Name Set cancel the double wide high Code ASCII ESC i nt n2 Hexadecimal 1B 69 ni n2 Decimal 27 105 1 n2 Defined Area Thermal 0 lt n1 lt 5 48 lt n1 lt 53 0 sn1 lt 5 OS n2 lt 5 48 lt n2 lt 53 0 lt n2 lt 5 Slip 0 lt n1 lt 5 48 lt n1 s lt 53 0 lt n1 lt 5 0 lt n2 lt 5 48 lt n2 lt 53 0 lt n2 lt 5 Validation 0O lt n1 lt 5 48 lt n1 lt 53 0 lt n1 lt 5 0 lt n2 lt 5 48 lt n2 lt 53 0 lt n2 lt 5 Initial Value Thermal n1 0 Double high cancelled n2 0 Double wide cancelled Slip n1 0 Double high cancelled n2 0 Double wide cancelled Validation n14 0 Double high cancelled n2 0 Double wide cancelled Function Specifies cancels double high wide for ANK characters and Kanji characters This command is ignored if either n1 or n2 is outside of the defined area lt Thermal gt n1 Expanded high 0 48 Cancel expanded high 1 49 Specifies 2x expansion 2 50 Specifies 3x expansion 3 51 Specifies 4x expansion 4 52 Specifies 5x expansion 5 53 Specifies 6x expansion n2 Expanded wide 0 48 Cancel expanded wide 1 49 Specifies 2x wide expansion 2 50 Specifies 3x wide expansion 3 51 Specifies 4x wide expansion 4 52 Specifies 5x wide expansio
83. Command Specifications 3 97 SQI ESC r T n NUL Name Set raster top margin Code ASCII ESC r T n NUL Hexadecimal 1B 2A 72 54 n 00 Decimal 27 42 114 84 n 0 Defined Area Thermal Osns2 Slip Doe Validation Initial Value Thermal Doe Slip is Validation Function lt Thermal gt Sets the raster top margin nis a decimal description max 255 digits using ASCII characters Top margin Set To Default Set top margin using reverse paper feed N gt o s Set standard top margin This differs according to the model handling this command When in the raster mode the top margin setting of line mode remains Rev 0 00 When quitting the raster mode continue the top margin setting of the raster mode and return to the line mode lt Slip gt lt Validation gt Use prohibited STAR LIne Mode Command Specifications 3 98 SQI Rev 0 00 ESC r K n NUL Name Set raster print color Code ASCII ESC r K n NUL Hexadecimal 1B 2A 72 4B n 00 Decimal 27 42 114 75 n 0 Defined Area Thermal Osns3 Slip zl Validation zl Initial Value Thermal n 0 Slip Validation zl Function lt Thermal gt Sets raster print color This command is effective only when specifying the 2 color mode using the line mode This command is ignored when not in the 2 color print mode n is a decimal description max 255 digits using ASCII characters
84. EAN 13 k 12 or 13 The 13 check digit cannot be automatically applied so it is ignored even if specified e CODE39 k is freely set and maximum value differs according to the mode Start and stop codes are automatically included e ITF kis freely set and maximum value differs according to the mode If the data is an odd line 0 data is automatically appended to the top e CODE128 k is freely set and maximum value differs according to the mode and print character type Check character is automatically appended e CODE93 k is freely set and maximum value differs according to the mode and print character type The start stop code a is automatically appended e NWZ k is freely set and maximum value differs according to the mode and print character type Both start stop codes are included in the data but not automatically applied 3 59 SCQF 3 3 11 Cutter Control ESC dn Name Auto cutter Code ASCII ESC d Hexadecimal 1B 64 Decimal 27 100 Defined Area Thermal Osds3 48 lt d lt 51 0 lt d lt 3 Slip o Validation o Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Executes the auto cutter After auto cutter is executed the printer considers that position to be the top of the page n Auto cutter 0 48 Full cut at the current position Print data in line buffer is printed before a full cut Models not provided the auto cutter exec
85. Executes EOT mode Executes operation specified by the EOT mode setting command ESC rE n NUL lt Slip gt lt Validation gt Use prohibited ESC r N n NUL Name Discard specified byte count of data Code ASCII ESC z r N n NUL Hexadecimal 1B 2A 72 4E n 0 Decimal 27 42 114 78 n 0 Defined Area Thermal 1 lt n lt 9999 Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Discard specified byte count of data The number of bytes specified by n and later received data are received and discarded n is a decimal description max 4 digits using ASCII characters This command is value only when in raster mode lt Slip gt lt Validation gt Use prohibited STAR Line Mode Command Specifications 3 103 Rev 0 00 SCQF ESC r V mn NUL Name Execute external buzzer drive Code ASCII ESC i r Hexadecimal 1B 2A 72 Decimal 27 42 114 Defined Area Thermal Slip Validation o Thermal Slip Doe Validation Doe Initial Value Function lt Thermal gt V 1 n NUL 56 31 n 0 86 49 n 0 m 49 50 1Sn lt 20 Rev 0 00 Repeatedly drives the buzzer according to the ON OFF conditions set by the external buzzer drive pulse condition command ESC GS EM DC1 m n1 n2 m specifies the buzzer drive terminal to drive Buzzer Drive Terminals 49 Buzzer drive terminal 1 50 Buzzer drive terminal 2 Specifies the number of times to r
86. GS gt y S 0 1 Set to model 1 lt ESC gt lt GS gt y S 1 0 Set error correction level to L lt ESC gt lt GS gt y S 2 3 Set cell size to 3 dots 2 Bar code data setting e lt ESC gt lt GS gt y D 1 0 20 0 2005 January 1 SAT lt LF gt Set bar code data data automatic analysis e lt ESC gt lt GS gt y D 2 10 140 2005 420 Year 110 1 420 Month 110 1 420 Day 420P 230 SAT 420 y 310 lt LF gt 3 Print bar code To confirm printability using the current settings confirm the bar code expansion information lt ESC gt lt GS gt y I Confirms bar code expansion information lt ESC gt lt GS gt y P Prints STAR LIne Mode Command Specifications Set bar code data data manual analysis 3 142 Rev 0 00 SAIF ESC GSyS0n Name Set QR code model Code ASCII ESC GS y S 0 n Hexadecimal 1B 1D 79 53 30 n Decimal 27 29 121 83 48 n Defined Area Thermal gt 1sns2 Slip 2o Validation o Initial Value Thermal n 2 Slip o Validation ios Function lt Thermal gt Sets the model e Parameter details n Set model 1 Model 1 2 Model 2 lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal ESC GS ySin Name Set QR code mistake correc
87. GSyS1 o o t ESC GSy S2 o o ESC GS yD 1 o o ESC GS yD 2 o o ESC GS y P o o x ESC GS y o o e Page Function Commands Class Commands Class Model Name aa ASP7000 Set Executed Thermal Slip Page ESC GSh0 o o Function ESC GSh1 o o t e Slip Validation Function Commands Class Commands ee odel Name __ HSP7000___ Set_ Executed Thermal Slip Slip ESC SI o i x x Validation ESC FF o x o Function ESC VT o x x ESC EM o x o e Page Mode Commands Class Commands _ Class odel Name HSP7000 Set Executed Thermal Slip Page Mode FF o x o ESC n o x o ESC o x o ESC o x o ESC T o x o e Station Selection Command Class Commands Class odel Name aoaaa ASP7000 Set Executed Thermal Slip Station ESC A E A 7 e Presenter Commands Class Commands odel Name oun tSP7000 Set Executed Thermal Slip Presenter ESC SYN 0 o x x ESC SYN 1 o x x ESC SYN 3 o x x ESC SYN 4 o x x e MICR Commands Class Commands Class odel Name HSP7000 Set Executed Thermal Slip MICR ESC FSM i o x o 6 5 STAR LIne Mode Command Specifications SAIF 7 SPECIAL APPENDIX COMMAND FUNCTION LIST 7 1 Type HSP7000 7 1 1 Setting Command List Execution Station Thermal Slip Validation Command Line Thermal Other Precautions Line Page Slip Other Precautions Line Page Rev 0 00 Validation Other Precautions Font Style and Character Set Character Expansion ESC RS F Shared Only vali
88. H DEL 7FH 5 25H 35H STAR Line Mode Command Specifications Code Format START A 6 25H 36H START B 7 25H 37H START C 8 25H 38H 5 4 Rev 0 00 IL SQI 5 1 5 Code 93 1 Each mode and module width Rev 0 00 Items Mode 1 Mode 2 Mode 3 Module Width 2 Dots 3 Dots 4 Dots Length of 1 Character 2 25mm 3 375mm 4 5mm Start and stob bars not included 2 Regulations e Start stop codes are automatically applied e Check character C K is automatically applied e 2 character set expression conforms to Code 128 However items marked with a star are codes that can only be used with Code 128 and not with Code 93 5 1 6 NW7 CODERBAR NW7 normally uses either A through D as the start stop codes and represents special symbols minus sign dollar sign colon slash period plus sign between 0 to 9 These are used as carrier package marking bar codes DPE photo prints and for medical related industries USA 1 Length of characters in each mode Items Mode 1 Mode 2 Mode 3 Mode 4 Mode 5 Mode 6 Mode 7 Mode 8 Mode 9 Narrow Element Width 2 3 4 2 3 4 2 3 4 Wide Element Width 6 9 12 5 8 10 4 6 8 Ratio 1 3 1 3 1 3 1 2 5 1 2 7 1 2 5 1 2 1 2 1 2 Character Spacing 2 3 4 2 3 4 2 3 4 Dots Length of 1 Character 3 45 6 2 75 4 25 5 5 25 3 75 5 Normali rnin 3 5 5 25 7 3 125 5 125 6 25 2 75 4 125 55 Width mm
89. H lt 255 1SnL nH x 256s 7089 k nL nH x 256 0 lt d lt 255 Slip o Validation zo Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Automatically analyzes the bar code data type and sets the data e Parameter details e nb nHx256 Bar code data byte count e dk Bar code data max 7089 bytes e When using this command the printer receives data of the number of bytes k specified by nL and nH automatically analyzes the data and sets that as the bar code data e nL and nH specify the number of data bytes When processed as a Kanji character code two bytes are one character e Ifthe parameter is outside of the defined area the data for the amount of the counter is received and discarded At that time the bar code data is not cleared e The command data storage region is shared with the manual setting command so data is updated each time either command is executed lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 145 SU IF Rev 0 00 ESC GS y D 2 a m1 n1L n1H d11 d12 dik m2 n2L n2H d21 d22 d2k ml dik Name QR code data setting manual setting Code ASCII ESC GS y D 2 a mi niL n1H d1i di2 dk Hexadecimal 1B 1D 79 44 32 a mi niL n1H d1i di2 dk Decimal 27 29 121 68 50 a mi niL n1H d1i di2 dk ASCII m2 n2L n2H D21 d22 d2k mi dik Hexadecimal m2 n2L n2H D
90. I I Print Operation Printing and Paper Feed Prohibited The drive of the external buzzer set by this command is performed by ESC GS EM DC2 m n1 n2 The set value is not initialized by ESC or CAN Note The settings using this command are valid for all stations and modes Mode Command Specifications 3 65 SQI Rev 0 00 ESC GS EM DC2 m n1 n2 Name Execute external buzzer drive Code ASCII ESC GS EM DC2 m ni n2 Hexadecimal 1B 1D 19 12 m ni n2 Decimal 27 29 25 18 m m n2 Defined Area Thermal 1sms2 49 lt m lt 50 1 lt m lt 2 1sn1s20 n2 0 Slip 1sms2 49 lt sm lt 50 1 lt m lt 2 1 lt n1 lt 20 n2 0 Validation 1sms2 49 lt sm lt 50 1 lt m lt 2 1 lt n1 lt 20 n2 0 Initial Value Thermal oe Slip z Validation o Function Repeatedly drives the buzzer according to the ON OFF conditions set by the external buzzer drive pulse condition command ESC GS EM DC1 m t1 t2 m specifies the buzzer drive terminal to drive m Buzzer Drive Terminals 1 49 Buzzer drive terminal 1 2 50 Buzzer drive terminal 2 Specifies the number of times to repeat buzzer drive with n2 x 256 n1 Buzzer cannot ring while printer is printing This command is prohibited for use for anything other than ringing the buzzer When this command is used for the drawer drive on models equipped with an external device terminal it will be damaged so it is
91. II ESC L ni A2 di dk Hexadecimal 1B 4C ni n2 d1 dk Decimal 27 76 ni n2 di dk Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function lt Thermal gt Prints bit images using 1 dots wide and 3 dots high per 1 dot of input data 1s n1 n2 x 256 lt printable region k n1 n2 x 256 O lt ds255 1 lt n1 n2 x 256 lt printable region total half dot count k n1 n2 x 256 0 lt d lt 255 1 lt n1 n2 x 256 lt printable region total half dot count k n1 n2 x 256 0 lt dz lt 255 The following shows the details of data processing with this command e When n1 n2 x 256 exceeds the printable region only data in the print region is printed e When n1 n2 x 256 exceeds the currently set printable region only the data in the printing re gion is printed At this time all data for the print region is discarded e If the current position already exceeds the print region this command discards all data b7 b6 b5 b4 b3 b2 b1 bO lt Slip gt lt Validation gt Rev 0 00 This command executes the bit image of a density doubled half dot printing for just the data count determined by n1 and n2 The amount of data that can be printed in one line is only the total half dot count Data that exceeds the total half dot count or the right margin is ignored See each printer s product specifications manual for det
92. Kanji Character Shared eee hae Shared ce alae Independent Station selection command dependent Shared Slip Valida tion valid Shared Slip Valida tion valid a Slip Valida tion valid e Slip Valida tion valid Invalid Invalid Invalid Invalid Shared with Slip Validation a Line Mode setting i siun Sip leas Validation a Line Mode setting Valid after switch to slip valdation Valid after switch to slip valdation lt Valid after switch to slip valdation Shared Valid Shared Valid For each Line Page For each Line Page rT a Shared Valid Shared Valid Shared Valid after switch to slip valdation For each Line Page ee TF Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymodelline Valid Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line a MOJ iinun Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line mod Line Page mode set tings Independent Line Mode Shared with Validation setting Line Page mode set tings Independent Line Mode Shared with lt Validation setting Shared with validation Page Mode Vali
93. Latin 2 66 Codepage 3843 Polish 6 Codepage 860 Portuguese 67 Codepage 3844 CS2 7 Codepage 861 Icelandic 68 Codepage 3845 Hungarian 8 Codepage 863 Canadian French 69 Codepgae 3846 Turkish 9 Codepage 865 Nordic 70 Codepage 3847 Brazil ABNT 10 Codepage 866 Cyrillic Russian 71 Codepage 3848 Brazil ABICOMP 11 Codepage 855 Cyrillic Bulgarian 72 Codepage 1001 Arabic 12 Codepage 857 Turkish 73 Codepage 2001 Lithuanian KBL 13 Codepage 862 Israel Hebrew 74 Codepage 3001 Estonian 1 14 Codepage 864 Arabic 75 Codepage 3002 Estonian 2 15 Codepage 737 Greek 76 Codepage 3011 Latvian 1 16 Codepage 851 Greek 77 Codepage 3012 Latvian 2 17 Codepage 869 Greek 78 Codepage 3021 Bulgarian 18 Codepage 928 Greek 79 Codepage 3041 Maltese 19 Codepage 772 Lithuanian 255 Empty page 20 Codepage 774 Lithuanian 21 Codepage 874 Thai Note The settings using this command are valid for all stations and modes STAR LIne Mode Command Specifications SQI Rev 0 00 ESC GS n1 n2 da1 da2 dak db1 db2 dbk Name Write blank code page data Code ASCII ESC GS n n2 dat da2 dak db1 db2 dbk Hexadecimal 1B 1D 3D nt n2 dal da2 dak db1 db2 dbk Decimal 27 29 61 nt n2 dat da2 dak db1 db2 dbk Defined Area Thermal n1 0 n2 48 1 lt n1 n2 x 256 0 lt da lt 255 Font A data db 0 Star mode does not have Font B k n1 n2 x 256 Slip Doe Validation Doe Initial Value T
94. Line Thermal Dot Printer STAR Line Mode Command Specifications Rev 0 00 Star Micronics Co Ltd Special Products Operating Division Contents GENERAL DESCRIPTION COMMAND FUNCTION LIST COMMAND DETAILS 3 1 Explanation of Terms 3 2 Exception processing 3 3 Standard Command Details 3 3 1 Font style and character set ESC RS Fn ESC GStn ESC GS n1 n2 da1 da2 dak db1 db2 dbk ESC Rn ESC N ESC SP n ESC M ESC P ESC ESC g ESC 6 ESC 7 3 3 2 Character Expansion Settings ESC in1 n2 ESC Wn ESC hn SO DC4 ESC SO ESC DC4 3 3 3 Print mode ESCE ESC F ESC n ESC _n ESC 4 ESC 5 ESC GS4mn SI DC2 ESC RSin 3 3 4 Line Spacing ESC yn 3 3 5 Page Control Commands FF ESC Cn ESC COn VT ESC B n1 n2 nk NUL ESC B NUL 3 3 6 Horizontal Direction Printing Position ESC In 1 1 2 1 3 1 3 1 3 2 3 3 3 3 3 3 3 4 3 5 3 6 3 7 3 8 3 8 3 9 3 10 3 10 3 11 3 11 3 12 3 13 3 14 3 14 3 15 3 15 3 16 3 16 3 17 3 18 3 19 3 20 3 20 3 21 3 23 3 23 3 24 3 25 3 25 3 25 3 26 3 27 3 27 3 28 3 28 3 29 3 29 3 30 3 30 3 31 3 31 3 32 3 32 3 33 3 34 3 35 3 36 3 36 3 37 3 37 ESC Qn HT ESC D n1 n2 nk NUL ESC D NUL ESC GS An1 n2 ESC GS Rn1 n2 ESC GSan 3 3 7 Download ESC amp c1c2nd1 d48 ESC amp c1c2n ESC amp NUL n1 n2 m d1 d2 d3 d4 d5 d6 d7 n2 n1 1 ESC N 3 3 8 Bit Image Graphics ESC K n1 n2 d1 dk ESC Ln1 n2 d1 dk ESC k n1 n2 d1 dk ESC X n1 n2 d1
95. R Line Mode Command Specifications Only setting is valid Setting is valid after switching to thermal 3 67 Rev 0 00 SCQF Rev 0 00 ESC RSrn Name Set printing speed Code ASCII ESC RS r n Hexadecimal 1B 1E 72 n Decimal 27 30 114 n Defined Area Thermal Osns2 48 lt n lt 50 0 lt n lt 2 Slip o Validation o Initial Value Thermal Memory switch setting Slip Doe Validation Doe Function lt Thermal gt Sets print speed This command stops printing to be executed n Print Speed 0 48 High speed 1 49 Mid speed 2 50 Slow speed lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 68 SQI Rev 0 00 3 3 14 Status ESC RSan Name Set status transmission conditions Code ASCII ESC RS a n Hexadecimal 1B 1E 61 n Decimal 27 30 97 n Defined Area Thermal Osns3 48 lt n lt 51 0 lt n lt 51 Slip Osns3 48 lt n lt 51 0 lt n lt 51 Validation Osns3 48 lt n lt 51 0 lt n lt 51 Initial Value Thermal DIPS switches Memory switch setting Slip DIPS switches Memory switch setting Validation DIPS switches Memory switch setting Function Sets the status transmission conditions See Appendix 2 for details regarding ASB status This command is effective only on printers that have an interface capable of bi directional data comm
96. SC GS EM DC2_ Execute external buzzer drive e Print Setting ESC RS d Set print density o ESC RSr Set printing speed o Status ESC RS a Set status transmission conditions _ ESC ACK SOH Real time printer status 7 ASB Status ENQ Real time printer status 1 ie EOT Real time printer status 2 e ETB Update of ETB status e ESC RSE Clear ETB counter initialize ETB status STAR LIne Mode Command Specifications 2 2 SAIF Rev 0 00 Class Commands Name Thermal _ Slip Validation _ Kanji Character ESC p Set JIS Kanji Character mode ESC q Cancel JIS Kanji Character mode lt ESC Set cancel JIS Kanji Character mode ESC s Set two byte Kanji characters left right spaces ESC t Set single byte Kanji characters _ left right spaces ESC r Register Chinese download ie characters ESC u _ Specify two byte 16 x 16 dot Kanji _ Character Single density double density ESC x _ Specify expanded Kanji characters Double tall double high amp wide ESC w _ Specify expanded Kanji characters _ batch double tall double high amp _wide Others RS Ring buzzer CAN Cancel print data and initialize oe commands ESC Initialize commands be ESC U Select printing direction ESC GS Set memory switch ESC Initialize all memory switches e ESC N Inquire memory switch setting oe contents l ESC Inquire printer
97. Shared Independent Station selec tion command dependent arenes per ea ee eek Sor aaa Peer a Valid eg eras arena Valid Valid geese Valid Valid Valid ggg eee e invalid Ignored up to lt NULS ee ae eee eee a EEEE IES TAATA Las Invalid Three bytes ignored Valid Shared Valid Valid Shared Invalid as Shared Valid _ Shared Valid Shared Valid Shared Valid Invalid Valid only Line ae a ee eee eee Shared dar nasdadessimmaadnaenalts ignored ae St esi aaa E PUEIA EE Six bytes ignored Page Mode Three bytes ignored Sha Valid Shared Ve Valid Shared Vali Shai Vali Vali Sha Vali Shared Valid _ Shared Invalid Valid only Line Invalid ETE nnn SMI CD oo yal cai iene comers Shared 11 asuadadadectaccdiaws Ignored up to lt NUL gt Shared Six bytes ignored Page Mode Three bytes ignored Initialization Macro Independent Station selec tion command Shared dependent Valid For each Line Page E E NE E E E E Shared Valid For each Line Page Shared e a STAR LIne Mode Command Specifications ESC rR Independent Station selec tion command dependent Only valid for thermal Station selec tion command dependent Only valid for thermal Independent Station selec tion command dependent Only v
98. Specifies registered logo count e xn1 xn2 Horizontal size of registered logo xn1 xn2 x 256 x 8 dots e yn yn2 Vertical size of registered logo yn1 yn2 x 256 x 8 dots ed Registered logo data ek Logo data count This command should be specified at the top of the line When the first parameter is determined to be free of error the printer starts processing this com mand When logo register processing starts all previously defined data is deleted It is not possible to re register a portion of a plurality of defined logo data Logo registration numbers are defined in rising order from 1 If the defined area specified by the parameter is not empty or if there is an error in the parameter specification register processing is aborted The pre registered and complete data is effective The printer should be reset if logo registration is completed or register processing is aborted If an error occurs while performing register processing the time from when the first parameter is OK until the printer initialization is completed after registering a logo error processing mechanical op eration and status processing cannot be performed Also data must not be sent from the host during that time This command is executed only for logo registration and does not accompany the printing operation Logos are printed using the ESC FS p print NV logo command The NV memory capacity is 4 Mbits 512 Kbytes 524 288 bytes However 4 Kby
99. Thermal Doe Slip De Validation De Initial Value Thermal o Slip Doe Validation De Function lt Thermal gt Moves vertical direction position Moves position n dots with this command When the current page length setting is in continuous print mode and n dots exceed the remaining dot count of the raster image buffer length the data in the print buffer is printed and paper is fed n dots when this command is received Also when the page length is set data in the print buffer is printed and paper is fed once the set page length when this command is received The remaining paper feed is performed at the print ex ecution command thereafter nis a decimal description max 255 digits using ASCII characters lt Slip gt lt Validation gt Use prohibited ESC FF NUL Name Execute FF mode Code ASCII ESC FF NUL Hexadecimal 1B 0C 00 Decimal 27 12 0 Defined Area Thermal Doe Slip De Validation Doe Initial Value Thermal Los Slip Eoas Validation o Function lt Thermal gt Executes FF mode Executes operation specified by the FF mode setting command ESC r F n NUL lt Slip gt lt Validation gt Use prohibited STAR LIne Mode Command Specifications 3 102 SAIF ESC FF EOT Name Execute EOT mode Code ASCII ESC FF EOT Hexadecimal 1B 0C 04 Decimal 27 12 4 Defined Area Thermal o Slip Doe Validation Initial Value Thermal Doe Slip Doe Validation Function lt Thermal gt
100. When 16 x 16 dot Kanji characters single density are selected they expand only in the vertical direction Vertical tall size State A to state C When 16 x 16 dot Kanji characters double density are selected they expand both vertically and horizontally Double high and wide size State B to state D 1 49 Cancels specify Kanji character expansion and sets to two byte Kanji characters When 16 x 16 dot Kanji characters double density are selected they become two pass characters state C to state A When 16 x 16 dot Kanji characters double density are selected they become four pass characters state D to state B When page mode is selected only setting is valid Setting is valid after switching to line mode STAR LIne Mode Command Specifications 3 80 SAIF Rev 0 00 ESC wn Name Specify expanded Kanji characters batch double tall double high amp wide Code ASCII ESC w n Hexadecimal 1B 77 n Decimal 27 119 n Defined Area Thermal Z Slip n 0 1 n 48 49 0 1 Validation n 0 1 n 48 49 0 1 Initial Value Thermal Doe Slip Specify two byte 16 x 16 dot Kanji characters single density Validation Specify two byte 16 x 16 dot Kanji characters single density Function lt Thermal gt Only setting is valid Setting is valid after switching to slip or validation lt Slip gt lt Validation gt Sets batch double tall double high and wid
101. a Thermal Doe Slip Ps Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt When black mark is effective this command is ignored lt Slip gt lt Validation gt One byte ignored ESC B n1 n2 nk NUL Name Set vertical tab position Code ASCII ESC B ni n2 nk NUL Hexadecimal 1B 42 ni n2 nk 00 Decimal 27 66 ni n2 nk 0 Defined Area Thermal lt 1sns255 OSks16 Slip Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt When black mark is effective this command is ignored lt Slip gt lt Validation gt Received and discarded up to lt NUL gt STAR LIne Mode Command Specifications 3 108 Rev 0 00 SAIF Rev 0 00 ESC B NUL Name Clear vertical tab position Code ASCII ESC B NUL Hexadecimal 1B 42 00 Decimal 27 66 0 Defined Area Thermal Doe Slip z Validation Initial Value Thermal Doe Slip Doe Validation Function lt Thermal gt When black mark is effective this command is ignored lt Slip gt lt Validation gt Three bytes ignored STAR Line Mode Command Specifications 3 109 SUQIF lt Rev 0 00 3 6 2 Color Printing Command Details The following commands control 2 color printing functions The following commands are effective only when using a model handling 2 color printing ESC RS c n Name Set print color in 2 color print mode Code ASCII ESC RS c n Hexadec
102. absolutely prohibited The buzzer can be stopped by pressing the FEED switch or the RELEASE switch while the buzzer is ringing or opening the receipt cover or the slip cover Ex ON Drive Pulse OFF JULI LE LILI LIL r Zz T TTEA oo n Print Operation Printing Paper Feed Prohibited Note If the off time is set to O zero it is possible to ring the buzzer continuously for the amount of n1 For example if on 5 seconds off 0 and n1 20 times the buzzer will ring for 100 seconds STAR LIne Mode Command Specifications 3 66 SAIF 3 3 13 Print Settings ESC RS d n Name Set print density Code ASCII ESC RS d Hexadecimal 1B 1E 64 Decimal 27 30 100 Defined Area Thermal Osns15 48 lt n lt 57 0 lt n lt 9 65 lt n lt 70 A lt n lt F Slip Doe Validation Doe Initial Value Thermal Memory switch setting Slip Doe Validation Doe Function lt Thermal gt Sets print density This command stops printing to be executed n Print Density 0 48 Print density 1 3 1 49 Print density 1 2 2 50 Print density 1 1 3 51 Print density 1 0 4 52 Print density 0 9 5 53 Print density 0 8 6 54 Print density 0 7 7 55 Reserved 8 56 Reserved 9 57 Reserved 10 65 Reserved 11 66 Reserved 12 67 Reserved 13 68 Reserved 14 69 Reserved 15 70 Reserved lt Slip gt lt Validation gt STA
103. ails regarding the total half dot count The relationship of the print head needle wires and the data is the same as ESC K standard density bit image When printing double density bit images dots adjacent in the horizontal direction do not print After printing the bit image the printer automatically returns to the character mode When page mode is selected all data is received and discarded STAR LIne Mode Command Specifications 3 50 SAQIF Rev 0 00 ESC k n1 n2 d1 dk Name Fine bit image Code ASCII ESC k ni n d dk Hexadecimal 1B 6B ni n2 d1 dk Decimal 27 107 n n2 di dk Defined Area Thermal n2 0 1 lt n1 n2 x 256 x 8 lt printable region k n1 n2 x 256 x 24 0 lt d lt 255 Slip pos Validation Initial Value Thermal Doe Slip o Validation Function lt Thermal gt Prints bit images using 1 dots wide and 1 dots high per 1 dot of input data The following shows the details of data processing with this command e When n1 n2 x 256 x 8 exceeds the printable region only the data in the printing region is printed e When n1 n2 x 256 x 8 exceeds the currently set printable region only the data in the printing region is printed At this time all data for the print region is discarded e If the current position already exceeds the print region this command discards all data x byte n1 n2 x 256 Sees dxXx1 1 OX X12 eee ee 24 dot dXx2 1 aXx2 2 soe
104. alid for thermal Station selec tion command dependent Only valid for thermal m licependent hrca j independent H a Invalid Invalid Invalid Invalid Four bytes ignored Four bytes ignored Four bytes ignored Four bytes ignored Invalid Invalid Invalid Invalid Four bytes ignored Four bytes ignored Four bytes ignored Four bytes ignored fm SCQF Command Execution Station Thermal Slip Valida er Precautions ine Page Ip Other Precautions ine Page Rev 0 00 Validation Other Precautions ESC rD ESC FF NUL ESCEEEOT h tion Independent Station selection command dependent Only valid for thermal Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for ea or a V thermal od Independent Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for thermal Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for thermal independent I sendependan e Station selection command dependent Only valid for thermal Invalid Invalid Ss Invalid Invalid Data received and discarded up to lt NUL gt gt Data for
105. ame Initialize raster mode Code ASCII ESC r R Hexadecimal 1B 2A 72 52 Decimal Defined Area Initial Value Function lt Thermal gt 27 42 114 82 Thermal o Slip o Validation o Thermal o Slip o Validation o Initializes raster mode This command is also valid when not in the raster mode However initialization of the raster mode with this command is executed when entering the raster mode The following settings are initialized using this command e Raster page length setting ESC r P n NUL e Raster print quality setting ESC Q n NUL e Raster print quality setting ESC r K n NUL e Raster left margin setting ESC r m I n NUL e Raster right margin setting ESC r m r n NUL e Raster EOT mode setting ESC FF EOT e Raster FF mode setting ESC FF NUL e Clear raster image buffer Note that when entering the raster mode it executes the same process as initialization of the raster mode using this command However because initialization is not performed when entering the raster mode only for the following settings when initializing the following it sends this initialization command e Raster print quality setting ESC r K n NUL lt Slip gt lt Validation gt Use prohibited STAR LIne Mode Command Specifications 3 90 SQI Rev 0 00 ESC rA Name Enter raster mode Code ASCII ESC r A Hexadecimal 1B 2A 72 41 Decimal 27 42 114 65 Defined Area Thermal Doe Slip Doe Val
106. an ringing the buzzer When this command is used for the drawer drive on models equipped with an external device terminal it will be damaged so care is needed ON Drive Pulse OFF 20xt1 msec 20 xt2 msec Spa a_i gt Energizing Time i Delay Time I I Print Operation Printing and Paper Feed Prohibited STAR LIne Mode Command Specifications 3 64 SQI Rev 0 00 ESC GS EM DC1 m n1 n2 Name Code Set external buzzer drive pulse condition ASCII ESC GS EM DC1 m ni n2 Hexadecimal 1B 1D 19 11 m ni n2 Decimal 27 29 25 17 m ni n2 Defined Area Thermal tsms2 49sm lt s50 1 lt m lt 2 0 lt n1 lt 255 0 lt n2 lt 255 Slip gt 1sms2 49 lt sms50 1 sms 2 0 lt n1 lt 255 0 lt n2 lt 255 Validation gt 1 lt ms2 49 lt ms50 1 0 lt n1 lt 255 0 lt n2 lt 255 Initial Value Thermal n1 0 n2 0 Function Slip n1 0 n2 0 Validation n1 0 n2 0 Set external buzzer drive pulse condition m specifies the buzzer drive terminal that sets the condition Buzzer Drive Terminals 1 49 Buzzer drive terminal 1 2 50 Buzzer drive terminal 2 STAR Line n1 specifies the energizing time n2 specifies the delay time e Energizing time 20 msec x n1 e Delay time 20 msec x n2 ON Drive Pulse OFF 20 x n1 msec 20x n2 msec I I I I I I Energizing Time l Delay Time i I I I I
107. ared Only valid for thermal Invalid Invalid Invalid Invalid Invalid Valid after switch to thermal Valid after switch to thermal a Valid after switch to thermal Valid after switch to thermal Valid after switch to thermal Invalid Invalid Invalid Invalid Invalid Valid after switch to thermal Valid after switch to thermal o Valid after switch to thermal Valid after switch to thermal Valid after switch to thermal Type Command Execution Station Thermal Slip Validation Thermal Slip Rev 0 00 Validation Other Precautions Line Page Other Precautions Line Page Other Precautions Printer Driver Print Start Trigger ESC RSA ESC RS m ESC GS g1 Independent Station selec tion command On On Shar y va Shar y va __ dependent ed id for thermal ed id for thermal Valid only Line Invalid Invalid Page Mode Valid after switch to line mode Valid after switch to therma Valid after switch to therma Valid only Line Invali Page Mode Valid after switch to line mode Valid after switch to therma Valid after switch to therma ESC GS yS0 On On On On On Shar y val thermal ed Shar y val thermal ed Shar y val thermal ed Shar y val thermal ed Shar y val ed id f
108. bar code by the combination of bar code settings e When the generated bar code exceeds the printable PDF417 size e When the print data exceeds the currently set print region e Bar codes to be printed should always be confirmed through an actual printout lt Slip gt lt Validation gt Four bytes ignored STAR Line Mode Command Specifications 3 137 SCQF Rev 0 00 ESC GS x Name Get PDF417 bar code expansion information Code ASCII ESC GS x l Hexadecimal 1B 1D 78 49 Decimal 27 29 120 73 Defined Area Thermal o Slip o Validation Initial Value Thermal Doe Slip a Validation Function lt Thermal gt In printing bar codes with the current setting and the printing starting position using this command information such as the presence of errors is sent to the printer Therefore it is possible to confirm whether printing is possible before actual printing with this com mand If there is an error the command is received and discarded even if the print command ESC GS x P is sent Also if the following errors occur Error information is sent to the printer e When an error occurs when generating the bar code by the combination of bar code settings e When the generated bar code exceeds the printable PDF417 size e When the print data exceeds the currently set print region Transmission format lt ESC gt lt GS gt x P n n 0 No 1 Error lt Slip gt lt Validation gt
109. cel adornment expansion and external character settings Also check the OCR B font by actual use lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 3 SEQ Rev 0 00 ESC GStn Name Select code page Code ASCII ESC GS t n Hexadecimal 1B 1D 74 n Decimal 27 29 116 n Defined Area Thermal 0 lt n lt 21 32 lt n lt 34 64 lt n lt 79 n 255 Slip 0 lt n lt 21 32 lt n lt 34 64 lt n lt 79 n 255 Validation 0 lt n lt 21 32 lt n lt 34 64 lt n lt 79 n 255 Initial Value Thermal Memory switch setting when set to DBCS Japanese characters normal katakana are fixed Slip Memory switch setting when set to DBCS Japanese characters normal katakana are fixed Validation Memory switch setting when set to DBCS Japanese characters normal katakana are fixed Function Specifies code page When installed with Japanese language characters and DBCS setting this command is ignored n Code Page n Code Page 0 Normal 32 Code Page 1252 Windows Latin 1 1 CodePage437 USA Std Europe 33 Codepage 1250 Windows Latin 2 2 Katakana 34 Codepage 1251 Windows Cyrillic 3 CodePage437 USA Std Europe 64 Codepage 3840 IBM Russian 4 Codepage 858 Multilingual 65 Codepage 3841 Gost 5 Codepage 852
110. cifications 3 134 SAIF ESC GS x S 0 n p1 p2 Name PDF417 bar code size setting Code ASCII ESC GS Hexadecimal 1B 1D Rev 0 00 x S 0 n pi p2 78 53 30 n pi p2 Decimal 27 29 120 83 48 n pi p2 Defined Area Thermal n 0 1 When n 0 18p1s99 1 lt p2 lt 99 When n 1 p1 Oor3sp1s90 p2 0 or 1 lt p2 lt 30 However this excludes p1 p2 0 Slip Doe Validation Initial Value Thermal n 0 p1 1 p2 2 Slip o Validation Function lt Thermal gt Parameter details n Bar Code Size Specification Method p1 p2 Size Specification 0 USE_LIMITS Specifies ratio of bar code verti cal horizontal directions p1 p2 Distribution ratio of vertical p1 and horizontal p2 However p1 p2 1 99 to 10 1 p1 p2 0 01 to 10 1 USE_FIXED Specifies number of lines and number of columns in the bar code p1 Number of lines 0 3 to 90 p2 Number of columns 0 1 to 30 However p1 p2 lt 928 If either p1 or p2 is set to 0 it indicates that that value is vari able Setting of the bar code size using this command specifies the general size The size is automatically corrected by other settings lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal ESC GSxSin Name Set PDF417 ECC security level Code ASCII ESC GS x S 1 n Hexadecimal 1B 1D 78 53 31 n Decimal 27 29 120 83 49 n Defined Area T
111. cified slash zero setting is valid when changed to a different code page Note The settings using this command are valid for all stations and modes ESC SP n Name SetANK right space Code ASCII ESC SP n Hexadecimal 1B 20 n Decimal 27 32 n Defined Area Thermal gt OSns15 48 lt NS57 0 Sns 9 65 lt n lt 70 A lt n lt F Slip Ox lt nz lt 15 48 lt N lt 57 0 lt n lt 9 65 lt n lt 70 A lt n s F Validation Ox lt nz lt 15 48 lt N lt 57 0 lt n lt 9 65 lt n lt 70 A lt n s lt F Initial Value Thermal Memory switch setting Slip gt n 0 Validation n 0 Function lt Thermal gt Specifies the right space for ANK 12 x 24 dot fonts in n dots Character spacing can be specified also with the following commands e Specify 12 dot pitch ESC M e Specify 14 dot pitch ESC g e Specify 15 dot pitch ESC P e Specify 16 dot pitch ESC lt Slip gt lt Validation gt Specifies right space of characters with n half dots When in horizontal double wide printing the right space is also double Note The settings by this command are valid for all stations Setting value is shared when thermal and slip validation line mode is selected The setting value when slip validation page mode is selected is shared only when slip validation page mode is selected STAR Line Mode Command Specifications 3 7 St Qiir Rev 0 00 ESC M Name Thermal Specify 12 dot pitch
112. cify JIS Kanji character mode Code ASCII ESC p Hexadecimal 1B 70 Decimal 27 112 Defined Area Thermal o Slip o Validation Initial Value Thermal Cancel JIS Kanji character mode Slip Cancel JIS Kanji character mode Validation Cancel JIS Kanji character mode Function Specifies JIS Kanji character mode When in JIS Kanji character mode all character codes are handled as 2 byte Japanese characters First byte upper code second byte lower code Even when setting the JIS Kanji mode the control code is valid This command is ignored for models not equipped with Japanese and Kanji characters and when the specification for the location of use is specified as SBCS single byte countries by the memory switch lt Slip gt lt Validation gt When page mode is selected only setting is valid Setting is valid after switching to line mode Note The settings by this command are valid for all stations ESC q Name Cancel JIS Kanji character mode Code ASCII ESC q Hexadecimal 1B 71 Decimal 27 113 Defined Area Thermal Doe Slip Doe Validation Initial Value Thermal Cancel JIS Kanji character mode Slip Cancel JIS Kanji character mode Validation Cancel JIS Kanji character mode Function Cancels JIS Kanji character mode This command is ignored for models not equipped with Japanese and Kanji characters and when the specification for the location of use is specified as SBCS single byte countries by
113. cimal 1B 3A Decimal 27 58 Defined Area Thermal o Slip Doe Validation Initial Value Thermal Memory switch setting Slip Doe Validation Function lt Thermal gt Specifies the right space for ANK 12 x 24 dot fonts in 4 dots lt Slip gt lt Validation gt Specifies 5 x 9 3 pulse 1 dot fonts Sets the number of printable digits in one line to total half dot count 18 character right space amount Note The settings by this command are valid for all stations ESCg Name Specify 14 dot pitch Code ASCII ESC g Hexadecimal 1B 67 Decimal 27 103 Defined Area Thermal Ei as Slip Doe Validation Doe Initial Value Thermal Memory switch setting Slip Doe Validation Doe Function lt Thermal gt Specifies rights space for the ANK 12 x 24 dot fonts to 2 dots lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 9 SCQF Rev 0 00 ESC 6 Name Specify IBM character set 2 Code ASCII ESC 6 Hexadecimal 1B 36 Decimal 27 54 Defined Area Thermal Slip Doe Validation Initial Value Thermal o Slip Doe Validation Function Two bytes ignored ESC 7 Name Specify IBM character set 1 Code ASCII ESC 7 Hexadecimal 1B 37 Decimal 27 55 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function Two bytes ignored ST
114. current ANK character STAR Line Mode Command Specifications pitch x n The horizontal tab reference point is the right edge of the paper regardless of the left margin ANK character pitches including right spaces are unaffected by expansion settings The right edge is also the reference for upside down printing All other horizontal tabs set before setting the horizontal tab using this command are cancelled A maximum of 32 horizontal tabs can be set However the tab position must satisfy the following conditions If the following conditions are not met data up to the NUL code is discarded Normal tabs that meet the conditions below are set and tabs after errors occur are not set e1 lt n1 lt n2 lt nk The horizontal tab set using this command is unaffected by changing the character pitch Horizontal tabs set using the ESC D NUL command are cleared There is no initial value for the horizontal tab Note The settings using this command are valid for all stations and modes 3 39 SU QIF ESC D NUL Name Clear horizontal tab Code ASCII ESC D NUL Hexadecimal 1B 44 00 Decimal 27 68 0 Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function Clears the currently set horizontal tab Note The settings using this command are valid for all stations and modes ESC GS A n1 n2 Name Move absolute position Code ASCII ESC Hexadecimal 1B Decimal 27 Defined Area T
115. d Four bytes ignored coa a Shared Independent ation selec tion command dependent Independen ation selec tion command dependent Independen ation selec tion command dependent ation selec tion command dependent Invalid Invalid Valid Invalid i Two bytes ignored Two bytes ignored Raster mode related Ten bytes ignored Three bytes ignored Valid only Line Page on ae le Page on Ts F Page on aac a y Page Mode Two bytes ignored a ras Two bytes ignored eia AA Valid after switch to page mode EO a Valid after switch to page mode Valid only Line Page only Valid Page only a Page only S Page Mode Two bytes ignored i ue aee Two bytes ignored a a Valid after switch to page mode i Ga a Valid after switch to page mode Presenter STAR LIne Mode Command Specifications ESC SYN 1 ESCSYN2 _ Shared Shared Invalid Four bytes ignored Invalid Four bytes ignored Invalid Four bytes ignored Four bytes ignored Invalid Invalid Four bytes ignored SCQF 7 1 2 Execution Command List spacing Station selection command dependent independent Station selection command n dependent Independen Station selection command dependent f Independen Station selecti command dependent d
116. d Invalid Invalid Invalid Invalid Invalid Invalid Invalid Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Invalid Invalid Invalid Invalid Invalid Invalid Invalid Invalid Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt lt Data received and discarded up to lt NUL gt i Data received and discarded up to lt NUL gt Data received and discarded up to lt NUL gt Data received and discarded up to i lt NUL gt lt Data received and discarded up to lt NUL gt USB Related ESC W Shared Valid Shared Valid Shared 2 Color Printing ESC RS c Shared Only valid for thermal Shared Only valid for thermal Invalid Invalid Valid after switch to thermal aha Valid after switch to thermal Invalid Invalid Valid after switch to thermal Valid after switch to thermal Mark Com mands ESC GS 1
117. d black color printing specified Validation White black inversion cancelled black color printing specified Function lt Thermal gt Cancels white black inversion for ANK characters and Kanji characters lt Slip gt lt Validation gt This command function is based on the selection of red black substitute function The red black substitute function is selected by the memory switch or the command ESC GS 4 mn For details on selecting the red black substitute function using a command see the explanation of ESC GS 4 below and for details on selecting the red black substitute function using the memory switch see the printer specifications manual Note The settings using this command are valid for all stations and modes STAR LIne Mode Command Specifications 3 20 SAIF ESC GS 4mn Select red black substitute function ESC 4 5 setting Name Code ASCII Hexadecimal Decimal Defined Area Thermal ESC GS 4 m n 1B 1D 34 m n 27 29 52 m n Slip m 1 2 49 50 When m 1 49 1 n 0 to 3 255 When m 2 50 2 in 0 2to5 When m 83 S in 0 1 Validation m 1 2 49 50 When m 1 49 1 in 0 to 3 255 When m 2 50 2 in 0 2to5 When m 83 S in 0 1 Initial Value Thermal Slip Memory switch setting Validation Memory switch setting Function lt Thermal gt Only setting is valid Setting lt Slip gt lt Validation gt Selects red black substitute functi
118. d for thermal Shared Station selec tion command dependent Only valid for _ thermal Shared ara TE Gaa i ere Shared Shared Only valid for _ thermal Shared Shared Shared cee ae eer ae cer hae ihdebendeni fashiri Sa N Valid Valid Valid y i Specii ooi gin alee Valid Invalid Invalid ect na etern After switch slip STAR LIne Mode Command Specifications lt Ignored for DBCS setting amp for models With Kanji characters lt Shared with Slip Vali dation a Line Mode Specify 15 dot pitch Specify 16 dot pitch Two bytes ignored Expanded by param eter n1 n2 After switch slip validation fixed at 2x even with expansion enabled Expanded by param etern After switch slip validation fixed at 2x even with expansion enabled validation fixed at 2x even with expansion i enabled Two bytes ignored Invalid Shared Invalid E PETET EE AE NE ss Shared i T E E ES dar Shared For each Line Page Sa only Line Valid only Line Valid only Line Invalid Invalid Invalid Valid Shared Shared SaaS Shared eae 6 eae eae PNG N TEE A Valid _ Shared i Valid Shared eoig Valid Valid after switch to thermal Ignored for DBCS setting amp for models __with Kanji characters _ Valid after switch to therma
119. d only in double density page mode For standard mode valid after switching to double densitymode line mode seein sees Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line ainan NOOO a ena als Valid Line Page mode set tings Independent _ Shared with validation Shared Shared Valid For each Line Page se For each Line Page A oe Shared a Shared sar Shared soa For each Line Page Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymodelline Valid Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line mode asd Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line mode Line Page mode set tings Independent Line Mode Shared with Validation setting Line Page mode set tings Independent Line Mode Shared with Validation setting Shared with slip Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line i Mo
120. d wide if the following commands specify expanded wide e Double wide specifying command SO e Set cancel double wide ESC W e Set cancel double wide high ESC i This command is equivalent to ESC W 0 Note The settings using this command are valid for all stations and modes STAR LIne Mode Command Specifications 3 14 SAIF ESC SO Name Set double high Code ASCII ESC Hexadecimal 1B Decimal 27 Defined Area Thermal SO 0E 14 Slip Validation Initial Value Thermal Double high expansion cancelled Slip Double high expansion cancelled Validation Double high expansion cancelled Function Specifies double high for ANK characters and Kanji characters This command is equivalent to ESC h 1 Note The settings using this command are valid for all stations and modes ESC DC4 Name Cancel expanded high Code ASCII ESC DC4 Hexadecimal 1B 14 Decimal 27 20 Defined Area Thermal Slip Validation Initial Value Thermal Double high expansion cancelled Slip Double high expansion cancelled Validation Double high expansion cancelled Function Cancels expanded high if the following commands specify expanded high e Double high specifying command ESC SO e Set cancel the double high ESC h e Set cancel double wide high ESC i This command is equivalent to ESC h 0 Note The settings using this command are valid for all stations and modes STAR Line Mode Command Specifications 3 15 Rev
121. d4 d5 d6 d7 n2 n1 1 Defined Area Thermal Slip gt 33 lt n1 lt n2 lt 127 21h lt n1 lt n2 lt 7Fh m 0 128 00h 80h OS d1 to d7 lt 255 Validation 33 lt n1 lt n2 lt 127 21h lt n1 lt n2 lt 7Fh m 0 128 00h 80h O lt d1 to d7 lt 255 Initial Value Thermal Slip Ps Validation Doe Function lt Thermal gt Only registration is possible Registration data is printable after switching to slip or validation lt Slip gt lt Validation gt Registers download characters to the specified character code A maximum of 22 download characters can be registered for 7 x 9 and 5 x 9 fonts The range of the location to write download characters is specified by n1 and n2 When there is one character to register n1 n2 If one has been already registered to an address it is overwritten This command registers download characters independent to each font m indicates the relationship of the character pattern and the print head see figure below Definition data d1 to d7 set the bits that correspond to the dots to print to 1 and the bits that cor respond to the dots that are not printed to 0 Even if ESC command initialization is executed the registered download character is not cleared Registered data is shared by slip and validation Relationship of character pattern data and print head 1 When m 0 00h Upper Lower D8 D7 De D5 D4 D3 D2 D1 Pin No
122. dation Function CAN Name Cancel print data and initialize commands Code ASCII CAN Hexadecimal 18 Decimal 24 Defined Area Thermal Doe Slip Doe Validation o Initial Value Thermal o Slip o Validation o Function STAR LIne Mode Command Specifications Issues a short buzzer sound from the printer Execute this command after printing the unprinted data in the line buffer When the reception buffer and line buffer are cleared the set commands are initialized Rev 0 00 Immediately executed not when taking out from the reception buffer but when received from the host DIPSW re loading is not performed After execution thermal is selected The following shows the specifications that are not initialized by this command e Set print density e Set print speed e Two Color Printing Mode Setting e Printing color in 2 color printing mode e External device drive condition e Auto status valid invalid conditions 3 82 SQI Rev 0 00 ESC Name Command initialization Code ASCII ESC Hexadecimal 1B 40 Decimal 27 64 Defined Area Thermal o Slip o Validation o Initial Value Thermal Doe Slip Doe Validation Doe Function Initializes each command after printing data in the line buffer However printers with memory switch settings are initialized to the memory switch settings DIPSW re loading is not performed After execution thermal is selected lt Shared gt ANK characters Kanji
123. de TI Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line Page Mode Valid only in double density page mode For standard mode valid after switching to double densitymode line MOIE a ere ata arena Line Page mode set tings Independent Shared with slip Shared Shared Valid Valid STAR LIne Mode Command Specifications Valid Shared Valid Shared Valid Shared Valid Shared fa SU IF Command Execution Station Thermal Slip Validation Thermal Slip Rev 0 00 Validation Other Precautions Line Page Other Precautions Line Page Other Precautions ESC GS Shared Valid Shared Valid Shared ESC rE Independent Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for thermal _ Independent Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for thermal _ Independent Station selection command dependent Only valid for thermal _ Independent Station selection command dependent Only valid for thermal Invali
124. de Data received and dis Valid only Line Line Mode Data received and discarded up i to lt RS gt for unsup ported bar codes Page Mode Data received and dis _carded up to lt RS gt Cutter Control Independent Station selection command gepengen STAR Line Mode Command Specifications Invalid Three by carded ue to lt RS gt es ignored Invalid ree bytes ignored Type Command Execution Station Thermal Slip Validation Line Thermal Other Precautions Rev 0 00 Slip Validation Line Page Other Precautions Line Page Other Precautions External Device Drive BEL DC2 Shared or a rae N a ie pea sra Valid yig ee ara EI EPEE E en eels ae EAE A EP EETA cd Se ae Valid Shared Shared Valid Valid Shared a a eee bd Shared ies Sh Mere andiennieeeierno iis ATED E EEEE A ot Vali Sha Shar yga e P ere ee ee Vali Vali Shai Sha ga o amc i Status ESC ACK SOH ENQ EOT ETB ESC RSE Shared Shared Shared Shared Shared Valid ae sss Valid Valid a wae Valid Shared Valid Shared Valid Shared Valid E S E tous Valid Shared anne Vali Vali Shar Vali Shared Valid Shared Valid Shared RS ESC ae DC3 DC1 ESC GSr_ ESC ETB Shared Shared Shared Shared Shared
125. dn Sets cutter position at top of page e Raster command ESC r B Top of page when raster mode ends e Error cancel operations Sets error cancel operation end position at the top of the page lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 34 SQI Rev 0 00 VT Name Feed paper to vertical tab position Code ASCII VT Hexadecimal 0B Decimal 11 Defined Area Thermal Sr s Slip o Validation o Initial Value Thermal o Slip o Validation o Function lt Thermal gt Feeds paper to the next vertical tab position This command is ignored if there are no tabs set If a vertical tab is set and the current position is the same as the vertical tab position or if it is below that position it feeds paper to the top of the next page If data exists in the line buffer when feeing paper to the vertical tab position it executes the paper feed to the vertical tab position after printing that data However if moved to the vertical tab position by printing data remaining in the buffer the move to the vertical tab position is considered to have been executed so a move to the next vertical tab posi tion is not performed There is no initial value for the vertical tab lt Slip gt lt Validation gt One byte ignored STAR Line Mode Command Specifications 3 35 SQI Rev 0 00 ESC B n1 n2 nk NUL Name Set vertical tab
126. e Kanji character expansion See Relationship of Japanese Character Size Selection n State Transition 0 48 Sets double high amp wide double wide double high 16 x 16 Japanese characters to state D 1 49 Cancels specify Japanese character expansion and sets to two byte 16 x 16 dot Japanese characters single density Japanese characters become two pass characters to state A When page mode is selected only setting is valid Setting is valid after switching to line mode lt Relationship of Kanji character Size Selection gt Status A ESC x0 Status C Double High Kanji Two byte 16 x 16 Dot Kanji Single Density 2 pass Printing Double High Size 2 pass Printing ESC x 1 ESC w 0 ESC uO ESC u 1 ESC u0 ESC u 1 ESC w1 Status B ESC x 0 Status D gt Two byte 16 x 16 Dot Kanji Double High Double Wide Kanji Double Density 4 pass Printing ESC x 1 Double High Wide 2 pass Printing See 5 Appendix 5 2 Expansion Position for details on the differences of dot configurations of sin gle density and double density in two byte 16 x 16 dot Japanese characters This section use a Japanese character to illustrate the difference STAR Line Mode Command Specifications 3 81 SU QIF 3 3 16 Others RS Name Ring buzzer Code ASCII RS Hexadecimal 1E Decimal 30 Defined Area Thermal Doe Slip Validation Initial Value Thermal Doe Slip Pos Vali
127. e User Macro 2 None Convert Command Character Do not print Partial Cut Prior to Auto Logo Printing Invalid STAR Line Mode Command Specifications 3 125 Rev 0 00 SQI Rev 0 00 ESC GS 1n Name Set ON OFF for Auto Logo function Code ASCII ESC GS 1 n Hexadecimal 1b id 2f 31 n Decimal 27 29 47 49 n Defined Area Thermal OsSns2 Slip Doe Validation Doe Initial Value Thermal n 0 Slip fos Validation Doe Function lt Thermal gt Sets ON OFF for Auto Logo function This setting is registered to non volatile memory by the ESC GS W command When in the raster mode the Auto Logo function is ignored This command is ignored while Auto Logo is executing n Setting 0 Auto Logo Function OFF 1 Standard Auto Logo Function ON lt Operating Specifications gt 1 Auto Logo function starts up using the existing system cut command as a trigger 2 Execute printing if print data exists in the image buffer 3 Execute user macro 1 4 Auto Log Printing 5 Execute user macro 2 2 Simple Auto Logo Function ON lt Operating Specifications gt 1 Auto Logo function starts up using the existing system cut command as a trigger 2 Execute printing if print data exists in the image buffer 3 Execute center alignment 4 Print logo 2 2 color printing setting Logo 3 5 Paper is fed to cutting position then a partial cut is executed 6 Printing of logo 1 7 Recover position al
128. e Command Specifications 3 52 SQI Rev 0 00 ESC m n1 n2 d1 d2 dk Name 9 Dot bit image Code ASCII ESC m ni n2 di d2 dk Hexadecimal 1B 5E m ni n2 di d2 i dk Decimal 27 94 m ni n2 di d2 dk Defined Area Thermal Slip Osmsi 0 sms 1 Validation Osmsi 0 sms 1 Initial Value Thermal De Slip Doe Validation pi Function lt Thermal gt All data received and discarded lt Slip gt lt Validation gt This command prints bit images with only the data count determined by n1 and n2 at standard or double density Specify the horizontal print dot count row using n1 n2 x 256 dots m 0 Print standard density 9 dot bit images The maximum number of dots in the horizontal direction is the total number of dots em 1 Print double density 9 dot bit images The maximum number of dots in the horizontal direction is the total number of half dots Dots adjacent in the horizontal direction do not print When page mode is selected all data is received and discarded Note Data exceeding the maximum number of dots or the right margin is ignored e Total number of dots and total number of half dots follows the memory switch setting See the specifications manual e If m is outside of the definition data after n1 is processed as normal data e When printing of the bit image is ended the system returns to normal data processing The following drawing shows the relationship of the print head needle
129. e black inverted printing After switch to validation red black swithing function printing canceled Page mode Valid after switch to line EMMI r nns Page Mode Valid after switch toine mode Page mode Valid after switch to line mode Line spac ing Independent Station selec tion command Independent Station selec tion command dependent Independent Station selec tion command Independent Station selec tion command dependent Independent Station selec tion command dependent Independent Station selec tion command dependent Independent Station selec tion command dependent Va invalid Invalid id ne AO DEMOEINE ccd ctasiatenanesis sath tarclorennramavaiatounataltets dependent on ee Three bytes ignored Three bytes ignored Valid For each Line Page Se For each Line Page Valid For each Line Page sag For each Line Page Valid For each Line Page e For each Line Page Valid For each Line Page Line Page mode settings Independent Line Page mode settings Independent Line Page mode settings Independent Line Page mode settings Independent Line Page mode settings Independent i Line Page mode settings Independent Line Page mode settings Independent Valid For each Line Page For each Line Page Valid
130. e e e e d38 e e e e o o o d39 e d40 e o o o o d41 e e d42 e e o o o o d43 e d44 e o o o o d45 e e d46 e e o o o o d47 e e d48 e o o o o bit7 bit6 bits bit4 bit3 bit2 bit1 e Font data o Invalid data lt Slip gt lt Validation gt Only registration is possible bitO Registration data is printable after switching to thermal STAR Line Mode Command Specifications 3 43 bit7 bit6 bits bit4 bit3 bit2 bit1 bitO SCQF Rev 0 00 ESC amp c1c2n Name Delete 12 x 24 dot font download characters Code ASCII ESC amp c1 c2 n Hexadecimal 1B 26 c1 c2 n Decimal 27 38 i c2 n Defined Area Thermal c1 1 49 c2 0 48 32 lt n lt 127 Slip Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Deletes 12 x 24 dot font download characters registered to the nth address lt Slip gt lt Validation gt Deleting is possible STAR LIne Mode Command Specifications 3 44 SQI Rev 0 00 ESC amp NUL n1 n2 m d1 d2 d3 d4 d5 d6 d7 n2 n1 1 Name Register download characters Code ASCII ESC amp NUL ni n2 md1 d2 d3 d4 d5 d6 d7 n2 n1 1 Hexadecimal 1B 26 00 ni n2 md1 d2 d3 d4 d5 d6 d7 n2 n1 1 Decimal 27 38 O ni n2 md1 d2 d3
131. e feed Slip execute n 72 line feed one time Code ASCII ESC J n Hexadecimal 1B 4A n Decimal 27 74 n Defined Area Thermal 1s ns255 Slip 1sns255 Validation 1sns255 Initial Value Thermal Doe Slip Doe Validation Doe Function Execute paper feed If print data exists in the line buffer it prints that data This paper feed amount is unaffected even if there are vertical expanded characters in one line The single line feed amount setting value is not changed by this command lt Thermal gt Executes a n 4mm paper feed Using this command will intermittently feed paper therefore it is normally recommended that this command not be used Currently set line feed amount n 4 mm portion is not printed lt Slip gt lt Validation gt Executes a n 72 in paper feed STAR LIne Mode Command Specifications 3 28 SAIF ESCjn Name Reverse paper feed Code ASCII ESC j n Hexadecimal 1B 6A n Decimal 27 106 n Defined Area Thermal Slip Osns 255 Validation Osns255 Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Three bytes ignored lt Slip gt lt Validation gt ESC In Name Executes thermal n 8 mm line feed slip n 144 line feed one time Code ASCII ESC l n Hexadecimal 1B 49 n Decimal 27 73 n Defined Area Thermal Tsns255 Slip 1sns255 Validation 1sns255 Initial Value Thermal o Slip Doe Validation Function Executes paper feed lt Thermal gt Executes a n
132. e letters of the alphabet from A to Z These are the symbols most frequently used today in industry 1 Length of characters in each mode Items Mode 1 Mode2 Mode3 Mode 4 Mode 5 Mode 6 Mode 7 Mode 8 Mode 9 Narrow Element 2 Dots 3 Dots 4 Dots 2 Dots 3 Dots 4 Dots 2 Dots 3 Dots 4 Dots Width Wide Element Width 6 Dots 9 Dots 12 Dots 5 Dots 8 Dots 10 Dots 4 Dots 6 Dots 8 Dots Ratio 13 13 13 1 25 1 2 7 1 2 5 1 2 1 2 1 2 Character Spacing 2 Dots 3 Dots 4 Dots 2 Dots 3 Dots 4 Dots 2 Dots 3 Dots 4 Dots Length of 1 Character 4mm 6mm 8mm 3 625mm 5 625mm 7 25mm 3 25mm 4 875mm 6 5mm The length of 1 character includes the character spacing 2 Regulations The start and stop bar code in Code 39 are automatically inserted 5 1 2 Interleaved 2 of 5 Interleaved 2 of 5 represents numbers 0 to 9 Higher density of characters is possible and with JIS and EAN and priting to cardboard for distribution has been stan dardized 1 Narrow element width and length of symbols per 2 characters Items Mode 1 Mode 2 Mode 3 Mode4 Mode5 Mode6 Mode7 Mode8 Mode 9 Narrow Element Width 2 Dots 4 Dots 6 Dots 2 Dots 4 Dots 6 Dots 2 Dots 3 Dots 4 Dots Wide Element Width 5 Dots 10 Dots 15 Dots 4 Dots 8 Dots 12 Dots 6 Dots 9 Dots 12 Dots Ratio 1 2 5 1 2 5 1 2 5 1 2 1 2 1 2 1 3 1 3 1 3 Length of 1 Character 4mm 8mm 12mm 3 5mm 7mm 10 5mm 4 5mm 6 75mm 9mm
133. ec i Detection tion command dependent Slip Independent Invalid Three bytes ignored i Valid Function Station selec i Shared tion command dependent FF Independent Ignored One byte ignored i Line Mode Valid Line Mode Page Mode Station selec One byte ignored Page only One byte ignored tion command dependent Staion ESC A Independent Valid Page Mode Valid Page Mode Switch Station selec only Line Six bytes ignored only Line Six bytes ignored tion command dependent Presenter ESC SYNO Shared Invalid Four bytes ignored Invalid Four bytes ignored Invalid Four bytes ignored ESC SYN 3 Shared Invalid Four bytes ignored Invalid Four bytes ignored Invalid Four bytes ignored essa e e aa age ag pies ignored apa Eurove moed aee Edir bve ee ts ESC FSM Independent Invalid Five bytes ignored Valid Page Mode Invalid Five bytes ignored Station selec Five bytes ignored tion command dependent STAR LIne Mode Command Specifications 7 9 EAI ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO LTD 536 Nanatsushinya Shimizu ku Shizuoka 424 0066 Japan Tel int 81 54 347 0112 Fax int 81 54 347 0709 Please access the following URL http www star m jp eng di dl02 htm for the latest revision of the manual OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA INC 1150 King Georges Post Road Edison NJ 08837 3729 U S A Tel
134. ecimal 27 30 76 m Defined Area Thermal Osms3 48sms51 0 lt m lt 3 m 255 Slip Osms3 48smS51 0 lt m lt 3 m 255 Validation Osms3 48smS51 0 lt m lt 3 m 255 Initial Value Thermal o Slip Doe Validation Doe Function Controls logos specified by the parameter m After execution resets the printer m Print Mode m Logo Control Mode 0 48 Normal mode batch printing 1 49 Horizontal double size mode batch printing 2 50 Vertical double size mode batch printing 3 51 Double high wide mode batch printing 255 Logo batch delete e If the parameter is within the defined region execute this command after printing the unprinted data in the line buffer Unprinted data is printed regardless of whether the specified logo was registered by n e Form feed obeys the vertical print size of the logo e Print modes excluding upside down printing enhanced double underline character size black white inverted and 90 right rotation are unaffected by logos e Prints logo number as shown below in the line above each logo print This line is printed with ANK characters so currently set adornment is applied Print Ex LOGO No 1 Each logo number is printed at the 1 position e If the logo horizontal print size exceeds the horizontal print region the portion exceeding the area is not printed e This test print is affected by the following command settings e Left margin
135. end an LF to the print data just before this command lt Slip gt lt Validation gt Rev 0 00 When station is switched conditions such as data in the page the page print region and the printing direction are all initialized Command is ignored when page mode is selected STAR LIne Mode Command Specifications 3 158 SQI Rev 0 00 3 16 Presenter Related Command Details The following commands control the presenter functions The following commands are effective only on models equipped with a presenter ESC SYN 0n Name Execute presenter paper recovery Code ASCII ESC SYN 0 n Hexadecimal 1B 16 30 n Decimal 27 22 48 n Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Doe Slip o Validation o Function Four bytes ignored ESC SYN 1n Name Set presenter paper automatic recovery function and automatic recovery time Code ASCII ESC SYN 1 n Hexadecimal 1B 16 31 n Decimal 27 22 49 n Defined Area Thermal Doe Slip Doe Validation Initial Value Thermal Doe Slip Doe Validation Function Four bytes ignored ESC SYN 3n Name Acquire presenter paper counter Code ASCII ESC SYN 3 n Hexadecimal 1B 16 33 n Decimal 27 22 51 n Defined Area Thermal 2 Slip o Validation o Initial Value Thermal o Slip Doe Validation Doe Function Four bytes ignored STAR Line Mode Command Specifications 3 159 SQI Rev 0 00 ESC SYN 4n Name Initialize presenter paper co
136. ent codes are discarded Ex If processing the data string of lt 30 gt H lt 1B gt H lt 22 gt H lt 31 gt H lt 32 gt H the printer will read and discard lt 1B gt H lt 22 gt H as an undefined command 3 Settings outside of the defined area Processing values outside of the defined area in commands accompanying arguments those commands are ignored and the preset values are unchanged Ex If processing the data string of lt 1B gt H lt 52 gt H lt 15 gt H the printer will discard the data string of lt 1B gt H lt 52 gt H lt 15 gt H because although lt 1B gt H lt 52 gt H is defined as a commands ESC R the argument lt 15 gt H is outside of the definition Therefore the international character set that is already set experiences no change STAR LIne Mode Command Specifications 3 2 SAIF 3 3 Standard Command Details 3 3 1 Font style and character set ESC RSF n Name Select font Code ASCII ESC RS F n Hexadecimal 1B 1E 46 n Decimal 27 30 70 n Defined Area Thermal Osns1 n 16 Slip Validation Initial Value Thermal n 0 Slip Validation Function lt Thermal gt Select font n Font 0 Font A 12 x 24 dots Font B 9 x 24 dots 16 OCR B 16 x 24 dots When OCR B font is selected the following functions are invalid e Code Pages e Blank Code Pages e International Characters e Slashed Zero Rev 0 00 When using the OCR B font to read characters using a scanner can
137. epeat buzzer drive with n Buzzer cannot ring while printer is printing This command is prohibited for use for anything other than ringing the buzzer When this command is used for the drawer drive on models equipped with an external device termi nal it will be damaged so it is absolutely prohibited The buzzer can be stopped by pressing the FEED switch or the RELEASE switch while the buzzer is ringing or opening the receipt cover or the slip cover It is necessary to set the conditions prior to entering raster mode using the external buzzer drive pulse conditions command ESC GS EM DC1 m n1 n2 n is a decimal description Ex max 255 digits using ASCII characters ON Drive Pulse OFF SARs O Z ce Fea S ena Sees Print Operation Printing Paper Feed Prohibited lt Slip gt lt Validation gt Use prohibited STAR LIne Mode Command Specifications Note If the off time is set to O zero it is possible to ring the buzzer continuously for the amount of n1 For example if on 5 seconds off 0 and n1 20 times the buzzer will ring for 100 seconds 3 104 SAIF Rev 0 00 3 5 Black Mark Related Command Details The following commands control top of form functions using black mark paper The following commands are effective only when black mark is set to be effective ESC dn Name Auto cutter Code ASCII ESC d Hexadecimal 1B 64 Decimal 27 100 Defined Area Thermal Osns3 48
138. ependen Station selecti command sasn GEpendent asii Independen Station selecti command aaa dependent independen Station selecti command Rev 0 00 Invalid Invalid 2 One byte ignored er aaa ignored Valia n RE ATEA For each Line Page Valid For each Line Page For each Line Page Valid For each Line Page f One byte ignored a a me pa a crete For each Line Page eggja a iaae For each Line Page For each Line Page Valid For each Line Page Invalid For each Line Page Valid For each Line Page One byte ignored a oo oom For each Line Page For each Line Page Page Control EF Line Mode nen Station selection command dependen Thdepondene ko Station selection command Valid Invalid yalia One byte ignored one byte ignored Invalid Invalid One byte ignored One byte ignored Horizontal Direction Position ESC GSA ESC GSR dependen Independent Station selection command dependen independent Station selection command dependent Independent Station selection command dependent fo ndependen Station selection command Four bytes ignored Valid For each Line Page Valid For each Line Page For each Line Page n ae Four bytes ignored Valid For each Line Page Valid For each Line Page Valid Fo
139. er a bar code can be printed based on the settings of 1 and 2 Precautions When Using the Commands e For 1 and 2 the setting values are retained if the following operations are not applied e New setting command is sent e Initialize commands are sent lt ESC gt lt CAN gt e Power is turned off e With regard to 3 and 4 send as needed e Printing e When printing the horizontal tabs absolute position specification relative position specification and position movement using position alignment are valid e Upside down printing and 2 color printing are possible e Bar codes to be printed should always be confirmed through an actual printout Lastly is a command transmission example 1 Bar code type setting lt ESC gt lt GS gt x S 0 0 2 3 Sets bar code size to USE_LIMITS 2 3 lt ESC gt lt GS gt x F 1 3 Sets ECC level to 3 lt ESC gt lt GS gt x S 2 3 Sets module X direction size to 3 dots lt ESC gt lt GS gt x S 3 3 Sets module aspect ratio to 3 2 Bar code data setting lt ESC gt lt GS gt x D 10 0 0123456789 Sets bar code data 3 Print bar code To confirm printability using the current settings confirm the bar code expansion information lt ESC gt lt GS gt x P Confirms bar code expansion information lt ESC gt lt GS gt x P Prints STAR LIne Mode Command Spe
140. er has no more space available is called line buffer full When the buffer is full in line mode data in the line buffer is printed and a line feed is performed when new print data is processed This is the same as a Line Feed When the line buffer is full in the page mode the printer move the print position to the head of the next line then starts with the new print data e Top of line The top of line is a state that satisfies the following conditions A There is currently no print data in the line buffer B The position is not specified with the horizontal direction position command e Printable region This is the maximum printable area with the printer s specifications e Print region This is the printing area specified by a command Print region lt printable region e Print data expansion position Bar Code Height h dot Bit image Bar Code 20 dot g Expanded Base Line STAR Line Mode Command Specifications 3 1 St QIr Rev 0 00 3 2 Exception processing 1 Undefined codes Codes from lt 00 gt H to lt 1F gt H are targeted When codes not defined as commands in this region are received they are discarded Ex If processing the data string of lt 30 gt H lt 31 gt H lt 03 gt H lt 32 gt H lt 0A gt H lt 33 gt H the printer will discard lt O3 gt H as an undefined code 2 Undefined commands When data continuing the codes of ESC FS GS DLE are codes not defined as commands ESC FS GS and subse qu
141. ermal o Slip o Validation Doe Function lt Thermal gt Two bytes ignored lt Slip gt lt Validation gt Select line mode Default When this command is executed in page mode the printer returns to line mode without printing When returning to line mode all conditions such as print data in the print region region coordinate information and rotation direction are cleared STAR Line Mode Command Specifications 3 155 SEQ Rev 0 00 ESC xL xH yL yH dxL dxH dyL dyH Name Set page mode print region Code ASCII ESC Hexadecimal Decimal Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function lt Thermal gt 1B 2A xL xH 27 42 xL xH yL yH dxL dxH dyL dyH xL xH yL yH dxL dxH dyL dyH yL yH dxL dxH dyL dyH 0 lt xL lt 255 O lt xH lt 2 O lt s yL lt 255 0 lt yH lt 5 O lt dxL lt 255 0 lt dxH lt 2 However 0 dxL dxH x 256 1 lt dx lt 540 half dots 0 lt dyL lt 255 0 lt dyH lt 5 However 0 dyL dyH x 256 1 lt dy lt 1408 half dots O lt xL lt 255 0 lt xH lt 2 O lt yL lt 255 0 lt yH lt 5 O lt dxL lt 255 0 lt dxH lt 2 However 0 dxL dxH x 256 1 lt dx lt 540 half dots 0 lt dyL lt 255 0 lt dyH lt 5 However 0 dyL dyH x 256 1 lt dy lt 1408 half dots xL 0 xH 0 yL 0 yH 0 dxL 28 dxH 2 dyL 128 dyH 5 X 0 Y 0 dx 540 dy 1408 xL 0 xH 0 yL 0 yH 0 dxL 28
142. es the mark format mark height mark line feed amount mark color and mark horizontal width registered in non volatile memory After initialization resets the printer Mark Format Initial Value e Mark Height 016 16 dots e Mark Line Feed Amount 032 32 dots e Mark Color 0 White All Mark Numbers e Mark Horizontal Width 080 80 dots All Mark Numbers STAR Line Mode Command Specifications 3 121 SEAI Rev 0 00 3 8 AUTO LOGO Function Command Details If the portion that was changed was only the product name in a system like the one below already operating this command functions to print a logo like the one below by only changing the product name This function has two oper ating modes 1 Standard Auto Logo Function Preset the Auto Logo function and execute the following operations with the printing cut command under the existing system as a trigger 1 Auto Logo function starts up using the existing system cut command as a trigger 2 Execute printing if print data exists in the image buffer 3 Execute user macro 1 4 Auto Logo Printing 5 Execute user macro 2 By Auto Logo embedding a preset command character and the logo number 2 to print in the current print data logo 2 is printed by the 4 Auto Logo Print In other words If CHEESE BURGER 2 is registered as a product a coupon for logo 2 will automatically printed for the purchaser of the cheese burger
143. g g g g Da43 g g g g g g g Da44 g g g g Da45 g g g g g g g e Da46 g g e e Da47 g g e g e e e Da48 g e e e Data Region O Zero Data lt Slip gt lt Validation gt Only registration is possible Registration data is printable after switching to thermal STAR Line Mode Command Specifications 3 5 SU IF Rev 0 00 ESC Rn Name Specify international character set Code ASCII ESC R n Hexadecimal 1B 52 n Decimal 27 82 n Defined Area Thermal 0 lt n lt 14 n 64 48 lt N lt 57 0s ns 9 65 lt n lt 69 A lt n lt E Slip 0 lt n lt 14 n 64 48 lt N lt 57 0 lt n lt 9 65 lt n lt 69 A lt n lt E Validation 0 lt n lt 14 n 64 48 lt N lt 57 0 lt n lt 9 65 lt n lt 69 A lt n lt E Initial Value Thermal Memory switch setting When installed with Japanese language characters and DBCS setting Fixed at n 8 Slip Memory switch setting When installed with Japanese language characters and DBCS setting Fixed at n 8 Validation Memory switch setting When installed with Japanese language characters and DBCS setting Fixed at n 8 Function Specifies international characters See each printer s product specifications manual for details on the memory sw
144. g the area is not printed Logos are printed according to the following command settings e Left margin ESC In e Right margin ESC Q n e Position alignment ESC GS an e Absolute position movement ESC GS A n1 n2 e Relative position movement ESC GS R n1 n2 e Horizontal tab HT e Upside down printing SI lt When using the 2 color print mode gt When the logo register number n is odd Register number n is printed in black register number n 1 is printed in red and overlapped The command is ignored when the capacity of the register number n and the capacity of the register number n 1 are different The command is ignored when the register number n 255 is specified When the logo register number n is even Register number n is printed in black register number n 1 is printed in red and overlapped The command is ignored when the capacity of the register number n and the capacity of the register number n 1 are different The command is ignored when the register number n 255 is specified STAR Line Mode Command Specifications 3 117 SEAI Rev 0 00 3 7 Mark Command Details This command is specialized to mark sheet printing for lotteries This command can print lines Print Sample lt Print Sample gt LOTTERY 10 01 05 32 85 86 50 70 77 08 50 21 42 46 40 12 02 06 78 gt Mark Printing a Sa 2003 04 08 STAR Micronics co Itd No 0304081254896 Command Transmission Example Mark Format Mark Height
145. ggers e Cutter Command gt ESC dn e FF Command FF BM Detection Command ESCdn FF e Print Startup Command ESC GS gOmn e Raster Mode When executing FF STAR Line Mode Command Specifications 3 149 SAQIF Rev 0 00 Example of Use Register logo to use as the water mark as logo 1 1 2 Water mark function is valid ESC GS h 1 k m n k 0x02 m 0x01 n 0x01 3 Transmit print data Print data print length is within the length of the image buffer 4 Trigger command transmission ESC d n cutter command is water mark printing trigger lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal Note When using this function the data volume for one page should be within the printer s buffer length STAR LIne Mode Command Specifications 3 150 SAIF 3 13 Slip Validation Function Command Details ESC Si n Name Set slip sensor Code ASCII ESC SI n Hexadecimal 1B OF Decimal 27 15 Defined Area Thermal o Slip Doe Validation Doe Initial Value Thermal Doe Slip 2 Validation o Function Three bytes ignored ESC FF n Name Slip Validation Function Code ASCII ESC FF n Hexadecimal 1B 0C Decimal 27 12 Defined Area Thermal Slip 2sns5 50 lt n lt 53 2 sns Validation 2 lt n lt 5 50 lt n lt 53 2 sns Initial Value Thermal Doe Slip Doe Validation Function lt Thermal gt Three bytes ignored Rev 0
146. hancing are cancelled if there is no com mand to set them for example the ESC 1 specification for underlines STAR Line Mode Command Specifications 3 21 SEAI Rev 0 00 Precautions for selecting lt Option 1 gt 1 Prints white black inverted characters using 5 x 9 fonts regardless of the current font size setting 2 Inserts a one dot string of black printing to the head of the white black inverted characters 3 Printing data created on a conventional red black printer using 1 and 2 above there are cases in which the print ing position will shift to the right and a line of printable characters reduced 4 Download registered characters defined with 5 x 9 fonts are printed regardless of the current font setting 7 x 9 5 x 9 5 Must not set ANK default dot count Narrow with the memory switch This will cause a white line to appear between characters Precautions for selecting lt Option 2 gt and lt Option 3 gt 1 Do not apply an upper line or an underline when rotating 90 or 270 degrees e When m 83 Red black adornment of ANK space characters 20H m n Red adornment of ANK space characters 20H 83 0 Adorn 83 1 Do not adorn This parameter specifies whether to adorn red black for ANK space characters in red printing mode black white in verted The ANK space characters are limited to ASCII code 20H in this setting In the character code table if 7FHex is a space character 7FHex is
147. haracter ESC i Set cancel the double wide high expansion settings ESC W Specify cancel expanded wide i ESC h Specify cancel expanded high i SO Set double wide printing _ DC4 Cancel expanded wide _ ESC SO Set double high o ESC DC4 Cancel expanded high _ Print modes ESCE Select emphasized printing lt ESC F Cancel emphasized printing _ ESC Select cancel underline mode e ESC Select cancel upperline mode i ESC 4 Selects white black inversion Select white black inversion red _black colors substitute function ESC 5 Cancel white black inversion Cancel white black inversion red _black colors substitute function ESC GS 4 Select red black substitute function _ ESC 4 5 setting Sl Select upside down printing _ DC2 Cancel upside down printing lt ESC RS i z Specify cancel character rotated _mode Line spacing LF Line feed lt _ CR Line feed lt ESC a Feed paper n lines i ESC z Select line feed amount _ ESC 0 Specify line feed to 3 mm Specify line feed amount of 1 8 inch ESC 1 Specify line feed to 3 mm Specify line feed amount of 7 72 inch ESC J n 4 mm line feed _n 72 inch paper feed ESC j _ Reverse paper feed ESC n 8mm line feed _ 1 144 inch paper feed ESCA Specify line feed amount of 3 Define n 72 inch pitch line feed mm 4mm ESC 2 Specify line feed amount Defined by ESC An ESC 3 _ Specify n 216 inch paper feed ESC y 2 Specify n 144 inch paper feed
148. has been received See Appendix 2 Automatic Status for details regarding ASB status ENQ Name Real time printer status 1 Code ASCII ENQ Hexadecimal 05 Decimal 5 Defined Area Thermal Doe Slip Validation o Initial Value Thermal o Slip Doe Validation a Function This command is effective only when using an interface capable of bi directional data communications When this command is received the printer sends one byte of ENQ status to the host in real time Immediately executed not when taking out from the reception buffer but when received from the host Bi directional parallel interfaces enter a data present state See Appendix ENQ Command Status for details regarding status When this command is sent once to the printer do not send the next ENQ command until the ENQ status has been received This command is not used when auto status is valid See Appendix 2 ENQ Command Status for details regarding status STAR LIne Mode Command Specifications 3 70 SQI Rev 0 00 EOT Name Code Real time printer status 2 ASCII EOT Hexadecimal 04 Decimal 4 Defined Area Thermal Doaa Slip zo Validation Doe Initial Value Thermal Doe Function ETB Name Code Slip Doe Validation Doe This command is effective only when using an interface capable of bi directional data communications When this command is received the printer sends one byte of EOT status to the host in real t
149. he calculated value has priority e UPC A Data is in 11 or 12 digits The command is ignored for others The check digit uses a modulus weight of 10 3 and is automatically applied When the calculated value and the numerical value of the 12 digit differ the calculated value has priority e UPC A Data is in 11 or 12 digits The command is ignored for others The check digit uses a modulus weight of 10 3 and is automatically applied When the calculated value and the numerical value of the 12 digit differ the calculated value has priority Data conversion to rectangles is automatic Data that cannot be shortened is processed as invalid data STAR LIne Mode Command Specifications 5 2 SCQF Rev 0 00 5 1 4 Code 128 These are bar code symbols that can print ASCII 128 characters For that reason use thereof is increasing 1 Each module and module width Items Mode 1 Mode 2 Mode 3 Module Width 2 Dots 3 Dots 4 Dots Length of 1 Character 2 75mm 4 125mm 5 5mm Start and stob bars not included 2 Regulations When using LF with the command control codes are not sent by the host PC so the control codes are sent as data as shown below e When sending the following data it is represented by a 2 character set 25H represented by 0 25H 30H Control codes 00H to 1FH represented by 40H to 5FH applied behind Control code 7FH represented by 5 25H 35H Function codes represent 1 to
150. he settings using this command are valid for all stations and modes STAR LIne Mode Command Specifications 3 18 SQI Rev 0 00 ESC _n Name Specify cancel upperline Code ASCII ESC _ n Hexadecimal 1B 5F n Decimal 27 95 n Defined Area Thermal n 0 1 48 49 Slip n 0 1 48 49 Validation n 0 1 48 49 Initial Value Thermal n 0 Upperline cancelled Slip n 0 Upperline cancelled Validation n 0 Upperline cancelled Function Specifies cancels upperline according to n value n Upperline 0 48 Cancels upperline 1 49 Specifies upperline Upperlines are not applied to horizontal tabs and to specified horizontal direction positions This command is valid for ANK characters and Japanese characters and is invalid for IBM blocks Upperlines are valid for white black inversion lt Thermal gt Upperlines are composed of 2 dot lines When character expansion is specified upperlines are also expanded when in double high expan sion upperlines are composed of four dots lt Slip gt lt Validation gt Upperlines are applied to the 1 dot of the character When double wide expanded characters have been specified the upperline is also expanded but if double tall expanded characters have been selected the upperline does not expand in the vertical direction It remains a one dot line Note The settings using this command are valid for all stations and modes STAR Line Mode Command Specifications 3 19
151. hen cancelled when rotating When in Kanji character mode rotation is effective for both ANK characters and Japanese charac ters Kanji character spacing is always applied with the two byte Kanji character spacing value In standard specifications rotation of IBM block is changed to vertical 8 dot fonts The following are precautions for 7 x 9 font character font specification e Characters are printed with 5 x 9 fonts 2P 1 e Download characters registered with 5 x 9 fonts are printed e When rotation is cancelled the characters return to 7 x 9 fonts When there is not 5 x 9 specifica tion while rotation is specified When page mode is selected only setting is valid Setting is valid after switching to line mode Command Specifications 3 24 SAIF 3 3 4 Line Spacing LF Name Line feed Code ASCII LF Hexadecimal OA Decimal 10 Defined Area Thermal Slip Validation Initial Value Thermal Memory switch setting Slip 1 6 inch line feed Validation 1 6 inch line feed Function Feeds the currently specified amount of paper If print data exists in the line buffer it prints that data lt Thermal gt Initial value of line feed amount is set by the memory switch CR Name Carriage return Print line feed Code ASCII CR Hexadecimal oD Decimal Defined Area Thermal Slip Validation Initial Value Thermal Memory switch setting Slip Memory switch setting Validation Memory switch setting
152. hermal GS A ni n2 1D 41 mM n2 29 65 ni n2 0 lt n1 lt 255 0 lt n2 lt 255 0 lt n1 lt 255 0 lt n2 lt 255 0 lt n1 lt 255 0 lt n2 lt 255 Moves the printing position from the left margin to the n1 n2 x 256 dot position This command is ignored if the print region is exceeded The right margin is also the reference for upside down printing Slip Validation Initial Value Thermal Slip Validation Function lt Thermal gt The left margin is also the reference for upside down printing lt Slip gt lt Validation gt The right margin is also the reference for upside down printing STAR LIne Mode Command Specifications 3 40 Rev 0 00 SQI Rev 0 00 ESC GS R n1 n2 Name Move relative position Code ASCII ESC GS R ont n2 Hexadecimal 1B 1D 52 ni n2 Decimal 27 29 82 ni n2 Defined Area Thermal 0x lt n1 lt 255 0 lt n2 lt 255 Slip 0 lt n1 lt 255 0 lt n2 lt 255 Validation 0 lt n1 lt 255 0 lt n2 lt 255 Initial Value Thermal Doe Slip Doe Validation Function Moves the printing position from the current position to the n1 n2 x 256 dot position This command is ignored if the print region is exceeded When n1 n2 x 256 2 32768 it moves 65536 n1 n2 x 256 dots in the left direction When n1 n2 x 256 lt 32768 it moves n1 n2 x 256 dots in the right direction The right margin is also the reference for upside down printing l
153. hermal Osns8 Slip Doe Validation Initial Value Thermal gt n 1 Slip De Validation Function lt Thermal gt Parameter details ens ECC level 0 to 8 lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 135 SCQF ESC GSxS2n Name Set PDF417 module X direction size Code ASCII ESC GS x S 2 n Hexadecimal 1B 1D 78 53 32 n Decimal 27 29 120 83 50 n Defined Area Thermal 1sn lt 10 Slip o Validation Doe Initial Value Thermal n 2 Slip Doe Validation Doe Function lt Thermal gt Parameter details en Sets the module X direction size x dim units dots Specification using this command is recommended to be 2 lt n To use with n 1 confirm by actual use lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal ESC GSxS3n Name Set PDF417 module aspect ratio Code ASCII ESC GS x S 3 n Hexadecimal 1B 1D 78 53 33 n Decimal Defined Area Initial Value Function lt Thermal gt 27 29 120 83 51 n Thermal dsns10 Slip Doe Validation Doe Thermal n 3 Slip Doe Validation Doe Parameter details en Sets module aspect ratio asp The module Y direction size is set to x dim asp by this command Specification using this command is recommended to be 2 lt n To use with n 1 confirm by actual use lt Slip gt lt Valida
154. hermal Doe Slip Doe Validation De Function A blank code page indicates a character code table where character codes from 80h to FFh are all blank A blank code page can be selected using the ESC GS tn command n 255 The printer is reset when writing with this command is completed Font A Data Format Vertical 24 dots x Horizontal 12 dots e Data region o Zero data Font A Data Format Vertical 24 dot x Horizontal 12 dot MSB LSB MSB LSB Dat g g e g e g g g Da2 g g g g Da3 g g e g e e e Da4 e g e e Da5 g g e g e g g g Da6 g g g g Da7 g g e g e e g Dag e g e e Dag g g g g g g g g Da10 g g g g DaT1 g g g g g g g e DatZ e g e g DaT3 g g g g g g g g Da14 g g g e Dats g g g g g g g e DaT6 g g g g Dat7 g g g g g g g g DaT8 g g g g DaT9 g g g g g g g e Da20 g g e g Da21 g g g g g g g g Dazz g g g e Da23 g g e g e g g g Da24 g g g g Da25 g g e g e e e g Da26 g e e e Da27 g g e g e g g g Da28 g e g g Da29 g g e g e e g Da30 g e e e o Da31 g g e g e g g g Da32 e g g g Da33 g g g g g g g e Da34 g g e g Da35 g g g g g g g g Da36 g g g e Da37 g g g g g g g e Da38 g g e g Da3g g g g g g g g g Da40 g g g G Da41 g g g g g g g e Da4Z
155. idation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Enters raster mode This command is ignored when in the raster mode The following shows the details regard processing of this command 1 Reception of this command 2 All data remaining in the reception buffer and image buffer is printed equivalent to the FF command 3 Initialize raster mode 4 Enter raster mode When entering raster mode raster mode is initialized The following shows the contents of the initialization e Raster page length setting ESC r P n NUL e Raster print quality setting ESC Q n NUL e Raster left margin setting ESC r m I n NUL e Raster right margin setting ESC rm rn NUL e Raster EOT mode setting ESC FF EOT e Raster FF mode setting ESC FF NUL e Clear raster image buffer Not initialized when raster mode is entered only when using raster data print color settings lt Slip gt lt Validation gt Use prohibited STAR Line Mode Command Specifications 3 91 SEQ ESC rB Name Quit raster mode Code ASCII ESC r B Hexadecimal 1B 2A 72 42 Decimal 27 42 114 66 Defined Area Thermal o Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Quits raster mode Rev 0 00 When raster mode is quit and raster data remains in the raster mode image buffer the raster mode will be quit after executing raster EOT mode
156. ifies 4x wide expansion 4 52 Specifies 5x wide expansion 5 53 Specifies 6x wide expansion lt Slip gt lt Validation gt n Function 0 48 Cancels double wide expanded printing 1sns549sns53 Specifies double wide expanded printing When slip or validation is selected and more than double is specified printing is doubled for every setting Setting more than triple is valid after switching to thermal Note The settings using this command are valid for all stations and modes STAR LIne Mode Command Specifications 3 12 SQI Rev 0 00 ESC hn Name Specify cancel expanded high Code ASCII ESC h n Hexadecimal 1B 68 n Decimal 27 104 n Defined Area Thermal Osns5 48 lt n lt 53 0 lt n lt 5 Slip OSns5 48snSs53 0 lt n lt 5 Validation OSns5 48snSs53 0 lt n lt 5 Initial Value Thermal n 0 Double high cancelled Slip n 0 Double high cancelled Validation n 0 Double high cancelled Function Specifies cancels double high for ANK characters and Kanji characters When tall expanded characters and normal printing are mixed in the same line they are aligned at the bottom lt Thermal gt n Expanded high 0 48 Cancel expanded high 1 49 Specifies 2x expansion 2 50 Specifies 3x expansion 3 51 Specifies 4x expansion 4 52 Specifies 5x expansion 5 53 Specifies 6x expansion lt Slip gt lt Validation gt n Functio
157. ignment setting Note When this is set user macros and command characters are invalid When this is set the command character is printed as The following shows the command that is the trigger for the Auto Logo function If the standard Auto Logo function is turned ON by n 1 the trigger command below functions only as a trigger so the cutting operation is not executed Therefore it is necessary to register an arbi trary cutting command in user macro 2 If the simple Auto Logo function is turned ON by n 2 the cutting command is executed and is the trigger for the simple Auto Logo function ESC dn Cut Command FF Allocated to cut function lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 126 SQI Rev 0 00 ESC GS 2n Name Set command characters Code ASCII ESC GS 3 n Hexadecimal 1b 1d 2f 32 n Decimal 27 29 47 50 n Defined Area Thermal 32sns127 n 0 Slip o Validation o Initial Value Thermal n 0 Slip Doe Validation Doe Function lt Thermal gt Sets command character for the Auto Logo function This setting is registered to non volatile memory by the ESC GS W command This command is ignored while Auto Logo is executing n Setting 32 to 127 Command Character 0 No set command characters Command characters are characters that are commands fo
158. image buffer length If print data is larger than the image buffer length the 180 inversion function is ignored Also when starting printing using anything other than the 180 inversion trigger the 180 inversion function is ignored This setting is not cleared by the ESC CAN commands 180 Inversion Triggers e Cutter Command ESC dn e FF Command FF e BM Detection Command ESC dn FF e Print Startup Command ESC GS gOmn e Raster Mode When executing FF Example of Use 1 180 Inversion Function Valid ESC GS h 0 km n k 0x01 m 0x00 n 0x00 2 Transmit print data Print data print length is within the length of the image buffer 3 Trigger command transmission ESC d n cutter command is 180 inversion trigger lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal Note When using this function the data volume for one page should be within the printer s buffer length STAR LIne Mode Command Specifications 3 148 HS ik SAI Rev 0 00 ESC GShikmn Name Water mark function Code ASCII ESC GS h 1 k m n Hexadecimal 1B 1D 68 31 k m n Decimal 27 29 104 49 k m n Defined Area Thermal Osks2 OSms2 1 lt nz lt 255 Slip o Validation Initial Value Thermal Doe Slip Doe Validation Function lt Thermal gt Sets to make water mark function valid invalid k Water Mark Function 0 Invalid 1 Valid Prints
159. imal 1B 1E 63 n Decimal 27 30 99 n Defined Area Thermal Osnsi1 48sns49 O sns 1 Slip Doe Validation Doe Initial Value Thermal n 0 48 When in 2 color print mode Slip Doe Validation Doe Function lt Thermal gt Specifies print color in 2 color print mode This command is ignored when not in the 2 color print mode Specifies black for the print color when in 2 color print mode The specification of this command is cleared only when the printer is reset The specification of this command is not cleared by ESC CAN However print color is initialized to black by the ESC and CAN only when in the compatible 2 color print mode n Specifies 2 color print mode color 0 48 Black 1 49 Red lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 110 SAIF Rev 0 00 ESC RSC n Name Select cancel 2 color print mode Code ASCII ESC RS C n Hexadecimal 1B 1E 43 n Decimal 27 30 67 n Defined Area Thermal 0 lt n lt 2 48 lt n lt 50 0 lt n lt 2 n 16 n 32 Slip Validation Initial Value Thermal n 0 48 Slip Validation Function lt Thermal gt n Print Mode Specification 0 48 Single Color Mode 1 49 2 color Mode 16 Low power Consumption Mode 32 Double Resolution Mode This command is ignored when the low power consumption mode is selected by
160. ime Immediately executed not when taking out from the reception buffer but when received from the host Bi directional parallel interfaces enter a data present state See Appendix EOT Command Status for details regarding status When this command is sent once to the printer do not send the next EOT command until the EOT status has been received This command is not used when auto status is valid See Appendix 2 EOT Command Status for details regarding status Update of ETB status of ASB ASCII ETB Hexadecimal 17 Decimal 23 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Doe Function Slip Doe Validation Doe This command is effective only when using an interface capable of bi directional data communications This command waits until all printing is completed the print motor is stopped and after printing is completed the auto status printer status 1 1 ETB command becomes 1 ETB execution complet ed and the ETB counter is updated incremented Note that when executing this command and print data remains the line buffer this command is ex ecuted after printing the remaining data The hose checks that this bit has changed to 1 thereby making it possible to ascertain that the printing of the sent data is completed This ETB status bit is cleared to 0 when returned to host Also ETB is appended to the end of 1 data block and several blocks are sent at once By gett
161. in the user macros is prohibited lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 129 SCQF Rev 0 00 ESC GS 5n Name Set command character switching method Code ASCII ESC GS 5 on Hexadecimal 1b id 2f 35 n Decimal 27 29 47 53 n Defined Area Thermal Osns1 Slip Doe Validation Doe Initial Value Thermal n 0 Slip Doe Validation its Function lt Thermal gt Sets command character conversion method for the Auto Logo function This setting is registered to non volatile memory by the ESC GS W command This command is ignored while Auto Logo is executing n Setting 0 Does not print command character or logo number continuing after that Converts the command character and logo number that follows in a space character 0 x 20 If is specified for the command character the 2 embedded in the print data is processed not as a character string but as a command At that time 2 is processed as a command so there is no print However 2 is converted to a space by the n 1 specification of this command lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 130 SAIF ESC GS 6n Name Partial cut setting just prior to Auto Logo printing Code ASCII ESC GS 6 n Hexadecimal 1b id 2f 36 n Deci
162. ine Mode Shared with Thermal Valida tion a Line Mode Page Mode Sared with Validation a Page Mode Line Mode 7x9 Selection Page Mode 5x9 Fixed Valid after switch ___to line mode Line mode 5x9 2P 1 selection i Page mode 5x9 Fixed Valid after switch to line mode Line mode 5x9 3P 1 selection Page mode 5x9 Fixed Valid after switch to line mode Valid after switch to thermal Two bytes ignored Two bytes ignored Fixed at 2x when i parameters n1 n2 are higher than 1 Expansion valid by parameter after ___ Switch to thermal Fixed at 2x when parameter is higher than 1 Expansion valid by parameter after __ Switch to thermal Fixed at 2x when parameter is higher than 1 Expansion valid by parameter after __ Switch to thermal aia aaa a PONTE E EER TE fa SUQIF Type Command Execution Station Thermal Slip Validation Thermal Slip Rev 0 00 Validation Other Precautions Line Page Other Precautions Line Page Other Precautions Adornment ESC E ESC G ESC H ESC naa aa gone Sl Shared Shared Shared Shared Slip Validation valid Shared st Shared Slip Validation valid siad ae hk siagi ehe a A erag ea iwo bytes ignored Two bytes ignored inverted printing After switch to slip validation red
163. ing bits and 0 for no print STAR LIne Mode Command Specifications 3 46 SQI Rev 0 00 ESC N Name Specify cancel ANK download characters Code ASCII ESC n Hexadecimal 1B 25 n Decimal 27 37 n Defined Area Thermal n 0 1 48 49 Slip n O 1 48 49 Validation n O 1 48 49 Initial Value Thermal Cancel ANK download character Slip Cancel ANK download character Validation Cancel ANK download character Function Specifies cancels ANK download characters n Download characters 0 48 Cancel ANK download characters 1 49 Specify ANK download characters lt Print example of download characters gt 1 Registration of ANK download character ESC amp c1 c2 n d1 d48 2 Specify ANK download characters ESC n n 1 3 Print ANK download characters Note The settings using this command are valid for all stations and modes STAR Line Mode Command Specifications 3 47 SCQF 3 3 8 Bit Image Graphics ESC K n1 n2 d1 dk Name Standard density bit image Code ASCII ESC K nt n d1 dk Hexadecimal 1B 4B ni n2 d1 dk Decimal 27 75 nt n2 di dk Defined Area Thermal k n1 n2 x 256 0 lt dz lt 255 Slip 1 lt n1 n2 x 256 lt printable region total dot count k n1 n2 x 256 Osds255 Validation 1 lt n1 n2 x 256 lt printable region total dot count k n1 n2 x 256 Osds255 Initial Value Thermal Doe Slip on Validation Function lt Thermal gt
164. ing the ETB counter sequentially it is possible to confirm the end of printing the several blocks Note that the ETB counter is cleared to zero by the ESC RS E command The following shows the details of the processing in the printer with this command 1 Reads out the ETB command from the reception buffer 2 Waits for the printing of data to be completed before the ETB command 3 After checking the end of printing the auto status ETB status is set and the ETB counter is incremented 4 Auto status transmission only when auto status is valid See Appendix 2 for details regarding the ASB status STAR Line Mode Command Specifications 3 71 SEQ ESC RSE n Name Initialize ASB ETB counter and ETB status Code ASCII Hexadecimal Decimal Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function Clears the ASB ETB counter to zero and clears the ETB status RS E n 1E 45 n 30 69 n n 0 48 0 n 0 48 0 n 0 48 0 ASB ETB counter 0 ASB ETB counter 0 ASB ETB counter 0 Rev 0 00 However when clearing the ETB counter to zero using this command ASB status is not transmitted The ETB counter and ETB status are initialized by the following command in addition to this com mand e Cancel print data and initialize commands lt CAN gt STAR LIne Mode Command Specifications 3 72 SQI Rev 0 00 3 3 15 Kanji Characters ESC p Name Spe
165. int 1 732 623 5555 Fax int 1 732 623 5590 STAR MICRONICS EUROPE LTD Star House Peregrine Business Park Gomm Road High Wycombe Bucks HP13 7DL U K Tel int 44 1494 471111 Fax int 44 1494 473333 STAR MICRONICS ASIA LTD Rm 1901 5 19 F Enterprise Square Two 3 Sheung Yuet Road Kowloon Bay Hong Kong Tel int 852 2796 2727 Fax int 852 2799 9344 Rev 0 00 2008 09 29 Printed in Japan 80877105
166. ion of automatic clamp according to n nis the same as the MSW validation opening time setting for details refer to the MSW settings for each printer lt Thermal gt Only setting is valid Setting is valid after switching to slip or validation STAR LIne Mode Command Specifications 3 152 Rev 0 00 SQI Rev 0 00 3 14 Page Mode Command Details FF Name Batch printing of page data valid only in page mode Code ASCII FF Hexadecimal OC Decimal 12 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Refer to Page Control Command lt Slip gt lt Validation gt When in page mode the printer batch prints page data expanded in the page region then returns to line mode After batch printing of the page mode data in the page the page print region and print direction are all initialized Note that when the printer is in line mode nothing functions STAR Line Mode Command Specifications 3 153 SEQ Rev 0 00 ESC n Name Selects page mode Code ASCII ESC n Hexadecimal 1B 6E Decimal 27 110 Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function lt Thermal gt Two bytes ignored lt Slip gt lt Validation gt Shifts from line mode default to page mode This command is valid when input at the top of the line Page mode expands print data to the page c
167. itch settings n International Characters 0 48 USA 1 49 France 2 50 Germany 3 51 UK 4 52 Denmark 5 53 Sweden 6 54 Italy 7 55 Spain 8 56 Japan 9 57 Norway 10 65 Denmark II 11 66 Spain Il 12 67 Latin America 13 68 Korea 14 69 Ireland 64 Legal When installed with Japanese language characters and DBCS setting this command is ignored Note that if the code page 3041 Maltese is selected for the code page international characters are disabled and the specified characters of code page 3041 are printed At that time the specified international character setting is valid when changed to a different code page Note The settings using this command are valid for all stations and modes STAR LIne Mode Command Specifications 3 6 SQI Rev 0 00 ESC N Name Specify cancel slash zero Code ASCII ESC n Hexadecimal 1B 2F n Decimal 27 47 n Defined Area Thermal n O 1 48 49 Slip n 0 1 48 49 Validation n 0 1 48 49 Initial Value Thermal Memory switch setting Slip Memory switch setting Validation Memory switch setting Function Specifies and cancels slash zeros See each printer s product specifications manual for details on the memory switch settings n International Characters 0 48 Cancels slash zero 1 49 Specifies slash zero Note that if the code page 3041 Maltese is selected for the code page slash zero is invalid and normal zeros will be printed At that time the spe
168. l Line Page mode settings Independent Line Mode Shared with Thermal Valida tion a Line Mode Page Mode Sared with Validation a Page Mode Line Mode 7x9 Selection Page Mode 5x9 Fixed Valid after switch toline mode lt Line mode 5x9 2P 1 selection Page Mode 5x9 Fixed Valid after switch to _ line mode i Line mode 5x9 3P 1 selection Page mode 5x9 Fixed Valid after switch to line mode i Valid after switch to thermal Two bytes ignored Two bytes ignored Fixed at 2x when i parameters n1 n2 are higher than 1 Expansion valid by parameter after switch to thermal Fixed at 2x when parameter is higher than 1 Expansion valid by parameter after vege SWitch to thermal Valid Fixed at 2x when parameter is higher than 1 Expansion valid by parameter after __ Switch to thermal Invalid Shared Invalid Shared For each Line Page G a only Line Valid only Line Valid only Line Invalid Invalid Invalid Valid Shared a la Shared equate Shared Valid Shared Valid Shared nae Valid after switch to gt thermal Ignored for DBCS setting amp for models With Kanji characters _ Valid after switch to thermal cs aie IE EEA E Valid Shared E Valid Line Page mode settings Independent L
169. ls not equipped with Chinese fonts for overseas and when the specification for the location of use is specified as SBCS single byte countries by the memory switch See each printer s product specifications manual for details on the memory switch settings lt Slip gt lt Validation gt The values of n1 and n2 when using two byte 8 x 16 two byte 16 x 16 and double tall 8 x 16 charac ters correspond to the n1 and n2 values for double high double wide 16 x 16 characters If the Japanese character size including the right and left spaces n1 character width n2 ex ceeds the print region printing will not be possible and a question mark will be printed instead When page mode is selected only setting is valid Setting is valid after switching to line mode Note The settings by this command are valid for all stations STAR Line Mode Command Specifications 3 75 SCQF Rev 0 00 ESC t n1 n2 Name Set single byte Kanji characters left right spaces Code ASCII ESC t nt n2 Hexadecimal 1B 74 n n2 Decimal 27 116 ni n2 Defined Area Thermal O lt n1 lt 7 48sn1 lt 55 0 lt n1 lt 7 Osn2s15 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A sn2 lt F Slip Osn1S7 48 lt n1 855 0 lt n1s lt 7 Osn2s15 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A lt n2 lt F Validation Osn1S7 48 lt n1 855 0 lt n1 s lt 7 Os
170. ly are printing Sets to the 4 x expanded character mode by combining with ESC x 0 Specify expanded Japanese characters state A state D 1 49 Specify two byte 16 x 16 dot Kanji characters single density When two bytes is selected they become two pass characters state B to state A Dots continuous horizontally are thinned for printing Sets to the vertical expanded character mode by combining with ESC x 0 Specify expanded Kanji characters state B state C When page mode is selected only setting is valid Setting is valid after switching to line mode STAR Line Mode Command Specifications 3 79 St Qir Rev 0 00 ESC xn Name Specify expanded Kanji characters Double tall double high amp wide Code ASCII ESC x n Hexadecimal 1B 78 n Decimal 27 120 n Defined Area Thermal o Slip n 0 1 n 48 49 0 1 Validation n 0 1 n 48 49 0 1 Initial Value Thermal Doe Slip Specify two byte 16 x 16 dot Kanji characters single density Validation Specify two byte 16 x 16 dot Kanji characters single density Function lt Thermal gt Only setting is valid Setting is valid after switching to slip or validation lt Slip gt lt Validation gt Sets double tall double high and wide Kanji character expansion See Relationship of Japanese Character Size Selection State Transition 0 48 Sets Kanji character expansion
171. mal 27 29 47 54 n Defined Area Thermal Osnsi1 Slip Doe Validation Doe Initial Value Thermal n 0 Slip Doe Validation Doe Function lt Thermal gt Sets the partial cut setting just prior to Auto Logo printing This setting is registered to non volatile memory by the ESC GS W command This command is ignored while Auto Logo is executing Setting Does not execute partial cut just prior to Auto Logo printing Executes partial cut just prior to Auto Logo printing kkkkkkkkkkkkkkkkkkkk MCDONALD S kkkkkkkkkkkkkkkkkkkk 1 CHEESEBURGER 2 00 1 AutoLogo triggered by cut command 2 User macro 1 is executed P Partial Cut Logo2 is printed 3 AutoLogo is printed Partial Cut Logo3 is printed 4 User macro 2 is executed Paper is a Head logo is printed kkkkkkkkkkkkkkkkkkkk MCDONALD S STAR Line Mode Command Specifications 3 131 Rev 0 00 iL Va SEAI Rev 0 00 This command selects execution of a partial cut just prior to Auto Logo Logo 2 and Logo 3 when executing Logos 2 and 3 as an Auto Logo print as shown above If a partial cut is set to be executed by this function it is possible to supply coupons printed by Auto Logo cut by the partial cut lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 132 SQI Rev 0 00 3 9 2 dimensional Bar Codes PDF417 Comma
172. mm line feed amount lt Slip gt lt Validation gt Specifies the line feed amount n Amount of Line Feed 0 48 Specifies 1 12 inch line feed amount 1 49 Specifies 1 6 inch line feed amount Line feed amounts can be set independently for both line mode and page mode ESC 0 Name Thermal Specify 3 mm line feed amount Slip specify 1 8 line feed amount Code ASCII ESC 0 Hexadecimal 1B 30 Decimal Initial Value 27 48 Defined Area Thermal o Slip Doe Validation Doe Thermal Memory switch setting Slip 1 6 inch Validation 1 6 inch Function lt Thermal gt Specifies the line feed amount to 3 mm lt Slip gt lt Validation gt Specifies the line feed amount to 1 8 inch Line feed amounts can be set independently for both line mode and page mode STAR Line Mode Command Specifications 3 27 Rev 0 00 SCQF Rev 0 00 ESC 1 Name Code Thermal Specify 3 mm line feed amount Slip specify 7 72 inch line feed amount ASCII ESC q Hexadecimal 1B 31 Decimal 27 49 Defined Area Thermal Doe Slip o Validation Initial Value Thermal Memory switch setting Slip 1 6 inch Validation 1 6inch Function lt Thermal gt Specifies the line feed amount to 3 mm lt Slip gt lt Validation gt Specifies the line feed amount to 7 72 in Line feed amounts can be set independently for both line mode and page mode ESC Jn Name Thermal n 4 mm lin
173. mmands Class odel Name ASP7000 Thermal 2 ip Raster ESC rR Set i Executed o ie ESC rA ESC rB ESC rC ojojojo ESC rD ESC rE ESC rF ESC rP ESC rQ ESC rml ESC rmr ESC rT ESC rK ojojojojo o o o b n1 n2 d1 dk k n1 n2 d1 dk ESC rY ESC FF NUL ESC FF EOT ESC rN ESC rV EO ODE O No ojojojojojojo jojojojojojojoj ojojojojo XIXIX X X X X X X X X X X X X X X X X X Black mark related commands Class Commands Class Set i Executed odel Name o HSP7000 Thermal Slip Black Mark ESC d 0 x Related FF Commands ESC C ESC C 0 00 0 00 0 XIX X X X e 2 Color Printing Related Commands Class Commands ASS odel Name HSP7000 Set _ Executed Thermal Slip 2 Color ESC RS c o o t Printing ESC RSC o o t Related ESC 4 o o o Commands ESC 5 o o o ESC RS d o o t ESC RSr o t ESC FS q o o o ESC FS p o o o Mark Commands Class Commands vi ASS Model Name HSP7000 Set _ Executed Thermal Slip Mark ESC GS 0 o o x Commands ESC GS 1 o o t ESC GS 2 o o pg ESC GS W o o o ESC GS C o o o 6 3 STAR Line Mode Command Specifications
174. mode is selected the emphasized printing cancel specification is in page units Note The settings using this command are valid for all stations and modes STAR Line Mode Command Specifications 3 17 SEQ ESC n Name Specify cancel underling mode Code ASCII ESC n Hexadecimal 1B 2D n Decimal 27 45 n Defined Area Thermal n 0 1 48 49 Slip n 0 1 48 49 Validation n 0 1 48 49 Initial Value Thermal n 0 Underline cancelled Slip n 0 Underline cancelled Validation n 0 Underline cancelled Function Specifies cancels underline according to n value n Underline 0 48 Cancels underline Rev 0 00 1 49 Specifies underline Underlines are not applied to horizontal tabs and to specified horizontal direction positions This command is valid for ANK characters and Japanese characters and is invalid for IBM blocks Underlines are valid for white black inversion lt Thermal gt Underlines are composed of 2 dot lines When character expansion is specified underlines are also expanded when in double high expan sion underlines are composed of four dots lt Slip gt lt Validation gt Underlines are applied to the 9 dot of the character When double wide expanded characters have been specified the underline is also expanded but if double tall expanded characters have been selected the underline does not expand in the vertical direction It remains a one dot line Note T
175. n Code ASCII ESC T n Hexadecimal 1B 54 n Decimal 27 84 n Defined Area Thermal Slip Osns3 4 8 lt n lt 51 0 lt n lt 3 Validation OSns3 48 lt n lt 51 0 lt n lt 3 Initial Value Thermal Doe Slip n 0 Validation n 0 Function lt Thermal gt Three bytes ignored lt Slip gt lt Validation gt Sets the rotation in page mode to the items in the table below according to the n value Setting valid only when line mode n Rotation Direction 0 48 0 1 49 270 2 50 180 3 51 90 n 0 n 1 or 4 n 2 n 3 0 Rotation 270 Rotation 180 Rotation 90 Rotation lt Genend Concept of Rotation Diection gt STAR Line Mode Command Specifications 3 157 SE IF 3 15 Station Selection Command Details ESC An Name Select printer station Code ASCII ESC A n Hexadecimal 1B 2B 41 n Decimal 27 43 65 n Defined Area Thermal n 0 3 4 0 3 4 Slip n 0 3 4 0 3 4 Validation n 0 3 4 0 3 4 Initial Value Thermal n 0 Slip n 0 Validation n 0 Function Selects printer station n Selected Station 0 70 Selects Thermal Receipt Station qe 1 Reserved 2 2 Reserved so ae Selects Slip Station 4 4 Selects Validation Station Switches to the printer station using this command after printing data in the line buffer Therefore always app
176. n 1 6 inch line feed Function lt Thermal gt Three bytes ignored lt Slip gt lt Validation gt Sets subsequent line feed amounts to a n 144 inch Line feed amounts can be set independently for both line mode and page mode STAR Line Mode Command Specifications 3 31 Rev 0 00 SQI Rev 0 00 3 3 5 Page Control Commands FF Name Form feed Code ASCII FF Hexadecimal OC Decimal 12 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Hs Function lt Thermal gt Executes a form feed If the current position is at the top of the page it form feeds to the top of the next page If there is data existing in the line buffer wnen executing a form feed it prints that data then ex ecutes the form feed However by printing data remaining in the buffer and moving to the top of the next page a form feed is considered to have been executed so form feed is not performed lt Slip gt lt Validation gt Refer to the Page Mode Command Details STAR LIne Mode Command Specifications 3 32 SQI Rev 0 00 ESC C n Name Set page length to n lines Code ASCII ESC C n Hexadecimal 1B 43 n Decimal 27 67 n Defined Area Thermal 1 lt n lt 127 Slip o Validation De Initial Value Thermal Form feed amount initial value x 42 Slip Doe Validation Doe Function lt Thermal gt The position whereat this command is processed is considered the t
177. n 0 48 Cancels printing of vertical double high character printing 1sns549sns53 Specifies 2x expansion printing However in standard specifications only the line feed amount is doubled for font configurations of 6 x 12 IBM block graphic characters without expanding characters When slip or validation is selected and more than double is specified printing is doubled for every setting Setting more than triple is valid after switching to thermal When page mode is selected the line feed amount including the expanded double tall characters is 1x the normal amount Note The settings using this command are valid for all stations and modes STAR Line Mode Command Specifications 3 13 SCQF Rev 0 00 SO Name Set double wide Code ASCII SO Hexadecimal 0E Decimal 14 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Cancels 2x wide expansion Slip Cancels 2x wide expansion Validation Cancels 2x wide expansion Function Specifies double wide for ANK characters and Kanji characters This command is equivalent to ESC W 1 Note The settings using this command are valid for all stations and modes DC4 Name Cancel expanded wide Code ASCII DC4 Hexadecimal 14 Decimal 20 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Cancels 2x wide expansion Slip Cancels 2x wide expansion Validation Cancels 2x wide expansion Function Cancels expande
178. n 5 53 Specifies 6x wide expansion lt Slip gt lt Validation gt n1 Expanded high 0 48 Cancel expanded high 1 lt n1 lt 5 49 lt n1 lt 53 Specifies 2x expansion n2 Expanded wide 0 48 Cancel expanded wide 1 lt n2 lt 5 49 lt n2 lt 53 Specifies 2x wide expansion However in standard specifications only the line feed amount is doubled for font configurations of 6 x 12 IBM block graphic characters When slip or validation is selected and more than double is specified printing is doubled for every setting Setting more than triple is valid after switching to thermal Note The settings using this command are valid for all stations and modes STAR Line Mode Command Specifications 3 11 SEQ Rev 0 00 ESC Wn Name Specify cancel expanded wide Code ASCII ESC W n Hexadecimal 1B 57 n Decimal 27 87 Defined Area Thermal Osns5 48 lt n lt 53 0 lt n lt 5 Slip Osns5 48 lt n lt 53 0 lt n lt 5 Validation OsSns5 48 lt n lt 53 0 lt n lt 5 Initial Value Thermal n 0 Double wide cancelled Slip n 0 Double wide cancelled Validation n 0 Double wide cancelled Function Specifies cancels double wide for ANK characters and Kanji characters lt Thermal gt n Expanded wide 0 48 Cancel expanded wide 1 49 Specifies 2x wide expansion 2 50 Specifies 3x wide expansion 3 51 Spec
179. n Selection n2 Under bar character selection and added line feed selection 1 49 No added under bar charactersExecutes a form feed after bar code is printed 2 50 Added under bar charactersExecutes a form feed after bar code is printed 3 51 No added under bar charactersDoes not execute a form feed after bar code is printed 4 52 Added under bar charactersDoes not execute a form feed after bar code is printed STAR LIne Mode Command Specifications 3 58 SAIF e n3 Bar Code Mode Selection Rev 0 00 n3 Bar Codes Types UPC E UPC A JAN EAN8 Code39 NW 7 ITF JAN EAN13 Code128 Code93 1 49 Minimum module 2 dots Narrow Wide 2 6 dots Narrow Wide 2 5 dots 2 50 Minimum module 3 dots Narrow Wide 3 9 dots Narrow Wide 4 10 dots 3 51 Minimum module 4 dots Narrow Wide 4 12 dots Narrow Wide 6 15 dots 4 52 Narrow Wide 2 5 dots Narrow Wide 2 4 dots 5 53 Narrow Wide 3 8 dots Narrow Wide 4 8 dots 6 54 Narrow Wide 4 10 dots Narrow Wide 6 12 dots 7 55 Narrow Wide 2 4 dots Narrow Wide 2 6 dots 8 56 Narrow Wide 3 6 dots Narrow Wide 3 9 dots 9 57 Narrow Wide 4 8 dots Narrow Wide 4 12 dots n4 Bar code height dot count Spec 1 When the height of the bar code is more than the form feed amount the form feed amount is automatically do
180. n2s15 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A lt n2 lt F Initial Value Thermal Memory switch setting Slip Memory switch setting Validation Memory switch setting Function Adds n1 dot left space and n2 dot right space to single byte Kanji characters See each printer s product specifications manual for details on the memory switch settings This command is ignored for models not equipped with Japanese and Kanji characters and when the specification for the location of use is specified as SBCS single byte countries by the memory switch lt Slip gt lt Validation gt The values of n1 and n2 when using two byte 8 x 16 two byte 16 x 16 and double tall 8 x 16 charac ters correspond to the n1 and n2 values for double high double wide 16 x 16 characters If the Japanese character size including the right and left spaces n1 character width n2 ex ceeds the print region printing will not be possible and a question mark will be printed instead When page mode is selected only setting is valid Setting is valid after switching to line mode Note The settings by this command are valid for all stations STAR LIne Mode Command Specifications 3 76 SQI Rev 0 00 ESC r c1 c2 d1 dk Name Register Chinese download characters Code ASCII ESC r ct c2 dt dk Hexadecimal 1B 72 cl c2 di dk Decimal 27 114 c c2 di dk Defined Area Thermal Osds255 k 72 c1 and c
181. ncel upside down printing Code ASCII DC2 Hexadecimal 12 Decimal 18 Defined Area Thermal 2 Slip o Validation Initial Value Thermal Upside down printing cancelled Slip Upside down printing cancelled Validation Upside down printing cancelled Function Cancels upside down printing This command is enabled only when at the top of the line Note The settings by this command are valid for all stations STAR Line Mode Command Specifications 3 23 Rev 0 00 Rev 0 00 SEQ ESC RS in Name Specify Code ASCII cancel character rotated mode ESC RS i n Hexadecimal 1B 1E 69 n Decimal Defined Area Initial Value Function lt Thermal gt 27 30 105 n Thermal o Slip Osns2 48sns50 0 lt n lt 2 Validation O lt n 2 48 lt n lt 50 0 lt n lt 2 Thermal o Slip Character rotation cancelled n 0 Validation Character rotation cancelled n 0 Only setting is valid Setting is valid after switching to slip or validation lt Slip gt lt Validation gt Specifies direction to rotate print clockwise or to cancel rotation for subsequent data according to the n value Set rotation 0 48 Cancelled 0 rotation 1 49 270 rotation 2 50 90 rotation STAR LIne Mode Rotated characters cannot be applied with underlines or upperlines The relationship between double tall and double wide is reverse to w
182. nction the logo number of the logo to print is predetermined kkk kkk kkk kkk kkk kkk kk MCDONALD S kkk kkk kkk kkk kkk kkk kk 1 CHEESEBURGER 2 00 2 COKE 1 00 Current System Print Data Logo1 MCDONALD S 1 CHEESEBURGER 2 00 2 COKE Current System Print Data 1 AutoLogo triggered by cut command 2 Center alignment 4 Paper is fed to cutting position and partially cut 5 Logo1 is printed 6 Returns to position alignment Logo1 Kk kkk kk kkk kkk kk kkk kk MCDONALD S STAR Line Mode Command Specifications 3 123 SCQF Command Transmission Example Rev 0 00 1 Set the Auto Logo function in advance and register to the non volatile memory ESC GS 1n n 0x01 ESC GS 2n n ESC GS 3 nL nH d1 d2 dk nL 4 nH 0 d1 0x1b d2 0x1d d2 0x61 d3 0x01 ESC GS 4 nL nH d1 d2 dk nL 12 nH 0 d1 0x1b d2 0x64 d3 0x03 d4 0x1b d5 0x1c d6 0x70 d7 0x01 d8 0x00 d9 0x1b d10 0x1d d11 0x61 d12 0x00 ESC GS 5n n 0x01 ESC GS 6n n 0x01 ESC GS W Auto Logo Function ON Auto Logo Command Character Specification User macro 1 definition Register macro data count 4 bytes Registration macro lt ESC GS a 1 Center alignment gt User macro 2 definition Register macro data count 12 bytes Registered macro lt ESC d 3 Cut position partial Cut gt lt ESC FS p 10 Logo 1 print gt lt ESC GS a 0 Left alignment gt Aut
183. nd Details This command prints 2 dimensional bar codes PDF417 Commands for 2 dimensional bar codes PDF417 are separated into the following four functions 1 Bar code type setting lt ESC gt lt GS gt x S 2 Bar code data setting lt ESC gt lt GS gt x D 3 Bar code printing lt ESC gt lt GS gt x P 4 Get bar code expansion information lt ESC gt lt GS gt x I The details of the functions are outlined below 1 Bar code type settin These commands set the bar code type These are all set to default Only use them if you wish to make changes Refer to following details for settings p1 START p2 STOP PDF417 are composed of fixed patterns for start and stop and bar patterns called code words Code words are composed of 17 modules lt Code Word gt Specify the p1 and p2 values using lt ESC gt lt GS gt x S 0 With the USE_LIMITS mode specify the ratio of p1 and p2 with the USE_FIXED mode specify the p1 number of lines and p2 number of code words per line Specify the error correction level value using lt ESC gt lt GS gt x S 1 It is possible to read PDF417 even part of the data is corrupted using error correction If this level is raised the bar code size is increased because there is more backup information Specify the size of the module that composes code words using lt ESC gt lt GS gt x S
184. ng lt ESC gt lt GS gt y S 1 It is possible to read QR code even part of the data is corrupted using error correction If this level is raised the bar code size is increased because there is more backup information Specify the size of the cell one square region that composes the QR code using lt ESC gt lt GS gt y S 2 The vertical and horizontal sizes for the QR code are equal length squares but the size of the bar code image gener ated is determined by the cell size See Appendix 7 for details on the actual printed QR code size These are individual settings so the following errors may occur even if there are no problems In such cases the bar code will not be generated and the 4 print command lt ESC gt lt GS gt y P will be ignored and an error code will be returned with 5 get bar code expansion information e An error occurs when generating the bar code by the combination of settings e When the print data exceeds the currently set print region Therefore it is recommended to use the 5 Get bar code expansion information command lt ESC gt lt GS gt y I as a means for checking for these errors prior to printing STAR LIne Mode Command Specifications 3 140 SQI Rev 0 00 2 Bar code data setting command This command set the bar code print data There are four types of data types that can be set by the QR code They are numbers alpha numeric cha
185. o o d48l o o jo o o jo o o d49 e e e e o jo jo o d50 e e o e e o o o d51 o o jo o jo jo o o d52 e e e e o jo jo o d53le e o e e o o o d54 o e jo o e jo o o d55 e e e e o e jo o d56j e e o e e o o o d57 e o jo o o jo o o d58 e e e je o e jo o d59 e e o e e o o o d6 e e jo o e jo o o d61 e e e e o e jo o d62 e e o e e o o o d63 e e jo o o jo o o d64 e e e e o e jo o d65 e e o e e o o o d6 e jo o e o o o d67 e e e e o o jo o d68ie o o e e o o o d69 oe o jo o o jo o o d70je e e e o o jo o d71i e o o e e o o o d72 e e jo o o jo o o bit7 bit6 bit5 bit4 bit3 bit2 bit1 bitd Font Data QO Invalid Data o it7 bit6 bit5 bit4 bit3 bit2 bit1 bitO J it7 bit6 bit5 bit4 bit3 bit2 bit1 bitd STAR Line Mode Command Specifications 3 77 SEAI Rev 0 00 lt Slip gt lt Validation gt The defined ranges are shown below Specifications ci c2 Registration count Japanese Language Kanji characters c1 77h 21h lt c2 lt 7Eh 94 Characters They are designed as shown below and data is sent sequentially tM Horizontal 16 dot SS d1 d3 d5 d7 d9 d11 d13 d15 d17 d19 d21 d23 d25 d27 d29 d31 16 dot d2 d4 d6 d8 d10 di2 d14 d16 d18 d20 d22 d24 d26
186. o Logo command character space conversion Partial cut valid just prior to Auto Logo printing Register Auto Logo definition data to non volatile memory 2 Embed registered command character in print data and transmit CHEESE BURGER 2 is recognized as the command character The command character is converted to a space and 2 specifies logo 2 STAR LIne Mode Command Specifications 3 124 SAIF ESC GS W Name Register Auto Logo setting to non volatile memory Code ASCII ESC GS W Hexadecimal 1b 1d 2f 57 Decimal 27 29 47 87 Defined Area Thermal 2 Initial Val Function ESC G Name Code Slip o Validation Doe ue Thermal Doe Slip a Validation Doe Registers Auto Logo setting to non volatile memory After registration ends resets the printer This command is ignored while Auto Logo is executing S C Initialize Auto Logo setting from non volatile memory ASCII ESC GS I1 C Hexadecimal 1b id 2f 43 Decimal 27 29 47 67 Defined Area Thermal o Slip o Validation Doe Initial Value Thermal Doe Function Initializes registered data of the Auto Logo function in the non volatile memory Slip 1 Validation Doe After initialization ends resets the printer This command is ignored while Auto Logo is executing The following shows the initial values of the Auto Logo function Initial Value Auto Logo Function OFF Command Character None User Macro 1 Non
187. ommand e 50 to 59 Reserved e 60 to 99 Reserved e AO MICR Function Command e A1 to FF Reserved e Third and fourth bytes If the factor is the command indicates the n parameter of the command If there is no n parameter the third and fourth bytes can be omitted lt Ex gt If n 0x31 with the ESC SYN 3 n command the third and fourth bytes are 31 2 Delimiter 1 1 Byte Sends 3 Data Type 1byte Indicates the data type of the printer status and sends B binary type 4 Status Length 2byte 2 byte value indicating byte count of printer status STAR LIne Mode Command Specifications 9 12 SAIF Rev 0 00 5 Printer status variable Status sent by printer The content of the status differs according to the cause Refer to Commands That are Factors and Automatic Status for details on the content of the status 6 Delimiter 2 1 byte Sends 3 Status transmission specifications list Status Generating STAR Length Status Data Factors ASB Status Type Delimiter Data Status Printer Delimiter First and Third and 1 Type Length Status 2 Second Fourth Bytes Bytes n Parameter Factors ASB ASB 0x0000 Auto Status ESC ACK SOH ASB 0x0000 Printer Status Request ENQ ASB 0x0008 01 Omitted B 0x0001 Status i Printer Status Request EOT ASB 0x0008 02 Omitted i B
188. on Selects characters targeted for adornment with m 1 ANK or m 2 Japanese characters and selects the ESC 4 ESC 5 command functions with n Sets the handling of adornment to space characters ASCII 20Hex with m 83 This command is enabled only when in a state where adornment is cancelled by ESC 4 when ESC 5 was specified is valid after switching to slip or validation e When m 1 48 Targeted characters ANK m n ESC 4 ESC 5 command functions ANK 1 49 0 White black inverted printing 1 Pass 1 49 1 lt Option 1 gt White black inversion 5 x 9 font print enhancing 2 passes 1 49 2 lt Option 2 gt Upper line Underline enhancing 2 passes 1 49 3 lt Option 3 gt Upper line Underline double tall expanded enhancing 4 passes 1 49 255 No adornment e When m 2 50 Targeted characters Japanese Characters m n ESC 4 ESC 5 command functions Japanese characters 2 50 0 No adornment 2 50 2 lt Option 2 gt Upper line Underline enhancing 4 passes 2 50 3 lt Option 3 gt Upper line Underline double tall expanded enhancing 4 passes 2 50 4 lt Option 4 gt White Black Inverted Double Tall 2 passes 2 50 5 lt Option 5 gt White Black Inverted 4 X Expanded 2 passes Rev 0 00 When using ESC 5 to cancel adornments it returns to the previously set adornments Adornments such as underline upper line double tall expanded and en
189. on of use is specified as SBCS single byte countries by the memory switch See each printer s product specifications manual for details on the memory switch settings When the lower code is lt 7F gt lt FD gt to lt FF gt h two bytes are ignored lt Slip gt lt Validation gt When page mode is selected only setting is valid Setting is valid after switching to line mode Note The settings by this command are valid for all stations STAR LIne Mode Command Specifications 3 74 SAIF ESC s n1 n2 Rev 0 00 Name Set two byte Kanji characters left right spaces Code ASCII ESC s n n2 Hexadecimal 1B 73 n n2 Decimal 27 115 ni n2 Defined Area Thermal O lt n1 lt 7 48 lt n1 lt 55 0 lt n1 s lt 7 0 lt n2 lt 15 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A lt n2 lt F Slip OsSn1 87 48 lt n1 lt 55 0s n1s 7 0 lt n2 lt 15 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A lt n2 lt F Validation 0x lt n1 lt 7 48 lt n1 lt 55 Os n1S 7 0 lt n2 lt 15 48 lt n2 lt 57 0 lt n2 lt 9 65 lt n2 lt 70 A lt n2 lt F Initial Value Thermal Memory switch setting Slip Memory switch setting Validation Memory switch setting Function Adds n1 dot left space and n2 dot right space to Kanji characters This command is ignored for mode
190. one logo specified by n at the position centered in the horizontal and vertical directions 2 Valid Repeatedly prints logo specified by n from leading edge of the page to the trailing end of the page at the position centered in the horizontal direction Set the forming method of the logo data to be printed as the water mark to make the image appropri ate as the water mark with this setting If the appropriate image is not possible with this setting re register after forming the logo data regis tered as the water mark as the appropriate data m Water Mark Data Forming 0 Prints logo data specified n as it is 1 Thins logo data specified n 25 in the printout 2 Thins logo data specified n 12 5 in the printout Specify the registered logo as the water mark n Logo Number 1 to 255 Registered logo number If the specified logo number is not registered the water mark will not be printed lt Water Mark Function gt When the water mark inversion function is valid it is printed by the water mark pinting trigger However this function is executed on print data that fits in the image buffer length If print data is larger than the image buffer length water mark printing is ignored Also when starting printing using anything other than the water mark printing trigger water mark printing is ignored When in 2 color printing mode this function is invalid This setting is not cleared by the ESC CAN commands Water Mark Printing Tri
191. oordinate region set by ESC and according to the rotation direction set by ESC T n and prints all the data using FF in the end In page mode print data is OR expanded to the page region so you can be free to overlappingly write characters and bit images and rotate characters In page mode if print data lt LF gt is set using the same method as line mode the data will be auto matically rotated at the printer Page mode has the following restrictions 1 Print Data Expansion In page mode because data is expanded in normal dot increments characters accompanying half dots cannot be handled When page mode is entered ANK fonts are automatically set to 5 x 9 2P 1 fonts In page mode the IBM block is changed to vertical 8 dot fonts Kanji characters Kanji cannot be printed When the character space is an odd number 1 half dot is discarded Also characters are expanded based on the base line so vertical double tall expanded characters are cut when the top portion is at the page top line and if they are at the second line they sometimes can overlap the previous line For that reason if vertical expanded characters are included in one line add an extra lt LF gt prior to the print data line to ensure print region to allow the vertical expanded character to be printed 2 Paper feed command In page mode the paper feed command and line feed are executed as a movement of the expanded position according to dot units The 1 coordinate
192. op of the page and sets the page length to current form feed amount x n This command cancels the bottom margin setting when setting page length The page length set using this command is unaffected by changing the form feed amount later Moving to the top of the page is performed using the following commands e Form feed command FF Execute form feed e Cutter command ESC dn Sets cutter position at top of page e Raster command ESC r B Top of page when raster mode ends e Error cancel operations Sets error cancel operation end position at the top of the page lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 33 St QIr Rev 0 00 ESC COn Name Setnx 24 mm page length Code ASCII ESC 0 n Hexadecimal 1B 43 00 n Decimal 27 67 0 n Defined Area Thermal gt 1sns22 Slip De Validation Doe Initial Value Thermal Form feed amount initial value x 42 Slip Doe Validation Doe Function lt Thermal gt The position whereat this command is processed is considered the top of the page and sets the page length to n x 24 mm This command cancels the bottom margin setting when setting page length The page length set using this command is unaffected by changing the form feed amount later Moving to the top of the page is performed using the following commands e Form feed command FF Execute form feed e Cutter command ESC
193. or id for id for id for id for thermal Valid oe EEEE A E eis A ict a EA E unas caddie tems it ores aa alana anaemia el Invalid Invalid Invalid Invalid Invalid Valid after switch to therma Valid after switch to therma Valid after switch to therma Valid after switch to therma Valid after switch to therma Invali Invali Invali Invali Invali Valid after switch to therma Valid after switch to thermal Valid after switch to thermal Valid after switch to thermal Valid after switch to thermal Page Function ESC GSh0 On On Shar y val thermal ed Shar y val ed id for id for thermal Valid Valid Invalid Invalid therma Valid after switch to gt Valid after switch to therma Invali Invali Valid after switch to thermal Valid after switch to thermal Slip Function Shar Shar ed ed Slip Validation valid Shar ed Slip Validation vali Shar do ed Slip Validation valid Invalid Invalid Invalid Invalid Three bytes ignored Four bytes ignored Valid after switch to slip validation Valid after switch to slip valdation Invalid Invalid Valid Shared Valid Shared Three bytes ignored Four bytes ignored Invali Invali Valid Shared Three bytes ignore
194. per 2 Paper Near end Inner Side Paper No paper 1 Paper Near end Outer Side Paper No paper 0 Fixed at 0 lt Printer status 5 Sensor Information Seventh Byte gt Bit Contents Status By model Q nay HSP7000 7 Fixed at O f Slip Validation o Condition 5 Slip Validation o Condition 4 Fixed at 0 3 Slip BOF Detector Paper No paper o 2 Slip TOF Detector f Paper No paper cae E Neen T RES Slip COF Detector Paper No paper o 1 Presenter Paper Detector ___ No paper of Paper a e d iment eee Stack Sensor Paper Detector __ No paper Paper a ar a a a Peeling Sensor Paper Detector __ Nopaper Paper aan ete cde nanan neared Slip TOF Detector Paper No paper o 0 Fixed at 0 Slip Validation Condition Support Table Bit 6 Bit 5 Condition 0 0 Slip Paper MICR Target 0 1 Slip Paper Print Target 1 0 Validation Paper Print Target 1 1 No paper STAR Line Mode Command Specifications IL SQI lt Printer status 6 ETB Counter Eighth Byte gt Bit Contents Status By model g 4 HSP7000 Fixed at 0 ETB Counter Bit 4 ETB Counter Bit 3 O Fixed at 0 ETB Counter Bit 2 ETB Counter Bit 1 ETB Counter Bit 0 olojo Ol AlN W AIAIO IN Fixed at 0 ETB Counter This counter is the 5 bit ETB counter It counts from 0 to 31 When ther
195. r each Line Page Invalid aol bytes ignored Bit Image Independen agpena at Station selecti command dependent Station selecti command dependent l Independen Station selecti command dependent dependen Station selection command dependen Independent Station selection command Invalid Valid Valid a All data for the amount of the counter received __and discarded Valid For each Line Page Valid For each Line Page iaia Valid For each Line Page RN AaEa TERS iiit amount of the coun ter received and digcarded I data for the amount of the coun ter received and discarded Valid For each Line Page Walia For each Line Page Invalid Valid For each Line Page NT AREA TORRE amount of the coun ter received and i gi carded data for the amount of the coun ter received and discarded ESCFSp PS CERE Lomo dependen Independent Station selection command dependen eA a Station selection command Valid For each Line Page only Line Baga ioas ra Four bytes ignored Valid For each Line Page yalia only Line paeo Four bytes ignored dependent ndependent Station selection command dependent Valid only Line Line Mode Data received and discarded up to lt RS gt for unsup ported bar codes Page Mo
196. r mark function i e Slip Validation Function Commands Class Commands Name Thermal Slip Validation Slip Function ESC SI E ESC FF _ Slip Validation Function ESC VT o ESC EM Set slip validation automatic clamp ESC US e Page Mode Commands Class Commands Name Thermal Slip Validation Page mode FF _ Batch print page data ESC n Select page mode ESC _ Select line mode ESC Set page mode print region ESC T Sets page mode print direction e Station Selection Command Class Commands Name eR er Ts ee a aie Slip Cico ae Station Selection ESC A Station Selection _ e Presenter Related Commands Class Commands Name Thermal __ gt Slip Validation Presenter ESC SYN 0 i Mane ESC SYN 1 commands ESC SYN 3 _ ESC SYN 4 _ e MICR Related Command Class Commands Name Thermal Slip Validation MICR ESC FSM MICR function 7e STAR LIne Mode Command Specifications 2 6 i SQI Rev 0 00 3 COMMAND DETAILS 3 1 Explanation of Terms e Reception buffer The buffer for storing data reception data received from the host as it is called the reception buffer Reception data is temporarily stored in the reception buffer then processed sequentially e Line buffer The buffer for storing image data for printing is called the line buffer Line buffer full The state in which the buff
197. r specifying the logo number to print with Auto Logo printing If the is specified for the command character 2 3 is embedded in the print data The printer processes not as character data but as a command stores the number continuing af ter and prints as an Auto Logo in the stored order Therefore if 2 3 is embedded the Auto Logo is printed in the order of logo 2 logo 3 At that time if the specified logo is not registered logo printing is ignored If the setting is for not command character setting no logo will be printed Note that 2 3 is processed as a command so there is no print However 2 3 is converted to a space by the ESC GS 5 n command Also only the initial logo is printed if the same logo is duplicated such as in 2 3 2 2 32 logos can be stored as Auto Logos Continuing the command character the following shows the defined area of the character d of the logo number specification 1 lt d lt 9 49 lt d lt 57 Logo number 1 to 9 A lt d lt F 65 lt d lt 70 Logo number 10 to 16 lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 127 SCQF Rev 0 00 ESC GS 3 nL nH d1 d2 dk Name Set user macro 1 Code ASCII ESC GS 3 nb nH di d2 dk Hexadecimal 1b id 2f 33 nL nH dt d2 dk Decimal 27 29 47 51 nL nH dt d2 dk Defined A
198. racters binary and Kanji characters However with these specifications there are two data setting methods They are A method that specifies that data along with the bar code data data manual analysis and a method that specifies only the bar code data data automatic analysis 3 Page mode setting command This command is not used 4 Bar code printing command This command prints the bar codes based on the settings of 1 and 3 5 Get bar code expansion information command This command checks whether a bar code can be printed based on the settings of 1 to 3 Precautions When Using the Commands e For 1 to 3 the setting values are retained if the following operations are not applied e New setting command is sent Initialize commands are sent lt ESC gt lt CAN gt e Power is turned off e With regard to 2 when an error occurs in command transmission the set data is cleared and the command is in valid e With regard to 4 and 5 send as needed e Printing e When printing the horizontal tabs absolute position specification relative position specification and position move ment using position alignment are valid e Upside down printing and 2 color printing are possible e Bar codes to be printed should always be confirmed through an actual printout STAR Line Mode Command Specifications 3 141 SCQF Below is a command transmission example 1 Bar code type setting lt ESC gt lt
199. rea Thermal 1snls64 nH 0 1 lt nL nH x 256 lt 64 dk nL nH x 256 Osds255 Slip Doe Validation Initial Value Thermal No user macro 1 setting Slip Doe Validation Function lt Thermal gt Sets user macro 1 for the Auto Logo function This setting is registered to non volatile memory by the ESC GS W command This command is ignored while Auto Logo is executing Registers print data in user macro 1 Maximum 64 bytes of registered data Note that registering Auto Logo command characters in the user macros is prohibited lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 128 SAIF Rev 0 00 ESC GS 4 nL nH d1 d2 dk Name Set user macro 2 Code ASCII ESC Hexadecimal 1b Decimal 27 Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function lt Thermal gt GS 4 nb nH di d2 dk 1d 2f 34 nL nH di d2 dk 29 47 52 nL nH d1 d2 dk 1s lt nL lt 64 nH 0 1 lt nL nH x 256 lt 64 dk nL nH x 256 0 lt d lt 255 No user macro 2 setting Sets user macro 2 for the Auto Logo function This setting is registered to non volatile memory by the ESC GS W command This command is ignored while Auto Logo is executing Registers print data in user macro 2 Maximum 64 bytes of registered data Note that registering Auto Logo command characters
200. rfaces 5 3 Appendix 3 Blank Code Page Configuration lt Thermal gt 5 4 Appendix 4 QR Code Maximum Input Character Count in Each Verson lt Thermal gt SPECIAL APPENDIX COMMAND LIST BY MODEL SPECIAL APPENDIX COMMAND FUNCTION LIST 7 1 HSP7000 7 1 1 Setting Command List 7 1 2 Execution Command List 4 1 5 1 5 1 5 1 5 2 5 3 5 5 5 6 5 6 5 7 5 12 5 14 5 16 6 1 7 1 7 1 7 6 SQI Rev 0 00 1 GENERAL DESCRIPTION This specifications document describes the command specifications for the STAR MODE on hybrid printers Information contained herein applies to models with the following conditions e Hybrid printers e Interfaces Parallel e RS 232C e USB Ethernet lt Applicable Models gt e HSP7000 STAR LIne Mode Command Specifications 1 1 SAIF 2 COMMAND FUNCTION LIST e Standard Commands Rev 0 00 Class Commands Name Thermal Slip Validation Font style ESC RSF Select font o and character ESC GS t Select code page ia set i ESC GS Write blank code page data _ ESCR Specify international character set lt ESC Specify cancel slash zero z ESC SP Set ANK right space _ ESC M Specify 12 dot pitch _ Specify 7 x 9 font half dots ESC P Specify 15 dot pitch _ Specify 5 x 9 font 2P 1 ESC Specify 16 dot pitch _ Specify 5 x 9 font 3P 1 ESC g Specify 14 dot pitch o ESC 6 a ESC 7 C
201. rite dot adjustment test print and reset em Mode Selection eN Memory switch number to specify en1n2n3n4 Specified data m Specified Data lt Thermal gt When a function was specified that accompanies position adjustment m K L this executes m Bit number to set m Bit number to clear only defined data write amp reset but does not execute the position adjustment lt Validation gt When a function was specified that accompanies a self print and position adjustment m T K L this executes only defined data write amp reset but does not execute the self print or position adjustment STAR Line Mode Command Specifications 3 85 IL SQI ESC LF NUL Rev 0 00 Name Initialize all memory switches Code ASCII ESC LF NUL Hexadecimal 1B 23 40 OA 00 Decimal 27 35 64 10 0 Defined Area Thermal Slip Validation Initial Value Thermal Slip Validation Function Initializes all memory switches Valid when power turned on again or a reset is applied ESC N n1 n2 n3 n4 LF NUL Name Enquire memory switch settings Code ASCII ESC N ni n2 n3 n4 LF Hexadecimal 1B 23 N 3F nt n2 n3 n4 OA 00 Decimal 27 35 N 63 n n2 n3 n4 10 0 Defined Area Thermal n1 48 0 n2 48 0 n3 48 0 n4 48 0 48 lt N 57 0 SNS 9 65 lt N lt 72 A lt N lt F
202. s Name Thermal Slip Validation Black mark ESC d Auto cutter Related FF Execute top of form commands ESC C Set page length to n lines o ESC C 0 Set page length in n x 24 mm units __ VT Feed paper to vertical tab position ESC B Set vertical tab position e 2 Color Printing Related Commands Class Commands Name Thermal Slip Validation 2 Color Printing ESC RSc Specify printing color in 2 color printing mode Related ESC RSC Select cancel 2 color printing commands mode ESC 4 Specify white black inversion or Select white black inversion red printing color red _black colors substitute function ESC 5 Cancel white black inversion or Cancel white black inversion red specify printing color black _ black colors substitute function ESC RSd Set print density E ESC RSr Set printing speed ESC FS q Register logo ESC FS p Print logo STAR Line Mode Command Specifications stair e Mark Commands Rev 0 00 Class Commands Name thermal Tips aidan Mark Commands ESC GS 0 Print mark ESC GS 1 Specify mark height and line feed ESC GS 2 At each mark number Specify mark color mark horizontal width l ESC GS W Register mark format to non volatile memory ESC GS C Initialize mark format from non volatile memory e Auto Logo Commands Class Commands Name e a Auto Logo ESC
203. s command stops printing to be executed Because 2 color print mode prints in one speed the speed settings with this command are invalid This command setting becomes valid when returned from the two color print mode to the single color print mode n Print Speed aaa Single Color Printing Mode 2 color Printing Mode 0 48 High speed 2 color Printing Mode Speed 1 49 Mid speed 2 color Printing Mode Speed 2 50 Slow speed 2 color Printing Mode Speed lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 114 SAIF Rev 0 00 ESC FS qn x11 x12 y11 y12 d1 dk 1 xn1 xn2 yn1 yn2 d1 dk n Name Register logo Code ASCII ESC FS q n x11 x12 y1 y12 di dki xni xn2 yni yn2 d4 dkjn Hexadecimal 1B 1C 71 n x11 x12 y11 y12 di dk kni xn2 yn yn2 di dkjn Decimal 27 28 113 n x11 x12 y11 y12 di dki xni xn2 yni yn2 di dkjn Defined Area Thermal 1sns255 O lt xn1 lt 255 O lt xn2 lt 3 1S xn1 xn2 x 256 lt 1023 Osynis255 0syn2s1 18 yn1 yn2 x 256 lt 288 Osds255 k xn1 xn2 x 256 x yn1 yn2 x 256 x 8 Slip 1 lt ns255 O lt xn1s 255 O lt xn2 lt 3 18 xn1 xn2 x 256 lt 1023 Osynis255 0syn2s1 18 yn1 yn2 x 256 lt 288 Osds255 k xn1 xn2 x 256 x yn1 yn2 x 256 x 8 Validation 1 lt ns255 0 lt xn1 lt 255 0 lt xn2 lt 3 1S xn1 xn2 x 256 lt 1023 Osyn
204. s returned immediately that indicates no insertion n 48 e E13B read format n 49 e CMC7 read format Reading successful ESC FS M 1n read character string LF NUL Reading failed e ESC FS M 1 n LF NUL Empty character string ESC FS M 1 n LF NUL 50 Performs cleaning of the conveyance rollers and magnetic head by inserted cleaning paper n is 48 or 49 In page mode five bytes ignored STAR Line Mode Command Specifications 3 161 SEAI Rev 0 00 E13B Support Table Numbers SYMBOL1 SYMBOL2 SYMBOL3 SYMBOL4 0 to 9 T A O D 30 to 39 Decimal 48 to 57 CMC7 Support Table Numbers 0 to 9 gt 301039 23 3D 3E 481057 STAR LIne Mode Command Specifications 3 162 SQI Rev 0 00 4 CHARACTER CODE TABLES Character Code Specifications References STAR LIne Mode Command Specifications 4 1 iL St ir Rev 0 00 5 APPENDIX 5 1 Appendix 1 Bar Code Specification Details lt Thermal gt Refer to the dedicated manuals for characteristics and methods of use for each bar code symbol This section describes precautions and methods for setting when printing with the printer Bar code widths are set for each bar code according to the mode The following describes each mode and the dot counts The user must ensure the specified printing position and quiet zone at the position where the bar code begins 5 1 1 Code 39 Code 39 represents numbers 0 to 9 and th
205. t Thermal gt The left margin is also the reference for upside down printing lt Slip gt lt Validation gt The right margin is also the reference for upside down printing STAR Line Mode Command Specifications 3 41 SEAI Rev 0 00 ESC GS an Name Specify position alignment Code ASCII ESC GS a Hexadecimal 1B 1D 61 Decimal 27 29 97 Defined Area Thermal Osns2 48sn lt 50 O sns 2 Slip OSns2 48 lt nS50 0 lt n lt 2 Validation Osns2 48 lt sns50 0 lt n lt 2 Initial Value Thermal n 0 Slip n 0 Validation n 0 Function This specifies position alignment for all print data in one line in the set print region n Position alignment 0 48 Left alignment 1 49 Center alignment 2 50 Right alignment lt Slip gt lt Validation gt When page mode is selected only setting is valid Setting is valid after switching to line mode Note The settings by this command are valid for all stations ABC ABCD lt ESC gt lt GS2a 0 ABCDE ABC lt ESC gt lt GS gt a 1 4 ABCD ABCDE ABC lt ESC gt lt GS4a 2 ABCD ABCDE STAR LIne Mode Command Specifications 3 42 SAIF 3 3 7 ESC amp Name Code Defined Area Thermal Download c1 c2 n d1 d48 Register 12 x 24 dot font download characters ASCII ESC amp ct c2 n dt Hexadecimal 1B 26 c1 c2 n di Decimal 27 38 cl c2 n di d48 d48 d48 c1 1 49 c2 1 49
206. ter is processed as normal data This command is affected by position alignment left margin position movement position such as horizontal tabs and upside down printing lt Slip gt lt Validation gt All data received and discarded STAR Line Mode Command Specifications 3 119 ESC GS 1hv Name Specify mark height and line feed Code ASCII ESC GS 1 h v Hexadecimal 1B 1D 2A 31 h v Decimal 27 29 42 49 h v Defined Area Thermal 001 lt h lt 255 001 lt v lt 255 h lt v Slip Doe Validation Initial Value Thermal Non volatile memory Slip Doe Validation Function lt Thermal gt Specifies mark height and line feed v indicates mark height number of dots v indicates mark line feed amount number of dots h v are ASCII character strings that are expressed in decimal They are composed of character codes from 0 to 9 If a small line feed amount is specified there is the possibility that intermittent printing could occur so a setting of v 16 dots or higher is recommended lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal ESC GS 2mcw Name Specifies mark color and mark horizontal width in each mark number Code ASCII ESC GS 2 m c w Hexadecimal 1B 1 D 2A 32 m c w Decimal 27 29 42 50 m cC Ww Defined Area Thermal 0 sma 9 0 scs 1 001 lt w lt
207. tes 4 096 bytes are kept as parameter information separate to the data so the data region memory capacity is 520 192 Bytes Ex When the registered data size per each one is 6 Kbytes 6 144 bytes it is possible to register 520 192 6144 84 Command Specifications 3 54 SQI Rev 0 00 Note Registration data shared by all stations and modes If this command is used frequently there is the possibility of damaging the non volatile memory Write to the non volatile memory less than 10 times in one day Relationship of logo and registered data xn xn1 xn2 x 256 yn yn1 yn2 x 256 xn 1 xn2 x 256 x 8 dot Data MSB d 11 d 21 d n1 d 12 d 22 d n2 yn1 yn2 x 256 bite yn1 yn2 x 256 x 8 dot LSB d x1 d x2 d xn STAR Line Mode Command Specifications 3 55 SCQF Rev 0 00 ESC FSpnm Name Print logo Code ASCII ESC FS p n om Hexadecimal 1B 1C 70 n m Decimal 27 28 112 n m Defined Area Thermal 1s ns255 0 lt ms3 48 lt m lt 51 0 lt m lt 3 Slip Tsns255 0 lt m lt 3 48 lt m lt 51 0 lt m lt 3 Validation 1sns255 O lt m lt 3 48 lt m lt 51 0 lt m lt 3 Initial Value Thermal Doe Slip a Validation Function Prints the logo of registration number n registered using the logo registration command ESC FS q according to the print mode m
208. that enable high speed and high quality printing of graphics The following shows the characteristics and specifications for raster graphics e Define the raster mode command as an expansion set for Star Line mode Basically no restrictions set for use of conventional STAR line mode Not usable with Star Page mode e Supports high speed data transmission When using IEEE 1284 data transmission rate of 80 to 100 kbytes ensured e Supports both fixed lengths and variable length modes e Print speed selectable e Post printing cut operation selectable e All settings possible by raster commands Most settings are possible without DIPSW memory switch settings e Support of printer driver that supports the raster mode The following shows the raster command details Note that if not specifically noted the following commands are effective only in raster mode and the commands are ignored Four bytes ignored when other than the raster mode The raster image buffer in the command details described below indicate the raster dedicated image buffer the length thereof vertical direction dot count differing between models The following commands are valid only when thermal has been selected Their use is prohibited when slip and valida tion have been selected The following commands are valid only when Thermal is selected Use is prohibited when Slip Validation is selected STAR Line Mode Command Specifications 3 89 SEQ ESC rR Rev 0 00 N
209. the DIP switches e The specification of this command is not cleared by ESC CAN e Prints data in line buffer if unprinted data exists in the line buffer e This command is processed after quitting the current print e Commands that select the same mode are ignored in the currently selected mode lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 111 St QIr lt Rev 0 00 ESC 4 Name Thermal Specify black white inversion Slip specify black white inversion specify red black color Code ASCII ESC 4 Hexadecimal 1B 34 Decimal 27 52 Defined Area Thermal o Slip o Validation o Initial Value Thermal White black inversion cancelled Slip White black inversion cancelled black color printing specified Validation White black inversion cancelled black color printing specified Function lt Thermal gt Specifies white black inversion for ANK characters and Kanji characters IBM block ignores white black inversion lt Slip gt lt Validation gt This command function is based on the selection of red black substitute function The red black substitute function is selected by the memory switch or the command ESC GS 4 mn For details on selecting the red black substitute function using a command see the explanation of ESC GS 4 below and for details on selecting the red black substitute function using the memory switch see the printer
210. the memory switch lt Slip gt lt Validation gt When page mode is selected only setting is valid Setting is valid after switching to line mode Note The settings by this command are valid for all stations STAR Line Mode Command Specifications 3 73 iL Yi SAI Rev 0 00 ESC n Name Specify cancel JIS Kanji character mode Code ASCII ESC n Hexadecimal 1B 24 n Decimal 27 36 n Defined Area Thermal n 0 1 48 49 Slip n O 1 48 49 Validation n O 1 48 49 Initial Value Thermal Memory switch setting Slip Memory switch setting Validation Memory switch setting Function Specifies and cancels the shift JIS Kanji character mode n Shift JIS Japanese Character Mode 0 48 Cancel shift JIS Kanji character mode 1 49 Specify shift JIS Kanji character mode When in shift JIS Kanji character mode if the data is lt 80 gt H to lt 9F gt H or lt E0 gt H to lt FF gt H this is handled as 2 byte Japanese characters First byte upper code second byte lower code Even when setting the shift JIS Kanji character mode the control code is valid When the shift JIS Kanji character mode is canceled the block graphics mode is selected At that time if the data is lt 80 gt H to lt 9F gt H or lt EO gt H to lt FF gt H this is handled as 1 byte of block graphic characters This command is ignored for models not equipped with Japanese and Kanji characters and when the specification for the locati
211. tion gt STAR LIne Mode Only setting is valid Setting is valid after switching to thermal Command Specifications 3 136 Rev 0 00 SQI Rev 0 00 ESC GS x D nL nH d1 d2 dk Name PDF417 bar code data setting Code ASCII ESC GS x D nb nH d1 d2 dk Hexadecimal 1B 1D 78 44 nl nH di d2 dk Decimal 27 29 120 68 nL nH d1 d2 dk Defined Area Thermal Osnls255 0 lt nH lt 255 1 lt nL nH x 256 lt 1024 0 lt d lt 255 1 lt k lt 1024 Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Parameter details e nL nHx256 Bar code data count e dk Bar code data max 1024 data When nL nHx256 is outside of the defined area data of nL nHx256 bytes is received and dis carded lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal ESC GS x P Name Print PDF417 bar code Code ASCII ESC GS x P Hexadecimal 1B 1D 78 50 Decimal 27 29 120 80 Defined Area Thermal Doe Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt Prints bar code data If there is unprinted data in the line buffer this command is executed after printing that data Therefore it is not possible to print with other data in the same line characters bit images bar codes Also if the following errors occur this command is ignored e An error occurs when generating the
212. tion level Code ASCII ESC GS Y S 1 n Hexadecimal 1B 1D 79 53 31 n Decimal 27 29 121 83 49 n Defined Area Thermal Osns3 Slip o Validation o Initial Value Thermal n 0 Slip o Validation o Function lt Thermal gt Sets the error correction level e Parameter details n Error Correction Level Error Correction Rate 0 L 7 1 M 15 2 Q 25 3 H 30 lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR Line Mode Command Specifications 3 143 Rev 0 00 ESC GSyS2n Name Set QR code cell size Code ASCII ESC GS y S 2 n Hexadecimal 1B 1D 79 53 32 n Decimal 27 29 121 83 50 n Defined Area Thermal 1sns8 Slip Doe Validation Doe Initial Value Thermal n 3 Slip Doe Validation Doe Function lt Thermal gt Sets the cell size e Parameter details n Cell size Units Dots Specification using this command is recommended to be 3 lt n To use with n 1 and 2 confirm by actual use lt Slip gt lt Validation gt Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 144 SQI Rev 0 00 ESC GS y D 1m nL nH di d2 dk Name QR code data setting automatic setting Code ASCII ESC GS y D 1 m nl nH di d2 dk Hexadecimal 1B 1D 79 44 31 m nl nH d1 d2 dk Decimal 27 29 121 68 49 m nL nH di d2 dk Defined Area Thermal m 0 0 lt nL lt 255 0 lt n
213. tside of the defined area the data for the amount of the counter is received and discarded At that time the bar code data is cleared The command data storage region is shared with the automatic setting command so data is updated each time either command is executed Only setting is valid Setting is valid after switching to thermal STAR LIne Mode Command Specifications 3 146 SAIF ESC GS y P Name Print QR code Code ASCII ESC GS y P Hexadecimal 1B 1D 79 50 Decimal 27 29 121 80 Defined Area Thermal Doe Slip Doe Validation Initial Value Thermal Doe Slip Doe Validation Function lt Thermal gt This command prints the bar code data Rev 0 00 When this command is received the printer prints unprinted data if unprinted data remains in the image buffer then prints the bar code Margins of more than 4 cells are required around the QR code The user must ensure the margins e Bar codes to be printed should always be confirmed through an actual printout lt Slip gt lt Validation gt Four bytes ignored ESC GS yl Name Get QR code expansion information Code ASCII ESC GS y l Hexadecimal 1B 1D 79 49 Decimal 27 29 121 73 Defined Area Thermal o Slip o Validation o Initial Value Thermal o Slip bos Validation o Function lt Thermal gt In expanding bar codes with the current setting using this command information such as the size of the generated image
214. ubled Spec 2 Line feed according to bar code height under bar characters e k bar code data count d bar code data Bar Codes Types Defined area of k Defined area of d UPC E 11sks12 48 lt d lt 57 0 lt d lt 9 UPC A 1isks12 48 lt d lt 57 0 lt d lt 9 JAN EAN8 7 lt sks8 48 lt d lt 57 0 lt d lt 9 JAN EAN13 12sks13 48 lt d lt 57 0 lt d lt 9 Code39 1 lt k 48 lt d lt 57 0 lt d lt 9 65 lt d lt 90 A lt d lt Z 32 36 37 43 45 46 47 SP 2 T ITF 1sk 48 lt d lt 57 0s d lt 9 For odd numbers 0 data is automatically added to the top Code128 1sk Osds127 Code93 1 lt k Osds127 NW 7 1sk 48 lt d lt 57 0 lt d lt 9 65 lt d lt 68 A lt d lt D 36 43 45 46 47 58 n 7 97 98 99 100 a b c d STAR Line Mode Command Specifications e UPC E k 11 or 12 The 12 check digit is automatically applied so it is ignored even if specified Command is ignored if the data cannot be shortened Data conversion to rectangles is automatic e UPC A k 11 or 12 The 12 check digit is automatically applied so it is ignored even if specified e JAN EAN 8 k 7 or 8 The 8 check digit is automatically applied so it is ignored even if specified e JAN
215. unction Executes the external device drive conditions set according to the command to set the external drive device pulse width ESC BEL n1 n2 As with other commands it temporarily stores data in the data buffer then executes in the order re ceived Note External device 1 and external device 2 cannot be executed simultaneously FS Name External device 1 drive instruction Code ASCII FS Hexadecimal 1C Decimal 28 Defined Area Thermal Slip Doe Validation Doe Initial Value Thermal Doe Slip Doe Validation De Function Executes the external device drive conditions set according to the command to set the external drive device pulse width ESC BEL n1 n2 As with other commands it temporarily stores data in the data buffer then executes in the order re ceived Note External device 1 and external device 2 cannot be executed simultaneously STAR LIne Mode Command Specifications 3 62 SQI Rev 0 00 SUB Name External device 2 drive instruction Code ASCII SUB Hexadecimal 1A Decimal 26 Defined Area Thermal o Slip Doe Validation Doe Initial Value Thermal Doe Slip i ke Validation Doe Function Drives external device 2 The energizing time and delay time for the external device 2 are fixed at 200 ms each As with other commands it temporarily stores data in the data buffer then executes in the order received Note External device 1 and external device 2 cannot be executed simultaneously
216. unications When using serial parallel or USB vendor class use is possible The command is ignored set to enable auto status when using Ethernet or wireless LAN Settings of this command are unaffected by the ESC command initialization command See each printer s product specifications manual for details on the memory switch settings Note The settings using this command are valid for all stations and modes STAR Line Mode Command Specifications 3 69 SEQ Rev 0 00 ESC ACK SOH Name Real time printer status ASB Status Code ASCII ESC ACK SOH Hexadecimal 1B 06 01 Decimal 27 6 1 Defined Area Thermal o Slip De Validation Doe Initial Value Thermal Doe Slip De Validation Doe Function This command is effective only when using an interface capable of bi directional data communications When this command is received the printer sends the status to the host in real time Immediately executed not when taking out from the reception buffer but when received from the host Bi directional parallel interfaces enter a data present state See the Appendix Auto Status for details regarding status When in the serial interface DTR mode and using a parallel interface set so that the status can be inquired even when offline for errors etc This command is not used when auto status is valid When this command is sent once to the printer do not send the next ESC ACK SOH command until the final auto status
217. unter Code ASCII ESC SYN 4 n Hexadecimal 1B 16 4 n Decimal 27 22 52 n Defined Area Thermal tos Slip Doe Validation Doe Initial Value Thermal De Slip Doe Validation Doe Function Four bytes ignored STAR LIne Mode Command Specifications 3 160 SAIF Rev 0 00 3 17 MICR Related Command Details The following commands control MICR functions The following commands are effective only on models equipped with MICR ESC FSMmn Name MICR function Code ASCII ESC FS M m n Hexadecimal 1B 1C 4D m n Decimal 27 28 77 m n Defined Area Thermal Doe Slip 48sms50 0 sms 2 n 48 49 Validation Doe Initial Value Thermal Doe Slip Doe Validation Doe Function lt Thermal gt lt Validation gt lt Slip gt Five bytes ignored Performs operations on inserted slip paper cleaning paper Note that if slip paper has been inserted and already is targeted for printing that slip paper is dis charged to the back the forward direction and operations are performed on the newly inserted slip paper cleaning paper Function 48 Reads format specified by n and returns read character string n 48 e E13B read format n 49 e CMC7 read format Reading successful ESC FS M On read character string LF NUL Reading failed e ESC FS M 0 n LF NUL 49 Reads with format specified by n and returns read character string If no slip paper has been inserted an empty character i
218. ute only functions other than the cutting operation printing paper feed operations 1 49 Partial cut at the current position Print data in line buffer is printed before a partial cut Models not provided the auto cutter execute only functions other than the cutting operation printing paper feed operations 2 50 Paper is fed to cutting position then a full cut Print data in line buffer is printed before the operation described above Models not provided the auto cutter execute only functions other than the cutting operation printing paper feed operations 3 51 Paper is fed to cutting position then a partial cut Print data in line buffer is printed before the operation described above Models not provided the auto cutter execute only functions other than the cutting operation printing paper feed operations Rev 0 00 The auto cutter function operates in the following ways on models that only have a full cut or a partial cut e Models that perform only a full cut Executes a full cut when for instructions calling for a partial cut e Models that perform only a partial cut Executes a partial cut when for instructions calling for a full cut lt Slip gt lt Validation gt Three bytes ignored STAR LIne Mode Command Specifications 3 60 SAIF Rev 0 00 3 3 12 External Device Drive ESC BEL n1 n2 Name Set external drive device 1 pulse width Code ASCII ESC BEL n
219. version De ESC Reset printer en DC3 Printer deselect oe DC1 Select printer lt Kanji character commands e Kanji character control commands are ignored on printers not installed with Kanji character fonts those in tended for overseas e All Kanji control commands are ignored if the specification for the location of use is specified as SBCS single byte countries by the memory switch STAR LIne Mode Command Specifications 2 3 SAIF e Raster Related Commands Rev 0 00 Class Commands Name Thermal Slip Validation Raster ESC rR Initialize raster mode commands ESC rA Enter raster mode ESC rB Quit raster mode ESC rC Clear raster data ESC rD Drawer drive ESC rE Set raster EOT mode ESC rF Set raster FF mode ESC rP Set raster page length ESC rQ Set raster print quality ESC rml Set raster left margin ESC rmr Set raster right margin ESC rT Set raster top margin ESC rK Set raster print color b n1 n2 d1 dk Transfer raster data auto line feed k n1 n2 d1 dk Transfer raster data ESC ryY Move vertical direction position Line feed for specified dots ESC FF NUL Execute form feed mode ESC FF EOT Execute EOT mode ESC rN Discard specified byte count of data ESC rV Execute external buzzer drive e Black Mark Related Commands Class Command
220. wires and the data dn 1 to 8 pin data MSB LSB b7 b6 b5 b4 b3 b2 b1 bO Pin No Ifo 2je 3 e ajo 5 e ejo 7 a o ole b7 b6 b5 b4 b3 b2 b1 bo MSB LSB dn 1 9 pin data STAR Line Mode Command Specifications 3 53 SEQ Rev 0 00 3 3 9 Logo ESC FS qn x11 x12 y11 y12 d1 dk 1 xn1 xn2 yn1 yn2 d1 dk n Name Register logo Code ASCII ESC FS q n x11 x412 yi1 y12 di dk 1 xn1 xn2 yni yn2 d1 dk n Hexadecimal 1B 1C 714 n x11 x412 y11 y12 d1 dk 1 xn1 xn2 yni yn2 d1 dk n Decimal 27 28 113 n x11 x12 y11 y12 d1 dk 1 xn1 xn2 yni yn2 d1 dk n Defined Area Thermal 1sns255 0 lt xn1 lt 255 0 lt xn2 lt 3 18 xn1 xn2 x 256 lt 1023 Osyn1 lt 255 0syn2 lt 1 1 lt yn1 yn2 x 256 lt 288 0 lt d lt 255 k xn1 xn2 x 256 x yn1 yn2 x 256 x 8 Slip 1 lt ns255 0 lt xn1 lt 255 0 lt xn2 lt 3 18 xn1 xn2 x 256 lt 1023 0 lt yn1 lt 255 0 lt yn2 lt 1 1 lt yn1 yn2 x 256 lt 288 0 lt d lt 255 k xn1 xn2 x 256 x yn1 yn2 x 256 x 8 Validation 1 lt n lt 255 0 lt xn1 lt 255 0 lt xn2 lt 3 1 lt xn1 xn2 x 256 lt 1023 0 lt yn1 lt 255 0 lt yn2 lt 1 1 lt yn1 yn2 x 256 lt 288 0 lt dz lt 255 k xn1 xn2 x 256 x yn1 yn2 x 256 x 8 Initial Value Thermal No registration Slip No registration Validation No registration Function Register logo STAR LIne Mode Parameter details en

Download Pdf Manuals

image

Related Search

Related Contents

VARTA Pkw Catalogue - Hostettler Autotechnik AG  USER MANUAL IN ORIGINAL  CAM4571RF Outdoor Fisheye Network Camera  MANUAL TÉCNICO    Betriebsanleitung - Ersatzteile  Portamess 913(X) pH  Sony Cyber-shot DSCWX10B User's Manual  

Copyright © All rights reserved.
Failed to retrieve file