Table of Contents 一、Summary ............................3 二、Status of Printer and Operation Instructions ................4 2.1 Outlook And Size ........................4 2.2 Printer Status Statement ......................4 2.3 Power On And Power Off ....................... 4 2.4 Paper Roll Loading ......................... 5 2.5 Self-Detection Method ......................
RD-V2 Series Portable Thermal Printer Development Manual 一、Overview RD-V2 Series Portable Printer Is A Specially Designed Thermal Micro Printer For Mobile Receipts. With Built-In Rechargeable Lithium Battery, The Printer Can Load 40mm Diameter Paper Roll, It Is With Character Of Compact Size, Long Stand-by Time, Fast Printing Speed, Clear, etc.
Page 4
RD-V2 Series Portable Thermal Printer Development Manual Common Thermal Paper,Width Paper Type 58±0.5mm/OD≤Ф40mm/Thickness 0.06mm~0.07mm。 Paper Loading Clamshell、Easy Paper Loading。 Paper Cutting Manual Tearing Operating Temperature 0~50℃/10~80%RH Range/Humidity Storage Temperature –20~60℃/10~90%RH Physical Range / Humidity Property Weight(Not Including 240g(Include Battery) Paper) Outlook Size 99mm Length×76mmWidth×45.5mmHeight...
Page 5
RD-V2 Series Portable Thermal Printer Development Manual The green (blue) indicator on the right brighten for Print status long Lack of paper status The red indicator on the right flashes 2 beeps /2s Lack of electricity The red indicator on the right flashes...
4) Send data feedback to the serial Port, For example, if we print RONGDA, The ASCII code of RONGDA will be sent back to the port, whose Hexadecimal digits form is : 52H 4FH 4EH 47H 44H 41H 0D HTTP://WWW.RD-CN.COM...
Page 7
USB interface support equipment features plug-and-play and hot-swappable. The RD-V2 printer does not need to install the interface driver. After connecting the printer‘s USB port, generate an USB printer device on the "Universal Serial Bus" of the "Device Manager", and generate a "USB001"...
RD-V2 Series Portable Thermal Printer Development Manual 四、Print Command In Detail RD-V2 Series thermal printers use the ESC / POS compatible command, Increased functions such as the Chinese characters printing, Character and Chinese characters rotation, and word spacing adjustment, Barcode Printing, etc.。...
Page 9
RD-V2 Series Portable Thermal Printer Development Manual ESC X Magnify characters ① ESC K Printing graphics command ② ESC * Printing graphics command GS h Select bar code height Select bar code‘s width GS w GS H Select printing position for HRI characters...
RD-V2 Series Portable Thermal Printer Development Manual Unsigned char *buf // Print data command Unsigned int len // Data length. Unit: byte 4.2 Command In Detail 4.2.1 Control Command ESC @ [Name] Initialize printer [Format] ASCII Decimal [Description] Clears the data in the print buffer and resets the printer parameter.
Page 11
RD-V2 Series Portable Thermal Printer Development Manual •This command sets the print position to the beginning of the line. [Notes] [Example] unsigned char str[2]; str[0] = 0x0A;//or str[0] = ‗\n‘ Send Data To Printer (str,1); [Name] Print and carriage return...
Page 12
RD-V2 Series Portable Thermal Printer Development Manual • This command sets the print starting position to the beginning of the line. [Example] unsigned char str[3]; str[0] = 0x1B; str[1] = 0x64; str[2] = 0x4; Send Data To Printer (str,3); // feeds 4 lines。...
Page 13
RD-V2 Series Portable Thermal Printer Development Manual ESC D n1 n2 … nk NULL [Name] Set horizontal tab positions n1…nk [Format] ASCII NULL 68 n1…nk Decimal 44 n1…nk 1 ≤ n ≤ 255 0 ≤ k ≤ 20 [Range] [Description] Sets horizontal tab positions.
Page 14
RD-V2 Series Portable Thermal Printer Development Manual ESC – n [Name] cancel/set underline mode [Format] ASCII Decimal 45 n 2D n [Description] n = 1, Underline mode selected; n=0,Underline mode not selected. • This command is effective for all characters.
Page 15
RD-V2 Series Portable Thermal Printer Development Manual FS 2 n [Name] Set Character Rotational mode [Format] ASCII FS 2 Decimal 28 73 n 1C 49 n 0 ≤ n ≤ 3 [Range] [Description] Set Character Rotational mode n ( Decimal )
Page 16
RD-V2 Series Portable Thermal Printer Development Manual [Description] Left margin is character number that the left-hand print paper doesn‘t print; the width of each character is calculated by 12+ character line spacing. The value of n should be in the range from 0 to the line width of this model printer.
Page 17
RD-V2 Series Portable Thermal Printer Development Manual ESC SP n [Name] Set right-side character spacing [Format] ASCII SP n Decimal 32 n 20 n 0 ≤ n ≤ 255 [Range] [Description] Sets the character spacing for the right side of the character to 0.125 mm (n...
RD-V2 Series Portable Thermal Printer Development Manual [Description] n =0 superscript mode selected. n =1 subscript mode selected. [Default] n = 1 • This command is effective for all characters. [Notes] [Example] unsigned char str[3]; str[0] = 0x1C; str[1] = 0x72;...
Page 19
RD-V2 Series Portable Thermal Printer Development Manual str[0] = 0x1B; str[1] = 0x56; str[2] = 2; SendDataToPrinter(str,3);// ESC X [Name] Select character size [Format] ASCII ESC X n1 n2 Decimal 27 88 n1 n2 1B 58 n1 n2 1 ≤ n ≤ 8 [Ranges] ...
Page 20
RD-V2 Series Portable Thermal Printer Development Manual • 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;...
Page 21
RD-V2 Series Portable Thermal Printer Development Manual Program code is as follows: unsigned char str[100]; j=0; str [j++] = 0x1B; str r[j++] = 0x2A; wice as str [j++] = 0; //m=0 (height is 8 dots, t width) str [j++] = 8; //the width of the graphic is 8dots str [j++] = 0;//the bit image data...
Page 22
RD-V2 Series Portable Thermal Printer Development Manual Send Data To Printer(str,j); Example 3: wice as width), d1,d2 and d3 represent the data to be printed in the first, m =32 (24 dots, t second and third column. And dk represents the data to be printed in the k column.
Page 23
RD-V2 Series Portable Thermal Printer Development Manual 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;...
RD-V2 Series Portable Thermal Printer Development Manual Program code is as follows: Unsigned char str[200]; j=0; str[j++] = 0x1B; str[j++] = 0x2A; ( height is 24 dots, don‘t enlarge ) str[j++] = 32; //m=33 str[j++] = 12; // graphic width is 12dots str[j++] = 0;...
Page 25
RD-V2 Series Portable Thermal Printer Development Manual [Default] n=48 [Example] unsigned char str[4]; str[0] = 0x1D; str[1] = 0x68; str[2] = 30; Send Data To Printer(str,3);//Set the bar code height to 30 vertical dot pitch GS w n [Name] Select bar code width...
Page 26
RD-V2 Series Portable Thermal Printer Development Manual [Example] unsigned char str[4]; str[0] = 0x1D; str[1] = 0x48; str[2] = 2; SendDataToPrinter(str,3);// GS Q n [Name] Set bar code absolute print position [Format] ASCII GS Q Decimal 29 81 n 1D 51 n 0 ≤...
Page 27
RD-V2 Series Portable Thermal Printer Development Manual Description Selects a bar code system and prints the bar code. m selects a bar code system as follows: Bar Code System Number of Remarks Characters UPC-A UPC-E JAN13 (EAN13) JAN 8 (EAN8)
Page 28
RD-V2 Series Portable Thermal Printer Development Manual [Notes for 2] n indicates the number of bar code data bytes, and the printer processes n bytes from the next character data as bar code data. I f n is outside the specified range, the printer stops When CODE128 (m = 73) is used: ...
RD-V2 Series Portable Thermal Printer Development Manual Decimal 29 107 m v r nL nH d1…dn Hex 1D 6B m v r nL nH d1…dn [Range] m=32 Or 97 1 ≤ v ≤ 20 1 ≤ r ≤ 4 [Description]...
Page 30
RD-V2 Series Portable Thermal Printer Development Manual [Description] This command is designed to print curving graphics along with the paper feeding direction. The value of N is the line number of the printing curve. It should be within the range of the maximal dots number of each line of this model printer.
Page 31
RD-V2 Series Portable Thermal Printer Development Manual 4.2.7 Status Transmit ESC v [Name] Transmit status [Format] ASCII ESC v Decimal 27 118 1B 76 Description Transmits the status of printer. • W hen using a serial interface。 [Notes] • T his command is executed when the data in the receive buffer is developed. Therefore, there may be a time lag between receiving this command and transmitting the status, depending on the receive buffer status.
Page 32
RD-V2 Series Portable Thermal Printer Development Manual [Name] Cancel Chinese character mode [Format] ASCII FS . Decimal 28 46 1C 2E Description Cancel Chinese character mode, When the Chinese character mode is not selected, all character codes are processed one byte at a time as ASCII(12X24dots) code.
Page 33
RD-V2 Series Portable Thermal Printer Development Manual 4.2.9 Vertical Tab And Print FS V [Name] Vertical Tab And Print [Format] ASCII FS V Decimal 28 86 m LP1...LPm n IP1...IPn FT1 D11...D1k 0...FTn Dn1...Dnk 0 1C 56 m LP1...LPm n IP1...IPn FT1 D11...D1k 0...FTn Dn1...Dnk 0 m Vertical Lines:0 ≤...
RD-V2 Series Portable Thermal Printer Development Manual [Result]: 4.2.10 Bitmap Download And Print Command GS * x y d1…dk [Name] Define The Bitmap [Format] ASCII GS * x y d1…dk Decimal 29 42 x y d1…dk Hex 1D 2A x y d1…dk [Range] 1 ≤...
Page 35
RD-V2 Series Portable Thermal Printer Development Manual GS / n [Name] Print the bitmap [Format] ASCII GS / n Decimal 29 47 n Hex 1D 2F n [Range] 0 ≤ n ≤ 3 [Description] Print the bitmap by designed Mode defined GS command.
Page 36
RD-V2 Series Portable Thermal Printer Development Manual FS p n m [Name] Print The Downloaded NV bitmap [Format] ASCII p n m Decimal 28 112 n m Hex 1C 70 [Range] 1 ≤ n ≤ 255 [Description] N is the number of Downloaded Bitmap Defined By FS q Command m Is The Choice Model Selected From Following List:...
Page 37
RD-V2 Series Portable Thermal Printer Development Manual Appendix A Printer Character Set The Printer Character Set 0x80 And Following Code Is Printed Out Under The Model Of Cancelling Chinese Character. Related Chinese Character Set, Please See National Standard GB-2312 And Microsoft Code Page CP936 .
RD-V2 Series Portable Thermal Printer Development Manual B Barcode B.1 Barcode Encoding Standard UPC-A: Coding confirmed to UCC Standard (http://www.uccnet.org )。 UPC-E: Coding confirmed to UCC Standard (http://www.uccnet.org )。 ENA8: Coding confirmed to EAN Standard (http://www.ean-int.org)。 ENA13: Coding Confirmed to EAN Standard (http://www.ean-int.org)。...
Need help?
Do you have a question about the RD-V2 and is the answer not in the manual?
Questions and answers