SPRT SP DVII Series User manual

Content
Introduction........................................................................................................................................ 1
Chapter 1 Feature and Performance............................................................................................ 2
1.1 Features.............................................................................................................................. 2
1.2 Performance Index............................................................................................................ 2
Chapter 2 System Installation ...................................................................................................... 4
2.1 Installation Size.................................................................................................................. 4
2.2 Paper Roll Installation....................................................................................................... 4
2.3 Power Supply Connection................................................................................................ 7
Chapter 3 Printer Operation............................................................................................................8
3.1 Serial Interface Connection..............................................................................................8
3.1.1 Pin assignment of SP-DVII series interface.......................................................8
3.1.2 SP-DVII series serial setting.................................................................................9
3.2 Parallel interface connection..........................................................................................10
3.3 Button and Indicator........................................................................................................ 12
3.4 Self-test..............................................................................................................................12
3.5 Printer Initialization.......................................................................................................... 12
Chapter 4 Print command ........................................................................................................... 13
4.1 Summary........................................................................................................................... 13
4.2 Commands details........................................................................................................... 13
4.2.1 Paper Feeding Commands.................................................................................13
4.2.2 Format Setting Commands.................................................................................15
4.2.3 Character Setting Commands............................................................................21
4.2.4 User-defined Character Setting Commands....................................................27
4.2.5 Graphics Print Commands..................................................................................29
4.2.6 Initialization Commands...................................................................................... 31
4.2.7 Data Control Commands.....................................................................................31
4.2.8 Chinese Character Print Control Commands.................................................. 33
4.3 Printer default parameter setting commands..............................................................38
4.3.1 Enter exit setting mode........................................................................................38
4.3.2 Printer basic parameter setting.......................................................................... 39
Chapter 5 Operation and maintenance .................................................................................... 41
5.1 Print head protection....................................................................................................... 41
5.2 Other.................................................................................................................................. 41
Chapter 6 Printer Using under Windows .................................................................................. 42
Appendix 1 Valid Codes Tab........................................................................................................ 42
Appendix 2 Print Commands ......................................................................................................45

1
Introduction
SP-DVII dot matrix printer is a intelligent printer which manufactured by SPRT in
21th century. The machine adopt new imported clock mechanism with computer single
chip, with the advantages of small volume, light weight, fully functional, high speed,
high-definition, beautiful appearance, simple operation, convenient connection and so on.
SP-DVII dot matrix printer with full product line, standard installation size. It is the best
replacement used in medical equipment, fire control station, industrial control and other
instruments and apparatus.
SP-DVII dot matrix printer can print all ASCII characters as well as English, Greek,
German, French, Russian, Japanese katakana. What’s more it also can print 16x16 or
12x12 dots Chinese characters as well as a large number of mathematical symbols,
graphics and curves. According to different commands, it can change the size and space
of the printed word and characters, also can customize the code characters and has the
self- test function. What’s more, SP series mini printer can work with Windows driver. They
can print characters, Chinese and graphics with PC equipment.

2
Chapter 1 Feature and Performance
1.1 Features
◇Adopt impact dot-matrix print method.
◇Special design for convenient installation on the vertical panel of the instrument or
equipment.
◇Comes with single - chip processor, have standard parallel or serial, could online use
with various microcomputers or smart instruments conveniently.
◇Real time commands to print Chinese, character, figure and others, also can print
standard 6×7 ASCII character and 16×16, 12×12 Chinese. Command set could be
compatible with traditional printer.
◇Speed can have 5 choices of 1.2 line/s, 0.7 line/s, 0.4 line/s, 2.5 line/s, 1.5 line/s by
different models.
◇Self-test, print full codes, character has high definition and elegant fonts.
◇Power DC 5V±5%, 1.5A
◇Operation temp 0~50℃
1.2 Performance Index
◇Print Method: impact dot-matrix
◇Effective printing width: 33/48mm
◇Print paper: plain white paper, 44/57×φ40(MAX)
◇GB level I, II Chinese fonts library.
◇Enough buffer at 32K
◇Print font: total 448 characters, including 96 ASCII characters, Greek, German, French
letters, Russian, Japanese katakana and partial Chinese characters, mathematics
symbols, print symbols and graphic symbols
◇Character structure: ANK: 6×7 dots, Chinese: 8×16 or 6×12,
Chinese character: 16×16/12×12
◇Graphic symbols: 6×8 dots

3
◇Interface: Parallel interface (compatible with CENTRONICS) or serial interface
(compatible with RS-232C or TTL).
◇Interface connector: Parallel port: IDC26 needle socket; Serial port: IDC10 needle
socket or 5-pin single-row socket;
◇Control code: ESC, FS control codes
◇Reliability: MCBF (Mean cycles between failure) (5~15) × 106
◇THP: 1,500,000 lines
◇Power: DC5V±5% , 1.5A
◇Operation temp/Humidity: 0~50℃, 10~80%
◇Storage temp/Humidity: -20~60℃, 10~90%
◇Installation dimension: 103.5mm×57.5mm(W×H), depth: 64mm
◇Outline dimension: 111mm×65.5mm×68mm(W×H×D)
The Main Characteristics of SP-DVII Series Printers
Model
Character/line
(5×7)
Character
dimension(mm)
Dots/line
Speed
(line/s)
16Series
16
1.8×2.5(W×H)
96
1.2
24Series
24
1.7×2.4(W×H)
144
0.7
40Series
40
1.1×2.4(W×H)
240
0.4

4
Chapter 2 System Installation
2.1 Installation Size
SP-DVII printer’s outline dimension is as Fig. 2-1 shows:
Figure 2-1
2.2 Paper Roll Installation
SP-DVII dot matrix printer uses 44.5mm/57.5mm paper roll which has been equipment
with before leaving factory. In order to prevent damage of printer head while long-distance

5
transporting or long-time storing, the paper didn’t inserted in the print head. So the paper
roll needed to insert into the printer head firstly before using. The general steps of
installing the paper are as follows:
(1) As figure 2-2: Push panel center inward, then inner shell will auto eject when
released.
(2) After inner shell ejected, hold both sides and pull them outward until the end as
direction of figure 2-3, rotate it upward and press the whole downward, until
fastened.
(3) Install paper roll to paper reel as figure 2-4, hold both sides of paper reel, put
paper roll into paper case, then release paper reel and fastened it.
Figure 2-2
Figure 2-3

6
(4) Switch on, press feed button and insert paper from feeding paper slot, press feed
button again to stop feeding after paper comes out. As figure 2-5:
(5) Hold two sides of inner shell, rotate inner shell downward as figure2-6, and push
it inward as the same time.
(6) Push inner shell fully, fastened with outer, paper installation is finished. As figure
Figure 2-4
Figure 2-5
Figure 2-6

7
2-7:
Notice:
1, The fluffy paper roll will not be pushed easily and happen paper jam, hold the
paper tightly and push it inward as the direction of figure 2-8 until inner shell is
inserted fully.
2, When fail to push inner shell inward, pls pull out then push again, not use too big
strength, or the printer will be damaged.
2.3 Power Supply Connection
SP micro dot matrix printers adopt single DC+5V power supply.
A two-line power cable with plug has been offered. The plug has polarity protection
Figure 2-7
Figure 2-8

8
mechanisms, can be inserted directly in the socket which is on the control panel of SP
micro dot matrix printers. The red line of the power cable should be connected to the
positive pole (+) of power, the white line should be connected to the negative pole (–) of
power. Please note that the polarity of the power shouldn't be connected incorrectly, the
voltage of the power must be in the permitting range, otherwise will cause permanent
damage to the printer.
Chapter 3 Printer Operation
3.1 Serial Interface Connection
The serial interface of SP-DVII micro dot matrix printers is compatible with RS-232C
standard or TTL, support RTS/CTS and XON/XOFF protocols.
The interface sockets are IDC10 needle socket, DB25 hole socket, 5-pin single row socket.
The pin order of serial port is as Fig. 3-1 shows:
IDC10 needle socket No. as figure 3-1
1 9
21 0
Figure 3-1 Pin order of IDC10 needle serial interface
DB25 hole serial interface socket No. as figure 3-2
Figure 3-2 DB25 hole serial interface socket No.
3.1.1 Pin assignment of SP-DVII series interface
SP-DVII micro printer has two serial socket of COM1 and COM2. Both of them are IDC-10,

9
have same function, but different orders of pin assignment. See details in figure 3-3 and
3-4. Notice: Do not use both sockets at the same time.
Signal
Pin No.
Source
Function
TXD
2
Printer
Printer sends data to host
RXD
3
Host
Printer receives data from host
CTS
8
Printer
Printer and host flow control signal(Busy)
DSR
6
Printer
Same to signal CTS
DCD
1
Printer
Same to signal CTS
GND
5
-
Figure 3-3 Pin assignment of DⅦseries COM1 socket
Signal
Pin No.
Source
Function
TXD
3
Printer
Printer sends data to host
RXD
5
Host
Printer receives data from host
CTS
6
Printer
Printer and host flow control signal(Busy)
DSR
2
Printer
Same to signal CTS
DCD
Printer
Same to signal CTS
GND
9
-
Figure 3-4 Pin assignment of DⅦseries COM2 socket
3.1.2 SP-DVII series serial setting
The baud rate in serial interface mode is selected in the range of 1200, 2400, 4800, 9600,
19200, 38400, 57600 and115200 bps, and it is set by setting tool. 9600bps has been set
at ex-factory.
The default printing direction can be chosen, default is: inverse. So can Chinese printing
way, default is: ANK. Integrate 16×16, 12×12 Chinese, and default could select from
16×16, 12×12 Chinese, default value: 16×16. Setting of serial parameters, printing
direction, Chinese method and font matrix details see chapter4.3.

10
Signal
Printer interface
pin No.
PC pin No.
Instruction
Name
IDC10
DB25
DB9
RXD
3
2
3
Printer receives data from host
TXD
2
3
2
Printer send data to computer,when
use X-ON/X-OFF handshaking
protocol agreement, the printer will
send control code X-ON/X-OFF to
computer
RTS
8
5
8
When the signal show “MARK”, it
means the printer is busy and can not
receive data, when the signal show
“ SPACE”, it means the printer get
ready to receive data.
DSR
6
6
6
Signal “SPACE” indicates that the
printer is “ONLINE”
GND
5
7
5
Signal Ground
DCD
1
8
1
Same to signal CTS
3.2 Parallel interface connection
SP-DVII micro dot matrix printers adopt parallel interface, which is compatible with
CENTRONICS standard, and the interface socket are IDC26-pin needle cable socket.
Pin Order of IDC26 Parallel Port is as figure 3-5:
12 5
2 6
2
Fig.3-5 Pin Order of IDC26 Parallel Port

11
Pin assignments of parallel interface are as figure 3-6:
Pin No. of IDC26
Signal
Direction
Instruction
1
/STB
In
Strobe pulse to latch data,
reading occurs at falling edge.
3
5
7
9
11
13
15
17
DATA1
DATA2
DATA3
DATA4
DATA5
DATA6
DATA7
DATA8
In
In
In
In
In
In
In
In
These signals represent the
1st
bit to 8th bit of the parallel
data
respectively, each signal is
at HIGH level when data is logic 1,
and LOW when data is logic
0.
19
/ACK
Out
Answering pulse, LOW level signal
indicates that data have already
been received and the printer gets
ready to receive the next data.
21
BUSY
Out
HIGH level signal indicates that the
printer is BUSY and can not receive
data.
23
/PE
Out
High level signal indicates that
paper is end. Low level indicates
having paper.
25
SEL
---
Pulling up to HIGH level signal by a
resistor indicates the printer is on
line.
4
/ERR
Out
Pulling up to HIGH level signal by a
resistor indicates that there is no
error.
2, 6, 8, 26
NC
---
No connection

12
10, 12, 14, 16,
18, 20, 22, 24
GND
---
Grounding logical 0 level
Fig.3-6 Pin Assignment of Parallel Interface
Notice: (1) “In” denotes input to the printer, “Out” denotes output from the printer.
(2) Signal level is TTL standard.
3.3 Button and Indicator
SP-DVII micro printer has one button, which is feed button “LF”
SP-DVII micro printer has one indicator, which is online indicator SEL. When SEL
indicator light on, it means printer online, otherwise, printer is outline or busy.
(1) Self-test mode:
Press LF button and switch on, the printer will print self-test receipt.
(2) Paper feeding mode:
Press LF button, the printer will feed paper, then release it, the printer will stop
feeding
3.4 Self-test
The self-test will check the condition of printer. If the printer prints out the self-test receipt
correctly, it means the printer works normally. Otherwise it needs to repair.
Refer to 3.3 of how to print self-test.
3.5 Printer Initialization
There are three kinds of modes for printer initialization. The first one is that the host sends
command to the printer with control code ESC@, realizing initialization through software.
The second one is that realizing initialization through self-test. The third one is that power
on initialization. The contents of initialization include: select default of each control code,
namely the dot number of line spacing is 3, no binding length, vertical and horizontal tab
value are both 0, left and right margin width are both 0, enlarging multiple is 2; cancel all

13
the user-defined characters or graphics characters; select character set 1 and select non
reverse white print etc.
For watching the receipt bar conveniently, the default direction are different, for example,
T series is forward, others are inverse.
Chapter 4 Print command
4.1 Summary
Dot matrix printer support printing commands all compatible with traditional ESC printing
commands. Each command is described in following format:
Command name Function
Format: ASCII: the standard ASCII character sequence
Decimal: the Decimal number sequence
Hexadecimal: the Hexadecimal number sequence
Explanation: what the command does and how to use it.
Example: some examples are listed to illustrate the command for better understanding.
The following is the description of each command according to the function of each
command. The following examples all printed with A series, and inverse, the bottom of
receipt bar is printed first.
4.2 Commands details
4.2.1 Paper Feeding Commands
LF Feed Line
Format: ASCII: LF
Decimal: 10
Hexadecimal: 0A

14
Explanation:
All the data in buffer will be printed and feeds paper forwards one line when send one LF.
The effect is the same as CR, if using both LF and CR commands, only one command will
work.
ESC J n Dot Line Feed
Format: ASCII: ESC J n
Decimal: 27 74 n
Hexadecimal: 1B 4A n
Explanation:
The printer feeds paper n dot lines. n=0~255.
This command sends carriage return and feed line. It won’t influence the
latter feed line command. If you need to feed paper immediately but no carriage return,
can use ESC J command. Line spacing will be adjusted automatically when using
commands ESC V, ESC W and FS W for enlarge characters.
ESC 1 Set n Dot-line Spacing
Format: ASCII: ESC 1 n
Decimal: 27 49 n
Hexadecimal: 1B 31 n
Explanation:
The line spacing is set to n dot-lines for future Line Feed command.
n=0~255, default setting n=3 for text printing, n=0 for bit map 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
LPRINT CHR$(27);CHR$(49);CHR$(I); ‘ESC 1 set line spacing
LPRINT “RMWD TEST” ‘print character string and feed line
NEXT I
The print result of the said programs is as following:

15
4.2.2 Format Setting Commands
FF Feed Page
Format:: ASCII: FF
Decimal: 12
Hexadecimal: 0C
Explanation:
Feed paper to the beginning of the next page.
ESC C Set Page Length
Format: ASCII: ESC C n
Decimal: 27 67 n
Hexadecimal: 1B 43 n
Explanation:
The page length is set to n character lines. n=0~255, when n=0, the page
length is 256 lines. Default n=40.
ESC N Set Binding Length
Format: ASCII: ESC N n
Decimal: 27 78 n
Hexadecimal: 1B 4E n
Explanation:

16
The binding length is set to n lines. n=0~255, default n= 0. In SP-T,
binding length denotes the number of blank line between one page and the next page.
Example: set binding length to 3 lines, send the following sequence to the printer:
ASCII: ESC N ETX
Decimal: 27 78 3
Hexadecimal: 1B 4E 03
LPRINT CHR$(27); “N”; CHR$(3);
The BASIC programs for sending the said sequence are as below:
LPRINT CHR$ (27) ; “N”; CHR$ (3)
ESC O Cancel Binding Length
Format: ASCII: ESC O
Decimal: 27 79
Hexadecimal: 1B 4F
Explanation:
The binding length is set to 0 line, it means the printer will print line-by-line, won’t vacate
blank lines between each page.
ESC B Set Vertical Tab Value
Format: ASCII: ESC B n1 n2 n3…NUL
Decimal: 27 66 n1 n2 n3…0
Hexadecimal: 1B 42 n1 n2 n3…00
Explanation:
The vertical tab positions are entered as n1, n2 and so on, all of
these should be within the page length set by ESC C command.
Command NUL added at the end indicates the command is over.
All vertical tab positions that input can be deleted by using this command
in ESC B NUL format. VT command is to carry out vertical tab, the paper fed to the next
vertical position.
Example: set three vertical tab values at 2nd line, 5th line, 8th line in
one page, you can send the following commands:

17
ASCII: ESC B STX ENQ BS NUL
Decimal: 27 66 2 5 8 0
Hexadecimal: 1B 42 02 05 08
00
The BASIC programs for this example are as below:
LPRINT CHR$(27); CHR$(66);CHR$(2);CHR$(5);CHR$(8);CHr$(0); ‘ESC B
command
LPRINT CHR$(11); VT command
LPRINT “SPRM1” Print character string
LPRINT CHR$(11); VT command
LPRINT “SPRM2” Print character string
LPRINT CHR$(11); VT command
LPRINT “SPRM3” Print character string
The print result in dot matrix is as following:
VT Carry out Vertical Tab Value
Format: ASCII: VT
Decimal: 11
Hexadecimal: 0B
Explanation:
Feed paper to the next vertical tab position which is set by 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).

18
ESC D Set Horizontal Tab Value
Format: ASCII: ESC D n1 n2 n3………NUL
Decimal: 27 68 n1 n2 n3………0
Hexadecimal: 1B 44 n1 n2 n3………00
Explanation:
The tab positions are entered as n1, n2 and so on, all of these should be
within the line width of this model printer. Command NUL added at the end indicates the
command is over.
All horizontal tab positions that set can be deleted by using this command in ESC D NUL
format.
HT command is to carry out horizontal tab.
Example : set three horizontal tab values at 2nd, 9th line, 14th character
position in one line, you can send the following commands:
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 “1234567890123456789” Ruler
LPRINT CHR$(27); CHR$(68);CHR$(2);CHR$(9);CHR$(14); CHR$(0);‘ESC
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);
The print result in dot matrix is as following:
This manual suits for next models
3
Table of contents
Other SPRT Printer manuals