background image

 

                                                     

-------------Thermal    Printer-------------

 

 
 
 
 
 

Programmer Manual 

Summary of Contents for RP-100-300II

Page 1: ... Thermal Printer Programmer Manual ...

Page 2: ...buffer that stores the image data to be printed 3 Print buffer full This is the state where the print buffer is full If new print data is input while the print buffer is full the data in the print buffer is printed out and a line feed is executed This is the same operation as the LF operation 4 Start of line The start of line state satisfies the following condition There is no print data including...

Page 3: ...rs are read in and discarded and nothing happens 8 Inch A unit of length One inch is 25 4 mm 9 MSB Most Significant Bit 10 LSB Least Significant Bit 11 Base line Standard position when character data is stored in the print buffer Normal character in standard mode and page mode ...

Page 4: ...lt line spacing ESC 3n Set line spacing ESC n Set peripheral device ESC n Cancel user defined characters ESC Initialize printer ESC D n1 nk NUL Set horizontal tab positions ESC E n Turn emphasized mode on off ESCG n Turn on off double strike mode ESCJ n Print and feed paper ESC L Select page mode ESC M n Select character font ESC Rn Select an international character set ESC S Select standard mode ...

Page 5: ...ea width GS nLnH Set relative vertical print position in page mode GS r t m Execute macro GS a n Enable Disable Automatic Status Back ASB GS f n Select font for Human Readable Interpretation HRI characters GS h n Select bar code height GS k m d1 dk NUL Print bar code GS k m n d1 dn GS r n Transmit status GS v 0 m xL xH yL yH d1 dk Print raster bit image GS w n Set bar code width FS n Set print mod...

Page 6: ...ng of the horizontal tab position for the paper roll is font A 12 X 24 every 8th character 9th 17th 25th column Reference ESC D LF Name Print and line feed Format ASCII LF Hex OA Decimal 10 Description Prints the data in the print buffer and feeds one line based on the current line spacing Note This command sets the print position to the beginning of the line Reference ESC 2 ESC 3 FF Name Print an...

Page 7: ..._nHd1 dk d1 10 H d2 04 H d3 01 H This command should not be used within the data sequence of another command that consists of 2 or more bytes Example If you attempt to transmit ESC 3 n to the printer but DTR DSR for the host computer goes to MARK before n is transmitted and then DLE EOT 3 interrupts before n is received the code 10 H for DLE EOT 3 is processed as the code for ESC 3 10 H Even thoug...

Page 8: ...tion 0 0 00 0 Not used Fixed to Off 1 1 02 2 Not used Fixed to On 2 0 00 0 Cover is closed 1 04 4 Cover is open 3 0 00 0 Paper is not being fed by using the FEED button 1 08 8 Paper is beginning fed by the FEED button 4 1 10 16 Not used Fixed to On 5 0 00 0 No paper end stop 1 20 32 Printing is being stopped 6 0 00 0 No error 1 40 64 Error occurs 7 0 00 0 Not used Fixed to Off n 3 Error status Bit...

Page 9: ...r paper adequate 1 0C 12 Paper near end is detected by the paper roll near end sensor 4 1 10 16 Not used Fixed to On 5 6 0 00 0 Paper roll sensor Paper present 1 60 96 Paper roll end detected by paper roll sensor 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 10 05 n Decimal 16 5 n Reference 1 n 2 Description Respon...

Page 10: ... when the error occurred The printer can be initialized completely by using this command and ESC This command 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 DLE ENQ 1 and DLE ENQ 2 are enabled and the other functions are disabled Reference DLE EOT DL...

Page 11: ...55 Description Sets the character spacing for the right side of the character to n horizontal or vertical motion units Details The right side character spacing for double width mode is twice the normal value When characters are enlarged the right side character spacing is n times normal value This command does not affect the setting of kanji characters This command sets values independently in eac...

Page 12: ... Thermal Printer 11 converted to the maximum automatically ...

Page 13: ...ceived command is effective ESC can also turn on or off underline mode However the setting of the last received command is effective GS can also select character size However the setting of the last received command is effective Emphasized mode is effective for alphanumeric and Kanji All print modes except emphasized mode is effective only for alphanumeric Default n 0 Reference ESC ESC E GS ESC nL...

Page 14: ...ng ESC T the horizontal motion unit x is used 2When 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 ...

Page 15: ...tes Set a corresponding bit to 1 to print a dot or 0 to not print a dot This command can define different user defined character patterns by each fonts To select a font use ESC A user defined character and a downloaded bit image cannot be defined simultaneously When this command is executed the downloaded bit image is cleared The user defined character definition is cleared when ESC is executed ES...

Page 16: ... Thermal Printer 15 ...

Page 17: ... dots is calculated by nL nH X 256 If the bit image data input exceeds the number of dots to be printed on a line the excess data is ignored d indicates the bit image data Set a corresponding bit to 1 to print a dot or to 0 to not print a dot If the width of the printing area set by GS L and GS W less than the width required by the data sent with the ESC command the following will be performed on ...

Page 18: ... Thermal Printer 17 When 24 dot bit image is selected ...

Page 19: ...he line spacing to n X vertical or horizontal motion unit inches Details The line spacing can be set independently in standard mode and in page mode The horizontal and vertical motion unit are specified by GS P Changing the horizontal or vertical motion unit does not affect the current line spacing The GS P command can change the horizontal and vertical motion unit However the value cannot be less...

Page 20: ...t is enabled by this command Default n 1 ESC n Name Cancel user defined characters Format ASCII ESC n Hex 1B 3F n Decimal 27 63 n Range 32 n 126 Description Cancels user defined characters Details This command cancels the pattern defined for the character code specified by n After the user defined characters is canceled the corresponding pattern for the internal character is printed This command d...

Page 21: ...Up to 32 tab positions k 32 can be set Data exceeding 32 tab positions is processed as normal data Transmit n k in ascending order and place a NUL code 0 at the end When n k is less than or equal to the preceding value n k 1 tab setting is finished and the following data is processed as normal data ESC D NUL cancels all horizontal tab positions The previously specified horizontal tab positions do ...

Page 22: ...e area When the starting position is set to the upper left or lower right of the printable area using ESC T the vertical motion unit y is used When the starting position is set to the upper right 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 maximum...

Page 23: ...tandard mode when power is turned on the printer is reset or ESC is used 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 48 Character font A 12ⅹ24 selected 1 49 Character font B 9ⅹ17 selected ESC R n Name Select an international character set Format...

Page 24: ...ard mode Set absolute vertical print position in page mode GS Select relative print position in page mode GS Standard mode is selected automatically when power is turned on the printer is reset or command ESC is used Reference FF ESC FF ESC L ESC T n Name Select print direction in page mode Format ASCII ESC T n Hex 1B 54 n Decimal 27 84 n Range 0 n 3 48 n 51 Description Selects the print direction...

Page 25: ...ng area in page mode Format ASCII ESC W xL xH yL yH dxL dxH dyL dyH Hex 1B 57 xL xH yL yH dxL dxH dyL dyH Decimal 27 87 xL xH yL yH dxL dxH dyL dyH Range 0 xL xH yL yH dxL dxH dyL dyH 255 except dxL dxH 0 or dyL dyH 0 Description The horizontal starting position vertical starting position printing area width and print area height are defined as x0 y0 dx inch dy inch respectively Each setting for t...

Page 26: ...as X Y Dx and Dy respectively the printing area is set as shown in the figure below This printable area for this printer is approximately 72mm in the horizontal direction and approximately 117 3mm 1662 360 inches in the vertical direction Default xL xH yL yH 0 dxL 0 dxH 2 dyL 126 dyH 6 Reference CAN ESC L ESC T GS P ESC nLnH Name Set relative print position Format ASCII ESC nL nH Hex 1B 5C nL nH D...

Page 27: ...ormat 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 line to the specified position n selects the justification as follows Details The command is enabled only when processed at the beginning of the line in standard mode If this command is input in page mode the printer performs only internal flag operations This command has no effect in page mo...

Page 28: ... status ESC c 4 n Name Select paper sensor s to stop printing Format ASCII ESC c 4 n Hex 1B 63 34 n Decimal 27 99 52 n Range 0 n 255 Description Selects the paper sensor s used to stop printing when a paper end is detected using n as follows Bit Off On Hex Decimal Function 0 Off 00 0 Paper roll near end sensor disabled On 01 1 Paper roll near end sensor enabled 1 Off 00 0 Paper roll end sensor dis...

Page 29: ... 2 ESC 3 ESC p m t1 t2 Name Generate pulse Format ASCII ESC p m t1 t2 Hex 1B 70 m t1 t2 Decimal 27 112 m t1 t2 Range m 0 1 48 49 0 t1 255 0 t2 255 Description Outputs the pulse specified by t1 and t2 to connector pin m as follow m Connector pin 0 48 Drawer kick out connector pin 2 1 49 Drawer kick out connector pin 5 Default The pulse ON time is t1 2 ms and the OFF time is t2 2 ms If t2 t1 the OFF...

Page 30: ...C3011 Latvian 1 51 Katakana 87 PC3012 Latvian 2 52 PC437 Std Europe 88 PC3021 Bulgarian 53 PC858 Multilingual 89 PC3041 Maltese Default 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 down printing mode is turned off When the LSB of n is 1 upside d...

Page 31: ... Thermal Printer 30 ...

Page 32: ...ouble height mode m 2 50 and it means 2 dots in double width mode m 1 49 and in quadruple mode m 3 51 The printing area width is extended to the right in NV bit image mode up to one line vertically In this case printing does not exceed the printable area If the printing area width cannot be extended by one line vertically the left margin is reduced to accommodate one line vertically If the downloa...

Page 33: ... have it been defined are disabled undefined but any NV bit images before that are enabled The d indicates the definition data In data d a 1 bit specifies a dot to be printed and a 0 bit specifies a dot not to be printed This command defines n as the number of a NV bit image Numbers rise in order from NV bit image 01H Therefore the first data group xL xH yL yH d1 dk is NV bit image 01H and the las...

Page 34: ...racter size Format ASCII GS n Hex 1D 21 n 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 to7 as follows Bit Off On Hex Decimal Function 0 Character height selection See Table 2 1 2 3 4 Character width selection See Table 1 5 6 7 Table 1 Character Width ...

Page 35: ...rs on the line are aligned at the baseline The ESC command can also turn double width and double height modes on or off However the setting of the last received command is effective Default n 0 Reference ESC GS nL nH Name Set absolute vertical print position in page mode Format ASCII GS nL nH Hex 1D 24nL nH Decimal 29 36nL nH Range 0 nL 255 0 nH 255 Description Sets the absolute vertical print sta...

Page 36: ...n Defines a downloaded bit image using the number of dots specified by x and y x specifies the number of dots in the horizontal direction y specifies the number of dots in the vertical direction Detail The number of dots in the horizontal direction is x in the vertical direction it is y 8 If x yis out of the specified range this command is disabled The d indicates bit image data Data d specifies a...

Page 37: ...Start end macro definition Format ASCII GS Hex 1D 3A Decimal 29 58 Description Starts or ends macro definition Details Macro definition starts when this command is received during normal operation Macro definition ends when this command is received during macro definition When GS is received during macro definition the printer ends macro definition and clears the definition Macro is not defined wh...

Page 38: ...ers are printed using the font specified by GS f Default n 0 Reference GS f GS k GS L nL nH Name Set left margin Format ASCII GS L nL nH Hex 1D 4C nL nH Decimal 29 76 nL nH Range 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 command is effective only pr...

Page 39: ... print starting position is set to the upper right or lower left of the printing area using ESC T data is buffered in the paper feed direction Commands using x ESC 3 ESC J ESC W GS GS Commands using y ESC SP ESC ESC W ESC FS S GS V The command does not affect the previously specified values The calculated result from combining this command with others is truncated to the minimum value of the mecha...

Page 40: ...e mechanical pitch If the width set for the printing area is less than the width of one character when the character data is developed the following processing is performed The printing area width is extended to the right to accommodate one character If the printing area width cannot be extended sufficiently the left margin is reduced to accommodate one character If the printing area width cannot ...

Page 41: ...ing area the horizontal motion unit x is used 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 Reference ESC ESC T ESC W ESC GS GS P GS r t m Name Execute macro Format ASC...

Page 42: ...following four status bytes 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 processed in the receive buffer there may be a time lag between data reception and status transmission When the printer is disabled by ESC Select peripheral device the four status...

Page 43: ...imal 29 107 m d1 dk 0 ASCII GS k m n d1 dn Hex 1D 6B m n d1 dn Decimal 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 1 UPC E 11 k 12 48 d 57 2 JAN13 EAN13 12 k 13 48 d 57 3 JAN8 EAN8 7 k 8 48 d 57 4 CODE39 1 k 255 45 d 57 65 d 90 d 32 36 37 43 45 46 47 d 42 5...

Page 44: ...This command is enabled only when no data exists in the print buffer When data exists in the print buffer the printer processes the data following m as normal data After printing bar code this command sets the print position to the beginning of the line This command is not affected by print modes emphasized double strike underline character size white black reverse printing or 90 rotated character...

Page 45: ...r end GS v 0 xL xH vL vH d1 dk Name Print raster bit image Format ASCII GS v 0 m xL xH yL yH d1 dk Hex 1D 76 30 m xL xH yL yH d1 dk Decimal 29 118 48 m xL xH yL yH d1 dk Range 0 m 3 48 m 51 0 xL 255 0 xH 255 Description Transmits the status specified by n as follows N Function 1 49 Transmits paper sensor status 2 50 Transmits drawer kick out connector status The status types to be transmitted are ...

Page 46: ... Set absolute print position ESC Set relative print position and GS L Set left margin If the position at which subsequent characters are to be printed is not a multiple of 8 print speed may decline The ESC a Select justification setting is also effective on raster bit images When this command is received during macro definition the printer ends macro definition and begins performing this command T...

Page 47: ...ed by FS regardless of the character size When some of the characters in a line are double or more height all the characters on the line are aligned at the baseline It is possible to emphasize the Kanji character using FS W or GS the setting of the last received command is effective It is possible to turn under line mode on or off using FS and the setting of the last received command is effective ...

Page 48: ...me Define user defined Kanji character Format ASCII FS 2 c1 c2 d1 dk Hex 1C 32 c1 c2 d1 dk Decimal 28 50 c1 c2 d1 dk Range c1 and c2 indicate character codes for the defined characters The range of values for c1 and c2 differ depending on the character code system used Description Defines user defined Kanji characters for the character codes specified by c1 and c2 Details c1 and c2 indicate charac...

Page 49: ...nter model used supports GS P the left side character spacing is n1 X horizontal or vertical motion units and the right side character spacing is n2 X horizontal or vertical motion units When double width mode is set the left and right side character spacing is twice the normal value The horizontal and vertical motion units are set by GS P The previously specified character spacing does not change...

Page 50: ...en the LSB of n is 0 quadruple size mode for Kanji characters is turned off When the LSB of n is 1 quadruple size mode for Kanji characters is turned on Details Only the lowest bit of n is valid In quadruple size mode the printer prints the same size characters as when double width and double height modes are both turned on When quadruple size mode is turned off using this command the following ch...

Page 51: ...ion Selects the model for QR Code Settings of this function affect the processing of Functions 181 and 182 Settings of this function are effective until ESC is executed the printer is reset or the power is turned Off GS k Function 167 Range pL pH x 256 3 pL 3 pH 0 cn 49 fn 67 1 n 16 Default n 3 Description Sets the size of the module for QR Code to n dots Notes Settings of this function affect the...

Page 52: ...ecuted the printer is reset or the power is turned off GS k Function 180 cn 49 Fn 80 m 48 0 d 255 k pL pHx256 3 Description Stores the QR Code symbol data dl dk in the symbol storage area Notes The symbol data saved in the symbol archive area by this function is encoded by Function 081 and Function 082 of this command After Function 081 and Function 082 are executed the symbol Archive area symbol ...

Page 53: ...nt area cannot be printed If there is any error described below in the data of the symbol storage area it cannot be printed There is no data Function 180 is not processed If the data of the symbol storage area is more than the data allowed by specified model and data compaction mode This case is an abnormal number of data The four data compaction modes are listed below in order of compaction rate ...

Page 54: ...there is no data in the print buffer In page mode the printer stores the symbol data in the print buffer without executing actual printing The printer moves print position to the next dot of the last data of the symbol The quiet zone is not included in the printing data Be sure to include the quiet zone when using this function GS k Function 182 Name QR Code Transmit the size information of the sy...

Page 55: ...NUL 00H 0 lbyte l Horizontal size and Vertical size indicate the number of dots of the symbol The decimal value of the vertical size and horizontal size is converted to text data and sent starting from the high order end ex When horizontal size is 120 dots horizontal size is 120 in hexadecimal 31H 32H and 30H in decimal 49 50 and 48 which is 3 bytes of data 2 Other information indicates whether pr...

Page 56: ...e printer in the there is no data in the print buffer status by executing GS T or print commands LF CR ESC J Symbol is bigger than the current print area Expand the print area by GS W ESC W ESC Reduce the module size by Function 167 Lower the error correction level by Function 169 The data in the symbol storage area is too large Send correct data by Function 180 Select other model by Function 165 ...

Reviews: