KR-30 Ink-Jet Printer Mechanism Specification Addmaster Corporation

KR-30 Ink-Jet Printer Mechanism Specification Addmaster Corporation
Addmaster Corporation
KR-30 Specification
KR-30 Ink-Jet Printer Mechanism
Specification
Addmaster Corporation
Address:
225 East Huntington Drive
Monrovia, CA 91016
Web:
Phone:
FAX:
www.addmaster.com
(626) 358-2395
(626) 358-2784
Document:
kr30w.doc
Revisions:
- 1.4
- 1.3
- 1.2
- 1.1
Notices:
- Subject to change without notice.
February 7, 2000
July 22, 1999
May 4, 1998
March 24, 1998
______________________________________________________________________________
Page 1
Addmaster Corporation
KR-30 Specification
- (c) Copyright 1998,1999, Addmaster Corporation
Table of Contents
1 OVERVIEW AND GENERAL DESCRIPTION
1.1 General Description
1.2 Configuration Options
3
3
3
2 EQUIPMENT SPECIFICATION
4
3 PRINTER FEATURES AND SPECIFICATIONS
5
4 OPERATOR CONTROLS AND INDICATORS
6
4.1 Operator Controls
4.2 Operator Indicators
4.3 Operator Test & Verification
5 INTERFACING: POWER, COMMUNICATIONS, DIP SWITCHES
6
6
7
8
5.1 Power Connections
5.2 Serial Inteface
5.3 Parallel Interface
5.4 Printer Communications Buffering
5.5 Hardware Interface Handshaking
5.6 DIP Switch Settings
8
8
8
9
9
10
6 DATA STREAM & COMMAND SET
11
Data Stream & Commands: Detail
Resets
Options and Configuration
Printing
Fonts & Pitch
Print Modes
Line Spacing
Graphics & Images
Status Indications
Paper Control Commands
External I/O Commands
Printhead & Service Station Commands
Miscellaneous Commands
13
13
14
15
16
17
18
19
20
21
22
23
24
7 STATUS INDICATIONS
7.1 Send Printer Status, Immediate.
7.2 Send Feature Status.
26
26
28
8 INTERFACING EXAMPLES
31
9 CONTROL CODES AND CHARACTER SET TABLES
32
10 ASSOCIATED FEATURES & OPTIONS
33
10.1 Presenter
10.2 Cutter
10.3 Supplies Usage Counters
10.4 Barcode Reader
10.5 Top-of-Form Sensor
11 DOCUMENT REVISION INFORMATION
33
33
33
33
34
35
______________________________________________________________________________
Page 2
Addmaster Corporation
1
KR-30 Specification
Overview and General Description
This document provides the electrical, mechanical, and interface specifications of the KR-30 InkJet Printer mechanism.
1.1 General Description
The KR-30 Kiosk Printers are a series of Ink-Jet Printers for use in a wide variety of applications,
including: Vending Machines, ATM’s, Information Kiosks, Barcode, and Label Printers. The KR30 has several available options, including presentation modules, cutters, and Barcode readers.
Special features include: large paper roll, quiet printing, presentation module, high resolution and
high speed printing, and a choice of interfaces and power connections.
1.2 Configuration Options
The KR-30 can be factory configured in a variety of ways. The printer will be configured at the
time of manufacture and the is not user-modifiable. This specification addresses each of the
configurable options, although they may not be applicable for every unit.
Items:
Configurations Available
Power:
+12 V DC
+24 V DC
Interface:
Serial, RS232C
Parallel, (Centronics type)
Options:
Receipt Presenter Module
Code-39 Barcode Reader
______________________________________________________________________________
Page 3
Addmaster Corporation
2
KR-30 Specification
Equipment Specification
Power Requirements
Voltage
Power Consumption
Operating
Standby
12 Volts DC (+/- 10%) (Standard)
24 Volts DC (+/- 10%) (Optional)
25 Watts Maximum
5 Watts
Operating Environment
Temperature
Humidity
10 -> 40 C
10 -> 90% RH (non-condensing)
Printer Unit
Type
Ink Cartridge
Ink Detection
Resolution
Speed
Thermal Ink Jet
Hewlett-Packard #51626A
Ink drop usage counter.
300 DPI (vertical & horizontal)
240 CPS
Print Media / Paper
Type
Size
Paper Detection
Paper-Usage
Roll, Plain Paper
3 Inch Wide
6 Inch Diameter (Maximum)
5/8 Inch Core I.D.(Minimum)
Paper-Out. Mechanical arm w/photo sensor.
Top-of-Form Mark. Reflective photo sensor.
In Presenter. Reflective photo sensor.
Electronic counter.
Paper Handling
Presenter
Cutter
Cutter Life
Cutter Monitor
12 Inch Withold Length.
Guillotine-type full cutter.
1 Million cuts.
Cut usage counter.
Communications
Data Buffer
Interfaces
4K (32K RAM standard)
RS-232C (standard)
Parallel (optional)
Physical Characteristics
Dimensions
Weight
Noise Level
6” (W) by 6.5” (H) by 14.8” (D)
6.0 lb. (7.5 lb. Shipping)
48 db
______________________________________________________________________________
Page 4
Addmaster Corporation
3
KR-30 Specification
Printer Features and Specifications
Printing Features:
Printhead & Ink
Print Head
Ink Cartridge Life
Print Contrast Ratio
Hewlett-Packard #51626A
to be determined
Constant throughout life of cartridge.
Paper Media
Media Type
Recommended Stock
Roll Diameter
Roll Core I.D.
Roll Paper
Rittenhouse #5527063
6.0 inches maximum
5/8 inches minimum
Thickness
Width
0.0015 to 0.03 inches
3.00 inches (+0.1/-0.2)
Characters & Fonts
Character Height
Character Set
Fonts:
Font Storage
Font Configurability
Printing Modes:
0.070 to 0.125 inch (font dependent)
Code page 850 (page 437 optional)
5 Printer Fonts in Flash Memory
-Standard
-Large
-Large Bold
-Tiny
-Code-39 (Barcode)
Flash Memory: 64K Bytes for Fonts
Downloadable procedure available.
3 Modes: non-exclusive
-Double-Wide / Single-Wide
-Uni-directional / Bi-directional
-Upside-Down / Rightside-Up
Printer Font Features:
Name
Standard
Large
Large Bold
Tiny
Code-39
Pitch
Char/Inch
16
12
12
20
Capacity
Char/Line
42
32
32
54
16
______________________________________________________________________________
Page 5
Addmaster Corporation
KR-30 Specification
4
Operator Controls and Indicators
4.1
Operator Controls
Item
Usage
Power Switch.
Smart Power Switch.
Informs controller to remove power. Controller first puts printhead into
service station.
Paper-Feed
Button.
Smart Paper-Feed.
Feeds paper forwards:
Short depression: causes unit to automatically load paper into
mechanism.
Long depression: will feed paper while button is depressed. Waits ½
second before beginning to feed.
On-Line Button.
On-Line and Off-Line toggle.
Toggles unit between the two modes. When unit is Off-Line, printing
and communications are inhibited.
When operator toggles unit On-Line, any paper in presenter is cut and
then ejected. This puts the unit in the default position as regards to
paper.
4.2
Operator Indicators
Indicator
State
Meaning
On-Line LED.
ON
FLASH
OFF
Power is ON. Printer is On-Line and ready to
operate.
Printer is Off-Line. Flashing is very low rate.
Power is OFF.
ON
OFF
Error or Out-Of-Paper.
No errors.
Error LED.
______________________________________________________________________________
Page 6
Addmaster Corporation
4.3
KR-30 Specification
Operator Test & Verification
The printer includes a Self-Test Routine. This routine tests the following features:
•
•
printing, feeding, cutting, & ejecting,
firmware revision level.
To perform test, follow these steps:
1.
2.
3.
4.
5.
6.
Turn off power,
Hold down Feed button,
Turn on power,
Release button after printing starts. One sample receipt is printed.
Press On-Line button to print more receipts.
Turn power off when done.
IMPORTANT NOTE:
Printer remains in SELF-TEST routine until power is cycled OFF.
______________________________________________________________________________
Page 7
Addmaster Corporation
KR-30 Specification
5
Interfacing: Power, Communications, DIP Switches
5.1
Power Connections
Contact factory for proper power connections.
5.2
5.3
Serial Inteface
Baud Rates:
Data Bits:
Parity:
9600 or 19200 (DIP sw. selectable)
8, w/1 stop bit
None.
Handshaking:
Printer toggles RTS, which is connected by standard cables to
IBM PC’s CTS signal.
Interface Connector:
DB-9 (female)
RS232C interface levels.
Pin Configurations:
Standard PC compatible 9 pin.
Mates directly to PC.
Cabling:
Addmaster P/N: 9xxxxx
Printer to PC compatible DB9 type serial port
Cable is 9 conductor male to female straight through.
Parallel Interface
Interface Connector:
25 pin, male, ‘DB-25’ type connector.
TTL interface levels.
Pin Configurations:
Standard PC compatible assignments.
Cabling:
Addmaster P/N: 95529
Printer to PC compatible DB25 type parallel port
Cable is 25 conductor male to female straight through.
______________________________________________________________________________
Page 8
Addmaster Corporation
5.4
KR-30 Specification
Printer Communications Buffering
The printer has two type of buffers to which it receives incoming characters:
Receive Buffer:
Stores incoming characters. The printer removes characters from the Receive Buffer when
needed. The characters are then “processed.”
The Receive Buffer, stores 4096 characters.
Print-Line Buffer:
Stores characters (typically text characters) after processing, but before actual printing. This
buffer is used to build up the complete “Print-Line” that will then be printed or validated.
In the standard KR-30, the Print-Line Buffer is approximately 96 characters. Therefore, you
can not print a line with more than 96 characters (including any formatting commands).
5.5
Hardware Interface Handshaking
When the Receive Buffer is full or is otherwise unavailable, then the printer is unable to receive
any characters. If any are sent, then they will be lost. This “un-availability” is signaled to the
computer by “handshaking” lines on the interface.
For the Serial Interface:
The printer toggles its RTS line which is connect through the standard cables to the computer’s
line called “CTS”. If the computer tests CTS high, then data can be sent, and if tested low, then
do not send data. This testing is usually accomplished automatically via the computer’s BIOS
routines.
For DOS based computers, set the “mode” command as follows:
C:> mode com1:9600,n,8,1,p
The “p” parameter sets the appropriate retry on the CTS line when used with printers in general.
CTS goes low (or BUSY goes high on Parallel units) when the Receive Buffer reaches 256
characters from full.
For the Parallel Interface:
The printer signals that it is busy by holding the line called “BUSY” high. No characters may be
sent when BUSY is high.
______________________________________________________________________________
Page 9
Addmaster Corporation
5.6
KR-30 Specification
DIP Switch Settings
DIP Switches set functional features of the KR-30. The Switches are accessible from the bottom
of the unit.
DIP Switch
Setting
Usage
1
ON
OFF
Firmware Download Mode
Printing Mode
2
ON
OFF
Ink-Saver Mode
Standard Ink Mode
3
ON
OFF
19200 Baud
9600 Baud
4
ON
OFF
Auto-LF on CR Enabled
Auto-LF on CR Disabled
Notes:
• Defaults are all OFF.
• For Parallel Units, DIP Switch 3 is not used.
______________________________________________________________________________
Page 10
Addmaster Corporation
6
KR-30 Specification
Data Stream & Command Set
An overview of the supported interface commands is given below.
Type
Sequence
Function
CAN
ESC @
STX
Reset. Hard power-on reset, at receive level.
Initialize. Soft, at process level.
Clear Print-Line Buffer.
ESC > n
SOH
Set print mode options. n is bit-mapped.
Set printer initialized bit. PINIT.
LF
CR
FF
Line Feed. Print and feed.
Carriage Return. Print and no-feed.
Print and feed to NEXT top-of-form mark.
RESETS
OPTIONS
PRINTING
FONTS & PITCH
ESC 2 n
SO
SI
GS
FS
RS
Set print font. n is bit-mapped. See table
Selects Single-Wide pitch (cancels DoubleSelects Double-Wide pitch.
Selects Large Font.
Selects Large Bold Font.
Selects Standard Font.
PRINT MODES
SUB
EM
ESC U
ESC u
Set “Upside-Down Mode” printing.
Reset “Upside-Down Mode” printing.
Select Unidirectional Print.
Select Bidirectional Print.
LINE SPACING
ESC : n
Set line feed amount to n/300 inches.
GRAPHICS & IMAGES
ESC # mn data
ESC $ mn data
Print graphics bit image, 300 DPI.
Print graphics bit image, 150 DPI.
STATUS INDICATIONS
ENQ
ESC ? n
ESC ACK
Send printer status, immediate.
Send feature status. n=feature number
Send ACK after processing.
______________________________________________________________________________
Page 11
Addmaster Corporation
KR-30 Specification
FEATURE CONFIGURATION
ESC = n
Set feature value to n.
PAPER CONTROL
ESC A
ESC B
VT
ESC C
ESC W
ESC 4 n
Full cut of paper roll.
Partial cut of paper roll.
Paper Feed forwards into Presenter
Eject receipt from Presenter.
Paper Feed forwards to top-of-form mark.
Set maximum form feed to n/10 inches.
CONTROLS AND EXTENSIONS
ESC 6 n
ESC BEL
SYN
ESC O
ESC P
ESC V
ESC S
ESC 1 n
ESC Q
Set drawer pulse duration.
Generate specified cash-drawer pulse.
Turn on LED #1.
Move print-head to docking station.
Move print-head to loading zone.
Enter Power Down state.
Engage Feed-Inhibit Latch.
Adjust Right/Left Alignment.
Perform Bar-Code read operation.
A table listing the Hex and Decimal values of each of the codes is given a the following section.
Details are in the next section.
______________________________________________________________________________
Page 12
Addmaster Corporation
KR-30 Specification
Data Stream & Commands: Detail
Detail on each of the supported commands follows in this section. The commands are grouped
according to function.
Resets
CAN
Reset. Hard reset, at receive level.
This command will clear out the Receive Buffer, reset any modes, fonts, and other settings
to the default values, and re-initialize the interface.
This command basically emulates a Power-On Reset. It is acted upon as soon as it is
received, even if the Receive Buffer contains unprocessed data.
This command also resets the Printer Initialized bit (PINIT).
Syntax:
17H
ESC @
Initialize. Soft, at process level.
This command will clear out any partially formed print-line, reset any modes, fonts, and other
settings to the default values.
This command basically emulates a Soft Reset. It is acted upon removed from the Receive
Buffer (after all previous commands received have been processed).
Does not affect Receive Buffer! Does not affect PINIT bit.
Syntax:
STX
1BH 40H
Clear print line buffer and LED.
Soft reset, at process level. This command will clear out any partially formed print-line. Also
will turn off LED #1.
Does not affect Receive Buffer!
Syntax:
02H
______________________________________________________________________________
Page 13
Addmaster Corporation
KR-30 Specification
Options and Configuration
ESC > n
Set print mode options. n is bit mapped.
This command sets or clear various operational options. Each option is set or cleared
depending on parameter n which is interpretted in a bit-mapped manner. Consult the
following table.
Bit
0 (lsb)
Setting
0
1
1-7
Usage
Fonts reset after each printed line
Fonts stay set until changed
Reserved
This option byte is defaulted to 0. It is reset on Power-On, or by the CAN or ESC @
commands.
Syntax:
SOH
1BH 3EH n
Set printer initialized bit PINIT.
Sets PINIT to 1. PINIT is reset to 0 by: Power On or CAN command.
Printer initialized bit PINIT can be read by the ENQ command. PINIT can be used by the
host to determine whether the printer was reset by power failure or operator.
Syntax:
01H
______________________________________________________________________________
Page 14
Addmaster Corporation
KR-30 Specification
Printing
LF
Line Feed. Print and line feed 1 line.
Any data previously received is printed. The paper is feed an amount specified by the
current line spacing value.
Syntax:
CR
0AH
Carriage Return. Print and no line feed.
Any data previously received is printed. The paper is NOT fed.
Syntax:
FF
0DH
Print and eject.
Any data previously received is first printed.
Subsequently, the paper is fed to the NEXT top-of-form mark. If currently at the top-of-form
mark, then unit will feed past it and find the next mark. Therefore, this command acts
somewhat differently than ESC W.
If your paper does not include top-of-form marks, the VT command may be more
appropriate.
Syntax:
0CH
______________________________________________________________________________
Page 15
Addmaster Corporation
KR-30 Specification
Fonts & Pitch
ESC 2 n
Set print mode/fonts.
The Font and Pitch selected for printing is determined by the value of n, which is bit-mapped
as shown in the following table:
n
00H
02H
04H
08H
20H
22H
40H
41H
50H
51H
others
Font Selected
Standard Font
Large Bold Font.
Large Font.
Tiny Font
Bar-Code Font, Start.
Bar-Code Font, End.
Single Wide Mode ON
Double Wide Mode ON
Ink-Saver Mode OFF
Ink-Saver Mode ON
Reserved.
Fonts may be changed in the middle of a line. Fonts will retain their values across lines
depending upon the option setting.
Standard Font is the default.
Syntax:
GS
FS
RS
1BH 32H n
Selects Large Font.
Selects Large Bold Font.
Selects Standard Font.
Produces same results as the ESC 2 n command.
Syntax:
SO
SI
1DH
(GS),
1CH
(FS),
1EH
(RS)
Selects Single Wide pitch
Selects Double Wide pitch.
Resets to Single-Wide at the end of each line as specified by the ESC > command.
Sytax:
0EH
(SO)
0FH
(SI)
______________________________________________________________________________
Page 16
Addmaster Corporation
KR-30 Specification
Print Modes
SUB
EM
Set “Upside Down Mode” printing.
Reset “Upside Down Mode” printing.
These modes stay in effect until reset by this command or the CAN or ESC @ commands.
The default is rightside up printing.
Syntax:
ESC U
ESC u
1AH
(sub)
19H
(em)
Select Unidirectional Print.
Reset Unidirectional Print. (Bidirectional).
Use these commands to select/reset unidirectional printing. Unidirectional printing enhances
the line-to-line registration, however, print speed is reduced by half. Use this mode only if
required.
Default is bi-directional printing.
Syntax:
1BH 55H
(unidirectional)
1BH 75H
(bi-directional)
______________________________________________________________________________
Page 17
Addmaster Corporation
KR-30 Specification
Line Spacing
ESC : n
Set line feed amount to n/300 inches.
Set line spacing to 300/n lines per inch.
The default is n=50 or 6 lines per inch.
Valid range for n is 1 to 255.
Note that the actual spacing will not be precisely as specified because the printer’s
feed increment is different from 1/300 inch.
Syntax:
1BH 3AH n
______________________________________________________________________________
Page 18
Addmaster Corporation
KR-30 Specification
Graphics & Images
ESC # mn data...
Print bit image, 300 DPI.
ESC $ mn data...
Print bit image, 150 DPI.
Used to print a graphics on a bit-mapped basis, at the selected resolution.
Syntax:
1BH 23H mn data
(300 dpi)
1BH 24H mn data
(150 dpi)
m and n specify the number of data bytes, called COUNT, which follow.
m = LSB of COUNT
n = MSB of COUNT
data... represents a sequences of bytes, whose bits specify the bit-map to be printed. The
printer prints a swath 48 dots high across the paper on each pass of the print-head. Each
vertical column of 48 dots is called a slice. These slices are ordered from left to right across
the print field.
The native resolution of the printer is 300 DPI vertical and 300 DPI horizontal, so each slice
is 48/300 inch tall, by 1/300 inch wide. Each dot on the print line may be specified by this
command. However, in order to reduce communications time, the printer supports a
reduced resolution command of 150 DPI. Here the user specifies every second vertical and
horizontal dot, and the printer expands the data 2X in both dimensions.
At 300 DPI, each vertical slice requires 6 bytes of information. At 150 DIP, each slice
vertical slice requires 3 bytes.
Data is sent left-most slice to right-most slice. Within each slice, each byte represents 8 dots.
Bytes are ordered top-most dots to bottom-most dots. Within each byte, bits are ordered topmost dot to bottom-most dot.
data... = slice1 slice2 ... sliceN
slice
= Byte0 Byte1 Byte2
(for 150DPI)
slice
= Byte0 Byte1 Byte2 Byte3 Byte4 Byte5
(for 300DPI)
For ByteN, the dots are specified by the bits as follows:
bit7 (msb)
bit6
etc..
bit0
= top dot,
= 1 down from top dot,
= bottom dot
The line spacing should be 48/300 inches to make graphics match up from line to line. Also
select Unidirectional Print mode to get best line-up results.
______________________________________________________________________________
Page 19
Addmaster Corporation
KR-30 Specification
Status Indications
ENQ
Send Printer Status, immediate.
See following section for more details on this command and its responses.
The printer will respond to this command immediately after receiving it. Command is
operational only for units with the serial interface.
Syntax:
05H
ESC ACK
Send ACK.
An ACK is returned to the host after the sequence is processed. This can be used to
determine when a print job is complete. To do so, send all print data and afterwards send the
ESC ACK sequence. When the ACK is returned, then all data has been printed.
This command is operational only for units with the serial interface.
Syntax:
1BH 06H
ESC ? n
Send Feature Status.
Returns Feature specific information to the host.
n specifies the feature. See table.
n
Feature Status Requested
00H or 02H
10H ... 1FH
20H ... 2FH
30H
32H
40H ... 6FH
Send Mechanism Status
Read Counter #0 (through #15).
Reset Counter #0 (through #15).
Send Model ID String
Send Firmware Version Number String
Read Configuration Byte #0 (through #47).
See Configuration Byte Table.
Reserved.
others
See following section for more details on this command and its responses.
The printer will respond to this command after the sequence is processed from the receive
buffer. This command is operational only for units with the serial interface.
Syntax:
1BH 3FH n
______________________________________________________________________________
Page 20
Addmaster Corporation
KR-30 Specification
Paper Control Commands
ESC A
ESC B
Full cut, receipt.
Partial cut, receipt.
Cut the roll paper, using specified cut. Requires cutter option. Otherwise no action is
performed.
If the unit has a Presenter module, then a Full-Cut MUST be performed before the paper can
be ejected by the Presenter.
Syntax:
VT
1BH 41H
(full cut)
1BH 42H
(partial cut)
Feed Paper Forwards into Presenter.
Feeds last printline past cut position and into Presenter. After printing a receipt, use VT
command to feed the last line through cutter. Then cut the paper and eject the receipt.
Alternately, you can insert approximately 12 lines of text at 6 LPI, to perform almost the
same function.
Syntax:
ESC C
0BH
Presenter eject receipt.
If the unit has a Presenter, then the previously cut document is fed out of the presenter. The
user should insure that no printing or feeding operations occur between cutting and ejecting
the receipt.
Syntax:
ESC W
1BH 43H
Feed Paper Forwards to Top-of-Form mark.
Paper will be fed forward until any top-of-form mark on the paper is sensed. The feed
mechanism will then seek the mid-point of the mark.
The maximum permitted move is set by the ESC 4 command. If the paper is already prepositioned at the mark, no movement takes place.
To determine if this command executes successfully, send ESC W ESC ACK. When the
ACK is returned, send ENQ and determine whether the mark is sensed, and if not, the
command was not successful.
Syntax:
1BH 57H
______________________________________________________________________________
Page 21
Addmaster Corporation
ESC 4 n
KR-30 Specification
Set maximum paper feed to n/10 inches.
Sets the maximum paper movement that will be allowed by any of the following commands:
FF or
ESC W
The above commands feed to optical paper marks. If these marks should be absent or
obscured, this setting will prevent the entire paper from being fed in error.
The default value is n=65 or 6.5 inches. It is defaulted on Power-On, or by the CAN or ESC
@ commands.
Syntax:
1BH 34H n
External I/O Commands
ESC 6 n
Set drawer pulse duration.
Sets pulse width for any subsequent drawer pulse command. Pulse width is set to n x 2ms.
This pulse width setting gives the pulse ON (energized) time. The OFF (de-energized) time
is fixed at 100ms.
Syntax:
ESC BEL
1BH 36H n
Generate specified cash drawer pulse.
Pulse is activated on cash-drawer connector. Pulse voltage depends upon model. Contact
factory.
Syntax:
SYN
1BH 07H
Turn LED #1 ON.
The LED will remain ON until turned OFF by the STX command. The Form LED may toggle
during printing. This may change in the future.
Syntax:
16H
______________________________________________________________________________
Page 22
Addmaster Corporation
KR-30 Specification
Printhead & Service Station Commands
ESC O
Move print head to docking station.
Print-head will be moved to docking station. Perform this command before killing power to
unit to insure Ink-Jet cartridge is properly docked.
Syntax:
ESC P
1BH 4FH
Move print head to loading zone.
Print-head will be moved to an clear area with easy access to enable the user to quickly
change the Ink-Jet cartridge.
Print-head will be returned to its docking station after: (1) the next command is sent, or (2) a
time-out period.
The host should return the head as soon as possible
The printer becomes NOT-READY (see ENQ command) while head is positioned in loading
zone.
Syntax:
1BH 50H
______________________________________________________________________________
Page 23
Addmaster Corporation
KR-30 Specification
Miscellaneous Commands
ESC V
Enter Power down/Sleep Mode.
Print-head is docked and capped. All LED’s (except power) are turned off, buttons and
interface commands are ignored.
The printer stays in sleeps mode until: (1) power is turned off, or (2) the CAN command is
received. The CAN command will emulate a hardware Power-On reset.
Syntax:
ESC S
1BH 56H
Engage Feed Inhibit Latch.
Feed-inhibit latch is engaged. Latch will remain engaged until any feed command is sent to
the printer. After which, the latch will disengage, and remain so, until another ESC S
command is sent.
Syntax:
ESC 1 n
1BH 53H
Adjust Right/Left Alignment.
The Right/Left Alignment adjustment value is changed to n dots.
This DOES NOT affect the value store in Non-Volatile memory, NOR the value reported
back to the host via the “ESC ?n” command.
The setting remains valid until any reset or power on/off sequence.
This value is used for purposes of 1) special effects, 2) testing out various values before
making a final selection, 3) future uses.
Syntax:
1BH 31H n
______________________________________________________________________________
Page 24
Addmaster Corporation
ESC Q
KR-30 Specification
Perform Bar Code Read.
The carriage will be swept across the paper with the Bar-Code reader enabled. After the
sweep, the results will be returned to the host in this format:
STX mn R data ETX
STX
m
n
R
data
ETX
02H
LS Byte of COUNT
MS Byte of COUNT
Return Code
Decoded Bar-Code Information
03H
COUNT
R
Number of bytes in R, data and ETX
Error Code
Error Code
30h
31h
32h
33h
Meaning
Good Read. No errors.
Error: Too few bars found.
Error: Too many bars found.
Error: Bar-Code read error.
Syntax & Example: Read Bar-Code
Send:
ESC Q
Syntax:
1BH 51H
Receive:
02h 09h 00h 30h 2Ah 31h 32h 33h 34h 35h 2Ah 03h
Decoded:
*12345*
______________________________________________________________________________
Page 25
Addmaster Corporation
7
KR-30 Specification
Status Indications
There are three commands used to retrieve information from the printer:
Command
Usage
ENQ
ESC ? n
ESC ACK
Send printer status, immediate.
Send feature status.
Send ACK after processing.
This section gives more detail on the first two of these commands. The ESC ACK sequence is
trivial and needs no explanation. See the previous section for any need information.
7.1 Send Printer Status, Immediate.
Host Sends:
ENQ
Printer Responce:
Short Response - 1 byte, or
Long Response - 4 bytes.
Printer Responds:
Immediate response.
Usage Details:
The printer responds to this command immediately after receiving it. The printer will respond
regardless of its current state of operation.
The response to the ENQ command will be either 1 or 4 bytes in length. These are called Short
and Long Responses, respectively. The user specifies the type of response in the following
manner: At power-on, DIP Switch #2 is checked and the response set as:
DIP#2 OFF
DIP#2 ON
- Short Response
- Long Response
The host can overwrite this setting by using the ESC > n command.
______________________________________________________________________________
Page 26
Addmaster Corporation
KR-30 Specification
Short Response Format:
A single byte returned to Host which has the following bit-mapped definition:
(msb)
Bit
7
6
5
4
3
2
1
0
Name
PWRDWN
BEMP
TEMP
PINIT
ERR
VMP
PRDY
MARK
Bit
Meaning
Power Down / Sleep
Receive Buffer Empty
Transmit Buffer Empty
Printer Initialized
Error
Valid Operation Pending
Printer Ready
Top-of-Form Mark Sensor
1 (set)
Power Down
Empty
Empty
Initialized
Error
Op. Pending
Ready
Mark Sensed
0 (clear)
Active
Not Empty
Not Empty
Not Initialized
No errors
No pending op.
Not Ready
Not sensed.
Usage & Meaning
BEMP
=0
Used to determine if any data is waiting to be printed.
if the Receive Buffer is empty and has processed all received data
(processed data may not yet have been printed),
if Receive Buffer has any unprocessed data.
=1
=0
Used by the host to determine whether the printer was reset by power
failure.
if printer has received SOH command
if printer has been: (1) powered off/on, (2) reset via the CAN command.
=1
PINIT
VMP
=1
=0
PRDY
=1
=0
Used to determine if machine is process of performing a mechanical task
that may take an indeterminate amount of time
if a valid message has been received and machine is performing an action
or printing a line.
otherwise.
Used to determine if printer can print
if printer is ready and no error conditions are sensed,
if printer not ready because: (1) Paper-Out, (2) printhead in loading zone,
(3) printhead jam.
Long Response Format:
Four bytes are returned to the host as follows:
Byte
Number
1
2
3
4
Contains
00H
ENQ Short Response (see above)
Mechanism Status, byte #1
Mechanism Status, byte #2
______________________________________________________________________________
Page 27
Addmaster Corporation
KR-30 Specification
7.2 Send Feature Status.
Host Sends:
ESC ? n
Printer Responce:
1 Byte, or
2 Bytes, or
Multi-byte Sequence,.
Printer Responds:
After processing command out from Receive Buffer
Usage Details:
By specifying n, the host can obtain information on the following features:
n
Feature Status Requested
00H or 02H
10H ... 1FH
20H ... 2FH
30H
32H
40H ... 6FH
Send Mechanism Status
Read Counter #0 (through #15).
Reset Counter #0 (through #15).
Send Model ID String
Send Firmware Version Number String
Read Configuration Byte #0 (through #47).
See Configuration Byte Table.
Reserved.
others
The number of bytes returned depends upon n in the following manner:
Value of n
00H <= n < 30H
30H <= n < 40H
40H <= n
Bytes returned.
2
Multi-byte Sequence.
1
Two byte values are returned as MSB first and LSB last. Multi-byte Sequences are returned in
this form:
STX mn data ETX
STX
m
n
data
ETX
02H
LS Byte of COUNT
MS Byte of COUNT
data returned
03H
COUNT
Number of bytes in data and ETX
More information is provided on each available feature.
______________________________________________________________________________
Page 28
Addmaster Corporation
KR-30 Specification
Feature: 00H / 02H = Mechanism Status.
Provides bit-mapped information on the current state of the printer mechanism. Two bytes of
information are returned, Byte #1 first.
Byte #1: Print-head and Ink-Cartridge
(msb)
Bit
7
6
5
4
3
2
1
0
Meaning
0 - reserved
0 - reserved
0 - reserved
Print-head jam
Print-head docked
Print-head at loading station
Ink-Cartridge empty
Ink-Cartridge removed
1 (set)
jammed
docked
at loading sta.
empty
removed
0 (clear)
always 0
always 0
always 0
not jammed
not docked
not loading sta.
not empty
installed
Byte #2: Paper and Misc. Sensors
(msb)
Bit
7
6
5
4
3
2
1
0
Meaning
0 - reserved
Paper loaded
Paper Top-of-Form Mark
Paper in Presenter
Paper feed fault
0 - reserved
Door #2 Sensor
Door #1 Sensor
1 (set)
loaded
sensed
in presenter
fault
contact open
contact open
0 (clear)
always 0
paper out
not sensed
not in presenter
OK
always 0
contact closed
contact closed
______________________________________________________________________________
Page 29
Addmaster Corporation
KR-30 Specification
Features: 10H - 1FH = Read Counters.
Features: 20H - 2FH = Reset Counters.
These features are used to track supplies usage.
n
18H
19H
1AH
Counter
Cutter Usage
Ink-Drops
Paper Usage
Units
cuts / 256
Number of drops / 256*256
Length of feed (inches)
28H
29H
2AH
Reset Cutter Counter
Reset Ink-Drop Counter
Reset Paper Usage
The Counters are reset by accessing feature numbers 20H through 2FH. No values are returned.
Features: 30H - 32H = Information Strings
These features are used to identify the printer to the host.
n
30H
32H
Item
Model ID
Firmware
Returns
Model ID String
Firmware Number and Revision
Features: 40H - 6FH = Configuration Bytes
These features are used to configure various options. Most of the options are for factory use.
n
4EH
Item
R2L Alignment
Returns
Current adjustment in dots. Signed value.
______________________________________________________________________________
Page 30
Addmaster Corporation
8
KR-30 Specification
Interfacing Examples
To illustrate the various modes, this section presents examples. The following type-styles are
used:
Text
ESC
19H
spaces
-Notes
- Text characters to be printed
- Control characters in symbol form, consult table for hex values
- Control characters is hex form. Only 1 byte is send.
- Ignore spacing. Included for easy of reading only.
- Notes
Example #1: Print 1 line
This prints 1 line. CR
This prints 1 line and feeds 1 line. CR LF
Example #2: Barcode Printing. Code-39
ESC 2 20h *12345678* ESC 2 2h CR L F
Note that the “*” start/stop character must be included, if the printed code is to be properly
decoded.
Example #3: Print, Cut, Eject Receipt.
Receipt
Receipt
Receipt
Receipt
VT
ESC A
ESC C
text,
text,
text,
text,
line
line
line
line
#1.
#2.
#3.
#4.
CR
CR
CR
CR
LF
LF
LF
LF
- print & feed
- print & feed
- print & feed
- print & feed
- feed into present & past cutter
- full cut
- eject receipt
______________________________________________________________________________
Page 31
Addmaster Corporation
9
KR-30 Specification
Control Codes and Character Set Tables
The following table lists potential control codes and their Hex values.
Control Code Table: 00H - 1FH
Code
Symbol
Ctrl
Char
Hex
Value
Code
Symbol
Ctrl
Char
Hex
Value
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
HT
LF
VT
FF
CR
SO
SI
^@
^A
^B
^C
^D
^E
^F
^G
^H
^I
^J
^K
^L
^M
^N
^O
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
US
^P
^Q
^R
^S
^T
^U
^V
^W
^X
^Y
^Z
^[
^\
^]
^^
^_
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
ASCII Character Set: 20H - 7FH
20
30
40
50
60
70
0
sp
0
@
P
`
p
1
!
1
A
Q
a
q
2
"
2
B
R
b
r
3
#
3
C
S
c
s
4
$
4
D
T
d
t
5
%
5
E
U
e
u
6
&
6
F
V
f
v
7
'
7
G
W
g
w
8
(
8
H
X
h
x
9
)
9
I
Y
i
y
A
*
:
J
Z
j
z
B
+
;
K
[
k
{
C
,
<
L
\
l
|
D
=
M
]
m
}
E
.
>
N
^
n
~
F
/
?
O
_
o
•
______________________________________________________________________________
Page 32
Addmaster Corporation
10
Associated Features & Options
10.1
Presenter
KR-30 Specification
The Presenter Module holds printed paper inside the printer until the print job is complete. After
which, the paper must be fully cut with the ESC A command. Then the ESC C command will
eject the receipt from the Presenter.
The Presenter holds at most 12 inches of receipt.
10.2
Cutter
The Cutter Module can perform either a Full or a Partial Cut. These are initiated via the ESC A
or ESC B commands.
If the printer also includes a Presenter, then only a Full cut is available.
The cutter has a life of 1 million cuts. The host can check the current cutter accumulated usage
by using the ESC ?n command. If cutter usage approaches its expected life, it may be replaced
on a preventative basis. If replaced, the host should clear the usage counter.
10.3
Supplies Usage Counters
The printer uses counters to account for the supplies in use. Ink dots and paper use are tracked
and current status is available via ESC ?n command.
When the usage or ink or paper approaches its expected life, it may be replaced on a
preventative basis. If replaced, the host should clear the usage counter.
10.4
Barcode Reader
The Barcode reader is an option which can be installed on the print-head carriage. The reader
can read Code-39 symbology. The symbols should be a minimum of 1/6 inch tall.
______________________________________________________________________________
Page 33
Addmaster Corporation
10.5
KR-30 Specification
Top-of-Form Sensor
The printer has an optical sensor which looks at the paper roll and can determine the existence
of a pre-printed black mark. This mark is typically used to index the paper to a known position
within the mechanism. This can be used to align pre-printed information of the paper roll.
______________________________________________________________________________
Page 34
Addmaster Corporation
11
KR-30 Specification
Document Revision Information
Revision
Date
Changes
1.1
03-24-98
Initial release.
1.2
05-04-98
Correct minor typographical errors.
1.3
07-22-99
Changed format of document.
Added graphics commands.
Typeset for PDF format.
1.4
02-07-00
Corrected errors in ESC ?n command concerning
counter ID numbers.
______________________________________________________________________________
Page 35
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement