1.1 Features ............................................................................................................................................................. 1
6.4 Data Receiving Control ...................................................................................................................................10
8. PRINTER MECHANISM CONTROL SYSTEM ..................................................... 14
8.1 Thermal Head Control System (Division Driving System)............................................................................. 14
8.1.1 Fixed Division Number System ................................................................................................................. 14
8.1.2 Variable Division Number System ............................................................................................................. 14
8.2 Motor Drive ..................................................................................................................................................... 15
8.2.1 Motor Drive Features ................................................................................................................................. 15
8.2.2 Maximum Motor Drive Speeds at Major Voltage ...................................................................................... 15
ii
9. PRINT CONTROL FUNCTIONS ............................................................................. 16
9.1 Command List ................................................................................................................................................. 16
10.2 Japanese ......................................................................................................................................................... 64
10.3 International Character Set ............................................................................................................................ 65
Thermosensitive dot-matrix printing
48 mm
420 dot line/sec
Font A : 32 columns
Font B : 42 columns
Font A : 1.25 mm × 3.00 mm
Font B : 0.88 mm × 3.00 mm
Alphanumeric, international characters
UPC-A/E, JAN (EAN) 13/8 columns, ITFCODE 39, CODE128, CODABAR
4.23 mm (Can be changed by command)
Serial (Conforms to RS-232C)
2 K bytes
VCC: 5V ± 5 % Approx. 130 mA (Self printing)
VP : 4.2V ~ 8.5V Approx. 1.5A (Ave) Approx. 4A (Peak) When 7.2V
Ordinal voltage is to be 7.2V (Max)
8.5V is a voltage, which is right after charging.
Approx. 35 g
50 mm (W) × 75 mm (D) (See outer drawing for details)
5 ~ 40˚C , 35 ~ 85% RH (with no dew condensation)
Ordinal Voltage is to be 7.2V (Max). 8.5V is a voltage that is right after charging.
8.5V cannot be used for ordinal voltage.
5.2 Precautions
(1) Design the product to supply power to Vcc before VP when power is supplied to this control
board.
BD2-2890DD SPECIFICATIONS
(2) Design the product to turn off the power for Vcc after VP when power is turned off.
(3) Make sure to turn off the power in case of connecting/disconnecting connectors.
(4) Make sure to use Vcc and VP following their specifications.
(5) Make sure to use this control board connecting all of terminals between VP and GND.
8
6. SERIAL INTERFACE
6.1 Specifications
(1) Data transfer system: Asynchronous
(2) Baud rates
1200, 2400, 4800, 9600, 19200 bps (Selectable by user)
(3) Configuration of one word
Start bit:1 bit
Data bit:8 bits Fixed
Parity bit:Odd/Even or No parity (Selectable by user)
Stop bit:1 bit or more
BD2-2890DD SPECIFICATIONS
(4) Signal polarity
RS-232C
• Mark=logic “ 1” (–3V ~ –12V)
• Space=logic “ 0” (+3V ~ +12V)
(5) Receiving data (RD signal)
RS-232C
• Mark=1
• Space=0
(6) Receiving control (DTR signal)
RS-232C
• Mark:Data transfer is not available
• Space:Data transfer is available
(7) Transmission control (TD signal)
DC1 code (11H) X-ON:Data reception is available
DC3 code (13H) X-OFF :Data reception is not available
9
6.2 Explanation of Input/Output Signals
(1) RXD
Serial receiving data signal. On occurrence of framing error, overrun error, or parity error, the
data is printed as “?”.
(2) DTR
When this signal is READY, write data or a command. When they are written in BUSY, overrun
error is occurred and data is ignored. Data can be written into the input buffer even when the
printer is busy printing. A BUSY also occurs when the printer is powered on, in test print, in
Online mode, or being reset.
(3) TXD
If data remaining in the printer's input buffer is 256 bytes or less, the printer transfers a DC3
(13H: Data Receive Not Ready) signal to the host. If data in the input buffer exceeds 256 bytes,
BD2-2890DD SPECIFICATIONS
the printer transfers a DC1 (11H: Data Receive Ready) signal to the host.
(4) GND
Common GND on the circuit.
6.3 Error Detection
Parity, framing, and overrun are detected. On detection of any error, the data are stored in the
buffer as “?”.
(1) Framing Error
With “space” state having been detected on detection of a stop bit, error takes place.
The data are stored in the buffer as “?”.
(2) Parity Error
With an error having been detected under specifying parity check, the data is stored in the buffer
as “?”.
(3) Overrun Error
On detection of an overrun error, the data are stored in the buffer as “?”.
6.4 Data Receiving Control
When DTR/DSR control having been selected, with BUSY signal at “LOW”, data from the host
side are received. With the signal at “HIGH”, they can not be received.
When DTR/DSR control not having been selected, after X-ON transmission, data is received
from the host side. No transmission of data can take place after X-OFF is transmitted.
10
6.5 Buffering
Data transfer to the input buffer include DTR signals and TD signals as the control signals
concerned.
(1) DTR signals (See the page 7.2 (2))
(2) TXD signals (See the page 7.2 (3))
6.6 Electrical Characteristics
(1) RS-232C Circuit
Input (RXD, DSR)
BD2-2890DD SPECIFICATIONS
<Printer side> <Host side>
Equivalent MAX232
Output (DTR, TXD)
<Printer side> <Host side>
Equivalent MAX232
11
7. ERROR HANDLING
7.1 Peripheral Circuit Errors
These errors are detected at power-on or initialization just after a reset.
(1) Error types
ErrorDescription
BD2-2890DD SPECIFICATIONS
Memory error
The CPU made a self-diagnosis of the circuit and detected an error with the external
RAM.
(2) External signal outputs
Pin No
20
22
Signal Name
ERROR
DTR
(3) Resetting methods
Error
Memory error
Unrecoverable
Remarks
LED output. For a blinking pattern, see 8.3 Error Indication.
Serial interface
Resetting Method
12
7.2 Operation Errors
(1) Error types
BD2-2890DD SPECIFICATIONS
Error
No paper
Head –up
VH voltage error
Head temperature error
The printing paper set is not set
The head-up lever is at its up position
A VH voltage is beyond its allowable range (4.2 to 8.5V)
A head temperature is less than 0˚C or 65 ˚C or higher.
Description
Caution: The 8.5V upper-limit voltage for VP voltage error is only an assumptive voltage just
after charging the battery when using the battery power. It cannot be normally used. A
normal maximum voltage is 7.2V.
(2) External signal outputs
Pin No
B
Signal Name
DTR
Remarks
Serial interface
(3) Resetting methods
Error
No paper
Head –up
VP voltage error
Head temperature
error
Caution:
The 8.5V upper-limit voltage for VP voltage error is only an assumptive voltage just
after charging the battery when using the battery power. It cannot be normally used. A
normal maximum voltage is 7.2V.
Resetting Method
Set the paper. See Note 1.
Bring down the head-up lever.
Set to a voltage within the allowable range (4.2 to 8.5V) and turn on the power
again.
At the lower limit (less than 0 ˚C), printing becomes operational at 0 ˚C higher.
At the upper limit (65 ˚C or higher), it become operational at 60 ˚C or lower.
13
8. PRINTER MECHANISM CONTROL SYSTEM
1st Block
64 Dots
2nd Block
64 Dots
3rd Block
64 Dots
4th Block
64 Dots
5th Block
64 Dots
6th Block
64 Dots
1 Dot Line
1st Step of Motor
of Motor
2nd Step
8.1 Thermal Head Control System (Division Driving System)
The MLT-289 (Line thermal printer) is driven by this control board has a384 dots/line head
divided into 6 blocks of 64 dots each. When actually driving the head, you can select either
Fixed Division Number system, which drives the head, always dividing it into 6 blocks or
Variable Division Number system which collectively drives several blocks at the time according
to the number of activated head dots.
For selection by function selection, see 4. DIP SWITCH SETTING.
For selection by a command, see 11. PRINT CONTROL FUNCTIONS.
8.1.1 Fixed Division Number System
This system always drives each block in the same sequence.
BD2-2890DD SPECIFICATIONS
1st Block
64 Dots
2nd Block
64 Dots
1st Step of Motor
3rd Block
64 Dots
4th Block
64 Dots
5th Block
64 Dots
2nd Step of Motor
6th Block
64 Dots
Note: for a stepping motor driving method, see 9.2 Motor Drive.
8.1.2 Variable Division Number System
This system counts the number of printing dots for each block of the printing dot line and drives
the blocks collective in such a manner not to exceed the maximum number of driving dots (64
dots).
1 Dot Line
14
8.2 Motor Drive
The MLT-289 uses a 4-phase bipolar stepping motor. It feeds the 1 dot line worth of paper in
two steps by 2-to-2 phase excitation.
8.2.1 Motor Drive Features
1) Drive at an optimum drive speed by the VP voltage.
2) Prevents heat generation of the motor by PWM control to restrain current consumption.
3) Provides acceleration control at the time of start.
8.2.2 Maximum Motor Drive Speeds at Major Voltage
BD2-2890DD SPECIFICATIONS
VH Voltage
5V
6V
7.2V
Motor Drive Speed
400pps
600pps
840pps
Caution: The maximum drive speed depends on the VH voltage.
A printing speed may slightly differ depending on a processing time or voltage
detection accuracy. During the course of printing, a motor drive speed may be slower
than the maximum drive speed, depending on what is printed or the head divided drive
system.
15
9. PRINT CONTROL FUNCTIONS
9.1 Command List
Print Control Commands
BD2-2890DD SPECIFICATIONS
Control Code
LF
CR
ESC J
ESC d
Printing and paper feed
Print command
Printing and feeding paper n/203 inch
Printing and feeding the paper by n lines
Print Character Commands
Control Code
ESC SP
ESC !
ESC %
ESC &
ESC –
ESC E
ESC G
ESC R
ESC V
ESC t
ESC {
Setting the right space amount of the character
Collective specifying printing mode
Specifying/canceling douwnload character set
Defining download characters
Specifying/canceling underline
Specifying/canceling highlighting
Specifying/canceling double printing
Selecting the international character set
Specifying/Canceling 90°-right- turned Characters
Selecting the character code table
Specifying/canceling the inverted characters
FunctionCodePage
0Ah
0Dh
1Bh4Ah n
1Bh64h n
FunctionCode
1Bh20h n
1Bh21h n
1Bh25h n
1Bh26h s n m
[ap1...ps×a]m–n+1
1Bh2Dh n
1Bh45h n
1Bh47h n
1Bh52h n
1Bh56h n
1Bh74h n
1Bh7Bh n
19
20
21
22
Page
23
24
26
27
29
30
31
32
33
34
35
Print Position Commands
Control Code
HT
ESC $
ESC D
ESC
ESC a
/
Horizontal tab command
Specifying the absolute positions
Setting horizontal tab position
Specifying the relative positions
Aligning the characters
Line Feed Span Commands
Control Code
ESC 2
ESC 3
Specifying 1/6-inch line feed rate
Setting line feed rate of minimum pitch
Specifying the bit image mode
Defining the download, bit image
Printing the download, bit image
Status Command
Control Code
ESC v1Bh 76h
Transmitting the printer status (Serial type)
Panel Switch Command
Control Code
ESC c51Bh 63h 35h n
Enabling/disabling the panel switches
Macro Commands
Control Code
FunctionCode
1Bh 2Ah m n1 n2[d]k
1Dh 2Ah n1 n2
1Dh 2F
FunctionCode
FunctionCode
FunctionCode
Page
43
45
47
Page
48
Page
49
Page
GS :
GS ^
Starting/ending macro definition
Executing the macro
Bar Code Commands
Control Code
GS H
GS f
GS h
GS k
GS w
Selecting of print position of HRI code
Selecting the font of HRI code
Selecting the height of the bar code
Printing the bar code
Selecting the horizontal size (scale factor) of bar code
Other Commands
Control Code
ESC =
ESC @
DC2 A
Data input control
Initializing the Printer
Selecting the Print drive system
1Bh 63h 35h n
1Dh 5Eh n1 n2 n3
FunctionCode
1Dh 48H n
1Dh 66H n
1Dh 68H n
1Dh 6Bh n[‘d’]k 00h
1Dh 77H n
FunctionCode
1Bh 3Dh n
1Bh 40h
12h 41h n
50
51
Page
52
53
54
55
59
Page
60
61
62
17
BD2-2890DD SPECIFICATIONS
9.2 Command Details
9.2.1 Description of Items
XXXX ALL
[Function]
Command Function
[Code]
[Range]
[Outline]
[Caution]
[Default]
[See Also]
[Sample Program]
used, version, and so on. For details, see the ma
Describes an argument value(setting range) for the command.
Describes a command outline.
Describes a caution as required.
Describes an initial value for the command when accompanied by an argument.
Describes the associated commands for use.
A sequence of code constituting a command is represented in hexadecimal number for <
>H, binary number for < >B, and decimal number for < >, respectively; [ ]k represents a
repeat count of k-times.
Describes a coding example in the Q-BASIC sample program.
* This example is only for your reference and differs depending on the language
nual for the language used.
18
LF
BD2-2890DD SPECIFICATIONS
[Function]
[Code]
[Outline]
[See Also]
[Sample Program]
[Print Results]
Printing and Paper Feed Command
<0A>H
Prints data inside the input buffer and feeds lines based on the line feed amount having been set.
• The head of the line becomes the next print starting position.
ESC 2, ESC 3
LPRINT "AAA" + CHR$ (&HA);
LPRINT "BBB" + CHR$ (&HA);
LPRINT CHR$ (&HA);
);
LPRINT "CCC" + CHR$ (&HA
Print and line feed
Print and line feed
Line feed only
Print and line feed
19
CR
BD2-2890DD SPECIFICATIONS
[Function]
[Code]
[Outline]
Print Command
<0D>H
1) When DS 1-2 is OFF:
This command is ignored.
2) When DS 1- 2 is ON:
With data held inside the internal print buffer, printing and line feed are performed.
Without data inside the internal print buffer, however, no printing is performed.
[See Also]
LF
[Sample Program]
LPRINT "AAA" + CHR$ (&HD);
LPRINT "BBB" + CHR$ (&HD);
LPRINT CHR$ (&HD);
LPRINT "CCC" + CHR$
[Print Results]
(&HD);
Print and line feed
Print and line feed
Line feed only
Print and line feed
20
ESC J n
BD2-2890DD SPECIFICATIONS
[Function]
[Code]
[Range]
[Outline]
Printing and feeding paper n/203 inch
<1B>H<4A>H<n>
{0 =< n =< FF} Data is described in Hex code.
Prints data inside the print buffer and feeds paper by n/360 inch. Since an actual mechanical
pitch is 1/203 inch, it is internally converted approximate to the value specified with this
command.
•
•
•
[Sample Program]
See Sample Program and Print Results for ESC 2 on Page
Specified volume does not remain.
The beginning of the line is to be considered as the next printing start position.
Initial value is not defined.
[Print Results]
48.
21
ESC d n
BD2-2890DD SPECIFICATIONS
[Function]
[Code]
[Range]
[Outline]
Printing and Feeding the paper by n lines
<1B>H<64>H<n>
* {0 =< n =< FF} Data is described in Hex code.
Prints data inside the buffer and feeds paper by n lines.
•
•
[Default]
[Sample Program]
•
LPRINT "AAAAA"
LPRINT CHR$ (&H1B) + "d" + CHR$ (2);
LPRINT "AAAAA" + CHR$ (&HA);
[Print Results]
Specified line does not remain.
The beginning of the line is to be considered as the next printing start position.
The initial value is not defined.
2/6-inch line feed
22
ESC SP n
BD2-2890DD SPECIFICATIONS
[Function]
[Code]
[Range]
[Outline]
[Caution]
[Default]
Setting the right space amount of the character
<1B>H<20>H<n>
{0 =< n=< 20} Data is described in Hex code.
The rightward space amount is set in dot unit (1/203 inch unit). In the initial value, it is n=0.
The rightward space amount in doublewide mode is made double of the set volume.
n = 0
[Sample Program]
LPRINT CHR$ (&H1B) + " " + CHR$ (0);
LPRINT "AAAAA" + CHR$ (&HA);
LPRINT CHR$ (&H1B) + " " + CHR$ (1);
LPRINT "AAAAA" + CHR$ (&HA);
LPRINT CHR$ (&H1B) + " " + CHR$ (12);
LPRINT "AAAAA" + CHR$ (&HA);
[Print Results]
0-dot space
1-dot space
12-dot space
23
ESC ! n
BD2-2890DD SPECIFICATIONS
[Function]
[Code]
[Range]
[Outline]
[Caution]
Collective Specifying Printing Mode
<1B>H<21>H<n>
{0 =< n=< FF} Data is described in Hex code.
Printing mode is assigned. Each n bit indicates the following:
Va l ue
Bit Function 0 1
0 Character Font Font A Font B
1 Undefined
2 Undefined
3 High-lighting Canceled Specified
4 Double height Canceled Specified
5 Double width Canceled Specified
6 Undefined
7 Underline Canceled Specified
• With double height and double width being specified simultaneously, double wide and
[Default]
[See Also]
double high characters are consisted.
• An underline is attached to the full character width, which, however, is not attached to
the part having been skipped by the horizontal tab.
Neither is it attached to 90°-right-turned characters.
• The underline width is as having been specified by <ESC ->.
(The default setting is 1 dot width. )
• Specification with this command is invalid to Kanji, except specification and cancellation
of highlighting
• In case that double wide character and normal character exist in same one line, the layout
of underline is consistent one.
n = 0
ESC E,ESC
–
24
[Sample Program]
LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H00) + "H" ;
LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H01) + "H";
LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H08) + "H";
LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H10) + "H";
LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H20) + "H";
LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H80) + "H";
LPRINT CHR$ (&H1B) + " ! " + CHR$ (&HB9) + "H";
LPRINT CHR$ (&HA);
[Print Results]
BD2-2890DD SPECIFICATIONS
Font A
Font B
Font A + Highlighting
Font B + Highlighting + Quadruple + Underline
Font A + Underline
Font A + Double Width
Font A + Double Height
25
ESC % n
BD2-2890DD SPECIFICATIONS
[Function]
[Code]
[Range]
[Outline]
Specifying/Canceling Download Character Set
<1B>H<25>H<n>
{0 =< n =< FF} data is described in Hex code.
Specifying/canceling download characters.
Further, only the lowest bit (n0) is valid for n.
The lowest bit (n0) indicates the following.
[Caution]
[Default]
[See Also]
Download characters and download bit images cannot be defined simultaneously.
n = 0
ESC &
{1 =< n1 =< FF}
{1 =< n2 =< 30}
{n1 n2 =< 51F} Data is described in Hex code.
Defines downloading bit images of the number of dots specified by n1/n2.
The numbers of dots are n1 x 8 in horizontal direction and n2 x 8 in vertical direction.
•
d indicates bit image data.
•
The download bit image thus defined remains effective until redefinition,
•
ESC @ execution, ESC &, or power OFF takes place.
A download character and a download bit image can not be defined simultaneously.
•
With this command executed, defined content of a download character is cleared.
Relations between the bit image data and the dot defined are shown below:
•
•
If a download bit image is defined with this command while it is being printed (GS/) ,
printing operation may become unstable (fluctuating print pitch).
××
××
[See Also]
GS
/
45
BD2-2890DD SPECIFICATIONS
[Sample Program]
GOSUB IMG
LPRINT CHR$ (&H1D) + "/" + CHR$ (0);
LPRINT CHR$ (&H1D) + "/" + CHR$ (1);
LPRINT CHR$ (&H1D) + "/" + CHR$ (2);
LPRINT CHR$ (&H1D) + "/" + CHR$ (3);
END
IMG:
n 1 = 10 : n 2= 5
LPRINT CHR$ (&H1D) + "*”;
LPRINT CHR$ (n1) + CHR$ (n2);
FOR J=1 TO n1*8
FOR I=1 TO n2
LPRINT CHR$ (J);
NEXT I
NEXT J
RETURN
[Print Results]
Nomal Mode
Double Width Mode
Double Height Mode
Quadruple Mode
46
GS / m
BD2-2890DD SPECIFICATIONS
[Function]
[Code]
[Range]
[Outline]
[Caution]
Printing the Download, Bit Image
<1D>H<2F>H<m>
{0 =< m =< 03} Data is described in Hex code.
Prints download bit image in a mode specified by m.
When data being held in the print buffer, this command is ignored.
•
Regardless of the specified feed pitch, this command feeds the paper to be required to
•
print a bar code.
If the character code d cannot be printed in the respective bar code system, the bar
•
code so far will be printed, processing the subsequent data as normal data.
When a bar code whose number of characters to be printed is fixed has been selected,
•
the number of characters k have to be always made equal to the number of characters
to be printed. (The bar code is not printed when not matching.)
When the horizontal direction exceeds one line length, the excess part is not printed.
•
The initial va
•
lue is not specified.
55
BD2-2890DD SPECIFICATIONS
[Description of Bar Codes] <For print examples, see Page 67. >
UPC-A This bar code, consisting of numerals only, has a fixed length of 12 column; a 11-columns
number entered from the host or application software plus a check column(12th column)
automatically calculated inside the printer. If the 12th-column numeral is sent from the host,
the entire bar code will be printed as it is.
UPC-E This bar code, consisting of numerals only, has a fixed length of 8 column; the first
number system character is "0" stationary. A 12-column numeral entered from the host or
application software is compressed to 8 columns with a check column and printed. The 12thcolumn check column is automatically calculated inside the printer and sent from the host, the
entire bar code will be printed, compressed to 8 columns.
JAN-13(EAN) This bar code, consisting of numerals only, has a fixed length of 13 column; a 12-column
number entered from the host or application software plus a check column(13th column)
automatically calculated inside the printer. If the 13th-column numeral is sent from the host,
the entire bar code will be printed as it is.
JAN-8(EAN) This bar code, consisting of numerals only, has a fixed length of 8 column; a 7-column number
entered from the host or application software plus a check column(8th column) automatically
calculated inside the printer. If the 8th-column numeral is sent from the host, the entire bar
code will be printed as it is.
CODE39 This bar code, consisting of uppercase alphabets and numerals, has a variable length of column.
A start/stop code "*" is automatically added by the printer. Available characters include a
space and "$, %, *, +, -, · , /, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9," and uppercase alphabets.
ITF This bar code, consisting of numerals only, has a variable length of even column. If an odd-
column code is transferred, nothing will be printed.
CODABAR (NW-7)
This bar code, consisting of alpha numerals, has a variable length of column. Available
characters include "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, D, D, $, +, -,., /, :." A start/stop code is
required; any one of A, B, C, and D is used.
CODE128 • This bar code consists of all of 128 ASCII code characters and has a variable length of
column. This printer supports the code subsets A, B, and C. By prefixing a transfer
code with any one character of A, B, and C, you can select the code subset to start from.
If not prefixed with A, B, or C, the code subset B will be selected.
The code subset A is the bar code consisting of standard uppercase alphabets, numerals,
•
symbols, and special codes.
The code subset B is the bar code consisting of standard uppercase/lowercase alphabets,
•
numerals, symbols, control codes, and special codes.
The code subset C is the bar code consisting of special characters and 100 kinds of
•
numbers ranging from 00 to 99.
The check column automatically calculated inside the printer is added to the end of the
•
entered column
to be printed.
56
BD2-2890DD SPECIFICATIONS
Processing of the special characters
•
The characters above the ASCII code number 96 are considered special characters. The
following lists the converted characters for entering these characters.
ASCII Code Converted Character Subset Code Subset Code B Subset Code C
96 80h FNC 3 FNC 3 -N/A-
97 81h FNC 2 FNC 2 -N/A-
98 82h SHIFT SHIFT -N/A-
99 83h CODE C CODE C -N/A-
100 84h CODE B FNC 4 CODE B
101 85h FNC 4 CODE A CODE A
102 86h FNC 1 FNC 1 FNC 1
The following exemplifies a selection of the code subset as a method to utilize the special
characters.
<Selection of Code Subset>
Initial selection: Enter any one character of A, B, and C.
•
Conversion on the way: Enter any one character of 82h through 85h
•
Example) When initially testing with the code subset B, and then, printing the bar code,