LXE Inc. reserves the right to make improvements or changes in the products described in this manual at any time without
notice. While reasonable efforts have been made in the preparation of this document to assure its accuracy, LXE assumes no
liability resulting from any errors or omissions in this document, or from the use of the information contained herein.
Note: The original equipment’s Reference Manual is copyrighted by Percon® Inc. This manual has been amended by
LXE® Inc., for the 2325 and Docking Stations with Percon’s express permission.
Notice:
The long term characteristics or the possible physiological effects of radio frequency electromagnetic fields have not been
investigated by UL.
FCC Information:
This device complies with FCC Rules, part 15. Operation is subject to the following conditions:
1. This device may not cause harmful interference
and
2. This device must accept any interference that may be received, including interference that may cause undesired
operation.
Note: This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15
of the FCC rules. These limits are designed to provide reasonable protection against harmful interference when the
equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency
energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio
communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the
user will be required to correct the interference at his own expense.
Warning: Changes or modifications to this device not expressly approved by LXE, Inc., could void the user’s authority to
operate this equipment.
Shielded cables must be used with this unit to ensure compliance with the FCC Class A limits.
EMC Directive Requirements:
This is a Class A product. In a domestic environment this product may cause radio interference in which case the user may
be required to take adequate measures.
Industry Canada:
This Class A digital apparatus meets all requirements of the Canadian Interference Causing Equipment Regulations.
Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this
device must accept any interference received, including interference that may cause undesired operation.
Refer to the 2325 Vehicle Printer Operator’s Guide
(LXE DocID 2325A137OPGD) for operation and
installation information
The portable LXE™ 2325 Vehicle Printer, for use with LXE’s 2325
handheld computers, combines a rugged dot matrix printer with the
charging and storage functions of a storage cradle for the handheld
computer. The printer has an integrated vehicle power supply, integrated
paper tray and 2325 cradle. The unit prints a full 80 columns width at
180 characters per second.
Figure 1-1 2325 In the Cradle of the Vehicle Printer
The built-in computer cradle in the printer safely holds the 2325
handheld computer for both data printing and computer storage and
charges the 2325 battery. The printer operates as a true portable system
powered by its own internal rechargeable battery.
Note: Refer to the next sections for information on the 12V internal
battery and connecting vehicle power to the printer.
Refer to the LXE 2325 Operator’s Guide (LXE DocID
2325A136OPGD) for instructions when operating a 2325 in the 2325
Vehicle Printer.
This guide presents information on the printer, paper, ribbons, printer
settings, indicator lights, charging the battery, care and maintenance,
programming the printer, and supported character sets.
This product contains a Small Sealed Lead-Acid (SSLA) battery.
This battery must be recycled. Disposal of this battery must be in
accordance with local, state, and federal regulations. The State of
Florida “Land Ban” applies to this battery. In Canada, disposal must
be in compliance with Canadian environmental protection laws. For
further information call LXE at 770-449-0154.
Document Conventions
The following conventions are used in this document:
• Bold type and CAPITAL LETTERS are used to identify commands.
• Italics are used for parameters.
• Bullets indicate:
- action items
- lists of alternatives
- lists of required steps that are not necessarily sequential.
• Sequential lists (e.g., those that describe step-by-step procedures)
The printer is designed to be fully portable. The main criteria for
installation/operation is to ensure that the unit is level so that the
printhead moves from side to side without having to be pulled “uphill”
by the carriage motors.
When mounted within the cab of a vehicle or anywhere else within the
vehicle, care should be taken to ensure that the unit does not move
during acceleration, braking or traversing rough roads. This may be
accomplished by use of straps or a retaining box around the printer.
Excessive vibration and shock can be minimized by using dense foam
padding under and/or around the unit.
It would not be advisable to place the printer in any location where it
could become a lethal projectile in the event of an accident.
Internal 12V Battery Instruction
Important
The LXE 2325 Vehicle Printer is shipped with a disconnected battery.
This method preserves the overall life of the battery as well as maintains
the original charge. Make sure to connect the battery before using the
printer. The battery is a 12V DC lead acid gel battery, Model PP12V2
manufactured by GS Battery-Canada.
Connect the
Battery
1. Open and remove the printer cover (see section titled “Opening the
Printer”).
2. Open the printer mechanism using the release lever (see section
titled “Paper, Loading Paper”).
3. Flip up the levers on both tractor feed assemblies (see section titled
“Paper, Loading Paper”).
4. Using a Phillips screwdriver, loosen (DO NOT REMOVE) the two
screws on each end of the battery hold down bar (battery bar screws
can be seen through the two holes in the printer mechanism base
plate). The battery bar is located directly below the printer
mechanism base plate.
5. Slide the battery out from its compartment to access the battery
terminals (to slide the battery out, tilt the printer while slightly
lifting on the battery).
6. Remove tape on wires as well as the red tape on the terminals and
connect the red wire to the red terminal on the battery and the black
wire to the black terminal - make sure the wires stay underneath the
hold down bar.
7. Slide the battery (lettering side down) underneath the hold down bar
by tilting it forward.
8. Tighten the two screws. Hint: Load the paper in the printer after this step.
9. Flip down the two levers on the tractor feed assemblies.
10. Lower the printer mechanism.
11. Close the cover.
The printer is now ready to use.
Battery Life
In order to maintain the life of the 12V gel battery in the printer, one of
two options must be followed:
1. The printer is turned off and left plugged into a charger when not in
use.
2. The battery is disconnected if the printer is to be unused for more
than four weeks.
Important This equipment is designed for Vehicle Use Only. Any other use is
at the owner’s risk and responsibility.
Equipment is designed to use 10 to 30 volt DC power source only.
The printer should receive a full charge on a daily basis. The battery is
fully charged when the green LED turns off.
The printer is designed for use with any DC power source within the
range of 10 V to 30 V. When connected to a power source that falls
within this range and can source the proper amount of current, the
printer battery will be properly charged and will maintain its charge
under normal usage.
It is recommended that the vehicle cable be connected to an unswitched
outlet on the vehicle’s fuse box, or directly to the vehicle battery. This
connection method reduces the chance of interference from the vehicle’s
charging system and prolongs the life of the printer’s internal 12V DC
Lead acid gel battery.
Figure 1-2 Proper Connection of the Vehicle Cable
The printer chassis (green wire) is isolated from the printer electronic
ground. Therefore, the printer can be used with positive or negative
ground vehicle systems.
When the printer is connected to an unswitched outlet on the fuse box
the printer will always receive a charge from the vehicle battery. If the
unit is left turned on for extended periods of time the unit could drain the
vehicle battery.
If the printer is connected to a switched outlet on the fuse box the printer
will only charge when the vehicle is on. This will eliminate the problem
of draining the vehicle battery; however it may place additional load on
the internal battery of the printer should the vehicle be run for short
periods. The printer should receive a full charge on a daily basis. The
unit is fully charged when the green CHARGING indicator light turns
off. The printer must be connected to an external source (vehicle or
external power supply) to ensure that the battery is properly charged.
Fuse Replacement
The unit uses a 250V, 3A Fast Blow, high current interrupting rating
fuse that is externally accessible and user replaceable. Should it need
replacement, replace with same size, rating and type of fuse -- Littelfuse
part number 312-003.
Internal Fuse Replacement:
The internal fuses F1 and F2 are rated at
F1: 250V 4 Amps Slow Blow
F2: 250V 3 Amps Fast Blow
Caution:
For continued protection against risk of fire, replace
only with the same type and rating of fuse.
RS-232 Connection is made through an RS-232 Connector. The
connector is an industry-standard RS-232. The connector includes a
PC/AT standard 9-pin “D” male connector with pin 9 capable of
supplying 5 VDC at 200mA (max) for an external barcode scanner.
• PWR (POWER) - used to turn the printer ON and OFF
• BF (BACK FEED) - used to feed the paper back one line at a
time (also used for NLQ self test)
• LF (LINE FEED) - used to feed the paper, one line at a time
(also used for DRAFT self test)
• FF (FORM FEED) - used to feed the paper one form length
with respect to top of form
• On-Line - used to toggle the printer between online and offline
(also used to set Low Temperature Mode).
For Continuous Feed, hold down the LINE FEED and BACK FEED
buttons. The printer must be off-line in order for LINE FEED, BACK
FEED and FORM FEED to function.
Top of Form is set when the printer is turned on. If the printer is turned
on and the paper is half way out of the printer, it will set that point on the
page as top of form. Ensure that the printer is off-line and adjust the
paper position with line feed or back feed to the appropriate position on
the page. The printer must then be turned OFF and back ON. This will
set the top of form to the correct position.
The printer must be configured to match the parameters used by the
software which runs on the 2325 hand-held computer. The configuration
is set by eight dip switches located on top of the printer mechanism.
2-6 Command Descriptions - Printer Operation Control
Command Descriptions
Printer Operation Control
Initialization
ESC [ K Initialize Printer
Format:
ESC [ K n1 n2 init id p1 p2
n1 : 01H, 03H, or 04H
n2 : 00H
init: 00H, 01H, 04H, 05H, FEH, or FFH
id: 03H
p1 : 00H ≤ p1 ≤ FFH
p2 : 00H ≤ p2 ≤ FFH
Dec.
27 91 75 n1 n2 init id p1 p2
Hex.
1B 5B 4B n1 n2 init id p1 p2
Function
Initializes the printer after printing the data stored in the print buffer.
However, this command does not clear the input buffer.
n1 and n2 specify the number of the following parameter bytes (init, id,
p1 and p2 ) so that the (n1 + n2 x 256) number of data bytes are
accepted as parameters of this command. Up to four bytes of data can
follow this command as init, id, p1 and p2 . The printer will be
initialized according to these parameters.
n1 = 01H: The printer is initialized according to init.
n1 = 03H: The printer is initialized according to init and p1 .
2-8 Command Descriptions - Printer Operation Control
p2
Bit Function 0 1
7 p2 Accept p2 Ignore p2
6 USA or multilingual
character set
5 Printing direction for
USA character set Multilingual
character set
Bi-directional Unidirectional
bit images, NLQ,
and graphic
characters
4 20 cpi Condensed
elite
Valid Condensed
elite
Invalid Elite
3 NLQ font selection Prestige ---
2 FF code (at TOF) Valid Invalid
1 Not used. --- ---
0 Not used. --- ---
Each flag bit 7 of parameters p1 and p2 is used to accept or ignore the
settings of that parameter, respectively. If bit 7 is 1, the settings of that
parameter are ignored and the printer is initialized according to the
default settings. If bit 7 is 0, the printer is initialized according to the
settings of that parameter.
If bit 2 of p2 is 1 (invalid FF code), the FF code received at the top-ofform (TOF) position is ignored.
Command Descriptions - Printer Operation Control 2-9
LowTemperature
Operation Mode
ESC [ L Set/Cancel Low-Temperature Operation Mode
Format
ESC [ L n1 n2 m
n1 = 01H
n2 = 00H
m = 00H: Cancel low-temperature operation mode.
= 01H: Set low-temperature operation mode.
Dec. 27 91 76 n1 n2 m
Hex. 1B 5B 4C n1 n2 m
Function
Sets or cancels low-temperature operation mode according to m as
above. A specification of 01H for m allows the printer to operate in low-
temperature environments. The low-temperature operation mode differs
from the ordinary mode in these ways:
• The printer double strikes all of the print data in unidirectional print
mode.
• Lower carriage travel speed: In the draft mode, the print speed is
reduced from 150 cps to 75 cps. In the NLQ mode, the carriage
returning speed for the 2
half of that in the ordinary mode (that is, half of the travel speed in
the draft mode.) The carriage travel speed for bi-directional logic
seeking print is half of that in the ordinary mode.
• The paper feeding speed is half of that in the ordinary mode.
If the printer receives this command during the continuous printing
operation, the command may take effect, for one or two lines ahead of it.
If the (n2 x 256 + n1 ) > 1, this command is effective while the printer
ignores the surplus data.
If the (n2 x 256 + n1 ) = 1, or if a specification for m is 00H or 01H, the
printer ignores this command.
2-10 Command Descriptions - Printer Operation Control
Data Control
DC1 Select Printer
Format
DC1
Dec. 17
Hex. 11
Function
Takes the printer on-line so that the printer can accept commands and
print data. This command is valid only when the printer has been
selected by an ESC Q command.
ESC Q Deselect Printer
Format
ESC Q n
n = 03H or 16H
Dec. 27 81 n
Hex. 1B 51 n
Function
Takes the printer off-line so that the printer cannot receive commands or
print data until it receives a DC1 command or the ON/OFF LINE switch
is pressed twice.
CAN Clear Printer Buffer
Format
CAN
Dec. 24
Hex. 18
Function
Clears the print data stored in the image buffer. All of the control
commands except for BS, HT, and SO remain unaffected.
Command Descriptions - Printer Operation Control 2-11
Horizontal
Motion
BS Backspace
Format
BS
Dec. 8
Hex. 08
Function
Moves the print position horizontally one character to the left.
CR Carriage Return
Format
CR
Dec. 13
Hex. 0D
Function
Prints the data in the buffer and returns the print position to the left
margin. If the auto line feed (LF) function is enabled by ESC 5 1
command, a line feed automatically accompanies a carriage return.
2-12 Command Descriptions - Printer Operation Control
Carriage Return
Control
ESC 5 Set/Cancel Auto Line Feed
Format
ESC 5 n
n = 00H or 30H: CR = CR
n = 01H or 31H: CR = CR + LF
Dec. 27 53 n
Hex. 1B 35 n
Function
The automatic line feed function is enabled or disabled by n. If n is 01H
or 31H, the printer prints data stored in the buffer and performs a
carriage return plus a line feed, in response to each CR command. If n is
00H or 30H, the printer prints data in the buffer and performs a carriage
return with no line feed.
2-14 Command Descriptions - Printer Operation Control
Print Direction
ESC < Set Left-to-Right Unidirectional Printing
Format
ESC <
Dec. 27 60
Hex. 1B 3C
Function
Sets the unidirectional printing from left to right for one line only.
ESC U Set/Cancel Unidirectional Printing
Format
ESC U n
n = 00H or 30H: Bi-directional printing (Default setting)
n = 01H or 31H: Unidirectional printing
Dec. 27 85 n
Hex. 1B 55 n
Function
Sets the bi-directional or unidirectional printing with n as above. A
specification of 00H or 30H for n produces bi-directional printing; 01H
or 31H for n, unidirectional printing from left to right. If the printer
receives this command halfway on a line, the setting takes effect on that
line and the following lines.
Command Descriptions - Printer Operation Control 2-15
Paper Empty
Sensor Control
ESC 8 Disable Paper Empty Sensor
Format
ESC 8
Dec. 27 56
Hex. 1B 38
Function
Disables the paper empty sensor. Even if the paper empty sensor detects
the paper empty state, the printer does not signal it so as to continue
printing. The ESC 9 and ESC [ K cancel this command setting.
ESC 9 Enable Paper Empty Sensor
Format
ESC 9
Dec. 27 57
Hex. 1B 39
Function
Enables the paper empty sensor. If the paper empty sensor detects the
paper empty state, the printer goes off-line. To resume printing, load
paper and press the ON/OFF LINE switch. This command setting is a
default.
Advances the paper by one line after printing the data stored in the
buffer. This command causes a carriage return (CR) if the auto carriage
return (AUTO CR) function is enabled by an ESC [ K command. The
ESC LF command is functionally equivalent to the LF command.
FF Form Feed
Format
FF
Dec. 12
Hex. 0C
Function
Advances the paper to the top-of-form position on the next page and
returns the print position to the left margin, after printing the data stored
in the buffer. The ESC FF command is functionally equivalent to the FF
command.
Reverses the paper by one line without CR operation when no data is
stored in the buffer. When data is stored in the buffer, this command is
functionally equivalent to an LF command; that is, it prints the data and
advances the paper by one line with CR operation. The paper feed or
reverse operation caused by this command does not affect the paper feed
counter.
ESC J Execute n/216” Line Spacing
Format
ESC J n
00H ≤ n ≤ FFH
Dec. 27 74 n
Hex. 1B 4A n
Function
Advances the paper n/216” for one line only, after printing the data
stored in the buffer. This command does not affect the current line feed
pitch for the subsequent lines.
Activates the skip-over perforation function so that the printer skips over
the perforation by n lines and advances the paper to the next top-of-form
(TOF) position or the next TOF line when it receives a form feed or line
feed command, respectively.
This setting is cleared by an ESC C, ESC O, or ESC [ K command.
• To advance paper to the next TOF position, send an FF
command.
• To advance paper to the next TOF line, send an LF command.
If the AUTO CR (LF + CR) function has been activated, the
paper will advance to the next TOF position.
ESC O Deactivate Skip-Over Perforation Function
Format
ESC O
Dec. 27 79
Hex. 1B 4F
Function
Deactivates the skip-over perforation function set by an ESC N
command.
Sets the line spacing to 8 lines per inch. If the printer receives an LF or
its related commands or the LINE FEED switch is pressed, the printer
advances paper in 1/8” pitch. This setting remains effective until another
line spacing is specified.
ESC 1 Set 7/72” Line Spacing
Format
ESC 1
Dec. 27 49
Hex. 1B 31
Function
Sets the line spacing to 7/72”. If the printer receives an LF or its related
commands or the LINE FEED switch is pressed, the printer advances
paper in 7/72” pitch. This setting remains effective until another line
spacing is specified.
ESC 2 Activate Line Spacing Set by ESC A
Format
ESC 2
Dec. 27 50
Hex. 1B 32
Function
Activates the line spacing set by an ESC A. If the printer receives an LF
or its related commands or the LINE FEED switch is pressed, the printer
advances paper in multiples of 1/72”. If no ESC A command has been
sent in advance, this command sets the default line spacing of 1/6”. This
setting remains effective until another spacing is specified.
Sets the line spacing in multiples of 1/216”. If the printer receives an LF
or its related commands or the LINE FEED switch is pressed, the printer
advances paper in n/216” pitch. This setting remains effective until
another line spacing is specified.
ESC A Set n/72” Line Spacing
Format
ESC A n
01H ≤ n ≤ FFH
Dec. 27 65 n
Hex. 1B 41 n
Function
Sets the text line spacing to n/72”. This setting takes effect when the
printer receives an ESC 2 command. Refer to ESC 2 command.
Sets the page length by the number of lines per page.
The page length is determined by multiplying the current line feed pitch
by n (the number of lines). When the printer receives this command, it
assumes the current head position to be the top-of-form position. This
command takes effect even if the printer receives it halfway on a line.
This command cancels the skip-over perforation function set by an ESC
N command. The vertical TAB stops remain unaffected.
Format 2
ESC C NUL n
01H ≤ n ≤ FFH
Dec. 27 67 0 n
Hex. 1B 43 00 n
Function
Sets the page length in inches.
The page length is determined by n inches. When the printer receives
this command, it assumes the current head position to be the top-of-form
position. This command takes effect even if the printer receives it
halfway on a line.
This command cancels the skip-over perforation function set by an ESC
N command. The vertical TAB stops remain unaffected.
Moves the print position horizontally to the next tab stop position
previously set as default or by an ESC D command. The ESC HT
command is functionally equivalent to the HT command.
VT Vertical Tab
Format
VT
Dec. 11
Hex. 0B
Function
Advances the paper to the next vertical tab stop position previously set
as default or by an ESC B command, after printing the data stored in the
buffer. This command causes a carriage return (CR) if the auto carriage
return (AUTO CR) function is enabled by an ESC [ K command.
ESC B Set Vertical Tab Stops
Format
ESC B n 1 ... n 64 NUL
01H ≤ n ≤ FFH
Dec. 27 66 n1 ... n64 0
Hex. 1B 42 n1 ... n64 00
Function
Sets the vertical tab stop positions up to 64 at the lines specified by n1 ...
n64 on the same page.
The tab stop positions are stored as absolute values obtained by
multiplying the number of lines by the current line spacing. Tab stop
To terminate this setting, send a NUL. If more than 64 tab stops are set,
the excess settings are ignored. Vertical tab stops which are set beyond
the page length will be suspended until the page length becomes long
enough.
After the printer receives an ESC B NUL, ESC R, or ESC [ K command
which clears the tab settings, VT commands become functionally
equivalent to LF commands.
Sets horizontal tab stop positions up to 28 at the print positions specified
by n1 ... n28 on the same line, starting from the physical leftmost end of
the carriage.
Tab stop positions must be set in an ascending order. To terminate this
setting, send a NUL. The ESC D NUL command clears the tab setting.
If more than 28 tab stops are set, the excess settings are ignored.
An ESC R or ESC [ K command restores the tab setting to the default.
ESC R Restore to Default Tab Settings
Format
ESC R
Dec. 27 82
Hex. 1B 52
Function
Cancels the vertical tab stops set by an ESC B command, and resets the
horizontal tab stops set by an ESC D command to the default positions
(every eight positions). After the printer receives this command, VT
commands become functionally equivalent to LF commands.
Prints data in pica pitch (10 characters per inch).
This command cancels the elite mode, condensed character mode, and
proportional spacing.
This setting is canceled by an SI, ESC:, ESC P, or ESC I command.
ESC : Set Elite Pitch
Format
ESC :
Dec. 27 58
Hex. 1B 3A
Function
Prints data in elite pitch (12 characters per inch).
If the printer is placed in the condensed character mode, the pitch
becomes 20 characters per inch (cpi). If “20 cpi” has been set to
“Invalid” by an ESC [ K command, the pitch remains 12 cpi even in the
condensed mode.
A DC2 or ESC P command cancels this setting.
ESC P Set/Cancel Proportional Spacing
Format
ESC P n
n = 00H or 30H: Cancel proportional spacing
n = 01H or 31H: Set proportional spacing
Sets or cancels proportional spacing according to n as above. A
specification of 01H or 31H for n sets the proportional spacing.
ESC 6 Select Character Set 2
Format
ESC 6
Dec. 27 54
Hex. 1B 36
Function
The printer can accept alphanumeric characters, graphic characters, and
control commands defined in the IBM Character Set 2.
ESC 7 Select Character Set 1
Format
ESC 7
Dec. 27 55
Hex. 1B 37
Function
The printer can accept alphanumeric characters, graphic characters, and
control commands defined in the IBM Character Set 1.
ESC \ Print Characters from All-Character Code Set
Format
ESC \ n1 n2
Dec. 27 92 n1 n2
Hex. 1B 5C n1 n2
Function
Allows the printer to print (n1 + n2 x 256) characters from the Allcharacter Code Set. To print characters, the corresponding codes must
be sent immediately following this command.
ESC ^ Print One Character from All-character Code Set
Allows the printer to print only one character from the All-character
Code Set. To print a character, the corresponding code must be sent
immediately following this command.
SO Set Double-width Character Mode (One Line Only)
Format
SO
Dec. 14
Hex. 0E
Function
Shifts the output to double-width characters for one line only.
This mode can be canceled by a CR, LF, VT, FF, DC4, CAN, ESC !,
ESC W 0, or ESC [ @ command. However, it is not canceled if the
buffer becomes so full that the print data continues for more than one
line.
SI Set Condensed Character Mode
Format
SI
Dec. 15
Hex. 0F
Function
Shifts the output to condensed characters.
This mode can be canceled by a DC 2, ESC :, ESC P, ESC I, or ESC [ K
command.
DC4 Cancel Double-Width Character Mode Set by SO
Format
DC4
Dec. 20
Hex. 14
Function
Cancels the double-width character mode set by an SO command.
n = 00H or 30H: Deactivate the underline function
n = 01H or 31H: Activate the underline function
Dec. 27 45 n
Hex. 1B 2D n
Function
Activates or deactivates the underline function.
After receiving this command with n being set to 01H or 31H, the printer
prints the subsequent data with an underline. A specification of 00H or
30H for n deactivates the underline function.
ESC E Set Emphasized Character Mode
Format
ESC E
Dec. 27 69
Hex. 1B 45
Function
Sets the emphasized character mode.
This mode may be used in combination with other print modes.
This mode can be canceled by an ESC F command.
ESC F Cancel Emphasized Character Mode
Format
ESC F
Dec. 27 70
Hex. 1B 46
Function
Cancels the emphasized character mode set by an ESC E command.
ESC W n
n = 00H or 30H: Cancel double-width character mode
n = 01H or 31H: Set double-width character mode
Dec. 27 87 n
Hex. 1B 57 n
Function
Sets or cancels double-width character mode according to n as above.
A specification of 01H or 31H for n shifts the output to double-width
characters. A specification of 00H or 30H for n cancels not only this
mode, but also the one-line double-width character mode set by an SO
command.
ESC [ @ Set Double-Height/Double-Width Character Mode
Format
ESC [ @ n1 n2 m1 m2 m3 m4
n1 and n2 : Specify the number of attribute bytes that
follow. The value n1 is 4 and n2 is 0. The following 4
bytes of data m1 through m4 define the character
attributes.
m1 and m2 : Both are decimal 0 but internally ignored.
m3 : Selects line spacing and character height.
The line spacing (single or double), character height and width (normal
or double) can be selected by data byte values of the attributes m3 and m4 .
First of all, specify the number of attributes m1 through m4 . Because 4
attribute bytes are usually used, n1 is 4 and n2 is 0. However, m1 and m2
are usually 0 and are internally ignored. Find the decimal value of each
bit of m3 and m4 that defines the character attributes in the following
tables. To make your desired settings, add significant decimal values
together and use the sum of each byte in m3 and m4 .
Example: To print double-height/double width characters with
To print double-height characters with double-line spacing, use binary 1
for bit 1 and bit 5, add up their decimal values , and assign the sum to
m3 : m3 is binary 00100010 or decimal 34. To print double-width
characters, use binary 1 for bit 1 and assign decimal value 2 to m4 : m4
is binary 00000010 or decimal 2.
Definition of
Attribute Byte
m3
Note: If bit 2 or 3 is 1, the character height setting is ignored. If bit 6
or 7 is 1, the line spacing setting is ignored.
Bit Decimal Values Settings
Bit 7 (MSB) 128 = 2 7 ---
Bit 6 64 = 2 6 ---
Bit 5 32 = 2
Bit 4 16 = 2
Bit 3 8 = 2
Bit 2 4 = 2
Bit 1 2 = 2
Bit 0 (LSB) 1 = 2
5
Double-line spacing
4
Single-line spacing
3
---
2
---
1
Double-height character
0
Normal-height character
Definition of
Attribute Byte
m4
Note: If bit 2 or 3 is 1, the character width setting is ignored.
ESC _ n
n = 00H or 30H: Deactivate the overline function
n = 01H or 31H: Activate the overline function
Dec. 27 95 n
Hex. 1B 5F n
Function
Activates or deactivates the overline function.
After receiving this command with n being set to 01H or 31H, the printer
prints the subsequent data with an overline. A specification of 00H or
30H for n deactivates the overline function.
2-38 Bit Image Control - Creating 8-Pin Bit Images
Bit Image Control
Your dot matrix printer uses a 9-pin print head to form letters and
graphics. By directly controlling the print head pins with commands, you
can produce undefined graphics in addition to the predefined ASCIIcoded letters and symbols.
Because one dot image may be produced when one pin is fired by one
bit of data, this image is called “Bit Image” and the commands
concerned are called bit image commands.
Six bit image commands -- ESC*, ESC K, ESC L, ESC Y, ESC Z, and
ESC ? -- are available in this printer.
Creating 8-Pin Bit Images
ESC * Select Bit Image Mode
Format
ESC * m n1 n2 data
m: Density option
n1 and n2 : No. of bit image columns = n1 + n2 x 256
data: Bit image data
Dec. 27 42 m n1 n2 data
Hex. 1B 2A m n1 n2 data
Function
Prints 8-pin bit images at the selected horizontal density (m). First define
the bit image density with the attribute m and the total number of
columns to print the bit image with the variables n1 and n2. Input bit
image data to fire pins.
Bit Image Control - Creating 8-Pin Bit Images 2-39
m indicates the bit image density. It specifies the horizontal pitch of the
bit image column. In this printer, m is defined as listed below:
m
Bit Image
Mode
Horizontal
Density
(dots/inch)
Max.
Number of
Dots/Line
Equivalent
Codes
0 Single-density 60 480 ESC K
1 Double-
120 960 ESC L
density
2 Double-speed
120 960 ESC Y
and Doubledensity
3 Quadruple-
240 1920 ESC Z
density
4 Plotter I 80 640 ---
5 Single-density
72 576 --Plotter
Graphics
6 Plotter II 90 720 ---
7 Double-
144 1152 --density Plotter
Graphics
n1 and n2 are one-byte data that specify how many columns are reserved
for bit images. Up to 255 columns can be reserved by the one byte of n1.
The binary 11111111, which is the maximum number for one-byte data,
is equal to the decimal 255. To reserve more columns for bit images, use
the numbers n1 and n2 . The total number of columns for bit images are
expressed with the calculation: n1 + n2 x 256.
2-40 Bit Image Control - Creating 8-Pin Bit Images
Note that the printer cannot print bit images for 2 lines or more. The
printer ignores data exceeding one line.
ex. 1632 columns = 96 + 6 x 256
To print 1632 columns of bit images, n1 is
96 and n2 is 6.
data represents the bit image data. One byte of data is required for one
column of 8-pin images. The number of bytes specified by n1and n2 is
required to print all columns of the bit images.
If any bit of one-byte data is one (1), the corresponding pin is fired to
strike against the ribbon and paper so that one dot image is created. If it
is zero (0), the pin is not fired. To fire one pin at a time, input the bit
value of that pin. To fire several pins at a time, add up their bit values
and input the sum. See the tables “Bit Values” and “Relation between
Bit Numbers and Print Head Pins.”
Bit Image Control - Creating 8-Pin Bit Images 2-41
Relation between Bit Numbers and
Print Head Pins
The table below shows the bit numbers and corresponding print head pin
numbers for one column of bit image.
Bit Number Print Head Pins
Bit 7 (MSB) Pin #1
Bit 6 Pin #2
Bit 5 Pin #3
Bit 4 Pin #4
Bit 3 Pin #5
Bit 2 Pin #6
Bit 1 Pin #7
Bit 0 (LSB) Pin #8
ESC K Set Single-density Bit Image Mode
Format
ESC K n1 n2 data
n1 and n2 : Total number of columns to print bit image =
n1 + n2 x 256
1 <= n1 + 256 x n2 <= 480
data: Bit image data
Dec. 27 75 n1 n2 data
Hex. 1B 4B n1 n2 data
Function
Prints 8-pin bit images at the single or standard horizontal density (60
dots/inch) for (n1 + n2 x 256) columns. Define n1 , n2 , and data in the
same way as for the ESC * command.
ESC L Set Double-Density Bit Image Mode
Format
ESC L n1 n2 data
n1 and n2 : Total number of columns to print bit image =
n1 + n2 x 256
1 <= n1 + 256 x n2 <= 960
data: Bit image data
Dec. 27 76 n1 n2 data
Hex. 1B 4C n1 n2 data
2-42 Bit Image Control - Creating 8-Pin Bit Images
Function
Prints 8-pin bit images at double horizontal density (120 dots/ inch) for
(n1 + n2 x 256) columns. Adjacent dots are printed so that the printing
speed is reduced. Define n1 , n2 , and data in the same way as for the
ESC * command.
ESC Y Set Double-Speed and Double-Density Bit Image Mode
Format
ESC Y n1 n2 data
n1 and n2 : Total number of columns to print bit image =
n1 + n2 x 256
1 <= n1 + 256 x n2 <= 960
data: Bit image data
Dec. 27 89 n1 n2 data
Hex. 1B 59 n1 n2 data
Function
Prints 8-pin bit images at double horizontal density (120 dots/inch) for
(n1 + n2 x 256) columns. Adjacent dots are not printed, so the printing
speed is not reduced as with an ESC L command. Define n1 , n2 , and
data in the same way as for the ESC * command.
ESC Z Set Quadruple-Density Bit Image Mode
Format
ESC Z n1 n2 data
n1 and n2 : Total number of columns to print bit image =
n1 + n2 x 256
1 <= n1 + 256 x n2 <= 1920
data: Bit image data
Dec. 27 90 n1 n2 data
Hex. 1B 5A n1 n2 data
Function
Prints 8-pin bit images at quadruple horizontal density (240 dots/inch)
for (n1 + n2 x 256) columns. Adjacent dots are not printed so that the
printing speed is not reduced. Define n1 , n2 , and data in the same way
as for the ESC * command.
ESC ? n m
n: Specify the desired bit image command.
n = “K”, “L”, “Y”, or “Z”
m: Same density option as the ESC * m command
00H <= m <= 07H or 30H <= m <= 37H
Dec. 27 63 n m
Hex. 1B 3F n m
Function
Changes the bit image density set by an ESC K, ESC L, ESC Y, or ESC
Z command according to the same density option as that of the ESC *
command.
If you have defined a bit image mode and data with an ESC K, ESC L,
ESC Y, or ESC Z command, you can easily change the density with this
command.
n selects any of the ESC K, ESC L, ESC Y, or ESC Z commands. m
specifies the bit image density equivalent to the option for the ESC *
command. The density set by this command remains effective until
another density is specified.
See also ESC K, ESC L, ESC Y, ESC Z, and ESC * commands.
Note: Using the Software Controlled Universal Serial Switch is
optional, not required and only necessary when a modem
board is installed.
The theory behind this design is to have the 2325 provide the necessary
RTS signals so that the MCU can disconnect all drivers tied to the bus,
effectively leaving only itself connected to the handheld computer.
The MCU then sends an <ACK> back to the 2325 at 4800 baud, and
waits for a character to be received via its serial port at 4800 baud. The
character will be an ASCII 1, 2, 3, 4, 5, or 6. The number indicates
which port will be selected. The MCU then echoes the complement of
the byte received back to the 2325 at 4800 baud. The reason the
complement of the byte received was chosen was so that the 2325 would
not mistake the SCUSS MCU to be the modem. The MCU now enables
the port specified by the number received.
The SCUSS firmware allows the 2325 approximately 500 mSec to
receive the ASCII character. If the character is not received in this
window of time or if a bad character is received the SCUSS will switch
back to the default port.