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 ..............................
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.
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...
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.
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...
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...
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.
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.
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...
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’...
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...
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...
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);...
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”)].
[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];...
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);...
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’...
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);...
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);...
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.
[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];...
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];...
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]...
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)
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;...
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;...
[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] ①...
• 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.
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...
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 .
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 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;...
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).
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.
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.
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...
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.