background image

[Type]

    ASCII

            ESC   

i   

Decimal:            27   

109     

Hex:                  1B   

6D 

[Explanation] 

cutter: half cutting 

[Comment] 

  This command does not cause feeding line.   

  This command is only used in the printers with cutter. 

[Example]

 unsigned char str[4];   

str[0] = 0x1B;   

str[1] = 0x6D;   

SendDataToPrinter(str,2);// Send the half-cutting command

 

ESC K nL nH    d1 d2 ……dk                                                                                                                                         

[Name]

 

Printing graphics command 

 

[Type]

 

ASCII 

 

ESC 

K    nL nH d1…dk 

Decimal:

   

27            75   

nL nH d1…dk

 

Hex:

  

       

1B            4B   

nL nH d1…dk

 

[Scope]

 

0 ≤nL ≤255 

           

0 ≤nH ≤1 

           

0 ≤d ≤255 

[Explanation]

   

This command can only print the black/white bit-image whose height is 8 dots and width does 
not exceed the printable area. 
The  nL  and  nH  are  the  low  and  high  bit  of  double-byte  unsigned  integer  N.  They  express  the 
number of the dots of the bit-image on the horizontal direction. 

[Reference]

 ESC * 

[Comment] 

• The graphics command is influenced by the character enlargement command. 

• When using reverse printing mode, successively print each graphics unit according to the order 
of the graphics from bottom to up. 

[Example]

 unsigned char str[30];   

 

 

unsigned char i=0; 

str[i++] = 0x1B; str[i++] = 0x4B;   

str[i++] = 15; //print the graphics whose width is 15 dots 

str[i++] = 0x7C; str[i++] = 0x44; str[i++] = 0x44; str[i++] = 0xFF; 

str[i++] = 0x44; str[i++] = 0x44; str[i++] = 0x7C; str[i++] = 0x00; 

str[i++] = 0x41; str[i++] = 0x62; str[i++] = 0x54; str[i++] = 0xC8; 

str[i++] = 0x54; str[i++] = 0x62; str[i++] = 0x41; str[i++] = 0x0D; 

SendDataToPrinter(str,i);//send the printing graphics command. 

ESC * m nL nH d1…dk                                                                                                                   

[Name]

 

Printing graphics command 

 

[Type]

 

ASCII 

 

ESC *    m nL nH d1…dk 

Decimal:

   

27    42 m nL nH d1…dk

 

Hex:

  

       

1B    2A m nL nH d1…dk

 

[Scope]

 m = 0, 1, 32, 33 

Содержание RD-FH8C7

Страница 1: ...RD FH8C7 Embedded thermal printers specification of Development Copyright Beijing Rongda Science Technology Co Ltd ...

Страница 2: ...ce 8 2 1 serial interface 8 2 1 1Define of Interface 8 2 1 2 Baud rate select bit 9 2 1 3handshake method select bit 9 2 1 4Lack of paper selecting bit 10 2 1 5Data transmission method of serial interface 10 2 2Parallel interface 11 2 2 1data interface 11 2 2 2 Parallel interface data transmission method 12 Chapter 3 Command system 13 3 1 Command list 13 Horizontally magnify character 14 3 2 Comma...

Страница 3: ... GS B n 20 FS 2 n 21 ESC nL nH 21 ESC l n 22 ESC Q n 22 ESC 1 n 22 ESC SP n 23 ESC a n 23 FS r n 24 ESC U 24 ESC V 24 ESC X 25 ESC i 25 ESC m 25 ESC K nL nH d1 d2 dk 26 ESC m nL nH d1 dk 26 GS v 0 m xL xH yL yH d1 dk 31 GS h n 32 GS w n 32 GS H n 32 GS Q n 33 GS k 33 ESC 35 ...

Страница 4: ...F n 38 ESC r d n 38 Chapter 4 Maintenance and Troubleshooting 39 APPENDIX 40 A printing character set 40 B character set 1 and 2 41 C International standard ASCII 41 D bar code 42 D 1 bar code coding rules 42 D 2 barcode length character set 42 ...

Страница 5: ...the paper and key functions are placed inside the printer Only when the panel is opened the printer can change paper and do the button operation Meanwhile also equip with a safety lock on the printer panel after the lock to the printer s front panel will not be opened and at this time only the professional staff with the key can open the front panel The series printers have two models RD FH8C7 P a...

Страница 6: ...Kanji Character Encoding GBK Built in font ASCII font 16 8 24 12 8 6 GBK 24 24 Printing speed 170mm s Data Interface RD FH8C7 S Standard serial interface S RS232 or TTL RD FH8C7 P standard parallel interface P Resolution 203 dpi 203 dpi 8 dots mm Instruction system ESC PON Compatible instruction system Printable contents English numbers symbols characters graphics curves bar code CODE39 EAN13 EAN8...

Страница 7: ...inter and open the printer s creel Step 3 Remove the printer s paper axis and insert the roll paper Then put the paper into the paper storehouse and get stuck the paper axis and fasten the printer creel Step 4 Pull out the paper end and fasten the cover End the loading paper 3 Paper feed Under the printer charged state hold down the buttons and the printing paper starts feeding 1 3 3Indicator ligh...

Страница 8: ... DTR DSR or XON XOFF Baud Rate 1200 2400 4800 9600 19200 38400 57600 115200 bps They can be changed by DIP switch selection Data Length 8Bit Parity None Stopping bits 1 Interface 5pin needle socket Figure 2 1 is the 5P communication interface Figure 2 2 is the DIP switch figure figure2 1 figure2 2 5 core single Signal name signal source direction Illustration ...

Страница 9: ... receive data 5 GND Signal ground 1 NC no connection 2 1 2 Baud rate select bit SW NO 1200 2400 4800 9600 19200 38400 57600 115200 1 off on off on off on off on 2 off off on on off off on on 3 off off off off on on on on 2 1 3handshake method select bit The handshake methods can be selected by the DIP switch SW4 in the machine When the machines leave factory the location of the sw4 is OFF Default ...

Страница 10: ...mber of sending data once is less than 16K the data can be directly sent And the sending method is as follows 2 If large amounts of data once is sent need to judge the mark CTS when sending the data When the mark is 1 the data can t be sent When the mark is 0 the data can be sent Data can be sent in the form of packets or byte When the data is sent in the form of packets each data packet can t exc...

Страница 11: ...ication interface and the spacing between the needles is 2 54mm Figure 2 3 is the parallel interface figure Figure 2 3 2 2 1data interface 26pin row Signal Signal Illustration DB25 parallel Initialization baud rate data mode CTS 1 send the data packets Less than 256 bytes N Y Whether to end sending the data End printing Y N ...

Страница 12: ...e printer is busy and can t receive data 11 23 PE Grounding PERROR 25 SEL Out 经电阻上拉 高 表示打印机在线 13 4 ERR Out 经电阻上拉 高 电平表示无故障 15 2 6 8 NC no connection 10 24 GND Signal ground 12 25 Matters need attention The mainframe and printer in the item signal source means the source of the signal sending out The signal logic level is EIA level 2 2 2 Parallel interface data transmission method Using parallel in...

Страница 13: ... 3 Command system 3 1 Command list RD FH5C7 Series thermal printers use the ESC POS compatible command and add tosome functions such as the Chinese characters printing Character and Chinese characters rotation and word spacing adjustment Initialization BUSY 1 STB 1 BUSY 1 Sending 8 bits data to the printer interface STB 0 Delay Time 0 5us STB 1 N Y Whether to end sending the data End printing Y N ...

Страница 14: ... printing ESC To allow ban the underline printing to set clear the underline mode ESC 1 To set the line spacing ESC 6 To select Character Set 1 6X8 ESC 7 To select Character Set 2 6X8 ESC a Select alignment methods GS v Print raster bit image ESC To initialize the printer ESC D To set the position of horizontal tab GS k To print the bar code ESC J To print and feed paper ESC d To print and feed pa...

Страница 15: ...rs But a small number of single byte commands don t have the escape character 2 parameter is the parameter which is in italics And the parameters are not numeric characters but the value of the character All the examples in this chapter are compiled in C language The SendDataToPrinter function is virtual function And require developers to write according to the actual situation of the mainframe Th...

Страница 16: ...r 0 n SendDataToPrinter str 1 CR Name print and carriage return Type ASCII CR Decimal 13 Hex 0D Explanation Print the data in the print buffer and carriage return Reference LF Example unsigned char str 2 str 0 0x0D 或str 0 r SendDataToPrinter str 1 ESC J Name print and feed paper Type ASCII ESC J n Decimal 27 74 n Hex 1B 4A n Explanation Print the data in the print buffer and feeds forward paper n ...

Страница 17: ... When n 1 allow the reverse printing and the printing direction is from left to right When n 0 ban the reverse printing and the printing direction is from right to left Comment When the printer is vertically installed the printer uses the reverse printing way Reversely printing not only supports character mode and also supports graphical mode When reversely printing graphics we should note the pri...

Страница 18: ...underline mode 1 Select the underline mode Example unsigned char str 3 str 0 0x1B str 1 0x21 str 2 0x31 SendDataToPrinter str 3 print the character 8X16 under the double width and double height mode ESC D n1 n2 nk NULL Name To set the position of horizontal tab Type ASCII ESC D n1 nk NULL Decimal 27 68 n1 nk 0 Hex 1B 44 n1 nk 00 Scope 1 n 255 0 k 20 Explanation Set the position of horizontal tab n...

Страница 19: ...D NULL cancels all horizontal tab position Even if the character width changes previously specified horizontal tab positions don t also change Default The default tab positions are Font A 12 24 Example unsigned str 8 unsigned char Order 9 str 0 0x1B str 1 0x44 str 2 2 one character spacing from the first column str 3 9 eight character spacing from the first column str 4 14 thirteen character spaci...

Страница 20: ...nly affects the English and Kanji characters Default n 0 Example unsigned char str 3 str 0 0x1B str 1 0x2B str 2 0x1 SendDataToPrinter str 3 set the overline GS B n Name select cancel white reverse printing mode Type ASCII GS B n Decimal 29 66 n Hex 1D 42 n Scope 0 n 255 Explanation select cancel white reverse printing mode When the LSB of n is 0 cancel white black reverse printing mode When the L...

Страница 21: ...site to the magnification direction of the general mode Default n 0 Example unsigned char str 3 str 0 0x1C str 1 0x49 str 2 1 set 90 degrees rotation SendDataToPrinter str 3 ESC nL nH Name Set absolute print position Type ASCII ESC nL nH Decimal 27 36 nL nH Hex 1B 24 nL nH Scope 0 nL nH x 256 384 Explanation Set the distance from the beginning of the line to the position at which subsequent charac...

Страница 22: ...width of the character spacing Example unsigned char str 4 str 0 0x1B str 1 0x6C str 2 3 SendDataToPrinter str 3 the left position is set to the width of 3 English characters from the left margin ESC Q n Name set the right margin Type ASCII ESC Q n Decimal 27 81 n Hex 1B 51 n Scope 0 n 32 Explanation The right margin is the number of characters which isn t printed on the right side of the printing...

Страница 23: ... 0 Explanation Set the character spacing to n horizontal dot pitch Example unsigned char str 4 str 0 0x1B str 1 0x20 str 2 8 SendDataToPrinter str 3 Set the character spacing to 8 horizontal dot pitch ESC a n Name Select justification methods Type ASCII ESC a n Decimal 27 97 n Hex 1B 61 n Scope 0 n 2 Explanation Aligns all the data in one line to the specified position n selects the justification ...

Страница 24: ...ed scope Example unsigned char str 3 str 0 0x1C str 1 0x72 str 2 0 SendDataToPrinter str 3 ESC U Name Horizontally magnify characters Type ASCII ESC U n Decimal 27 85 n Hex 1B 55 n Scope 0 n 8 Comment The command is effective for all characters including English characters and Kanji The command is ignored if n is outside the defined scope Reference ESC X Example unsigned char str 4 str 0 0x1B str ...

Страница 25: ...feeding direction and horizontal direction is vertical with the paper feeding direction When character clockwise rotate 90 the relationship between the vertical direction and horizontal direction is reversed that is to say this command s priority is lower than the FS 2 And when two commands is effective at the same time the characters firstly rotate then enlarge Example unsigned char str 4 str 0 0...

Страница 26: ...te unsigned integer N They express the number of the dots of the bit image on the horizontal direction Reference ESC Comment The graphics command is influenced by the character enlargement command When using reverse printing mode successively print each graphics unit according to the order of the graphics from bottom to up Example unsigned char str 30 unsigned char i 0 str i 0x1B str i 0x4B str i ...

Страница 27: ...rection Mode 1 When the double width mode is single width its maximum is 384 When the double width mode is twice as width its maximum is 192 Mode 2 When the double width mode is single width its maximum is 432 When the double width mode is twice as width its maximum is 216 d1 dk express the bit image data And the specific format is as follows Example 1 m 0 8 dots twice as width d1 represents the d...

Страница 28: ...ta to be printed in the kth column The bn represents the nth bit of the byte Program code is as follows unsigned char str 100 j 0 str j 0x1B str j 0x2A str j 1 m 1 height is 8 dots don t enlarge str j 8 the graphic width is 8dots str j 0 bit image data str j 0x00 str j 0x80 str j 0xFF str j 0x90 str j 0x98 strr j 0x96 str j 0x61 str j 0x00 str j 0x0D print the graphic SendDataToPrinter str j d1 d2...

Страница 29: ...x00 str j 0x10 str j 0x2f str j 0x00 str j 0x18 str j 0x43 str j 0xC0 str j 0x0F str j 0xC0 str j 0xE0 str j 0x07 str j 0x80 str j 0x20 str j 0x00 str j 0x00 str j 0x20 d4 d7 D d49 0 0 0 0 0 0 0 0 0 0 0 0 b7 0 0 0 0 0 0 0 0 0 0 0 0 b6 0 0 0 0 0 0 0 0 0 0 0 0 b5 1 1 1 1 1 1 1 1 1 0 0 0 b4 0 1 1 0 0 0 0 0 1 1 0 0 b3 0 1 1 0 0 0 0 0 0 1 1 0 b2 0 1 1 0 0 0 0 0 0 1 1 0 b1 0 1 1 0 0 0 0 0 0 1 1 0 b0 0 1...

Страница 30: ...0 0 0 1 1 0 b7 0 1 1 0 0 0 0 0 1 1 0 0 b6 0 1 1 1 1 1 1 1 0 0 0 0 b5 0 1 1 0 0 1 1 0 0 0 0 0 b4 0 1 1 0 0 0 1 1 0 0 0 0 b3 0 1 1 0 0 0 1 1 0 0 0 0 b2 0 1 1 0 0 0 0 1 1 0 0 0 b1 0 1 1 0 0 0 0 1 1 0 0 0 b0 0 1 1 0 0 0 0 0 1 1 0 0 b7 0 1 1 0 0 0 0 0 1 1 0 0 b6 1 1 1 1 0 0 0 0 0 1 1 1 b5 0 0 0 0 0 0 0 0 0 0 0 0 b4 0 0 0 0 0 0 0 0 0 0 0 0 b3 0 0 0 0 0 0 0 0 0 0 0 0 b2 0 0 0 0 0 0 0 0 0 0 0 0 b1 0 0 0 0...

Страница 31: ... xL xH yL yH d1 dk Decimal 29 118 48 m xL xH yL yH d1 dk Hex 1D 76 30 m xL xH yL yH d1 dk Scope 0 m 3 48 m 51 0 xL 255 0 xH 255 where 1 xL xH 256 128 0 yL 255 0 yH 8 where 1 yL yH 256 4095 0 d 255 k xL xH 256 yL yH 256 k 0 m mode Vertical resolution DPI Lateral resolution DPI 0 48 Normal 203 2dpi 203 2dpi 1 49 Double width 203 2dpi 101 6dpi 2 50 Double height 101 6dpi 203 2dpi 3 51 Double width Do...

Страница 32: ...idth of the bar code And n specifies the bar code width as follows n Module width for multi level bar code mm Binary level bar code Thin element width mm Thick element width mm 1 0 125 0 125 0 25 2 0 25 0 25 0 50 3 0 375 0 375 0 75 4 0 50 0 50 1 0 Example unsigned char str 4 str 0 0x1D str 1 0x77 str 2 3 SendDataToPrinter str 3 Set the bar code width GS H n Name Select the printing position for ba...

Страница 33: ... Name Print bar code Type ASCII GS k m d1 dk NUL GS k m n d1 dn Decimal 29 107 m d1 dk 0 29 107 m n d1 dn Hex 1D 6B m d1 dk 00 1D 6B m n d1 dn Scope 0 m 6 65 m 73 The range of k and d are determined by the type of bar code used The range of n and d are determined by the type of bar code used The n is the data length of the bar code to be printed Explanation Select a bar code system and print the b...

Страница 34: ...ated barcode data bit length Appendix B The number of ITF code data length must be even numbers If using the format 1 to print ITF bar code the value of k should be even numbers but if it is odd number the last one bit data will be ignored If using the format 2 to print ITF bar code the value of n should be even numbers but if it is odd number the last one bit data will be ignored If the bar code ...

Страница 35: ...N nH x 256 nL The position of the curve s dots in one horizontal line X xkH x 256 xkL Explanation Each curve consists of many dots The command indicates that the printer prints n dots in one horizontal line and continuously using the command can print out the curve which the user needs Note This command is only applicable to impact dot matrix printer and some thermal models Example Print curve gra...

Страница 36: ... the printer s status to the host Type ASCII ESC v Decimal 27 118 Hex 1B 76 Explanation Send the printer s status to the host Note It is only effective for the printer with serial interface Bit Function Value 0 1 0 Paper detector No paper Have paper 1 Work status Idle Printing 2 Receiving buffer No full Full 3 printer s status Normal Error 4 Undefined 5 Undefined 6 Undefined 7 Undefined Example un...

Страница 37: ...SCII characters printing mode ESC 6 Name To select Character Set 1 6X8 Type ASCII ESC 6 Decimal 27 54 Hex 1B 36 Explanation After inputting the command all of printing characters use the characters in the character set 1 see appendix D The character set 1 has 224 6 x 8 dot matrix characters including ASCII characters and all kinds of graphic marks etc The range of code is 20H FFH 32 255 Example un...

Страница 38: ... d n Hex 1B 72 d n Scope d 2B or 2D 0 n 255 Explanation When d 2B indicates the printing depth is adjusted deeper on the basis of the current printing depth When d 2D indicates the printing depth is adjusted more shallowly on the basis of the current printing depth The n represents the value of the depth adjusting degree And the larger the value deeper the adjustment depth and the maximum value do...

Страница 39: ...te whether there are the paper scraps and dust on the printing head If having paper scraps and dust please gently remove Note the thermal paper s obverse and reverse side and if the reverse side is uncoated the printer can t print out the handwriting 5 When the printer is printing or paper feeding we can t tear the paper and can t more reversely drag the paper 6 Keep the printer control panel clea...

Страница 40: ...6A j 6B k 6C l 6D m 6E n 6F o 70 p 71 q 72 r 73 s 74 t 75 u 76 v 77 w 78 x 79 y 7A z 7B 7C 7D 7E 7F 80 Ç 81 ü 82 é 83 â 84 ä 85 à 86 å 87 ç 88 ê 89 ë 8A è 8B ï 8C î 8D ì 8E Ä 8F Å 90 É 91 æ 92 Æ 93 ô 94 ö 95 ò 96 û 97 ù 98 ÿ 99 Ö 9A Ü 9B 9C 9D 9E 9F ƒ A0 á A1 í A2 ó A3 ú A4 ñ A5 Ñ A6 ª A7 º A8 A9 AA AB AC AD AE AF B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB ...

Страница 41: ...B character set 1 and 2 C International standard ASCII ...

Страница 42: ...ED 25 intersect 25 code INTERLEAVED 2 of 5 The length for the data bit must be even number and the data can contain or cannot contain check code and the check code have fixed algorithm 7 CODABAR The starting bit and stopping bit must be anyone of A B C and D and The starting bit character and stopping bit character can be different The data can contain or cannot contain check code The check code c...

Страница 43: ......

Отзывы: