Sinocan P11-USL Programming Manual Download Page 11

                                   

               

THERMAL RECEIPT PRINTER

                                 

             

     

11

 

ESC $ 

nL nH

                                                                                                                                                               

[Name]        Set absolute print position 
[Format]              ASCII            ESC            $             

nL   nH

 

Hex                1B                24         

nL   nH

 

Decimal        27                36         

nL   nH 

[Range]       0 

 nL 

 

255 

 nH

 

 

255 

[Description]      Sets the distance from the beginning of the line to the position at which 

subsequent characters are to be printed. 
• The distance from the beginning of the line to the print position is 

[( 

nL + nH

 

 256) 

(vertical or horizontal motion unit)] inches. 

[Details]                • Settings outside the specified printable area are ignored. 

• The horizontal and vertical motion unit are specified by 

GS P

• The GS P command can change the horizontal (and vertical) motion unit. 

However, the value cannot be less than the minimum horizontal movement 
amount, and it must be in even units of the minimum horizontal movement 
amount. 

• In standard mode, the horizontal motion unit ( x) is used. 
• In page mode, horizontal or vertical motion unit differs depending on the 

starting position of the printable area as follows: 
1 When the starting position is set to the upper left or lower right of the 
printable area using 

ESC T

, the horizontal motion unit ( x) is used. 

2 When the starting position is set to the upper right or lower left of the 
printable area using 

ESC T

, the vertical motion unit ( y) is used. 

[Reference]    

ESC \

GS $

GS \

GS P 

 

ESC % n                                                                                                                                                                           

[Name]        Select/cancel user-defined character set 
[Format]              ASCII              ESC          %             

n

 

Hex                  1B              25         

n

 

Decimal            27              37         

n

 

[Range]       0 

 nL

 

 

255  

[Description]      Selects or cancels the user-defined character set. 

• When the LSB of 

n

 is 0, the user-defined character set is canceled. 

• When the LSB of 

n

 is 1, the user-defined character set is selected. 

[Details]                • When the user-defined character set is canceled, the internal character set is 

automatically selected. 

• 

n

 is available only for the least significant bit. 

[Default]       

n

 = 0 

[Reference]    

ESC &

ESC ?

 

 

ESC & y 

c1 c2 [x1 d1...d(y 

x1)]...[xk d1...d(y 

xk)] 

                                                                 

[Name]        Define user-defined characters 
[Format]              ASCII              ESC    &         

y  c1  c2 [

 1 d1...d(y 

 x1)]...[xk d1...d(y 

 xk)]

 

Hex                  1B        26       

y  c1  c2 [

 

1 d1...d(y 

 

x1)]...[xk d1...d(y 

 xk)]

 

Decimal     27    38    

y  c1  c2 [

 

1 d1...d(y 

 

x1)]...[xk d1...d(y 

 xk)]

 

[Range]       

y

 = 3 

32 

 c1 

 c2

 

 

126 

 x

 

 

12 Font A (12 

 24) 

 x 

 

9 Font B (9 

 17) 

Summary of Contents for P11-USL

Page 1: ...Thermal Receipt Printer P11 USL PROGRAMMING MANUAL...

Page 2: ...ing ESC 3 n Set line spacing ESC n Select peripheral device ESC n Cancel user defined characters ESC Initialize printer ESC D Set horizontal tab positions ESC E n Turn emphasized mode on off ESC G n T...

Page 3: ...n page mode GS Execute macro GS b n Turn smoothing mode on off GS f n Select font for HRI characters GS h n Set bar code height GS k n Print bar code GS r n Transmit status GS v 0 Print raster bit ima...

Page 4: ...n for the paper roll is font A 12 24 every 8th character 9th 17th 25th column Reference ESC D LF Name Print and line feed Format ASCII LF Hex 0A Decimal 10 Description Prints the data in the print buf...

Page 5: ...s transmission Format ASCII DLE EOT n Hex 10 04 n Decimal 16 4 n Range 1 n 4 Description Transmits the selected printer status specified by n in real time according to the following parameters n 1 Tra...

Page 6: ...mitted by the DLE EOT command and the ASB status must be differentiated n 1 Printer status Bit Off On Hex Decimal Function 0 0 00 0 Not used Fixed to Off 1 1 02 2 Not used Fixed to On 2 0 00 0 Drawer...

Page 7: ...or Paper present 1 60 96 Paper roll end detected by paper roll senso 7 0 00 0 Not used Fixed to Off Reference DLE ENQ GS a GS r DLE ENQ n Name Real time request to printer Format ASCII DLE ENQ n Hex 1...

Page 8: ...and is enabled only for errors that have the possibility of recovery except for print head temperature error When the printer is disabled with ESC Select peripheral device the error recovery functions...

Page 9: ...P n Hex 1B 20 n Decimal 27 32 n Range 0 n 255 Description Sets the character spacing for the right side of the character to n horizontal or vertical motion units Details The right side character spaci...

Page 10: ...derline mode not selected On 80 128 Underline mode selected Details When both double height and double width modes are selected quadruple size characters are printed The printer can underline all char...

Page 11: ...intable area as follows 1 When the starting position is set to the upper left or lower right of the printable area using ESC T the horizontal motion unit x is used 2 When the starting position is set...

Page 12: ...g dots on the right side are blank The data to define a user defined character is y x bytes Set a corresponding bit to 1 to print a dot or 0 to not print a dot This command can define different user d...

Page 13: ...THERMAL RECEIPT PRINTER 13 When font B 9 17 is selected...

Page 14: ...sity 8 67 DPI 100 DPI nL nH 256 1 8 dot double density 8 67 DP 200 DPI nL nH 256 32 24 dot single density 24 200DPI 100 DPI nL nH 256 3 33 24 dot double density 24 200 DPI 200DPI nL nH 256 3 Details I...

Page 15: ...right to accommodate the amount of data If step does not provide sufficient width for the data the left margin is reduced to accommodate the data After printing a bit image the printer returns to nor...

Page 16: ...underline the space set by HT The printer cannot underline 90 clockwise rotated characters and white black inverted characters When underline mode id turned off by setting the value of n to 0 or 48 t...

Page 17: ...movement amount In standard mode the vertical motion unit y is used In page mode this command functions as follows depending on the starting position of the printable area When the starting position...

Page 18: ...er and resets the printer mode to the mode that was in effect when the power was turned on Details The DIP switch settings are not checked again The data in the receive buffer is not cleared The macro...

Page 19: ...SC E n Name Turn emphasized mode on off Format ASCII ESC E n Hex 1B 45 n Decimal 27 69 n Range 0 n 255 Description Turns emphasized mode on or off When the LSB of n is 0 emphasized mode is turned off...

Page 20: ...or lower left of the print able area using ESC T the horizontal motion unit x is used The maximum line spacing is 1016mm 40 inches When the setting value exceeds the maximum it is converted to the max...

Page 21: ...Reference FF CAN ESC FF ESC S ESC T ESC W GS GS ESC M n Name Select character font Format ASCII ESC M n Hex 1B 4D n Decimal 27 77 n Range n 0 1 48 49 Description Selects character fonts n Function 0 4...

Page 22: ...standard mode and page mode to those for standard mode Set right side character spacing ESC SP FS S Select default line spacing ESC 2 ESC 3 The following commands are enabled only to set in standard m...

Page 23: ...ting area data is buffered in the direction perpendicular to the paper feed direction Commands using horizontal motion units ESC SP ESC ESC Commands using vertical motion units ESC 3 ESC J GS GS If th...

Page 24: ...Details If this command is input in standard mode the printer executes only internal flag operation This command does not affect printing in standard mode If the horizontal or vertical starting posit...

Page 25: ...n Default xL xH yL yH 0 dxL 0 dxH 2 dyL 126 dyH 6 Reference CAN ESC L ESC T GS P ESC nL nH Name Set relative print position Format ASCII ESC nL nH Hex 1B 5C nL nH Decimal 27 92 nL nH Range 0 nL 255 0...

Page 26: ...T the vertical motion unit y is used Reference ESC GS P ESC a n Name Select justification Format ASCII ESC a n Hex 1B 61 n Decimal 27 97 n Range 0 n 2 48 n 50 Description Aligns all the data in one li...

Page 27: ...ected as the paper sensor outputting paper end signals If either bit 2 or bit 3 is on the paper roll end sensor is selected as the paper sensor outputting paper end signals When all the sensors are di...

Page 28: ...d n Hex 1B 64 n Decimal 27 100 n Range 0 n 255 Description Prints the data in the print buffer and feeds n lines Details This command sets the print starting position to the beginning of the line Thi...

Page 29: ...n 0 ESC n Name Turns on off upside down printing mode Format ASCII ESC n Hex 1B 7B n Decimal 27 123 n Range 0 n 255 Description Turns upside down printing mode on or off When the LSB of n is 0 upside...

Page 30: ...e specified NV bit image has not been defined In standard mode this command is effective only when there is no data in the print buffer In page mode this command is not effective This command is not a...

Page 31: ...he defined NV bit image xL xH specifies xL xH 256 8 dots in the horizontal direction for the NV bit image you are defining yL yH specifies yL yH 256 8 dots in the vertical direction for the NV bit ima...

Page 32: ...256 yL yH 256 8 header 4 bytes of NV memory The definition area in this printer is a maximum of 0 5M bits 64K bytes This command can define several NV bit images but cannot define a bit image data wh...

Page 33: ...Decimal 29 33 n Range 0 n 255 1 vertical number of times 8 1 horizontal number of times 8 Description Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7 a...

Page 34: ...range this command is ignored In standard mode the vertical direction is the paper feed direction and the horizontal direction is perpendicular to the paper feed direction However when character orie...

Page 35: ...position is set to the upper right or lower left this command sets the absolute position in the horizontal direction The horizontal and vertical motion unit are specified by GS P The GS P command can...

Page 36: ...Details This command is ignored if a downloaded bit image has not been defined In standard mode this command is effective only when there is no data in the print buffer This command has no effect in t...

Page 37: ...macro undefined state The contents of the macro can be defined up to 2048 bytes If the macro definition exceed 2048 bytes excess data is not stored Reference GS GS B n Name Turn white black reverse p...

Page 38: ...0 nL 255 0 nH 255 Description Sets the left margin using nL and nH The left margin is set to nL nH 256 horizontal motion unit inches Printable area Left margin Printing area width Details This comman...

Page 39: ...character orientation When the print starting position is set to the upper left or lower right of the printing area using ESC T data is buffered in the direction perpendicular to the paper feed direct...

Page 40: ...H Hex 1D 57 nL nH Decimal 29 87 nL nH Range 0 nL 255 0 nH 255 Description Sets the printing area width to the area specified by nL and nH The printing area width is set to nL nH 256 horizontal motion...

Page 41: ...it image GS r 0 Double width mode or Quadruple mode 2 dots Normal mode or Double height mode 1 dot Default nL 0 nH 2 For 58mm paper width model nL 104 nH 1 Reference GS L GS P GS nL nH Name Set relati...

Page 42: ...val specified by t When the LSB of m 1 After waiting for the period specified by t the PAPER OUT LED indicators blink and the printer waits for the FEED button to be pressed After the button is presse...

Page 43: ...tes are transmitted without confirming whether the host is ready to receive data The four status bytes must be consecutive except for the XOFF code Since this command is executed after the data is pro...

Page 44: ...29 107 m n d1 dn Range 0 m 6 k and d depends on the bar code system used 65 m 73 n and d depends on the bar code system used Description Selects a bar code system and prints the bar code m selects a...

Page 45: ...as bar code data If n is outside of the specified range the printer stops command processing and processes the following data as normal data Details in standard mode If d is outside of the specified r...

Page 46: ...SPACE If the host computer is not ready to receive data DSR signal is MARK the printer waits until the host is ready When XON XOFF control is selected the printer transmits only 1 byte without confirm...

Page 47: ...t image Details In standard mode this command is effective only when there is no data in the print buffer This command has no effect in all print modes character size emphasized double strike upside d...

Page 48: ...th mm Thick element width mm 2 0 25 0 25 0 625 3 0 375 0 375 1 0 4 0 5 0 5 1 25 5 0 625 0 625 1 625 6 0 75 0 75 1 875 Multi level bar codes are as follows UPC A UPC E JAN13 EAN13 JAN8 EAN8 CODE93 CODE...

Page 49: ...cter mode Format ASCII FS Hex 1C 26 Decimal 28 38 Description Selects Kanji character mode Reference FS FS C FS n Name Turn underline mode on off for Kanji characters Format ASCII FS n Hex 1C 2D n Dec...

Page 50: ...ode system used Model type c1 c2 Japanese Kanji supporting model JIS code system c1 77H 21H c2 7EH Japanese Kanji supporting model SHIFT JIS code system c1 ECH 40H c2 7EH 80H c2 9EH Chinese Kanji supp...

Page 51: ...horizontal or vertical motion units and the right side character spacing is n2 horizontal or vertical motion units Details When double width mode is set the left and right side character spacing is t...

Page 52: ...quadruple size mode on off for Kanji characters Format ASCII FS W n Hex 1C 57 n Decimal 28 87 n Range 0 n 255 Description Turns quadruple size mode on or off for Kanji characters When the LSB of n is...

Reviews: