User's Manual: Control Board For Lt-286 BD2-2860
User's Manual: Control Board For Lt-286 BD2-2860
User's Manual: Control Board For Lt-286 BD2-2860
<CAUTIONS>
1. Before using this equipment, be sure to read this User's manual thoroughly.
Please keep this with care so as to referred to any time at need.
2. Portions of the contents of this User's manual may be changed without prior notice.
3. The reproduction of parts or all of the contents of this User's manual without permission is
strictly forbidden.
4. Absolutely do not carry out maintenance, disassembly, or repair of parts that are not
specified in this User's manual.
5. Note that losses which may be attributed to the user's wrong operation method or operating
environment will be outside the responsibility of this company.
6. Do not carry out the operations other than those explained in this User's manual, since doing
do so may become a cause of accidents or breakdowns.
7. Because data is basically transient, long-period and permanent storage of data will not be
possible. Please note in advance that this company will not be responsible in any way for
losses or lost profits caused through the clearing of the data due to breakdowns, repairs,
investigations, etc.
8. If any questionable points, mistakes, omitted explanations, etc. are found in the contents of
this manual, please contact this company.
9. Please note that notwithstanding the conditions in above 8; this company will not be
responsible for the consequences of results obtained through operation of this equipment.
2 CITIZEN
BD2-2860 User’s Manual
CONTENT
<CAUTIONS> ......................................................................................................................................................2
1. OUTLINE ..........................................................................................................................................................5
1.1 FEATURES ...............................................................................................................................................................5
1.2 PRECAUTION ...........................................................................................................................................................5
1.3 MAINTENANCE AND SERVICE...................................................................................................................................6
6.PARALLEL INTERFACE..................................................................................................................... 16
6.1 SPECIFICATIONS .................................................................................................................................................... 16
6.2 EXPLANATION OF INPUT /OUTPUT SIGNALS ............................................................................................................ 16
6.3 ELECTRICAL CHARACTERISTICS ............................................................................................................................. 17
6.4 TIMING CHART ...................................................................................................................................................... 18
6.5 DATA RECEIVING CONTROL .................................................................................................................................... 18
6.6 BUFFERING ........................................................................................................................................................... 18
3 CITIZEN
BD2-2860 User’s Manual
4 CITIZEN
BD2-2860 User’s Manual
1. OUTLINE
This control boards is designed to be used to control our thermal printer, "LT-286" series through the
computer etc.
As being provided with many abundant functions, it can be used widely in various applications.
Before you start using it, read this manual thoroughly and understand the content.
1.1 Features
(1) Ultra compact
(2) Both interface of Serial and Parallel can be selected by dip switch.
(3) Input buffer incorporated.
(4) Bar code printing is available.
(5) Auto paper cutter control incorporated.
(6) User-defined character registration function (94 characters)
1.2 Precaution
(1) Make sure to turn OFF the power supply in case of connecting / disconnecting the connectors.
(2) Absolutely do not make a short circuit between the terminals of connectors.
(3) Use power supply, LED, interface etc. following their sp ecifications.
(4) Use the recommended paper shown below.
• Thermal Paper TF50KS-E2(Nippon-Seishi)
5 CITIZEN
BD2-2860 User’s Manual
6 CITIZEN
BD2-2860 User’s Manual
2. BASIC SPECIFICATIONS
2.1 Model classification
BD2-2860 U
Character Set
U : International model
Model Name
7 CITIZEN
BD2-2860 User’s Manual
Items Contents
Print width 48 mm
Print Speed 400 dot line / sec (When 7.2V)
Number of columns Font A : 32 columns
Font B : 42 columns
Character dimensions Font A : 1.25 mm x 3.00 mm (10 + 2 dots space x 24 dots)
Font B : 0.88 mm x 2.13 mm ( 7 + 2 dots space x 24 dots)
Character types Alphanumeric, international characters
Bar code type UPC-A/E, JAN (EAN) 13 / 8 columns, ITF
CODE 39, CODE 128, CODABAR
Line pitch 4.23 mm (Can be changed by command)
Interface Parallel (Conforms to Centronics) or Serial (Conforms to RS-232C)
(Selectable by dip switch)
Input buffer 2 K bytes
Supply voltage 5V ± 5 % Approx. 180mA
4.2V ~ 8.5V Approx. 1.3A(Ave) Approx. 4.0A(Peak) When 7.2V
Ordinal voltage is to be 7.2V(Max)
8.5V is a voltage, which is right after charging.
Operating Environment 0 ~ 40°C (Print guaranteed at 5 ~ 40°C)
Storage Environment -20 ~ 60°C
Outer Dimension 75mm (W) x 80mm (D) (For height of component parts, see outer drawing.)
Weight Approx. 50 g
8 CITIZEN
BD2-2860 User’s Manual
3. CONNECTING CONNECTORS
3.1 CN1 Connector for Printer Mechanism (For Print Head)
9 CITIZEN
BD2-2860 User’s Manual
3.2 CN2 Connector for Print Mechanism (For Motor & Sensor)
10 CITIZEN
BD2-2860 User’s Manual
11 CITIZEN
BD2-2860 User’s Manual
CAUTION:
1. For LED of ERROR and PE, there is a resister of 330Ω on the circuit side to make current
value 10mA.
Please use LED which its voltage is approx. 2V. LED over 10mA may break a control board.
2. Control circuit requires power supply only for one pin of each VCC and GND.
However, Operation voltage is to be supplied to all of pin for safety use.
3. Serial interface equips a driver and receiver of RS-232C, make sure to use it at RS-232C
level.
4. RESET terminal is pulled up by 3.3KW. Make sure to make this terminal NC, when this
terminal is not used.
5. LF-SW input circuit is as below.
12 CITIZEN
BD2-2860 User’s Manual
(2) JUMPER
No. Function Short Open Factory Setting
J1 International Character set Open (Short circuit)
J2 " See below (4) Open (Short circuit)
J3 " Open (Short circuit)
J4 Paper Auto Loading Enable Disable Short circuit
J5 Print Drive System Variable division Fixed division Short circuit
J6 Print Density Combination with DS1-3 Short circuit
(Supplementary) See below(5)
J7 Not Used Short circuit
J8 Not Used Short circuit
13 CITIZEN
BD2-2860 User’s Manual
14 CITIZEN
BD2-2860 User’s Manual
5. POWER SUPPLY
5.1 Specifications
VCC : 5V ± 5% 180 mA
VP : 4.2V ~ 8.5V 1.3A (Peak : Approx.4.0A)
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 Vdd before VH When power is supplied to this control board.
(2) Design the product to turn off the power for Vdd after VH when power is turned off.
(3) Make sure to turn off the power in case of connecting / disconnecting connectors.
(4) Make sure to use Vdd and VH following their specifications.
(5) Make sure to use this control board connecting all of terminals between VH and P-GND.
15 CITIZEN
BD2-2860 User’s Manual
6. PARALLEL INTERFACE
6.1 Specifications
ACK : 8 bit data request signal. Pulse signal output at the end of the BUSY signal
(Negative logic)
BUSY : Signal to indicate BUSY state of the printer, Input new data for "LOW"
(Positive logic)
FAULT : Signal which is made "LOW" when printer is in alarm state.(Negative logic)
16 CITIZEN
BD2-2860 User’s Manual
17 CITIZEN
BD2-2860 User’s Manual
Supply
6.6 Buffering
This control board incorporates 2K byte buffer.
Therefore, big data can be buffered in input buffer, and the host side can be released immediately.
18 CITIZEN
BD2-2860 User’s Manual
7. SERIAL INTERFACE
7.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
(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
19 CITIZEN
BD2-2860 User’s Manual
(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. Even during printing, data can be loaded in the input buffer. Further, BUSY
can take place on supply of power, during test printing, during on-line, or on resetting.
(3) TXD
When, while in data reception, the rest of input buffer on the printer side goes less than 256 bytes , DC3
(13H) data reception impossible signals are output, when the rest of input buffer goes more than 256 bytes,
DC1 (11H) data reception possible signals are output to the host.
When DTR/DSR control having been selected in status information transmission, it is first confirmed that
DSR is "space" and data is sent.
When DTR/DSR control has not been selected, DSR is ignored and data is transmitted.
(4) GND
Common GND on the circuit.
20 CITIZEN
BD2-2860 User’s Manual
Mark
b1,b2,b3 · · · ·
21 CITIZEN
BD2-2860 User’s Manual
7.6 Buffering
Data transfer to the input buffer include DTR signals and TD signals as the control signals concerned.
22 CITIZEN
BD2-2860 User’s Manual
Equivalent MAX232
Mark=(-8V): At Busy Mark=(-8V): 1
DTR TD
Space=(+8V): At Ready Space=(+8V): 0
23 CITIZEN
BD2-2860 User’s Manual
8. ERROR HANDLING
8.1 Peripheral Circuit Errors
These errors are detected at power-on or initialization just after a reset.
24 CITIZEN
BD2-2860 User’s Manual
Note 1) The 8.5V upper-limit voltage for VH 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.
25 CITIZEN
BD2-2860 User’s Manual
26 CITIZEN
BD2-2860 User’s Manual
Note) for a stepping motor driving method, see 9.2 Motor Drive.
1st Block 2nd Block 3rd Block 4th Block 5th Block 6th Block
64 Dots 64 Dots 64 Dots 64 Dots 64 Dots 64 Dots
6.Dot Line
1st Step of Motor 2nd Step of Motor
Unlike the Fixed Division Number system, this system drives all the head in the head in the head in the 1st
step of the motor and simply feeds the paper in the 2nd step of the motor.
27 CITIZEN
BD2-2860 User’s Manual
28 CITIZEN
BD2-2860 User’s Manual
29 CITIZEN
BD2-2860 User’s Manual
XXXX ALL
[Code] 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.
[Default] Describes an initial value for the command when accompanied by an argument.
30 CITIZEN
BD2-2860 User’s Manual
10.2.2 Details
HT
[Function] Horizontal Tab Command
[Code] <09>H
[Outline] Shifts the printing position to the next horizontal tab position.
• Ignored when the next horizontal tab position has not been set.
[Sample Program]
LPRINT "0123456789012345678901”;
LPRINT CHR$ (&HA);
LPRINT CHR$ (&H9) + "AAA”;
LPRINT CHR$ (&H9) + "BBB”;
LPRINT CHR$ (&HA);
LPRINT CHR$ (&H1B) + "D”;
LPRINT CHR$ (3) + CHR$ (7) + CHR$ (14) + CHR$ (0 );
LPRINT CHR$ (&H9) + "AAA”;
LPRINT CHR$ (&H9) + "BBB”;
LPRINT CHR$ (&H9) + "CCC" + CHR$ (&HA);
[Print Results]
31 CITIZEN
BD2-2860 User’s Manual
LF
[Function] Printing and Paper Feed Command
[Code] <0A>H
[Outline] Prints data inside the input buffer and feeds lines based on the lin e feed amount having been set.
• The head of the line becomes the next print starting position.
32 CITIZEN
BD2-2860 User’s Manual
CR
[Function] Print Command
[Code] <0D>H
[See Also] LF
33 CITIZEN
BD2-2860 User’s Manual
ESC SP n
[Function] Setting the right space amount of the character
[Code] <1B>H<20>H<n>
[Outline] The rightward space amount is set in dot unit (1/203 inch unit). In the initial value, it is n=0.
[Caution] The rightward space amount in doublewide mode is made double of the set volume.
[Default] 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]
34 CITIZEN
BD2-2860 User’s Manual
ESC ! n
[Function] Collective Specifying Printing Mode
[Code] <1B>H<21>H<n>
Value
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
[Caution] • With double height and double width being specified simultaneously, double wide and
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.
[Default] n=0
35 CITIZEN
BD2-2860 User’s Manual
[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]
36 CITIZEN
BD2-2860 User’s Manual
ESC % n
[Function] Specifying/Canceling Download Character Set
[Code] <1B>H<25>H<n>
[Caution] Download characters and download bit images cannot be defined simultaneously.
[Default] n=0
[See Also] ESC &
[Sample Program]
GOSUB SETCHR DATA 6
LPRINT CHR$ (&H1B) + "%" + CHR$ (0); DATA &HFF, &H80, &H00
LPRINT "@A" + CHR$ (&HA); DATA &H80, &H80, &H00
LPRINT CHR$ (&H1B) + "%" + CHR$ (1); DATA &H80, &H80, &H00
LPRINT "@A" + CHR$ (&HA); DATA &H80, &H80, &H00
END DATA &HFF, &HFF, &HFF
SETCHR: DATA &HFF, &HFF, &HFF
LPRINT CHR$ (&H1B) + "&”; DATA 12
LPRINT CHR$ (3) + "@" + "A”; DATA &HFF, &HFF, &HFF
FOR J=1 TO 2 DATA &H80, &H07, &HF9
READ REP DATA &H80, &HFF, &HF9
LPRINT CHR$ (REP); DATA &H87, &HFE, &H01
FOR I=1 TO REP*3 DATA &H9F, &H06, &H01
READ D DATA &HF8, &H06, &H01
LPRINTCHR$ (D); DATA &HF8, &H06, &H01
NEXT I DATA &H9F, &H06, &H01
NEXT J DATA &H87, &HFE, &H01
RETURN DATA &H80, &HFF, &HF9
DATA &H80, &H07, &HF9
DATA &HFF, &HFF, &HFF
[Print Results]
37 CITIZEN
BD2-2860 User’s Manual
[Range] {s = 03}
{20 (Hex) =< n =< m =< 7E (Hex)}
{0 =< a =< 0C(Hex)} (Font A)
{0 =< a =< 0A(Hex)} (Font B)
[Caution] Download characters and download bit images c an not be defined simultaneously.
Running this command clears the definition of the download bit image.
38 CITIZEN
BD2-2860 User’s Manual
[Example]
Create each data bit by setting "1" for a printed dot and "0" for an unprinted dot.
See Sample Program and Print Results for ESC % on Page 37.
39 CITIZEN
BD2-2860 User’s Manual
ESC * m n1 n2 [ d ] k
[Function] Specifying the Bit Image Mode
[Code] <1B>H<2A>H<m><n1><n2> [ <d> ] k
[Range] {m= 0, 1, 32, 33 bit image mode (See the table below.)}
{0 =< n1 =< FF(Hex)}
{0 =< n2 =< 03(Hex)}
{0 =< d =< FF(Hex)}
{k = n1 + FF(Hex) × n2 (m = 0, 1)
{k = (n1+ FF(Hex) × n2) × 3} (m = 32, 33)
[Outline] According to the number of dots specified in n1, n2, specify the bit image of mode n.
• The No. of dots printed is divided by 256, whose quotient is taken as n2 and residual as n1.
• The total no. of dots printed in the bit image is equal to n1 + (256 x n2).
• When bit image data have been input in excess of dot position of one line (448 d ots) ,
the excess data are discarded.
• d is bit image data, the bits subject to printing are taken as "1" and those not as "0".
• The bit image modes specified by m are shown as follows:
[Caution] • When the values set in m (bit image mode) are out of the above range, the data
following after n1 is processed as normal printing data.
• After completion of bit image printing, printer returns to normal data processing mode.
[Example]
40 CITIZEN
BD2-2860 User’s Manual
[Sample Program]
LPRINT CHR$ (&H1B) + "*”;
LPRINT CHR$ (0) + CHR$ (20) + CHR$ (0); IMG1 :
GOSUB IMG1 LPRINT CHR$ (&HFF) ;
LPRINT CHR$ (&HA); FOR I=1 TO 18
LPRINT CHR$ (&H1B) + "*”; LPRINT CHR$ (&H85) ;
LPRINT CHR$ (1) + CHR$ (20) + CHR$ (0); NEXT I
GOSUB IMG1 LPRINT CHR$ (&HFF) ;
LPRINT CHR$ (&HA); RETURN
LPRINT CHR$ (&H1B) + "*”; IMG2 ;
LPRINT CHR$ (32) + CHR$ (20) + CHR$ (0); LPRINT CHR$ (&HFF) ;
GOSUB IMG2 LPRINT CHR$ (&HFF) ;
LPRINT CHR$ (&HA); LPRINT CHR$ (&HFF) ;
LPRINT CHR$ (&H1B) + "*”; FOR I=1 TO 18
LPRINT CHR$ (33) + CHR$ (20) + CHR$ (0); LPRINTCHR$ (&H80) ;
GOSUB IMG2 LPRINTCHR$ (&H00) ;
LPRINT CHR& (&HA); LPRINTCHR$ (&H05) ;
END NEXT I
LPRINT CHR$ (&HFF) ;
LPRINT CHR$ (&HFF) ;
LPRINT CHR$ (&HFF) ;
RETURN
[Print Results]
41 CITIZEN
BD2-2860 User’s Manual
ESC – n
[Function] Specifying/ Canceling Underline
[Code] <1B>H<2D>H<n>
[Caution] • An underline is attached to the full character width. It is, however, not attached to
the part having been skipped by horizontal tab command.
• An underline is not attached to a 90 °- right-turned characters.
• Specification/cancellation with this command is invalid to Kanji.
[Sample Program]
LPRINT CHR$ (&H1B) + " –" + CHR$ (0);
LPRINT "AAAAA" ;
LPRINT CHR$ (&H1B) + " –" + CHR$ (1);
LPRINT "AAAAA" + CHR$ (&HA);
[Print Results]
42 CITIZEN
BD2-2860 User’s Manual
ESC 2
[Function] Specifying 1/6-inch line feed rate
[Code] <1B>H<32>H
[Outline] The line feed rate per line is specified by 1/6 inch.
43 CITIZEN
BD2-2860 User’s Manual
ESC 3 n
[Function] Setting line feed rate of minimum pitch
[Code] <1B>H<33>H<n>
[Outline] The line feed rate per line is specified 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.
[Default] • The initial value is n = 60 (1/6 inch) (18H), being 4.23 mm line feed rate.
See Sample Program and Print Results for ESC 2 on Page 43.
44 CITIZEN
BD2-2860 User’s Manual
ESC = n
[Function] Data Input Control
[Code] <1B>H<3D>H<n>
[Outline] Selecting equipment in which data input from the host is effective.
• Each bit of n indicates as follows:
Bit Equipment Value
0 1
0 Printer Invalid Valid
1 Not defined
2 Not defined
3 Not defined
4 Not defined
5 Not defined
6 Not defined
7 Not defined
• When the printer has not been selected, this printer abandons all the received data
until it is selected by this command.
[Caution] • Even when the printer has not been selected, it can become BUSY state through
printer operation.
• When the printer is deselected, this printer discards all the data until it is selected
with this command.
[Sample Program]
LPRINT "AAAAA”;
LPRINT CHR$ (&H1B) + "=" + CHR$ (0);
LPRINT "aaaaa" + CHR$ (&HA);
LPRINT CHR$ (&H1B) + "=" + CHR$ (1);
LPRINT "AAAAA" + CHR$ (&HA);
[Print Results]
45 CITIZEN
BD2-2860 User’s Manual
ESC @
[Function] Initializing the Printer
[Code] <1B>H<40>H
[Range] Clears data stored in the print buffer and brings various settings to the initial state (Default state).
[Caution] • Data inside the internal input buffer are not cleared.
• Dip switches setting are red once again.
46 CITIZEN
BD2-2860 User’s Manual
ESC D [ n ] k NUL
[Function] Setting Horizontal Tab Position
[Caution] When the data, <n> k, is equal to or smaller than its preceding data, <n> k-1, it is assumed
that tab setting is finished. If this is the case, the next data onward will be processed as normal
data.
When the data, <n> k, exceeds a 1-line print area, set the horizontal tab position, assuming
"Set digit position = Maximum print digits + 1." The horizontal tab position does not
change even if the character width is altered after setting the horizontal tab position.
[Default] • Initial value is specified for each eight characters(9th.17th.25th column) of ANK characters .
[See Also] HT
47 CITIZEN
BD2-2860 User’s Manual
ESC E n
[Function] Specifying/canceling highlighting
[Code] <1B>H<45>H<n>
[Caution] • The print result of Double printing and highlight character printing is completely same.
[Example]
[Sample Program]
LPRINT CHR$ (&H1B) + "E" + CHR$ (0);
LPRINT "AAABBB" + CHR$ (&HA);
LPRINT CHR$ (&H1B) + "E" + CHR$ (1);
LPRINT "AAABBB" + CHR$ (&HA);
[Print Results]
48 CITIZEN
BD2-2860 User’s Manual
ESC G n
[Function] Specifying/canceling Double Printing (ESC G n)
[Code] <1B>H<47>H<n>
[Caution] • The print result of Double printing and highlight character printing is completely same.
[Sample Program]
LPRINT CHR$ (&H1B) + "G" + CHR$ (0);
LPRINT "AAABBB" + CHR$ (&HA);
LPRINT CHR$ (&H1B) + "G" + CHR$ (1);
LPRINT "AAABBB" + CHR$ (&HA);
[Print Results]
49 CITIZEN
BD2-2860 User’s Manual
ESC J n
[Function] Printing and feeding paper n/203 inch
[Code] <1B>H<4A>H<n>
[Outline] 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.
• 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.
See Sample Program and Print Results for ESC 2 on Page 43.
50 CITIZEN
BD2-2860 User’s Manual
ESC R n
[Function] Selecting the International Character set
[Code] <1B>H<52>H<n>
[Default] • The initial value of n indicates the character set specified by Jumper (J1~J3).
51 CITIZEN
BD2-2860 User’s Manual
ESC V n
[Function] Specifying/Canceling 90°-right- turned Characters
[Code] <1B>H<56>H<n>
52 CITIZEN
BD2-2860 User’s Manual
ESC a n
[Function] Aligning the characters
[Code] <1B>H<61>H<n>
[Outline] All the printed data within one line are aligned in the specified position.
• Depending on n value, positional alignment is carried out as in the table below:
n (Hex) Position
0 Left end alignment
1 Centering
2 Right end alignment
[Sample Program]
LPRINT CHR$ (&H1B) + "a" + CHR$ (0);
LPRINT "AAAAA" + CHR$ (&HA);
LPRINT CHR$ (&H1B) + "a" + CHR$ (1);
LPRINT "AAAAA" + CHR$ (&HA);
LPRINT CHR$ (&H1B) + "a" + CHR$ (2);
LPRINT "AAAAA" + CHR$ (&HA);
[Print Results]
53 CITIZEN
BD2-2860 User’s Manual
ESC c5 n
[Function] Enabling/Disabling Panel Switches
[Code] <1B>H<63>H<35>H<n>
[Caution] When the panel switch is disabled with this command, the LF switch is disabled. Therefore,
the paper cannot be fed by operating the LF switch.
[Sample Program]
LPRINT CHR$ (&H1B) + "c5" + CHR$ (0); ………When enabling the LF switch
LPRINT CHR$ (&H1B) + "c5" + CHR$ (1); ………When disabling the LF switch
54 CITIZEN
BD2-2860 User’s Manual
ESC d n
[Function] Printing and Feeding the paper by n lines
[Code] <1B>H<64>H<n>
[Outline] Prints data inside the buffer and feeds paper by n lines.
• Specified line does not remain.
• The beginning of the line is to be considered as the next printing start position.
[Sample Program]
LPRINT "AAAAA"
LPRINT CHR$ (&H1B) + "d" + CHR$ (2);
LPRINT "AAAAA" + CHR$ (&HA);
[Print Results]
55 CITIZEN
BD2-2860 User’s Manual
[Code] <1B>H<69>H
[Sample Program]
LPRINT "AAAAA”;
LPRINT CHR$ (&H1B) + "J”;
LPRINT CHR$ (150);
LPRINT CHR$ (&H1B) + "i”;
LPRINT "AAAAA”;
LPRINT CHR$ (&H1B) + "J”;
LPRINT CHR$ (150);
LPRINT CHR$ (&H1B) + "i”;
[Print Results]
56 CITIZEN
BD2-2860 User’s Manual
[Code] <1B>H<6D>H
[Sample Program]
LPRINT "AAAAA”;
LPRINT CHR$ (&H1B) + "J”;
LPRINT CHR$ (150);
LPRINT CHR$ (&H1B) + "m”;
LPRINT "AAAAA”;
LPRINT CHR$ (&H1B) + "J”;
LPRINT CHR$ (150);
LPRINT CHR$ (&H1B) + "m”;
[Print Results]
57 CITIZEN
BD2-2860 User’s Manual
ESC t n
[Function] Selecting Character Code Table
[Code] <1B>H<74>H<n>
[Default] The initial value of n is subject to the character set for the country specified
by the Jumper(J1~J3).
• When Japan is selected: Domestic characters
• When non-Japan is selected: IBM characters #2
[Sample Program]
LPRINT CHR$ (&H1B) + "t" + CHR$ (0);
LPRINT " n=0 “;
FOR C=&HB1 TO &HB5
LPRINT CHR$ (C);
NEXT C
LPRINT CHR$ (&HA);
LPRINT CHR$ (&H1B) + "t" + CHR$ (1);
LPRINT " n=1 “;
FOR C=&HB1 TO &HB5
LPRINT CHR$ (C);
NEXT C
LPRINT CHR$ (&HA);
[Print Results]
58 CITIZEN
BD2-2860 User’s Manual
[Code] <1B>H<76>H
[Caution] • Status sent out consists of 1 byte whose content is as in the table below.
• In DTR/DSR control, after revertible state of the host (DSR signal being in SPACE
state) is confirmed, only 1 byte is transmitted. In XON/XOFF control, DSR signal state
not being confirmed, only 1 byte is transmitted.
• In DTR/DSR control, when the host is in unrespectable state (DSR signal being in
MARK state), it waits until receptacle state is created.
• In paper end (paper near end) status, this command may be unrespectable state due to
BUSY state.
Remarks. This command is valid only for serial interface model.
Bit Function Value
0 1
0 Not defined
1 Not defined
2 Paper end With paper Without paper
3 Not defined
4 Not used Fixed to 0 –
5 Not defined
6 Not defined
7 Not defined
[Sample Program]
OPEN "COM1: N81NN" AS #1;
PRINT #1, CHR$ (&H1B) + "v”;
A$ = INPUT$ (1, #1);
CLOSE #1
59 CITIZEN
BD2-2860 User’s Manual
ESC { n
[Function] Specifying/Canceling the Inverted Characters
[Code] <1B>H<7B>H<n>
[Sample Program]
LPRINT CHR$ (&H1B) + "{" + CHR$ (0);
LPRINT "AAAAA" + CHR$ (&HA);
LPRINT "BBBBB" + CHR$ (&HA);
LPRINT CHR$ (&H1B) + "{" + CHR$ (1);
LPRINT "AAAAA" + CHR$ (&HA);
LPRINT "BBBBB" + CHR$ (&HA);
[Print Results]
60 CITIZEN
BD2-2860 User’s Manual
ESC $ n1 n2
[Function] Specifying the Absolute Positions
[Code] <1B>H<24>H<n1><n2>
[Outline] The printing start position is specified in the number of dots (1/203 inch unit) from
the beginning of line.
• The number of dots is divided by 256, whose quotient is taken as n2 and the residual as n1.
• Therefore, the printing start position is equal to n1+n2 x 256 from the beginning of line.
[Sample Program]
LPRINT CHR$ (&H1B) + "$”;
LPRINT CHR$ (0) + CHR$ (0) + "A”;
LPRINT CHR$ (&H1B) + "$”;
LPRINT CHR$ (50) + CHR$ (0) + "B”;
LPRINT CHR$ (&H1B) + "$”;
LPRINT CHR$ (0) + CHR$ (1) + "C”;
LPRINT CHR$ (&HA);
LPRINT CHR$ (&H1B) + "$”;
LPRINT CHR$ (100) + CHR$ (0) + "A”;
LPRINT CHR$ (&H1B) + "¥”;
LPRINT CHR$ (&HC2) + CHR$ (&HFF) + "B”;
LPRINT CHR$ (&HA);
[Print Results]
61 CITIZEN
BD2-2860 User’s Manual
ESC ¥ n1 n2
[Function] Specifying the Relative Positions
[Outline] The printing start position is specified in the number of dots(1/203 inch unit) from
the current position.
• Rightward direction is taken as plus and leftward direction as minus.
• To specify N dot in minus (left) direction, use a complement of N for assignment.
–N dots = 65536 – N
• The number of dots is divided by 256, whose quotient is taken as n2 and the residual as n1.
[Caution] • Specifying exceeding the top of line or the end of line is ignored.
See Sample Program and Print Results for ESC $ on Page 61.
62 CITIZEN
BD2-2860 User’s Manual
GS k n [ d ] k NUL
[Function] Printing the Bar Code
[Caution] • 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.
63 CITIZEN
BD2-2860 User’s Manual
[Description of Bar Codes] <For print examples, see Page 66. >
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 12th-
column 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 cod e 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.
64 CITIZEN
BD2-2860 User’s Manual
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.
[Sample Program]
LPRINT CHR$ (&H1D) + "H" + CHR$ (2);
LPRINT CHR$ (&H1D) + "k”;
LPRINT CHR$ (4);
LPRINT "123" + CHR$ (0);
[Print Results]
65 CITIZEN
BD2-2860 User’s Manual
Printing is done depending on bar code specification type, number of print column, bar code
height, width (Magnification), visible code presence, and bar code data specification.
66 CITIZEN
BD2-2860 User’s Manual
GS w n
[Function] Selecting the horizontal size (Scale factor) of the Bar Code
[Sample Program]
LPRINT CHR$ (&H1D) + "h" + CHR$ (30);
LPRINT CHR$ (&H1D) + "w" + CHR$ (2);
GOSUB BC
LPRINT CHR$ (&H1D) + "h" + CHR$ (50);
LPRINT CHR$ (&H1D) + "w" + CHR$ (3);
GOSUB BC
LPRINT CHR$ (&H1D) + "h" + CHR$ (80);
LPRINT CHR$ (&H1D) + "w" + CHR$ (4);
GOSUB BC
END
BC:
LPRINT CHR$ (&H1D) + "k”;
LPRINT CHR$ (4);
LPRINT "12" + CHR$ (0);
RETURN
[Print Results]
67 CITIZEN
BD2-2860 User’s Manual
GS h n
[Function] Selecting the height of the Bar Code
[Code] <1D>H<68>H<n>
68 CITIZEN
BD2-2860 User’s Manual
GS H n
[Function] Selecting of Printing Position of HRI Code
[Code] <1D>H<48>H<n>
The HRI code refers to the bar code-turned characters so that you can read them.
[Caution] The HRI code is printed in the font selected with GS f. Specify before the GS k command.
[See Also] GS f
69 CITIZEN
BD2-2860 User’s Manual
GS f n
[Function] Selecting the font of HRI code
[Code] <1D>H<66>H<n>
[Range] n = 0, 1
[Caution] The HRI code is printed at the position specified with GS h on page 63.
[See Also] GS H
[Sample Program]
LPRINT CHR$ (&H1D) + "h" + CHR$ (50);
LPRINT CHR$ (&H1D) + "H" + CHR$ (2);
LPRINT CHR$ (&H1D) + "f" + CHR$ (0);
GOSUB BC
LPRINT CHR$ (&H1D) + "f" + CHR$ (1);
GOSUB BC
END
BC:
LPRINT CHR$ (&H1D) + "k”;
LPRINT CHR$ (4);
LPRINT "123" + CHR$ (0);
LPRINT CHR$ (&HA);
RETURN
[Print Results]
70 CITIZEN
BD2-2860 User’s Manual
GS * n1 n2 [ d ] n1 × n2 × 8
[Function] Defining the Download Bit Image
[Outline] 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.
[Caution] • 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 /
71 CITIZEN
BD2-2860 User’s Manual
[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]
72 CITIZEN
BD2-2860 User’s Manual
GS / m
[Function] Printing the Download, Bit Image
[Code] <1D>H<2F>H<m>
[Caution] • When data exist inside the print buffer, this command is ignored.
• When a download bit image has not been defined, this command is ignored.
• A portion of a download bit image exceeding one line length is not printed.
• A download character and a download bit image cannot be defined simultaneously.
• If a download bit image data is defined while it is being printed with this command, printing
operation may become unstable (fluctuating print pitch).
[See Also] GS *
73 CITIZEN
BD2-2860 User’s Manual
GS :
[Function] Starting / Ending Macro Definition
[Code] <1D>H<3A>H
[See Also] GS ^
[Sample Program]
LPRINT CHR$ (&H1D) + “: " ;
LPRINT "+–––+" + CHR$ (&HA);
LPRINT " | | " + CHR$ (&HA);
LPRINT "+–––+" + CHR$ (&HA);
LPRINT CHR$ (&H1D) + “: “;
LPRINT CHR$ (&H1D) + " ^ “;
LPRINT CHR$ (2) + CHR$ (10);
LPRINT CHR$ (0);
[Print Results]
74 CITIZEN
BD2-2860 User’s Manual
GS ^ n1 n2 n3
[Function] Executing the Macro
[Code] <1D>H<5E>H<n1><n2><n3>
[Caution] • When this command is received while in macro definition, suspension of macro definition is
indicated. At this time, the defined content is cleared.
• No execution takes place when macro is held undefined or n1=0.
• While in macro execution with n3=1, paper feed with the LF SW is not available.
[See Also] GS :
75 CITIZEN
BD2-2860 User’s Manual
DC2 A n
[Function] Selecting the Print drive system
[Code] <12>H<41>H<n>
[Outline] Selecting the Fixed division system or the Variable division system.
• "n" is valid only for the lowest bit (n0).
n0 Print Drive System
0 Fixed division number system
1 Variable division number system
76 CITIZEN
BD2-2860 User’s Manual
77 CITIZEN
BD2-2860 User’s Manual
11.2 Japanese
78 CITIZEN
BD2-2860 User’s Manual
79 CITIZEN
BD2-2860 User’s Manual
80 CITIZEN
BD2-2860 User’s Manual
81 CITIZEN