background image

RD-FH5C7

Embedded thermal printers

specification of Development

Copyright: Beijing Rongda

innovation

Technology Limited

Summary of Contents for RD-FH5C7

Page 1: ...RD FH5C7 Embedded thermal printers specification of Development Copyright Beijing Rongda innovation Technology Limited ...

Page 2: ...t 7 1 4 Appearance size and installation dimensions Unit mm 7 Chapter 2 communication interface 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 ...

Page 3: ...thod 12 Chapter 3 Command system 13 3 1 Command list 13 Horizontally magnify character 14 3 2 Command Details 15 ESC 15 LF 16 CR 16 ESC J 16 ESC d n 17 ESC c 17 HT 17 ESC n 18 ESC D n1 n2 nk NULL 18 ESC n 19 ESC 20 GS B n 20 FS 2 n 21 ESC nL nH 21 ...

Page 4: ... 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 ...

Page 5: ...GS 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 ...

Page 6: ...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 FH5C7 P a...

Page 7: ...erage supply current 2A the MAX 4A 3 24V 4 GND GND 1 2Performance indicators printing method thermal line printing Printing width 58mm Roll paper diameter Unlimited Printing line width 36 English characters line standard 24 dot array high fonts Dots per line 432dots 54mm Kanji Character Encoding GBK Built in font ASCII font 16 8 24 12 8 6 GBK 24 24 Printing speed 200mm s ...

Page 8: ...DE93 ITF Power supply 24V 2A Print head life 100km Anomaly detection lack of paper detection Black Label positioning function Black Label detection Cut type Full cut or half cut Operating temperature humidity 10 50 20 85 RH RH 1 3operating There is an indication button on the printer s panel and this button is not only an indicator but also a function key 1 3 1operating key FEED button Click the b...

Page 9: ...nd 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 light Power Light When the printer is powered the indicator light is bright with green light for long Status Light When the printer lacks the paper th...

Page 10: ...00 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 row socket Pin No Signal name signal source direction Illustration 2 TXD printer Export o ut The printer s dashboard receives the data from the host 3 RXD host ...

Page 11: ...e 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 SW4 Handshake method Data direction RS 232 interface signal ON Mark...

Page 12: ...he number 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 ...

Page 13: ...interface printer uses 26P double row needle socket as the communication interface and the spacing between the needles is 2 54mm Figure 2 3 is the parallel interface figure Initialization baud rate data CTS 1 send the data N Y Whether to end sending the End Y N ...

Page 14: ...A3 In 4 9 DATA4 In 5 11 DATA5 in 6 13 DATA6 In 7 15 DATA7 In 8 17 DATA8 In 9 19 ACK Out Answer pulse and Low level indicates that the data has been accepted 10 21 BUSY Out High level indicates that the 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 attentio...

Page 15: ...nterface because using parallel interface to send data need the cooperation of the STB BUSY AND DATA data wires Sending step step1 using the appropriate data wire connects the printer to PC step2 power on the printer and load the printing paper step3 Begin to transmit data and flow chart is as follows Initialization BUSY 1 STB 1 BUSY 1 Sending 8 bits data STB 0 Delay Time N Y Whether to end sendin...

Page 16: ...Function ESC c To allow ban reverse printing HT To execute horizontal tab LF To print and line feed CR To print and carriage return ESC SP To set the character spacing ESC To select printing modes for characters ESC To set printing absolute position ESC To print curve ESC i To cut the paper only for printers with cutter ESC v Send the printer s status to the host FS Select the Kanji mode FS Cancel...

Page 17: ... 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 paper n lines ESC K Printing graphics command ESC Printing graphics command ESC Q To set the right margin width ESC U Horizontally magnify character ESC V Vertically magnify character GS H Select the printing position for bar code character GS F Select mode GS Q Set horizontal printing ...

Page 18: ...cters 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...

Page 19: ...mple unsigned char str 2 str 0 0x1B str 1 0x40 SendDataToPrinter str 2 LF Name print and feed line Type ASCII LF Decimal 10 Hex 0A Explanation Print the data in the print buffer and feed one line Note The command sets the print position to the beginning of the line Example unsigned char str 2 str 0 0x0A 或str 0 n SendDataToPrinter str 1 CR Name print and carriage return Type ASCII CR Decimal 13 Hex...

Page 20: ...ex 1B 4A n Explanation Print the data in the print buffer and feeds forward paper n ⅹ 0 125mm 0 0049 Comment After printing is finished the command sets the print starting position to the beginning of the line Scope 0 n 255 Example unsigned char str 3 str 0 0x1B str 1 0x4A str 2 0x4 SendDataToPrinter str 3 feeds forward paper 0 5mm ESC d n Name print and feed paper n lines Type ASCII ESC d n Decim...

Page 21: ...har str 3 str 0 0x1B str 1 0x64 str 2 0x4 SendDataToPrinter str 3 feed forward paper 4 lines ESC c Name To allow ban reverse printing Type ASCII ESC C n Decimal 27 99 n Hex 1B 63 n Scope 0 n 1 Explanation 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...

Page 22: ...er str 3 reverse printing HT Name horizontal tab Type ASCII HT Decimal 9 Hex 09 Explanation Move the print position to the next horizontal tab position Note The command is ignored unless the next horizontal tab position has been set Horizontal tab positions are set with the ESC D Reference ESC D ESC n Name To set printing mode s for characters Type ASCII ESC n Decimal 27 33 n Hex 1B 21 n Scope 0 n...

Page 23: ...ine 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 speci...

Page 24: ...d cancels the previous tabulator position settings The character printing position which exceeds the positioning location will be processed as normal data Transmit n k in ascending order and place a NULL code 0 at the end When nk 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 NULL cancels all horizontal tab positi...

Page 25: ...Order 1 SendDataToPrinter HT3 3 Order 0x0D SendDataToPrinter Order 1 SendDataToPrinter 1234567890123456 r 17 ESC n Name To select cancel the underline mode Type ASCII ESC n Decimal 27 45 n Hex 1B 2D n Explanation n 1 select the underline mode n 0 cancel the underline mode Note Underline can t act in the rotation and reverse characters This command only affects the English and Kanji characters Defa...

Page 26: ... This command only 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 ...

Page 27: ...haracter rotation Printing Type ASCII FS 2 n Decimal 28 73 n Hex 1C 49 n Scope 0 n 3 Explanation The command can rotate the character The value of n is as follows n Decimal Counterclockwise rotation 0 Does not rotate 1 90 degrees Counterclockwise rotation 2 180 degrees Counterclockwise rotation 3 270 degrees Counterclockwise rotation Note Under the 90 degrees or 270 degrees rotation mode the chara...

Page 28: ...o the position at which subsequent characters are to be printed The distance from the beginning of the line to the printing position is N horizontal dot pitch The nL and nH are the low and high bit of double byte unsigned integer N N nL nH 256 Comment Settings outside the specified printable area are ignored In mode 1 n 372 In mode 2 n 420 Example unsigned char str 4 str 0 0x1B str 1 0x24 str 2 32...

Page 29: ...osition is the width of n English characters Comment If the printing position is outside the printable area the command is ignored The width of the character includes the default character 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 se...

Page 30: ...efault character width of the character spacing Example unsigned char str 4 str 0 0x1B str 1 0x51 str 2 3 SendDataToPrinter str 3 set the area of three characters width to the unprintable area on the right side ESC 1 n Name set the line spacing Type ASCII ESC 1 n Decimal 27 49 n Hex 1B 31 n Scope 0 n 255 The default value of n is 3 Default n 3 Explanation Set the line spacing to n vertical dot pit...

Page 31: ... 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 as follows n justi...

Page 32: ...char str 4 str 0 0x1B str 1 0x61 str 2 1 SendDataToPrinter str 3 select the centering to print FS r n Name select the superscript and subscript Type ASCII FS r n Decimal 28114n Hex 1C 72 n Scope 0 n 1 Explanation The value of n Result n o superscript n 1 subscript Comment The command is effective for all characters including English characters and ...

Page 33: ... 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 1 0x55 str 2 2 SendDataToPrinter str 3 Horizontally magnify 2 times ESC V Name Vertically magnify characters Type ASCII ESC V n Decimal 27 86 n ...

Page 34: ...times ESC X Name Magnify characters Type ASCII ESC X n1 n2 Decimal 27 88 n1 n2 Hex 1B 58 n1 n2 Scope 0 n 8 1 n1 horizontal times 8 1 n2 vertical times 8 Comment The command is effective for all characters including English characters and Kanji except barcode reading characters The command is ignored if n is outside the defined scope Vertical direction is the paper feeding direction and horizontal ...

Page 35: ...0 0x1B str 1 0x58 str 2 2 str 3 2 SendDataToPrinter str 4 Vertically and horizontally magnify 2 times ESC i Name Full cutting Type ASCII ESC i Decimal 27 105 Hex 1B 69 Explanation cutter full 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 0x69 SendDataToPrinter str 2 Send the full cutting c...

Page 36: ...nd 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 Re...

Page 37: ...x41 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 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 or 24 dots and width does not exceed the printable area The param...

Page 38: ... 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 data to be printed in the first and second column And dk represents the data to be printed in the 2kth and 2k 1 th column The bn represents the nth bit of the byte Program code is as follows unsigned char str 100 j 0 st...

Page 39: ...ta to be printed in the first column And dk represents the data 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 d1 d2 d3 d4 d5 d6 d7 d8 0 1 1 1 1 1 0 0 b7 0 0 1 0 0 0 1 0 b6 0 0 1 0 0 0 1 0 b5 0 0 1 1 1 1 0 0 b4 0 0 1 0 1...

Page 40: ... 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 1 0 0 0 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 ...

Page 41: ... str j 0xC0 str j 0xE0 str j 0x07 str j 0x80 str j 0x20 str j 0x00 str j 0x00 str j 0x20 str j 0x0D Print out the current graphics SendDataToPrinter str j Example 4 m 33 24 dots don t enlarge d1 d2 and d3 represent the data to be printed in the first second and third column And dk represents the data to be printed in the kth column The bn represents the nth bit of the byte d4 d7 D d49 0 0 0 0 0 0 ...

Page 42: ...on t enlarge str j 12 graphic width is 12dots str j 0 bit image data str j 0x10 str j 0x00 str j 0x20 str j 0x1F str j 0xFF str j 0xE0 str j 0x1F str j 0xFF str j 0xE0 str j 0x10 str j 0x20 str j 0x20 str j 0x10 str j 0x20 str j 0x00 str j 0x10 str j 0x30 str j 0x00 str j 0x10 str j 0x3C str j 0x00 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 s...

Page 43: ...h 203 2dpi 101 6dpi 2 50 Double height 101 6dpi 203 2dpi 3 51 Double width Double height 101 6dpi 101 6dpi The xL and xH indicates the number of bytes in the horizontal direction of the bit image The yL and yH indicates the number of bytes in the vertical direction of the bit image GS h n Name Select bar code height Type ASCII GS h n Decimal 29 104 n Hex 1D 68 n Scope 1 n 255 Explanation Select ba...

Page 44: ...et the horizontal width 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 print...

Page 45: ...igned char str 4 str 0 0x1D str 1 0x48 str 2 2 SendDataToPrinter str 3 The HRI is printed below the bar code GS Q n Name Set the printing position of the bar code on the horizontal direction Type ASCII GS Q n Decimal 29 81 n Hex 1D 51 n Scope 0 n 255 Explanation Set the distance from the beginning of one line to the position of printing bar code to N horizontal dot pitch Default n 0 Example unsign...

Page 46: ...m to select a bar code system as follows m Bar code system length scope Format 1 0 UPC A 11 k 12 48 d 57 1 UPC E K 48 d 57 2 JAN13 EAN13 12 k 13 48 d 57 3 JAN 8 EAN8 7 k 8 48 d 57 4 CODE39 1 k 48 d 57 65 d 90 32 36 37 43 45 46 47 5 ITF 1 k even number 48 d 57 6 CODABAR 1 k 48 d 57 65 d 68 36 43 45 46 47 58 Format 2 65 UPC A 11 n 12 48 d 57 66 UPC E n 8 48 d 57 67 JAN13 EAN13 12 n 13 48 d 57 68 JAN...

Page 47: ...value of n should be equal to the specified data length if the kind of bar code specifies the data bit length And if the value of n is not equal to the specified data bit length the command is invalid See the related 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 ...

Page 48: ...the bar code cannot be scanned CODE39 code does not include the extended CODE39 code EXTERN CODE 93 CODE93 code does not include the extended CODE93 code EXTERN CODE 93 When using the CODE128 must first select the character set CODE A CODE B or CODE C before the barcode data Select the character set through sending the character and another character the ASCII code characters is defined by sending...

Page 49: ... 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 graphic of below five equations Y1 50 40 abs 0 01 X sin X 10 Y2 50 ...

Page 50: ... str i 0x0 str i 50 m_cur2 str i 0 str i 50 m_cur2 str i 0 str i 50 str i 0 str i 50 m_cur1 str i 0 str i 50 m_cur1 str i 0 str i 0x0D SendDataToPrinter str i Print results ESC v Name Send the printer s status to the host Type ASCII ESCv 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 ...

Page 51: ... str 0 0x1B str 1 0x76 SendDataToPrinter str 2 Send status query command to the print FS Name Select the Kanji mode Type ASCII FS Decimal 28 38 Hex 1C 26 Explanation The printer enters Kanji printing mode Note After powering on the printer the printer defaults the Kanji printing mode Example unsigned char str 4 str 0 0x1C str 1 0x26 SendDataToPrinter str 2 Enter Kanji printing mode FS Name Cancel ...

Page 52: ...f 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 unsigned char str 4 str 0 0x1B str 1 0x36 SendDataToPrinter str 2 Print 6X8 characters in the Character Set 1 ESC 7 Name To select Character Set 2 6X8 Type ASC...

Page 53: ...inter str 2 Print 6X8 characters in the Character Set 2 GS F n Name Select mode Type ASCII GS F n Decimal 29 70 n Hex 1D 46 n Scope 0 n 1 Explanation When n 0 the number of the dots printed in each line is 384 When n 1 the number of the dots printed in each line is 432 Default n 0 Example unsigned char str 4 str 0 0x1D str 1 0x46 str 2 0 SendDataToPrinter str 3 ESC r d n Name To adjust the depth o...

Page 54: ...nd the larger the value deeper the adjustment depth and the maximum value does not exceed 255 When n 0 using B 72 2B 00 or 1B 72 2D 00 will lead to revert to the default value Default n 0 Note When using the deepening adjustment the value of n is adjusted to the maximum value or it not only affects the results but also reduces the printing life With increasing depth the printer will increase power...

Page 55: ...he 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 clean 7 When thermal printer prints unclearly we can us...

Page 56: ...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 CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA ...

Page 57: ...C International standard ASCII ...

Page 58: ...ification 3 ENA8 ENA8 coding should comply with the ENA Organization http www uccnet org specification 4 ENA13 ENA13 coding should comply with the ENA Organization http www uccnet org specification 5 CODE39 Also known as 39 codes CODE39 s starting bit and stopping bit characters must be the character and it cannot contain the characters between the starting and stopping bits And the printer s is a...

Page 59: ...n be different The data can contain or cannot contain check code The check code can be defined by the code man 8 CODE93 CODE93 s starting bit and stopping bit characters must be the character and it cannot contain the characters between the starting and stopping bits And the printer s is automatically given by the printer and when programming the data need not be given and the CODE93 data must con...

Page 60: ......

Reviews: