Beijing Rongda innovation Technology RD-FH5C7 Manual

Beijing Rongda innovation Technology RD-FH5C7 Manual

Embedded thermal printers specification of development

Advertisement

Quick Links

RD-FH5C7
Embedded thermal printers
specification of Development
Copyright: Beijing Rongda
innovation
Technology Limited

Advertisement

Table of Contents
loading

Summary of Contents for Beijing Rongda innovation Technology RD-FH5C7

  • Page 1 RD-FH5C7 Embedded thermal printers specification of Development Copyright: Beijing Rongda innovation Technology Limited...
  • Page 2: Table Of Contents

    目录 Chapter 1: Overview ........................... 5 1.1Power connector ..........................6 1.2Performance indicators ........................6 1.3operating ............................. 7 1.3.1operating key ..........................7 1.3.2 Operation ..........................7 1.3.3Indicator light ..........................7 1.4 Appearance size and installation dimensions (Unit: mm) ............7 Chapter 2: communication interface ......................8 2.1 serial interface ..........................
  • Page 3 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 Command Details .......................... 15 ESC @ ............................... 15 LF ................................ 16 CR ............................... 16 ESC J .............................. 16 ESC d n .............................
  • Page 4 ESC l n ............................22 Q n ............................. 22 n ............................22 ESC 1 ESC SP n ............................ 23 ESC a n ............................. 23 FS r n ............................24 U ............................24 ESC V .............................. 24 ESC X .............................. 25 ESC i ..............................
  • Page 5 ESC ‘ ..............................35 ESC v ..............................36 FS & ..............................37 FS............................... 37 ESC 6 ..............................37 ESC 7 .............................. 37 GS F n ..............................38 ESC r d n ............................. 38 Chapter 4: Maintenance and Troubleshooting ..................39 APPENDIX ..............................
  • Page 6: Chapter 1: Overview

    Chapter 1: Overview The printing paper width of RD-FH5C7 THERMAL PRINTER is 57mm. Equipped with a cutter, and supports the full cutting or half cutting function. The series printer increases sheet metal casing on the basis of the W series, which is more convenient to install for customers.
  • Page 7: Power Connector

    1.1Power connector Power Interface is the 4PIN, which is 2.54mm at equal distance and perpendicular. name description Positive power supply, 24V ± +24V The average supply current : +24V 2A, the MAX : 4A 1.2Performance indicators printing method thermal line printing Printing width 58mm Roll paper...
  • Page 8: Operating

    Standard serial interface (S)(RS232 or RD-FH5C7-S TTL) Data Interface standard parallel interface(P) RD-FH5C7-P Resolution 203 dpi ×203 dpi(8 dots / mm) Instruction system ESC/PON (Compatible instruction system) English, numbers, symbols, characters, graphics, curves, Printable contents bar code (CODE39、 EAN13、 EAN8、 CODABAR、 CODE128、...
  • Page 9: 3Indicator Light

    1. self- test Step 1: The power of the printer is turned off. Step 2: Press the indicator button Step 3: the printer for about 2 seconds and the printer will start the self-test. Energize 2. Load paper Step 1: Open the security lock of the printer, and open the printer’s cover. Step 2: Pull out the right wrench of the printer, and open the printer's creel.
  • Page 10: Chapter 2: Communication Interface

    Chapter 2: communication interface 2.1 serial interface 2.1.1Define of Interface Data transfer: Serial Synchronization way: Asynchronous Handshake signals: CTS / RTS, 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...
  • Page 11: Baud Rate Select Bit

    sends data to the host. (When using ‘X-ON/X-OFF’ Handshake Protocol,the printer sends control code ‘X-ON/X-OFF’ to the computer.) When the signal is in a state of ‘MARK’, it means that the printer is busy and can’t Export(o receive data. But when the printer signal is in a state of ‘SPACE’, it means that the...
  • Page 12: 4Lack Of Paper Selecting Bit

    control The signal line ‘2’send out the Data can’t enter X-OFF code ‘13H’ 2.1.4Lack of paper selecting bit 说 明 When the printer is lack of paper, it will stop printing, and online indicator light glows green and will be continuous glint to alert the lack of paper.
  • Page 13: Parallel Interface

    CTS=1 send data Whether to end sending 2.2Parallel interface The RD-FH5C7 system thermal parallel 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.
  • Page 14: 1Data Interface

    Figure 2-3 2.2.1data interface 26pin row DB25 parallel Signal Signal Illustration socket interface wire on the name direction (pin NO.) PC (pin NO.) STB/ 数据选通触发脉冲,上升沿时读入数据 DATA1 DATA2 DATA3 DATA4 8 data pins, the logic ‘0’ indicates low, ‘1’ DATA5 indicates high DATA6 DATA7 DATA8...
  • Page 15: Parallel Interface Data Transmission Method

    the source of the signal sending out ②The signal logic level is EIA level. 2.2.2 Parallel interface data transmission method Using parallel interface to send data is relatively more trouble than using serial interface, because using parallel interface to send data need the cooperation of the ‘STB’,‘BUSY’...
  • Page 16: Chapter 3: Command System

    Chapter 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. Function Command To allow/ban reverse printing...
  • Page 17: Horizontally Magnify Character

    To allow/ban the underline printing (to set/clear ESC – the underline mode) To set the line spacing ESC 1 To select Character Set 1 ( ESC 6 ) To select Character Set 2 ( ESC 7 ) Select alignment methods ESC a Print raster bit image GS v...
  • Page 18: Command Details

    Select bar code’s height GS h Select bar code’s width GS w To allow/ban white reverse printing mode GS B To set the printing position ESC l To adjust the depth of thermal printing ESC r d n To set character rotation Printing FS 2 To select superscript and subscript...
  • Page 19 Decimal: Hex: Clear the data in the print buffer, and reset the printing [Explanation] parameters to the current printer default parameters. [Note] •The data in the receive buffer is not cleared. [Example] unsigned char str[2]; str[0] = 0x1B; str[1] = 0x40; SendDataToPrinter(str,2);...
  • Page 20: Esc J

    carriage return [Explanation] Print the data in the print buffer and [Reference] LF [Example] unsigned char str[2]; str[0] = 0x0D;//或str[0] = ‘\r’ SendDataToPrinter(str,1); ESC J print and feed paper [Name] [Type] ASCII: Decimal: Hex: [Explanation]Print the data in the print buffer and feeds forward paper [n ⅹ 0.125mm(0.0049”)].
  • Page 21: Esc C

    [Scope] 0 ≤n ≤ 255 Print the data in the print buffer and feed paper n lines [Explanation] [Comment] • After finishing the printing, this command sets the print starting position to the beginning of the line. • One line distance is 24 vertical pitch (0.125mm) [Example] unsigned char str[3];...
  • Page 22: Esc ! N

    Reversely printing not only supports character mode, and also supports graphical mode. When reversely printing graphics, we should note the printing order of graphics unit. (See the ESC K command) [Example] unsigned char str[3]; str[0] = 0x1B; str[1] = 0x63; str[2] = 0x1 reverse printing SendDataToPrinter(str,3);...
  • Page 23: Esc D N1 N2

    function English characters (half-width) font A(12×24) English characters ( half - width ) font B (8×16) 1,2,3 ―― Cancel double-height mode double-height mode Select the Cancel double-width mode double-width mode Select the 6 ―― Cancel mode the underline underline mode Select the [Example] unsigned char str[3];...
  • Page 24 beginning of a line. k indicates the total number of horizontal tab positions to be set. [Note] The horizontal position is stored as a value of [ character width × • n]measured from the beginning of the line. The character width includes the default width of the characters’...
  • Page 25: Esc - N

    eight character spacing from the first column str[3] = 9;// thirteen character spacing from the first column str[4] = 14;// str[5] = 0; // end SendDataToPrinter (str,6) SendDataToPrinter (&Order,1); SendDataToPrinter (“HT1”,3); SendDataToPrinter (&Order,1); SendDataToPrinter (“HT2”,3); SendDataToPrinter (&Order,1); SendDataToPrinter (“HT3”,3); Order = 0x0D; SendDataToPrinter (&Order,1);...
  • Page 26: Esc

    SendDataToPrinter (str,3);// set the underline ESC + allow/ban the overline printing [Name] [Type] ASCII: Decimal: 43 n Hex: 2B n allow the overline printing [Explanation]When n=1, ban the overline printing When n=0, [Note] • Overline can’t act in the rotation and reverse characters. •...
  • Page 27 • Only the lowest bit of n is valid. • The command is valid for the built-in and user-defined characters • This command only affects the English and Kanji characters. [Default] n=0 [Example] unsigned char str[3]; str[0] = 0x1D; str[1] = 0x42; white reverse printing mode str[2] = 1;// set the SendDataToPrinter(str, 3);...
  • Page 28: Esc $ Nl Nh

    [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 Set absolute print position [Name] [Type] ASCII: ESC $ nL nH Decimal: 27 36 nL nH Hex: 1B 24 nL nH [Scope] 0 ≤...
  • Page 29: Escq N

    set the left margin [Name] [Type] ASCII: Decimal: Hex: 6C n [Scope] 0 ≤n ≤ 32 [Explanation] The left margin is the number of characters, which isn’t printed on the left side of the printing paper. The distance from the beginning of the line to the printing position is the width of n English characters.
  • Page 30: Esc 1 N

    [Scope] 0 ≤n ≤ 32 The right margin is the number of characters, which isn’t printed [Explanation] on the right side of the printing paper. [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];...
  • Page 31: Esc Sp N

    Set the line spacing to 8 vertical dot pitch SendDataToPrinter(str,3);// ESC SP n set the character spacing [Name] [Type] ASCII: Decimal: Hex: [Scope] 0 ≤ n ≤ 255 (The default value of ‘n’ is 0) Set the character spacing to n horizontal dot pitch [Explanation] [Example] unsigned char str[4];...
  • Page 32: Fs R N

    justification Left Centering justification Right [Comment] • This command is only valid at the beginning of the line. [Default] n=0 [Example] unsigned char str[4]; str[0] = 0x1B; str[1] = 0x61; str[2] = 1; SendDataToPrinter(str,3);// select the centering to print FS r n select superscript and subscript [Name]...
  • Page 33: Esc V

    Kanji) The command is ignored if n is outside the defined scope [Example] unsigned char str[3]; str[0] = 0x1C; str[1] = 0x72; str[2] = 0; SendDataToPrinter(str,3);// [Name] Horizontally magnify characters [Type] ASCII: Decimal: 85 n Hex: 55 n [Scope] 0 ≤ n ≤8 [Comment] The command is effective for all characters (including English characters and Kanji)
  • Page 34: Escx

    Hex: 56 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] = 0x56;...
  • Page 35: Esc I

    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] = 0x1B;...
  • Page 36: Esc K Nl Nh D1 D2

    [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 Printing graphics command [Name] ①...
  • Page 37: Esc * M Nl Nh D1

    • 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;...
  • Page 38 Twice as width single-width Twice as width single-width 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. 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.
  • Page 39 str [j++] = 8; //the width of the graphic is 8dots str [j++] = 0;//the bit image data str [j++] = 0x00;str [j++] = 0x80;str [j++] = 0xFF;str [j++] = 0x90;str [j++] = 0x98; str [j++] = 0x96;str [j++] = 0x61;str [j++] = 0x00;str [j++] = 0x0D;//print the graphic SendDataToPrinter(str,j);...
  • Page 40 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); [Example 3] m =32 (24 dots, t wice as width), d1,d2 and d3 represent the data to be printed in the first, second and third column.
  • Page 41 Program code is as follows: unsigned char str[200]; j=0; str[j++] = 0x1B; str[j++] = 0x2A; str[j++] = 32; //m=32(height is 24 dots, double-width) 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;...
  • Page 42: Gs V 0 M Xl Xh Yl Yh D1

    Program code is as follows: unsigned char str[200]; j=0; str[j++] = 0x1B; str[j++] = 0x2A; str[j++] = 32; //m=33 ( height is 24 dots, don’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;...
  • Page 43: Gs H N

    Hex: 1D 76 30 m xL xH yL yH d1...dk [Scope] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 ≤ xL ≤ 255 ≤ xH ≤ 255 where 1 ≤ (xL + xH × 256) ≤ 128 ≤ yL ≤ 255 ≤...
  • Page 44: Gs W N

    [Default] n=48 [Example] unsigned char str[4]; str[0] = 0x1D; str[1] = 0x68; str[2] = 30; SendDataToPrinter(str,3);//Set the bar code height to 30 vertical dot pitch GS w n Select bar code width [Name] [Type] ASCII: GS w Decimal: 29 119 n Hex: 1D 77 [Scope] 1≤...
  • Page 45: Gs Q N

    Decimal: 29 72 n Hex: 1D 48 n [Scope] 0 ≤ n ≤ 2 [Explanation]Selects a font for the HRI characters used when printing a bar code. Use n to specify the printing position of HRI: printing position Do not print Above the bar code Below the bar code [Default] n=0...
  • Page 46: Gs K

    GS k Print bar code [Name] [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] ①...
  • Page 47 [Note] • When using the format 1 command, if the bar code type specifies the data length of the bar code, k (the barcode data length received by the printer) should be equal to the specified data length, and if not equal to the specified data length, the instruction is invalid .
  • Page 48: Esc

    etc. ) •Printing barcode need obey the barcode specifications, or will cause that the bar code cannot be scanned. •The printer does not calculate the checksum, but if barcode needs the checksum, the checksum should be included in the bar code data, and the printer is not responsible for checking whether the checksum is wrong or right.
  • Page 49 [Name] Print curve [Type] ASCII: ‘ nL nH x1L x1H x21L x21H ……. xkL xkH CR Decimal: 29 39 nL nH x1L x1H x21L x21H ……. xkL xkH 13 Hex: 27 nL nH x1L x1H x21L x21H ……. xkL xkH 0D [Scope] 0 ≤...
  • Page 50: Escv

    unsigned char str[50]; float X; unsigned int m_cur1,m_cur2,i; for(X=0;X<150;X++) //print one line of 150 dots m_cur1= 40*exp(-0.01*X); YY= Y*sin(X/10); str[i++] = 0x1b; str[i++] = 0x27; str[i++] = 0x5;//打印5条曲线 str[i++] = 0x0; str[i++] = 50+m_cur2; str[i++] = 0; str[i++] = 50-m_cur2; str[i++] = 0;...
  • Page 51 Function Value Paper detector No paper Have paper Work status Idle Printing Receiving buffer No full Full Normal Error printer’s status Undefined ―― ―― Undefined ―― ―― Undefined ―― ―― Undefined ―― ―― [Example] unsigned char str[4]; str[0] = 0x1B; str[1] = 0x76;...
  • Page 52: Esc 6

    Decimal: Hex: Cancel the Kanji characters mode [Explanation] [Example] unsigned char str[4]; str[0] = 0x1C; str[1] = 0x2E; SendDataToPrinter(str,2);//Enter ASCII characters printing mode ESC 6 To select Character Set 1 ( [Name] ) [Type] ASCII: ESC6 Decimal: Hex: [Explanation] After inputting the command, all of printing characters use the characters in the character set 1 (see appendix D).
  • Page 53: Gs F N

    characters in the character set 2 (see appendix D). The character set 2 has 224 ‘6 x 8 dot matrix’ characters, Including German, French, Russian, Japanese Katakana, etc. The range of code is 20H~FFH(32~255). [Example] unsigned char str[4]; str[0] = 0x1B; str[1] = 0x37;...
  • Page 54 Hex: [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.
  • Page 55: Chapter 4: Maintenance And Troubleshooting

    Chapter 4: Maintenance and Troubleshooting To ensure the printer to work normally, particularly note that we don't optionally remove the print head and do not make changes to the printer through ourself. For users not using the printer shell, more particularly note protecting the printing head.
  • Page 56: B: Character Set 1 And 2

    “ & ‘ (空格) < > Ç ü é â ä à! å ç ê ë è ï î ì Ä Å É æ Æ ô ö ò û ù ÿ Ö Ü ¢ £ ¥ ₧ ƒ ª º á...
  • Page 57: C: International Standard Ascii

    C: International standard ASCII...
  • Page 58: D: Bar Code

    D: bar code D.1 bar code coding rules UPC-A coding should comply with Organization UPC-A: (http://www.uccnet.org) specification. UPC-E coding should comply with Organization UPC-E: (http://www.uccnet.org) specification. ENA8 coding should comply with Organization ENA8: (http://www.uccnet.org) specification. ENA13 coding should comply with Organization ENA13: (http://www.uccnet.org) specification...
  • Page 59: Barcode Length Character Set

    by the printer, and when programming the data need not be given, and the data can contain or cannot contain check code, and the check code have fixed algorithm. 6. ITF: Also known as INTERLEAVED 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.

Table of Contents