SP Rmdiiid Divd Users Manual101
SP Rmdiiid Divd Users Manual101
SP Rmdiiid Divd Users Manual101
SP-RMDIVD
INSTRUCTION
(VER 1.01)
1
Contents
Contents........................................................................................................................2
Brief Introduction........................................................................................................................... 3
Chapter 1 Characteristics and performance................................................................................3
1.1 Main Features.................................................................................................................... 3
1.2 Performance Index............................................................................................................4
Chapter 2 Install instruction............................................................................................................5
2.1 Outer Appearance............................................................................................................. 5
2.2 Outer Dimension................................................................................................................5
2.3 Paper install........................................................................................................................6
Chapter 3 Operating Instructions.................................................................................................. 7
3.1 Interface Connection.........................................................................................................7
3.1.1 Serial interface connection................................................................................... 7
3.1.2 Parallel interface connection................................................................................9
3.1.3The printer parameter settings........................................................................... 10
3.1.4 Power supply connection................................................................................... 12
3.2 Lights and buttons operation.........................................................................................12
3.3 self-test and HEX DUMP............................................................................................... 13
3.4 Printer Initialization..........................................................................................................15
Chapter 4 Print Command............................................................................................................16
4.1 Summary.......................................................................................................................... 16
4.2 command instruction...................................................................................................... 16
4.2.1 Paper feed command.......................................................................................16
4.2.2 Format setup command...................................................................................17
4.2.3 Character setup command..............................................................................22
4.2.4 User-defined character set command........................................................... 26
4.2.5 Graphic print command................................................................................... 28
4.2.6 Initialization command...................................................................................... 31
4.2.7 Database console command.......................................................................... 32
4.2.8 Chinese characters printing control command............................................ 32
4.2.9 Real-time command......................................................................................... 35
4.2.10 Bar code print command.................................................................................. 37
Chapter 5 Operation and maintenance......................................................................................42
5.1 Head maintenance..........................................................................................................42
5.2 Others................................................................................................................................42
Chapter 6 Printer use under on WINDOWS..............................................................................43
Appendix 1 Es mode character code table effectively.............................................................44
Appendix 2 Chinese character code table effectively..............................................................46
Appendix 3 The print command table.........................................................................................47
Appendix 4 Single chip micro computer interface instance....................................................49
2
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
printer with full product line, standard installation size, it is the best product to match with
medical equipments, fire control station, industrial control and other instruments and for
upgrading.
RMDIIID、RMDIVD thermal printer is mode with the same character set 1 and set 2
RMDIII, according to the characters in the Chinese manner of lattice can print 24 different
number of mathematical symbols, special symbols, graphics, curve. Can change through
the command to print and character spacing characters, you can customize the size of the
RMDIIID 、 RMDIVD printers have Windows driver, able to directly under PC for
◇Integrating the print head and circuit with one body, easy to installed
◇Comes with a single chip processor, with standard parallel interface and serial
◇With the command of real-time print for Chinese characters, characters and graphics,
3
◇With self-test function, print all code, high HD characters and beautiful font
◇8dots/mm,384 dots/line
◇Print speed:30mm/s
◇ Button SEL for self-test and on-line control, SEL lamp for error alarm and
status indication. Usually the lamp is off. Flicker frequency of different has
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
6
◇ MCBF:MCBF (Mean Cycles Between Failure)(5~15)× 10
4
Chapter 2 Install Instruction
2-1
1、Open Button 2、Self Button,Error
3、Lf Button, Power indicator 4、Paper roll
110
57
57
64
103 103+0.2
+0.1
57+0.2
+0.1
开口尺寸
Front size
5
Front size
Press the button to open the door. After loading the paper roll, close the door.
6
Chapter 3 Operating Instructions
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
2 10
1 9
3-1 Serial interface IDC10 pin
number
7
RXD 3 3 PCB board Printer receive data from computer
X-ON/X-OFF to computer
② The signal logic is divided into EIA and TTL level due to insert different sockets;
Under the serial interface connect, the baud rate and data structure can be set with button
or software, Before out of factory the product has been set to 9600bps, 8 data bits, no
calibration and a stop bit; two types of handshaking protocol agreement can be chosen.
One is mark control way, other is X-ON/X-OFF agreement, two kinds of handshaking
Type of
protocol
8
agreement
X-OFF control Data disallowed Send X-ON code 13H on signal line 2
485 interface is IDC10 pin socket, pin number refer to figure of 3--1, each pin
definition is different with interface RS-232. 485 interface’s effective socket is IDC10 pin
A 7
B 9
socket is 26 lines flat cable or replace model. Parallel interface pin number shown as
below:
2 26
1 25
9
1 /STB input Gate trigger, rising along the read data.
3 DATA1 Input
5 DATA2 Input
7 DATA3 Input
Those signals represent the message from
9 DATA4 Input
1 to 8, when the logic is “1” of each signal,it
11 DATA5 Input
is high level, logic show”0”mean low level.
13 DATA6 Input
15 DATA7 Input
17 DATA8 input
next date.
10、12、14、16、
GND --- Ground connect, logic”0” level
18、20、22、24
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. Choose the setting value of item through 【LF】
button. Press 【LF】button once, the setting item will go to the next.
【LF】button and 【SEL】button,print out “Exit Set Mode” notice message. Now the set
parameters have been saved. Exit the setting mode and enter into normal working. If you
close the power supply of printer directly, the setting parameter will lose.
Summary setting(when Parallel interface there is no baud rate and Serial interface
1、Baud Rate:
11
Instructions:
Data Bit:8bit or 7
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.
5、Printing Density:
7、Power Level:
12
8、Printing Direction:
9、Command System:
This setting can be used for dot matrix printer models alternatively:
1. After selecting this setting, power consumption level still can be chosen.
2. After selecting this setting, the function of selecting font size for characters and Chinese
characters will be not supported.
SEL
Online status switching button. Under online status, the interface printing
is valid. Under offline status, 【LF】button is valid. The default is online status
when printer is power on.
LF
When printer is power on, this button is online status. At this time, pressing
【SEL】button to be offline status and press LF button to feed paper. Press
13
again to stop paper feeding. During online status, this button is valid.
Mark:When the printer is in a state of busy, red light will light up.
Self-test can test whether the printer is working properly or not. If the
self-test receipt can be printed correctly, it means the printer is normal except
the interface with the host. Otherwise, the printer will need to be repaired.
14
3-4 self-test receipt
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:
1 、 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. The above
picture is just for reference.
2 、 The specific content of each item set can reference "3.1.3 printer
parameters setting" section. After setting manually each time, it can be test
whether the setting is successfully through printing self-test receipt.
Self-test method:
1 、 Hold down the "SEL" button and turn on the printer, then loosen the
2、Under normal working mode, click SEL button once, then hold down the
LF button, at the same time, click the SEL button, the printer will print self-test
15
list.
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】
button. The red indicator will continue to flash. After flashing three times again,
the flashing stops. The printer will print out “Hexadecimal Dump”. Now the
printer enters into the hex printing mode.
16
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,
The following is the description of each command according to the function of each
command.
LF Feed Line
Format: ASCII: LF
Decimal: 10
Hexadecimal: 0A
Explanation: The printer prints the current line and feeds paper forwards one line.
Remark: One line means the current character line.
Hexadecimal: 1B 4A n
17
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.
Hexadecimal: 1B 31 n
Explanation:
The n dot-line spacing is set for future Line Feed command. n=0~255
Default setting n=3 for text printing, n=0 for bitmap printing when using ESC K command.
The BASIC programs for observing the effect of this command are as below:
FOR I=1 TO 11 STEP 2
NEXT I
Example: set three vertical tab values at 2nd line, 5th line, 8th line in one page, you can
send the following commands:
ASCII: ESC B STX ENQ BS NUL
Decimal: 27 66 2 5 8 0
Hexadecimal: 1B 42 02 05 08 00
LPRINT CHR$ (27); “B”; CHR$ (2); CHR$ (5); CHR$(8); CHR$(0); ‘ESC B command
Notice: if there is no vertical tab value setting, or the current position equals or is beyond
the last vertical tab position, VT command is to feed paper one line only (same to LF
command).
19
ESC D Set Horizontal Tab Value
Decimal: 27 68 n1 n2 n3…0
Hexadecimal: 1B 44 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.
All set horizontal tab positions can be deleted by using this command in ESC D NUL format.
Command HT carry out horizontal tab.
Example: set three horizontal tab values at 2nd, 9th line, 14th character position in one line,
ASCII: ESC D STX HT SO NUL
Decimal: 27 68 2 9 14 0
Hexadecimal: 1B 44 02 09 0E 00
The BASIC programs for this example are as below:
LPRINT “12345678901234567890123456789012” ’Ruler
LPRINT CHR$(27); CHR$(68);CHR$(2);CHR$(9);CHR$(14); CHR$(0); ’ESC D command
LPRINT CHR$(9); ‘HT command
LPRIN “HT1”; ‘print character string
LPRINT CHR$(9); ‘HT command
LPRINT “HT2”; ‘print character string
LPRINT CHR$(9); ‘HT command
LPRINT “HT3”; ‘print character string
LPRINT CHR$(13);
Format: ASCII: HT
Decimal: 9
Hexadecimal: 09
Explanation:
The print position is advanced to the next horizontal tab position which is set by ESC D
command.
20
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.
Hexadecimal: 1B 66 m n
Explanation:
When m=1, ESC f SOH n will command to print n blank lines. n=0~255.
Remark:
When m=0, if the value of n is beyond the current line width, the printer will continue to print
blank in the next line.
Example: print 6 blank characters in one line, you can send the following commands: ASCII:
ESC f NUL ACK
Decimal: 27 102 0 6
Hexadecimal: 1B 66 00 06
Another example: print 6 blank lines, you can send the following commands:
ASCII: ESC f SOH ACK
Decimal: 27 102 01 6
Hexadecimal: 1B 66 01 06
ESC l Set Left Margin
Format: ASCII: ESC l n
Decimal: 27 108 n
Hexadecimal: 1B 6C n
Explanation:
The value of n should be in the range from 0 to the line width of this model printer.
Default n=0, that means no left margin.
This command sets absolute position, and won’t be influenced by character
commands ESC U and ESC W.
Example: set left margin value to 12, you can send the following commands:
21
commands:
ASCII: ESC 1 ACK Decimal: 27 108 12
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:
Hexadecimal: 1B 51 n
Explanation:
The value of n should be in the range from 0 to the line width of this model printer.
Default n=0, that means no right margin.
This command sets absolute position, and won’t be influenced by character commands
ESC U and ESC W.
After setting this command, the printer will carry out carriage return and feed line as long as
the right margin position is reached.
Example: set right margin value to 12, you can send the following commands:
ASCII: ESC Q ACK
Decimal: 27 81 12
Hexadecimal: 1B 51 0C
The BASIC programs for this example are as below:
LPRINT “123456789012345678901234567890”;
LPRINT “12345678901234567890”
The print result is as following:
22
ESC P Set Character Space
Format: ASCII: ESC P n
Decimal: 27 112 n
Hexadecimal: 1B 70 n
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
Hexadecimal: 1B 55 n
Explanation:
After inputting this command, the characters, graphics and Chinese characters are printed
at n times of normal width, n=1 ~ 8. Default n=1 when the dots are 24, while default n=2
when the dots are 16. These are normal printing width.
The BASIC programs for observing the enlarging effect of this command are as below:
FOR I=1 TO 3
23
ESC V Enlarge Height
Format: ASCII: ESC V n
Decimal: 27 86 n
Hexadecimal: 1B 56 n
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. This command should be sent out at the beginning of one line.
The BASIC programs for observing the enlarging effect of this command are as below:
FOR I=1 TO 3 ’ from 1 to 3 times
NEXT I
Decimal: 27 87 n
Hexadecimal: 1B 57 n
Explanation:
After inputting this command, the characters, graphics and Chinese characters are printed
at n times of normal width and height, n=1~8.
24
Remark: n=1~8, the other value of n will be invalid.
NEXT I
Hexadecimal: 1B 2D n
Explanation:
When the lowest dot n=1, select underline print; when the lowest dot n=0, cancel underline
print.
All characters including spaces will be printed out with underline after selecting underline
print command, unless cancel the underline print command. This command is also valid for
Chinese characters.
The BASIC programs for observing the effect of this command are as below:
LPRINT CHR$ (27); CHR$ (57); CHR$ (2); ’ Enlarge the width and height twice
LPRINT “SPRM”;
LPRINT CHR$ (27); CHR$ (45); CHR$ (1); ’ Select underline print
LPRINT CHR$ (27); CHR$ (45); CHR$ (0); ’ Cancel underline print
LPRINT “SPRM”;
25
ESC + Select/prohibit Up-line Print
Format: ASCII: ESC + n
Decimal: 27 43 n
Hexadecimal: 1B 2B n
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. This command is also valid for Chinese
characters.
The BASIC programs for observing the effect of this command are as below:
LPRINT CHR$ (27); CHR$ (57); CHR$ (2); ’ Enlarge the width and height twice
LPRINT “SPRM”;
LPRINT “SPRM”;
26
ESC i Select/prohibit Reverse White Print
Format: ASCII: ESC i n
Decimal: 27 105 n
Hexadecimal: 1B 69 n
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. The normal printing is that printing black characters in white background.
The default is prohibiting reverse white print.
LPRINT CHR$ (27); CHR$ (105); CHR$ (1); ’ Select reverse white print
LPRINT “SPRD”
Hexadecimal: 1B 63 n
Explanation:
27
When the lowest dot n=1, select reverse print; when the lowest dot n=0, prohibit reverse
print.
Notice: Reverse print not only support character mode but also support graphics mode and
Chinese character mode. When print the graphics in reverse direction, pay attention to the
printing sequence of graphic units, please check ESC K command.
Decimal: 27 54
Hexadecimal:: 1B 36
Explanation:After inputting this command, all the characters will be printed out according to
the Characters Set 1 in ANK.
Decimal: 27 55
Hexadecimal: 1B 37
Explanation:After inputting this command, all the characters will be printed out according to
the Characters Set2 in ANK.
28
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.
Hexadecimal: 1B 4B n1 n2….data…..
Explanation:
This command is used to print (n2x256+n1) ×8bit map. The width of this graphics is
(n2×256+n1) dots and the height is 8 dots. Each column has 8 dots and can be presented
by a 8-bit byte, the MSB is on the top.
The values of n1, n2 denote a 16-bit binary data, n1 is LSB, n2 is MSB, which mean that the
width of printed bitmap through ESC K command is n2x256+n1. In our printer series, n2=0/1.
The sum of dots number should be ≤384. Data are the bytes content of each column in this
graphics. The bytes number should equal to n2x256+n1.
Remark: If the width of printed graphics is beyond the remaining width of current line, the
beyond part of graphics won’t be printed out and the printed position will change to the next
line.
For example: If you want to print two Chinese characters “中文” with ESC K command, the
bit- map for the two Chinese is as the below figure shows. Each character is composed by
7 × 8 dots to 7 columns, there is a space between the two characters, so totally there are
15 columns, then n1=15, n2=0, the 15-byte data showed in hexadecimal are as follows:
7C, 44, 44, FF, 44, 44, 7C, 00, 41, 62, 54, C8, 54, 62, 41
30
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); CHR$ (&H44); CHR$ (&H7C); CHR$ (&H0);
LPRINT CHR$ (&H41); CHR$ (&H62); CHR$ (&H54); CHR$ (&HC8);
LPRINT CHR$ (&H54); CHR$ (&H62); CHR$ (&H41);
Explanation:
This command is used to print curve along the paper-feeding direction. The value of m
is the number of curves to be printed, m=0~255.
There are m dots of curve in one horizontal line. n1L n1H n2L n2H……nIL nIH
presents the positions of these m curves. The numbers of nIL or nIH should equal to m.
Each dot should be within the largest dots numbers of printer. The last CR (“enter”) is
used to print out this dot line. The whole m curves are printed out through each dot line
by n1L n1H n2L n2H……nIL nIH data.
Remark: The dot whose position is beyond the paper width won’t be printed out. This
command is valid no matter there is OD or not.
Explanation:
The using explanation is same as the command for Printing Curve I.
31
FS P Print Pre-saved Bitmap
[Format] ASCII: FS P n
Decimal: 28 80 n
Hex: 1C 50 n
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. The largest width of bitmap is 384dots and the largest height is
1365dots. (The bitmap can’t be over 64km.) “n” is the number of bitmap.
Remark: If the number of bitmap isn’t defined, this command is invalid.
The bitmap must be monochrome.
This command won’t be affected by printing mode (underline, character size or
reverse white printing).
If the width of printed bitmap is beyond one line, the beyond part won’t be printed
out.
It needs the special setting tool to download the bitmap. Pls ref. (RMDIIID Setting
Tool). The downloaded bitmap through this method won’t be low, unless it is
covered by other bitmap.
32
13 保留 reserve
14 保留 reserve
15 CP862 [希伯来] CP862 [Hebrew]
16 WCP1252 [拉丁语 1] WCP1252 Latin I
17 WCP1253 [希腊] WCP1253 [Greek]
18 CP852 [拉丁语 2] CP852 [Latina 2]
19 CP858 [多种语言拉丁语 1+ CP858 Multilingual Latin Ⅰ+Euro)
欧元符]
20 伊朗Ⅱ[波斯语] Iran II
21 拉脱维亚 Latvian
22 CP864 [阿拉伯语] CP864 [Arabic]
23 ISO-8859-1 [西欧] ISO-8859-1 [West Europe]
24 CP737 [希腊] CP737 [Greek]
25 WCP1257 [波罗的海] WCP1257 [Baltic]
26 泰 文 ( 与 TM-88 Thai Thai
character code
14 同)
27 CP720[阿拉伯语] CP720[Arabic]
28 CP855 CP855
29 CP857[土耳其语] CP857[Turkish]
30 WCP1250[中欧] WCP1250[Central Eurpoe]
31 CP775 CP775
32 WCP1254[土耳其语] WCP1254[Turkish]
33 WCP1255[希伯来语] WCP1255[Hebrew]
34 WCP1256[阿拉伯语] WCP1256[Arabic]
35 WCP1258[越南语] WCP1258[Vietnam]
36 ISO-8859-2[拉丁语 2] ISO-8859-2[Latin 2]
37 ISO-8859-3[拉丁语 3] ISO-8859-3[Latin 3]
38 ISO-8859-4[波罗的语] ISO-8859-4[Baltic]
39 ISO-8859-5[斯拉夫语] ISO-8859-5[Cyrillic]
40 ISO-8859-6[阿拉伯语] ISO-8859-6[Arabic]
41 ISO-8859-7[希腊语] ISO-8859-7[Greek]
42 ISO-8859-8[希伯来语] ISO-8859-8[Hebrew]
43 ISO-8859-9[土耳其语] ISO-8859-9[Turkish]
44 ISO-8859-15[拉丁语 9] ISO-8859-15 [Latin 3]
45 [泰文 2] Thai2
33
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.
CR Carriage Return
Format: ASCII: CR
Decimal: 13
Hexadecimal: 0D
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.
NUL NUL
Format: ASCII: NUL
Decimal: 0
Hexadecimal: 00
Explanation:
NUL command is used as the final code in some commands such as ESC B, ESC D, ESC%
and ECS ’, to denote these commands are over. NUL command is ignored when used alone.
The command to print Chinese character is FS standard command. All Level I&II Chinese
characters and graphics, etc in 16dots&24dots Chinese character library are according to
Chinese National Standard GB2312-80. For 24dots, there are only graphics, symbols, etc I
A1 and A9 zone are 24dots. Each Chinese character has two bytes. Big5 characters with
16dots are in Traditional Chinese characters library.
The following is the detailed of Chinese Character Print Commands:
34
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. Only after setting through Setting Tool, the
result can be saved.
Hexadecimal: 1C 14
Explanation:
This command is to cancel FS SO command.
Hexadecimal: 1C 4B
Explanation:
This command is to print Chinese characters horizontally, if have not set rotation, the
Chinese characters will be printed horizontally, that is normal print status.
Hexadecimal: 1C 49 n
Explanation:
This command is to rotate Chinese characters, the values of n are as following (Default is
180°):
n Characters rotated at
anticlockwise direction
0 0°
1 90°
2 180°
3 270°
other invalid
Hexadecimal: 1C 2D n
36
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.
Hexadecimal: 1C 2B n
Explanation:
The specified Chinese characters after this command are printed with up-line. When LSB
n=1, up-line 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.
Explanation:
When LSB n=0, cancel hex mode print; when LSB n=1, hex mode print is valid.
When in hex mode print, all the commands and data the host sent to the printer will be
printed in hex codes.
Hex mode print will be carried out only when the print buffer is full.
Notice: only LSB of n is valid, default n=0
Decimal: 16 4 n
Hexdecimal: 10 04 n
Explanation:
37
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
·The printer returns the related status at once upon receiving it.
·This command should not be used within the data sequence of another command that
consists of 2 or more bytes.
·The printer transmits the current status. Each status is represented by one byte data.
· The printer transmits the status without confirming whether the host computer can
receive data.
·The printer executes this command at once upon receiving it.
·This command is valid only for serial interface printer. The printer will execute this
command at once after receiving it, no matter what status the printer is in.
n = 1: Printer status
38
n = 3: Error status
39
4.2.10 Bar Code Printing Commands
Explanation:
①0 ≤ m ≤ 6 (the value range of k&d is decided by the barcode type)
②65 ≤ m ≤ 73 (the value range of k&d is decided by the barcode type)
Remark: If the width of barcode is beyond the effective printing width, no characters can be
printed, but paper feeds.
m is used to choose the barcode type, showed as below:
m Barcode type Character d
number
① 0 UPC-A 11 ≤ k ≤ 12 48 ≤ d ≤ 57
1 UPC-E 11 ≤ k ≤ 12 48 ≤ d ≤ 57
2 JAN13 12 ≤ k ≤ 13 48 ≤ d ≤ 57
(EAN13)
3 JAN 8 (EAN8) 7≤k≤8 48 ≤ d ≤ 57
4 CODE39 1 ≤ k ≤ 255 45 ≤ d ≤ 57, 65 ≤ d ≤ 90, 32, 36, 37,43
5 ITF 1 ≤ k ≤ 255 48 ≤ d ≤ 57
6 CODABAR 1 ≤ k ≤ 255 48 ≤ d ≤ 57, 65 ≤ d ≤ 68 , 36, 43,
45,46,47,58
② 65 UPC-A 11 ≤ n ≤ 12 48 ≤ d ≤ 57
66 UPC-E 11 ≤ n ≤ 12 48 ≤ d ≤ 57
67 JAN13 12 ≤n ≤ 13 48 ≤ d ≤ 57
(EAN13)
68 JAN 8 (EAN8) 7 ≤n ≤ 8 48 ≤ d ≤ 57
69 CODE39 1 ≤ n ≤ 255 45 ≤ d ≤ 57, 65 ≤ d ≤ 90, 32, 36, 37,43
d1 = dk = 42
70 ITF 1 ≤ n≤ 255 48 ≤ d ≤ 57
71 CODABAR 1 ≤ n≤ 255 48 ≤ d ≤ 57 65 ≤ d ≤ 68, 36,
43,45,46,47 58
72 CODE93 1 ≤ n≤ 255 0 ≤ d ≤ 127
73 CODE128 2 ≤ n≤ 255 0 ≤ d ≤ 127
40
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.
The numbers of ITF code data must be even number. If odd numbers of barcode data is input,
the last one will be ignored.
Explanation for command ②:
n is used to denote the number of barcode data. Printer will deal with the last n bytes data as
the barcode data.
If n is beyond the specified range, the printer will not deal with this command and just deal
with the data as the common data.
Explanation:
· If barcode data d is beyond the specified range, this command is invalid.
· If the barcode is beyond printing zone at horizontal direction, invalid.
· No matter how much the line height is set by command ESC 1 n, paper feeding length will
be same with the barcode height.
· This command is valid only that there is no data in the printing buffer. If there is data in
printing buffer, this command will be ignored.
· After printing barcode, the printing position will be set on the first line.
· This command won’t be affected by Print Mode Setting (such as bold printing, duplicate
printing, underline, character size, reverse white printing, etc), but will be affected by Invert
Printing.
When CODE93 ( m = 72) is choose:
When printer print HRI character, (■+one alphabet character) is used as one control character
(<00>H to <1F>H and <7F>H).
Conversion form between control character and HRI character is as below,
41
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.
2. Choosing characters set is finished through sending character “{” to combine with the other
character; ASCII character “{” is finished by sending character “{” twice.
Specified Sending Data
Characters ASCII Hex Decimal
Set
SHIFT {S 7B, 53 123,83
CODE A {A 7B, 41 123, 65
CODE B {B 7B, 42 123, 66
CODE C {C 7B, 43 123, 67
FNC1 {1 7B, 31 123, 49
FNC2 {2 7B, 32 123, 50
FNC3 {3 7B, 33 123, 51
FNC4 {4 7B, 34 123, 52
"{" {{ 7B, 7B 123, 123
[Example] :Printing“No. 123456”
In this example, printer will print “No.” by CODE B, and print the other numbers by CODE C:
GS k 73 10 123 66 78 111 46 123 67 12 34 56
42
· 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.
· If the character received by printer is not barcode characters set data, the printer will stop
dealing with this command and deal with the other data as the common data.
· When printer prints HRI characters, it doesn’t print shift character and choosing data in
characters set.
· Function characters in HRI character won’t be printed.
· Control characters(<00>H to <1F>H and <7F>H)in HRI character won’t be printed.
Pls be sure the space at both left and right side of barcode. The space will be different
according to the different barcode.
Pls refer to GS H, GS h, GS w, Appendix 5.
In order to guarantee the normal work of the printer, pls notice that do not disassemble the
printing head. If the outer case of printer is not used, pls pay more attention to protect the
printing head.
1. If you do not use the printer for a long time, please don't put through the printer on the
power.
2. If the printer works abnormally, please turn off the printer power.
3. The used power must meet the requirements, otherwise it will be disadvantageous for
the print head.
4. While changing the paper roll, please notice whether there is paper scrap on the print
head. If so, please blow gently.
5. Keep the circuit board of the printer clean and dustless.
6. When the thermal printer can’t print clearly, the printing head can be wiped by alcohol
cotton ball.
44
5.2 Other
1. 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.
The version of printer’s driver software is SP-DRV211. The manual for driver software and
installation can be downloaded from our website. Do not introduce the details here.
Remark: During installing driver, choose the printer model “58 thermal series”. The other
details can be checked from Installation Manual.
The serial numbers of valid codes are from 00H to 0FFH under ANK printing, among which
00H-1FH are control codes and 20H-0FFH are character codes. Character codes are
composed by two characters sets. The character codes of each character set are all in
20H-0FFH permutation.
Characters Set 1:
45
Characters Set 2:
46
47
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.
48
Appendix 3 Printing Commands Form
10 0A LF FEED LINE 18
13 0D CR Carriage Return 15
Recover Character in
27 58 1B 3A ESC : 26
Character Set
49
27 86 n 1B 56 n ESC V n Enlarge Height 21
27 102 m
1B 66 m n ESC f m n Print Blank Characters or Lines 24
n
Select/prohibit Reverse White
27 105 n 1B 69 n ESC i n 19
Print
50
Appendix 4 Single chip microcomputer
interface instance
number
51
the printer will send control code
X-ON/X-OFF to computer
② The signal logic is divided into EIA and TTL level due to insert different sockets;
Under the serial interface connect, the baud rate and data structure can be set with button
or software, Before out of factory the product has been set to 9600bps, 8 data bits, no
calibration and a stop bit; two types of handshaking protocol agreement can be chosen.
One is mark control way, other is X-ON/X-OFF agreement, two kinds of handshaking
Type of
handshaking
Data direction RS-232C interface signal
protocol
agreement
52
X-OFF control Data disallowed Send X-ON code 13H on signal line 2
485 interface is IDC10 pin socket, socket cords number refer to figure of 3--1, each
cords define are difference with interface RS-232, 485 interface’s effective socket is
IDC10 pin socket which next to power supply, the cords define as below:
A 7
B 9
socket with 26 lines flat cable or replace model, parallel interface socket cords number
shown as below:
2 26
1 25
Each pin signal is defined as shown
53
signal show “ SPACE”, it is mean
the printer get ready and can
receive data..
DSR 6 1 printer Signal show “ SPACE” means
printer online
GND 5 5 Signal ground
DCD 1 printer Same as CTS
54
55
Parallel interface each cords number define shown as below:
3 DATA1 Input
5 DATA2 Input
7 DATA3 Input
Those signals represent the message from
9 DATA4 Input
1 to 8, when the logic is “1” of each signal,it
11 DATA5 Input
is high level, logic show”0”mean low level.
13 DATA6 Input
15 DATA7 Input
17 DATA8 input
56
Pulse reply,” low” level mean the date has
next date.
10、12、14、16、
GND --- Ground connect, logic”0” level
18、20、22、24
2 DATA1 Input
3 DATA2 Input
7 DATA6 Input
8 DATA7 Input
57
9 DATA8 input
next date.
2 DATA1 Input
3 DATA2 Input
7 DATA6 Input
8 DATA7 Input
58
9 DATA8 input
next date.
14、15、17、18、
NC --- Not connected
34、36
59
60
61