Brief Instruction RMDIIID, RMDIVD series mini printer is a intelligent dot printer toward the 21th century belong to SPRT. The machine adopt new machine with single chip computer, with small volume, light weight, fully functional, high speed, high-definition, beautiful appearance, simple operation, convenient connection. RMDIIID, RMDIVD series mini...
◇Have enough receive buffer 3 k ◇Thermal paper was 57.5 + / - 0.5 mm wide ◇Paper Type: 57.5ר40mm(MAX) ◇Power supply command: SP-RMDIIID S/Q/PH, SP-RMDIVD S/Q/PH voltage input: DC5V~8.5V electric current: 3A SP-RMDIIID VS/VQ/VPH, SP-RMDIVD VS/VQ/VPH voltage input: DC9V~24V electric current: 3A ◇Operating Temp/Humidity: 0~50℃...
Page 5
the different meaning. The details can refer to the third chapter 3.2. Button LF is paper feeding button and LF lamp is power light. The combination of Button SEL and LF can modify printer parameters. Refer to Chapter 3.1.3. Printing paper : thermal paper, width 57.5±0.5mm ◇...
Chapter 3 Operating Instructions 3.1 Interface connection 3.1.1 Serial connection Serial interface is RS - 232 serial interface and 485 serial RMDIIID, RMDIVD interface. 1. RS-232 232 interface levels for both EIA and TTL, support RTS/CTS and XON/XOFF handshaking protocol, the interface type is IDC10 PIN socket and 5 PIN SIL, each types of socket cords number are defined as follows: IDC10 pin number definition shown as figure 3--1: 3-1...
Page 10
Printer send data to computer, when X-ON/X-OFF printer handshaking protocol, the printer will send control code X-ON/X-OFF to computer When the signal show “MARK”, it is means the printer is busy and can not receive data, when the printer signal show “ SPACE”, it is means the printer get ready and can receive data.
X-ON/ Data allowable Send X-ON code 11H on signal line 2 X-OFF control Data disallowed Send X-ON code 13H on signal line 2 3-2 Tow types of handshaking protocol 2. 485 Serial interface 485 interface is IDC10 pin socket, pin number refer to figure of 3--1, each pin definition is different with interface RS-232.
DATA4 Input DATA5 Input DATA6 Input DATA7 Input DATA8 input Pulse reply,” low” level mean the date has /ACK output been received and printer already to receive next date. “high” level mean printer is “ busy” can not BUSY output receive data Via resistance drop down to “...
Page 13
time, red indicator will flash once one second. Release 【LF】button within three flashes. The printer enters into setting status and print related message. Choose the setting item through 【SEL】button. Press 【SEL】button once, the setting item will go to the next and print out the setting value of this item.
Page 14
Handshaking: RTS/CTS or XON/XOFF Parity: None or Odd or Even 3, Language Status: Description: 1. GB12345 with national standard secondary character GB2312 corresponding traditional character. 2. The standard model 24 models only support interface secondary character GB2312 a pattern, 16 point models sup interface BIG5 and traditional GB12345 choice. 4, Printing Font: Description: characters font is only effective in Chinese character mode, English mode only 6 * 8.
3.1.4 Power supply connection SP-RMDIIID S/Q/PH, SP-RMDIVD S/Q/PH voltage input DC5V~8.5V Electric current: 3A SP-RMDIIID VS/VQ/VPH, SP-RMDIVD VS/VQ/VPH voltage input: DC9V ~ 24V Electric current: 3A 3.2 Light and button operation The function of each button is different according to the different working mode.
Power indicator (green) Indicates on/off status of power. Errors and busy status alarm light(red) Light status Instruction Normal working Lack of paper, waiting for has Blink once, off 1 returned to normal after the paper second work. The nose too warm, waiting for the Blink twice, off 1 nose temperature...
Page 17
self-test receipt 3-4 In the figure, the left one is self-test receipt for serial interface model and the right one is for parallel interface model. The printing sequence is from the below to above. Mark: Due to that the default configuration item may be different when the printer is out of factory, the font size of self-test receipt and the content of each configuration is according to the actual content of printed receipt.
LF button, at the same time, click the SEL button, the printer will print self-test list. Hex printing method Hold the [LF] button and connect the power. At this time, the red indicator light will flash once one second. After three flashes of indicator, loosen 【LF】...
Chapter 4 Printing commands 4.1 Summary All the printing commands of SP-RMDIIID, SP-RMDIVD are fully compatible with traditional ESC printing commands. The description form of each command is as following, Command name Function Format: ASCII: the standard ASCII character sequence...
Page 20
Explanation: The printer feeds paper n dot lines. n=1~255. This command doesn’t send carriage return and feed line. It won’t influence the later feed line command. If you need to feed paper immediately but no carriage return, can use ESC J command. Line spacing will be enlarged automatically when using commands ESC V, ESC W and FS W for enlarging characters.
Page 21
Decimal: n1 n2 n3…0 Hexadecimal: n1 n2 n3…00 Explanation: The vertical tab positions are entered as n1, n2 and so on. Character NUL is added at the end to indicate that the command is over. VT command is to carry out vertical tab and the paper is fed to the next vertical position. All input vertical tab positions can be deleted by using this command in ESC B NUL format.
Page 22
ESC D Set Horizontal Tab Value Format: ASCII: n1 n2 n3…NUL Decimal: n1 n2 n3…0 Hexadecimal: n1 n2 n3…00 Explanation: The horizontal tab positions are entered as n1, n2 and so on, all of which should be within the line width of this model printer. Character NUL is added at the end to indicate that the command is over.
Page 23
command. Remark: If there is no horizontal tab value setting, or the current position equals or is beyond the last horizontal tab position, HT command won’t be carried out. If the horizontal tab position is beyond the current line width, HT command won’t be carried out either. ESC f Print Blank Characters or Lines Format: ASCII:...
Page 24
commands: ASCII: ESC Decimal: Hexadecimal: 1B 6C 0C The BASIC programs for this example are as below: LPRINT “1234567890123456” ’Ruler LPRINT CHR$(27); CHR$(108);CHR$(12); ’ESC 1 command LPRINT “123456789012345678901234567890” The print result is as following: ESC Q Set Right Margin Format: ASCII: Decimal: Hexadecimal: Explanation:...
Page 25
The print result is as following: ESC P Set Character Space Format: ASCII: Decimal: Hexadecimal: Explanation: This command is used to set space dot between characters, which is also valid for Chinese characters. Default n=0, means no space between characters. (dot is absolute value and won’t be influenced by enlarging or narrow commands), n=0~255 4.2.3 Character Setting Commands ESC U...
Page 26
The print result is as following: ESC V Enlarge Height Format: ASCII: Decimal: Hexadecimal: Explanation: After inputting this command, the characters, graphics and Chinese characters are printed at n times of normal height, n=1~8. Default n=1 when the dots are 24, while default n=2 when the dots are 16.
Page 27
at n times of normal width and height, n=1~8. Remark: n=1~8, the other value of n will be invalid. FOR I=1 TO 3 ’ from 1 to 3 times LPRINT CHR$ (27); CHR$ (87); CHR$ (I); ’ESC W command LPRINT “SPRM”; ’Print character string NEXT I The print result is as following:...
Page 28
ESC + Select/prohibit Up-line Print Format: ASCII: Decimal: Hexadecimal: 1B 2B Explanation: When the lowest dot n=1, select up-line print; when the lowest dot n=0, prohibit up-line print. All characters including spaces will be printed out with up-line after selecting up-line print, unless prohibit the up-line print command.
Page 29
ESC i Select/prohibit Reverse White Print Format: ASCII: Decimal: Hexadecimal: Explanation: When the lowest dot n=1, select reverse white print; when the lowest dot n=0, prohibit reverse white print. Reverse white print is printing in the black background, just like the film of photography.
Page 30
When the lowest dot n=1, select reverse print; when the lowest dot n=0, prohibit reverse print. Remark: Only the lowest dot of n is valid. Default n=1. Notice: Reverse print not only support character mode but also support graphics mode and Chinese character mode.
Page 31
User-defined character is saved in RAM and will be lost after power off. If several ESC & commands use the same m value, only the last one is valid. At most 32 characters can be defined by users. Ref: ESC% and ESC: commands. ESC % Replace User-defined Character Format: ASCII:...
Page 32
70 LPRINT CHR$(27);CHR$(58); ‘ESC : command 80 LPRINT CHR$(65); ‘print original character The print result of the above programs is as following: 4.2.5 Graphics Printing and Codepage Choosing Commands ESC K Print bit-map graphics Format: ASCII: ESC K n2….data….. Decimal: n2….data…..
Page 33
The BASIC programs for this example are as below: LPRINT CHR$ (27); “W”; CHR$ (4); ’Enlarge the width and height 4 times LPRINT CHR$ (27); “K”; CHR$ (15); CHR$ (0); ’ESC K command LPRINT CHR$ (&H7C); CHR$ (&H44); CHR$ (&H44); CHR$ (&HFF); LPRINT CHR$ (&H44);...
Page 34
FS P Print Pre-saved Bitmap [Format] ASCII: Decimal: Hex: Explanation: 0≤ n ≤2, this command is used to print the monochrome bitmap which is pre-saved in the Flash memory of printer. The bitmap in Flash memory can be created and wrote into printer through Setting Tool in PC.
Page 35
reserve 保留 reserve 保留 reserve 保留 CP862 [希伯来] CP862 [Hebrew] WCP1252 [拉丁语 1] WCP1252 Latin I WCP1253 [希腊] WCP1253 [Greek] CP852 [拉丁语 2] CP852 [Latina 2] CP858 [多种语言拉丁语 1+ CP858 Multilingual Latin Ⅰ+Euro) 欧元符] Iran II 伊朗Ⅱ[波斯语] Latvian 拉脱维亚 CP864 [阿拉伯语] CP864 [Arabic] ISO-8859-1 [西欧] ISO-8859-1 [West Europe]...
Page 36
Hexadecimal: 1B Explanation: This command is to initialize the following contents of the printer: ·Clear the data in the print buffer; ·Restore the default; ·Delete user-defined characters. 4.2.7 Data Control Commands Carriage Return Format: ASCII: Decimal: Hexadecimal: Explanation: When the “CR” command is sent to printer, all data in the print buffer will be printed out and paper will be fed one line.
Page 37
Explanation: After printer received this command, it will switch from ASCII character print mode to Chinese character print mode. Using GB Chinese Character Library I&II. Notice: This command is used to switch printer into Chinese Mode when printer is in normal printing mode, but won’t be saved after power off.
Page 38
Hexadecimal: 1C Explanation: Characters following this command are printed at n times of their normal width and height, n=1~8 FS J Set Vertical Print Format: ASCII: Decimal: Hexadecimal: Explanation: This command print Chinese characters vertically, which is that to print characters by rotating 90 at anticlockwise direction.
Page 39
Decimal: Hexadecimal: Explanation: The specified Chinese characters after this command are printed with underline. When LSB n=1, underline selected; when LSB n=0, it canceled. Remark: Only LSB of n is valid. Default n=0. This command is valid for both characters and Chinese.
Page 40
Explanation: Transmits the selected printer status specified by n in real-time, according to the following parameters: n = 1: Transmit printer status n = 2: Transmit off-line status n = 3: Transmit error status n = 4: Transmit paper sensor status ·...
Page 41
n = 3: Error status n=4: paper feeding status...
Page 42
4.2.10 Bar Code Printing Commands GS k m d1...dk NUL Print Barcode Format: d1...d k NUL ①ASCII: Decimal: d1...dk 0 Hexadecimal: d1...dk 00 d1... dn ②ASCII: Decimal: d1... dn Hexadecimal: d1... dn Explanation: ①0 ≤ m ≤ 6 (the value range of k&d is decided by the barcode type) ②65 ≤...
Page 43
characters will be managed as the common characters. When JAN13 (EAN13) is chosen, after 13bytes barcode data is received, the other characters will be managed as the common characters. When JAN8 (EAN8) is chosen, after 8bytes barcode data is received, the other characters will be deal with as the common characters.
Page 44
When CODE128 ( m = 73) is choose: · Pls refer to Appendix 5 – Related information and characters set of CODE128. · When CODE128 is used, pls encode according to the below structions: 1. Do choose characters set (one of CODE A, CODE B and CODE C) before the barcode data.
Page 45
· If it is not the choosing of characters set at the beginning of barcode data, the printer will stop dealing with this command and deal with the other data as the common data. · If the combination by “{” and that following character is not in the above form, the printer will stop dealing with this command and deal with the other data as the common data.
Don't insert and pull out the chip. If there is abnormity, please hand over to the producer for repairing. 2. When you suppress to join the electric wire by yourself, pls do pay attention to the interface of printer - parallel interface or serial interface, to avoid the wrong connection with the host computer.
Appendix 2 Valid Codes Form under Chinese printing The serial numbers of valid codes are from 00H to 0FFH under Chinese printing, among which 00H-1FH are control codes and 20H-0FFH are character codes.
Appendix 3 Printing Commands Form Decimal Hexadecimal Symbol&Format Function Page Ending Mark FEED LINE Carriage Return 16 4 n 10 04 n DLE EOT n Real-time status transmission 27 34 n 1B 22 n ESC “ n Hex Mode Print % m1 n1……mk Replace User-defined...
Page 52
27 86 n 1B 56 n ESC V n Enlarge Height 27 87 n 1B 57 n ESC W n Enlarge Width and Height 27 99 n 1B 63 n ESC C n Select/prohibit Reverse Print 27 102 m 1B 66 m n ESC f m n Print Blank Characters or Lines Select/prohibit Reverse White...
Appendix 4 Single chip microcomputer interface example PC hardware recommended schematic: Sugest Serial connect 3 pins, Receive(RXD), Busy(CTS), Power(GND) IDC10PIN serial socket pin assignment PDK-5 single Serial socket pin assignment Serial interface each cords number define shown as figure 3-1: Signal IDC10 5PIN socket...
Page 54
X-ON/X-OFF to computer When signal show “MARK”, it is means the printer is busy and can not receive data, when the signal printer show “ SPACE”, it is mean the printer get ready and can receive data. when signal show “...
Page 55
Program as follows: Compilation program is as follows: Initialize the serial port Send a word to Serial Baud rate 9600 Busy Mode 3 Odd parity Even parity Waiting for sending finish Get number End mark 00H Serial sending chracters Busy Odd parity, C reverse Even parity Waiting for sendingg finish...
Page 56
Master machine I / O port mode recommended schematic: IDC26 Parallel interface socket pin assignment Parallel interface each cords number define shown as below: Cords No. Signal Direction Instruction /STB input Gate trigger, rising along the read data. DATA1 Input DATA2 Input DATA3...
Page 57
Pulse reply,” low” level mean the date has /ACK output been received and printer already to receive next date. “high” level mean printer is “ busy” can not BUSY output receive data Via resistance drop down to “ low” level output mean have paper Via resistance pull up to “...
Page 58
DATA8 input Pulse reply,” low” level mean the date has /ACK output been received and printer already to receive next date. “high” level mean printer is “ busy” can not BUSY output receive data Via resistance drop down to “ low” level output mean have paper Via resistance pull up to “...
Page 59
DATA8 input Pulse reply,” low” level mean the date has /ACK output been received and printer already to receive next date. “high” level mean printer is “ busy” can not BUSY output receive data Via resistance drop down to “ low” level output mean have paper Via resistance pull up to “...
Page 60
Compilation program as follows: C program as follow: Send a character to Parallel Busy Printing finish mark STB rising edge Sdjust STB mulse Busy Send STB rising edge Serial sending string...
Page 61
Master machine parallel port bus mode recommended schematic: Compilation program as follows: C language as follows: Printer address **define utter add Parallel send a character Busy Cycle sending Parallel send string Busy...
Need help?
Do you have a question about the SP-RMDIIID and is the answer not in the manual?
Questions and answers