Fenix Imvico TK23 Series Operation Manual

TK23 THERMAL PRINTER SERIES
Operation Manual - Version 1.0
February 2006
FENIX IMVICO
TK23 OPERATION MANUAL
2/81
Revision list for the TK23 thermal printer series operation manual.
V 1.0 Date: 15-02-2006
Page Type of revision Before change After change
FENIX IMVICO
TK23 OPERATION MANUAL
3/81
I N D E X
IMPORTANT NOTES ON TK23 HANDLING ....................................................... 6
0- INTRODUCTION............................................................................................. 8
1- GENERAL SPECIFICATIONS......................................................................... 9
1.1-PRINTING SPECIFICATIONS............................................................. 9
1.2- CHARACTER SPECIFICATIONS....................................................... 9
1.3- ELECTRICAL CHARACTERISTICS................................................... 10
1.4- PAPER REQUIREMENTS.................................................................. 10
1.5- OVERALL DIMENSIONS.................................................................... 11
1.6- ENVIRONMENTAL CONDITIONS...................................................... 11
2 – INSTALLATION.............................................................................................. 12
2.1- FIXING THE TK23 PRINTER .........................................................…. 12
2.1.1- TK23 INSTALLATION............................................................ 12
2.1- TK23 INSTALLATION CONSIDERATIONS....................................…. 13
2.1.1- EXTERNAL CHUTE SYSTEM.............................................. 14
2.1.2- PAPER GUIDE SYSTEM....................................................... 15
2.2- TK23 USER INTERFACE ELEMENTS............................................... 16
2.2.1- POWER SUPPLY CONNECTOR.......................................... 17
2.2.1.1- Optional Power supply connector ............................ 17
2.2.2- SERIAL RS-232 CONNECTOR... .......................................... 19
2.2.2.1- Specifications .......................................................... 19
2.2.2.2- Serial interface connection example........................ 20
2.2.3- CENTRONICS PARALLEL INTERFACE............................... 21
2.2.3.1- Specification............................................................. 21
2.2.3.2 Timing diagram of data printer reception .................. 22
2.2.3.3- Parallel interface connector pin assignment............ 23
3 – BASIC OPERATIONS.................................................................................... 25
3.1- LOADING PAPER.............................................................................. 25
3.1.1- AUTOMATIC PAPER LOAD................................................. 26
3.1.2- MANUAL PAPER LOAD....................................................... 27
3.2- BUTTONS FUNCTIONS.................................................................... 28
3.3- LED INDICATORS............................................................................. 28
3.4- SPECIAL MODES.............................................................................. 29
3.4.1- SELF-TEST MODE.............................................................. 29
3.4.2- PROGRAMMING MODE...................................................... 30
3.4.3- HEXADECIMAL DUMP MODE............................................. 33
3.5- ERROR PROCESSING...................................................................... 34
3.5.1- NO PAPER / HEAD-UP ERROR........................................... 34
3.5.2- PAPER-NEAR-END ERROR................................................ 35
3.5.3- THERMAL HEAD TEMPERATURE ERROR........................ 35
3.5.4- AUTOCUTTER ERROR........................................................ 35
3.5.5- THERMAL HEAD VOLTAGE (Vp) ERROR........................... 36
3.5.6- HARDWARE ERROR........................................................... 36
3.5.7- OPTICAL MARK ERROR..................................................... 36
3.5.9- SERIAL PORT ERROR DETECTION FLOW CHART.......... 37
3.6- OPTICAL MARK................................................................................. 39
3.6.1- EXAMPLE ON USING THE OPTICAL MARK....................... 40
FENIX IMVICO
TK23 OPERATION MANUAL
4/81
4 – CONTROL COMMANDS............................................................................... 42
4.1- COMMAND NOTATION..................................................................... 42
4.2- EXPLANATION OF TERMS............................................................... 42
4.3- CONTROL COMMANDS DESCRIPTION.......................................... 43
APPENDIX A – CHARACTERS x LINE................................................................ 64
APPENDIX B – CHARACTER CODE TABLES.....................................................65
APPENDIX C – RECOVERY FROM AUTOCUTTER ERROR............................. 67
APPENDIX D – EXTERNAL APPEARANCE........................................................ 68
APPENDIX E – SPECIFICATIONS...................................................................... 70
APPENDIX F – HOW TO ORDER....................................................................... 71
APPENDIX G – FREQUENTLY ASKED QUESTIONS......................................... 73
APPENDIX H – CODE128 BAR CODE................................................................ 74
APPENDIX I – TESTING SOFTWARE................................................................. 78
FENIX IMVICO
TK23 OPERATION MANUAL
5/81
FIGURES AND TABLES
Fig. a.
Opening the paper cutter........................................................................... 7
Fig. b.
Head cleaning procedure.......................................................................... 7
Fig. 1.1-
Operating Temperature and Humidity Range........................................ 11
Fig. 2.1-
Fixing the TK23 ..................................................................................... 12
Fig. 2.2-
TK23 elements ...................................................................................... 13
Fig. 2.3-
External chute system............................................................................ 14
Fig. 2.4-
Paper guide system............................................................................... 15
Fig. 2.5-
TK23 connectors & elements location……............................................. 16
Fig. 2.6-
Power supply connector as seen from outside the TK23....................... 17
Fig. 2.7-
Serial interface connector as seen from outside of TK23...…................ 19
Fig. 2.8-
CENTRONICS-2 parallel cable ............................................................. 21
Fig. 2.9-
Timming specifications of Centronics parallel interface......................... 22
Fig. 2.10-
CN6 communications connector from outside of TK23........................ 24
Fig. 3.0-
Place the paper roll ................................................................................ 26
Fig. 3.1-
Automatic paper load............................................................................. 27
Fig. 3.2-
(1) Manual paper load............................................................................ 28
Fig. 3.3-
(2) Manual paper load............................................................................ 28
Fig. 3.4-
SELF-TEST MODE sample................................................................... 31
Fig. 3.5-
Programming buttons............................................................................ 32
Fig. 3.6-
PROGRAMMING MODE sample........................................................... 33
Fig. 3.7-
HEXADECIMAL DUMP MODE sample................................................. 34
Fig. 3.9-
Serial port error detection flow chart...................................................... 37
Fig. 3.11-
Optical mark characteristics................................................................. 38
Fig. 3.12-
Optical Mark recommended use sequence......................................... 40
Fig. 4.1-
Jumper for cutter mode selection………………………………………….. 49
Fig. 4.2-
Code128 code example......................................................................... 61
Table 2.1-
Serial port pin-out................................................................................ 19
Table 2.2-
Serial interface connection example................................................... 20
Table 2.3-
Paralel Interface connector pin assignment........................................ 23
Table 3.1-
Errors explanation.............................................................................. 33
Table 4.1-
Command List..................................................................................... 42
FENIX IMVICO
TK23 OPERATION MANUAL
6/81
IMPORTANT NOTES ON TK23 HANDLING
In order to guarantee a long life of the printer, it is necessary to keep some precautions on the TK23 handling. Please read carefully next lines to make a good use of the printer.
SAFETY PRECAUTIONS
Before using the printer, please carefully read point
2- INSTALLATION
. BEWARE not to invert power supply polarity. This may irremediably damage the printer. Use power supply voltage within specified range. Over-voltage may irremediably damage the printer. Voltage under the specified range may cause incorrect operations. Keep TK23 away from water or any other liquid. Do not use in locations subject to high humidity or dust levels. DO NOT put any objects into the printer. It could cause severe damage like short­circuits, broken thermal head or general printer failure. DO NOT blow the TK23.
NEVER modify the TK23.
DO NOT try to repair the TK23 by yourself. If some failure is detected contact with your usual dealer technical service.
Since the printer contains permanent magnets (in the motor) as well as electromagnets, it should not be used in areas containing excessive dirt, dust and metallic particles.
Never print without paper installed or the head away from the platen, because the life of the thermal head may be shortened.
Never pull the paper out (forward or backward) with the head down against the platen.
Since the head heating elements and the driver IC are very delicate, avoid touching them with any metal objects, such as tweezers or screwdrivers.
Since the head area and the motor surface reaches high temperatures right after printing, never touch it with your bare hands; wait about 15 min.
For it to cool.
Design the product so that when handled the user can not touch the edge of the printer unit and/or the cut surface of the metal parts used in it, because the edge of the printer unit and the cut surfaces of the metal parts are sharp. Or include any necessary precautions regarding this matter.
Never touch the surface of the head heating elements and the driver IC, as dirt may stick to them, affecting the head heating elements or causing damage by static electricity.
When printing a black pattern at a high print rate in a low temperature or high humidity environment, the vapour from the paper during printing may cause condensation to form on the printer unit or may soil the paper. If water condenses on the printer unit, keep the thermal head away from water drops as it may corrode the thermal head, and turn printer unit power off unit it dries.
FENIX IMVICO
TK23 OPERATION MANUAL
7/81
HEAD CLEANING PROCEDURE AND PRECAUTIONS
.
Do not clean the thermal head immediately after printing because thermal head and its periphery are hot during and after printing. Do not use sandpaper, cutter knives etc. when cleaning. They will damage the heat elements.
a) Open the paper cutter expanding the raised edges slightly as shown in the figure
Figure a. Opening the paper cutter
b)
Lift the head up/down lever until clicking. The thermal head is held in the up position.
Figure b. Head cleaning procedure
Clean the head elements using alcohol (ethanol, methanol, or IPA) and a cotton swab. Wait until the alcohol dries and close the platen block. Fenix recommends cleaning the thermal head periodically (advisable every 3 months) to maintain receipt print quality.
RECOMMENDATION Before connecting any input interface, verify the correct operation of the TK23 printer with self-test feature.
Head-up Lever Thermal Head
Paper cutter
Thermal Printer Mechanism
FENIX IMVICO
TK23 OPERATION MANUAL
8/81
0 – INTRODUCTION
The TK23 is a very high-performance embedded thermal line interface. Its compact and functional design covers many professional applications: It includes cyrillic characters, two char fonts that can be bold, graphics and bar code capabilities.
The TK23 is intended to be integrated into the user’s final system. Its structure allows an easy access both to the interface or the critical parts of the mechanism. So, special care must be taken at choosing the TK23 location, access and protection from external damage. It can be used in industrial, professional or laboratory environments.
Main features of the TK23 printer are:
Simple installation and easy maintenance structure.
Compact design (flat design).
Two paper widths available: 60mm or 80 mm depending on the SEIKO LTP2000
series printing mechanism used.
High printing speed up to 90mm/s (TK23-60) or 75mm/s (TK23-80).
Line printing method: Printing is performed every time a text line is filled.
Paper roll outer diameter: 110mm (Max.)
High reliability: 15 million lines.
Single 24V DC power supply.
No-paper, paper-near-end and head up sensors.
High resolution printing (8 dots/mm).
Centronics parallel or serial RS232C.
Scalable font (independent scale in X / Y-axis), up to 64 times.
Programmable character and line space.
Printing adjustments (speed, density and consumption).
Graphic bitmap printing capabilities.
Several format Bar Code: Code39, EAN13, ITF and Code128.
Up to 32 kbytes receiver buffer.
Two different font sizes (Font A = 12x24dots. Font B = 8x16dots).
Two Character Code Tables: PC437 USA, Standard Europe and PC866 Cyrillic #2
Inverse mode and emphasited/bold mode text printing capabilities.
Control code based on ESC / POS commands (*).
Hexadecimal mode for easy software debugging.
Auto-cutter, partial-cut or full cut selectable.
Automatic paper load.
Self test, hexadecimal mode and configuration mode features.
Windows 95, 98, XP & 2000 drivers and demostration program.
This manual is a guide of the printer operations and is addressed to the application’s designer. In following chapters there is a detailed description of hardware and software configuration to take advantage of the features of the TK23 printer.
(*) ESC/POS are registered trademarks of Seiko SEIKO Corporation.
FENIX IMVICO
TK23 OPERATION MANUAL
9/81
1 – GENERAL SPECIFICATIONS
1.1-PRINTING SPECIFICATIONS
1) Printing method: Thermal line printing.
2) Print Head:
Total number of dots:
Printing mechanism model type Number of dots LTP2242 (59.5mm paper-width model) 448 dots (= 56mm) LTP2342 (79.5mm paper-width model) 576 dots (= 72mm)
Printing width:
Printing mechanism model type Maximum printing width LTP2242 (59.5mm paper-width model) 56mm (448-dot positions) LTP2342 (79.5mm paper-width model) 72mm (576-dot positions)
3) Dot density: 203 dpi x 203 dpi (dpi: dots per inch (25.4mm)). (8 dots/mm)
4) Printing speed: LTP2242 (60mm): 90mm/s max.
LTP2342 (80mm): 75mm/s max. Automatic Paper Load: 20mm/s aprox. Printing speed may be slower, depending on the data transmission speed and combination of control commands, environmental conditions, or selection of the print density.
5) Paper feeding: Feeding method: unidirectional with friction feed.
Feeding pitch: 0,125mm (0,0049”) Feeding speed: 90mm/s maximum
1.2- CHARACTER SPECIFICATIONS
1) Two character code tables: PC437 (USA, Europe Standard) and PC866
(Cyrillic #2). PC437 is selected by default (refer to point
APPENDIX B –
CHARACTER CODE TABLES
).
2) Character structure: - Font A: 12 x 24 dots (1,5 x 3 mm).
- Font B: 8 x 16 dots (1 x 2 mm).
- Font A is selected as the default.
- Vertical&horizontal char. scalable (x8 max.), bold (emphasited) mode and inverse print capabilities by using ESC/POS commands (refer to point 4 – CONTROL COMMANDS).
FENIX IMVICO
TK23 OPERATION MANUAL
10/81
1.3- ELECTRICAL CHARACTERISTICS
1) Supply voltage: +24V DC ± 2.4V (± 10%)
2) Current consumption (at 24V):
Print Ratio
60mm paper width model
80mm paper width model
Mean current
5.3 A 7.0 A
100%
Peak current
6.4 A 8.5 A
Mean current
2.7 A 3.6 A
50%
Peak current
3.3 A 4.3 A
Mean current
1.4 A 1.8 A
25%
Peak current
1.7 A 2.2 A
1.4- PAPER REQUIREMENTS
1) Paper type: Single-ply thermal paper roll
2) Specified thermal paper: Original paper No. P350 KSP Original paper No. TF50KS-E NIPPON PAPER
INDUSTRIES CO., LTD. Original paper No. AF50KS-E JUJO THERMAL Original paper No. PD160R OJI Original paper No. TF11KS-ET NIPPON PAPER
INDUSTRIES CO., LTD. A different paper type may give a different print quality.
The paper thickness must be 56 – 150 µm.
1) Size: Paper width:
TK23-80 printer TK23-60 printer
79.5 +/- 0.5mm 59.5 +/- 0.5mm
Paper roll outer diameter: 110mm (Max.)
FENIX IMVICO
TK23 OPERATION MANUAL
11/81
1.5- OVERALL DIMENSIONS
1) External dimensions
(Refer to APPENDIX D – EXTERNAL APPEARANCE)
.
1.6- ENVIRONMENTAL CONDITIONS
1) Operating Temperature: 0 to 50ºC (32 to 131ºF)
If the printer is installed in outdoor applications in which the ambient temperature is low, we suggest to use a blower fan heater to raise the operating temperature over 0ºC.
2) Operating humidity: 10 to 80% (34ºC (93.2ºF) at 80%, non-condensing)
Fig. 1.1-
Operating Temperature and Humidity Range
FENIX IMVICO
TK23 OPERATION MANUAL
12/81
2 – INSTALLATION
2.1- FIXING THE TK23 PRINTER
The TK23 is an industrial printer designed to be fixed in a bigger case or structure, or another kind of appropiate chassis. There are two models for the TK23 printer with 4 different fixing points each.
2.1.1 - TK23 INSTALLATION
Fix the TK23 to the chassis by screwing, putting 4 metric screws (M4 / L10 mm)
through the holes marked with A
and
B in
fig 2.1 - Fixing the TK23.
Place all the screws in the same direction, from up to down.
It is strongly recommended that the fixing holes of your chassis have an oval shape
so as the TK23 can move backward and forward for an easy manipulation.
The paper-near-end sensor included in TK23 detects when remaining paper is about
17m long (65µm paper thickness).
A B
Fig. 2.1
- Fixing the TK23.
FENIX IMVICO
TK23 OPERATION MANUAL
13/81
2.2- TK23 INSTALLATION CONSIDERATIONS
There are some general considerations to take into account when installing the printer with the TK23 printer. A wrong installation can cause many serious problems like paper jam, difficult maintenance of the printer, difficulty in changing the paper roll, etc. Moreover, a correct installation can prevent the printer from being damaged by external agents, such as weather or vandalism.
The basic points that a correct installation must follow are:
Smooth exit of the ticket. Prevent problems with static electricity due to the nature of
the used materials.
Allow enough space and accessibility to reach the maintenance procedure points in
case it is needed. These points are:
Thermal mechanism & Autocutter.
Paper roll.
Interface.
Connectors.
Led and Push-buttons.
Fig 2.2
- TK23 elements
Paper Roll
Thermal mechanism & autocutter
connectors
IF2200 interface
Led and buttons
FENIX IMVICO
TK23 OPERATION MANUAL
14/81
For these reasons, FENIX suggests the following systems as solutions to a correct installation:
2.2.1- EXTERNAL CHUTE SYSTEM
The idea of this system is to internally print and cut the ticket inside the machine, and then make it fall into a receptacle where the user can have external access. Therefore, there must exist some distance between the printer and the front side of the user’s chassis in order to build a useful chute for the ticket, and to be able to open the printer thermal head. Two points must be assured to make this system work right:
The construction of the receptacle must avoid the user to reach any internal
parts of the machine.
The way of the ticket from the printer outlet to the receptacle must be smooth,
clean and free of obstacles to allow the ticket to actually fall into it and avoid paper jams or tickets that do not fall. Depending on the construction materials, care must be taken with static electricity; otherwise tickets may get stuck inside the machine and never reach the receptacle.
Next figure shows a scheme of this system:
Fig. 2.3 -
External chute system.
Frontal side of user’s chassis
Ticket receptacle
Ticket
Make sure this distance allows the opening of the printer thermal head (min: 20mm)
FENIX IMVICO
TK23 OPERATION MANUAL
15/81
2.2.2- PAPER GUIDE SYSTEM
When using this system, the printer must be set quite near the front side of the user’s chassis. The paper guide is to avoid external handling of the printer outlet. Two points must be assured to make this system work right:
Special care in the design of the part which goes from the printer outlet to the
paper guide (Paper jams can a occur due to an inappropriate design). Depending on the construction materials, care must be taken with static electricity; otherwise tickets may get stuck in the paper guide and never reach the receptacle.
As the printer is placed very near the user’s chassis, some system must be
implemented in order to move the printer when accessing the printing head (i.e. giving the fixing holes of the chassis an oval shape to allow the printer moving forward and backward). Otherwise there will be no access to the printing head.
Next figure shows an scheme of this system:
Fig. 2.4-
Paper guide system.
The distance between the mechanism and the frontal side of the user’s chassis may not allow the opening of the printer thermal head. Take special care about this point when designing your system.
Ticket
Paper guide
Frontal side of user´s chassis
Head-up lever
FENIX IMVICO
TK23 OPERATION MANUAL
16/81
2.3- TK23 USER INTERFACE ELEMENTS
In the TK23, user can find the next connectors:
CN1: Power supply connector.
CN6: Serial RS-232 communications connector and
Parallel CENTRONICS communications connector.
Also, there are other interface elements that allows easy configuration of printer:
Paper near-end sensor
Paper Feed tact switch button
Programming tact switch button
Led indicator of Power ON
Fig. 2.5-
TK23 connectors & elements location.
Power Supply
serial RS232 and CENTRONICS communications
Programming button Paper Feed button
Paper near-end sensor
Power ON indicator
FENIX IMVICO
TK23 OPERATION MANUAL
17/81
GND
24V DC
nc
2.3.1- POWER SUPPLY CONNE CTOR
Attach power supply cable to the 3-pin micro connector. Verify power supply voltage before making the connection. The connector is a female 3-pin HOSIDEN type, which have the following pin-out:
Fig.2.6-
Power supply connector as seen from outside the TK23.
Use a 3-pin DC jack KPP-3P model or equivalent.
2.3.1.1 - Optional Power supply connector :
A special version of TK23 (under agreement only), can use for power supply a Male 4­pin 0.156" pitch (3,96mm) disconectable Crimp style connector.
User side connector type:
Housing: VHR-4N (JST or compatible)
Contact: SVH-21T-P1.1 (JST or compatible) NOTE: All 4 pins must be connected. Terminals 2 and 3 are VCC (24V DC)
Terminals 1 and 4 are GND
The TK23 requires one power source: VCC (24V DC) for driving the thermal head and motor. This voltage is internally regulated to 5V to control the electronic active parts. The power supply must meet the following conditions:
VCC:
24V DC +/- 2,4V
Example of printhead current consumption (for the 80mm-wide mechanism):
Print head current consumption at a printing ratio of 35%: (Printing ratio is defined as the number of dots/dot lines (576 dots)).
1)
Peak current:
3.05 A (when all 208 dots are powered).
NOTE: Peak current is measured at the minimum resistive value of thermal
head and the maximum operating voltage.
Conditions: VH max: Head connector terminal voltage max. 26.4V
Rmin: Head resistance value min. 1800 Ohm.
The following formula is used to obtain the head drive peak current:
Ipeak = Vmax (volts) x 576 dots x printing ratio / minimum head resistance value (ohms)
FENIX IMVICO
TK23 OPERATION MANUAL
18/81
2)
Mean current:
Approx. 1.4 A
Conditions: - Head terminal voltage = 24V
- Head resistive value Rh = 1800Ohm
- Mean energizing pulse width of 832 µs, synchronizing with 1667µs
motor cycle.
The following formula is used to obtain the head drive current:
Imean = [V(volts)/Rh(Ohms)] x 576dots x printing ratio x [energizing pulse width/cycle]
NOTES:
(1) If the number of dots that are energized at the same time is increased, a higher
current will flow; therefore, the user should use a power supply with a current
capacity adequate for the corresponding print duty. (2) When designing lines and bit images, take the printing ratio and print duty into consideration. (3) Print quality may be poor if the printing ratio or print duty is high. (4) Definitions:
Printing ratio: the number of printing dots (energizing pulses)/dot line.
Print duty: the number of printing dots (energizing pulses)/ elements/ paper
feed amount (two steps, including non-printing area)
WARNING: Beware not to invert the polarity of power supply. This may irremediably damage the printer.
IMPORTANT NOTE ABOUT TK23 POWER SUPPLY: The necessary supply of power depends on the content to print on the
ticket. A 150W power supply covers all adverse possibility (printing ratio of 100% black at any temperature). However, if the average print ratio is not over 25%, a 60W power supply can be used. Any way, power supply must meet the peaks current that mechanism requires, which are determined by the following formula:
Ipeak = [24 / 1800] x number of printing dots
FENIX IMVICO
TK23 OPERATION MANUAL
19/81
2.3.2- SERIAL RS-232 CONNECTOR
2.3.2.1- Specifications
Data transmission: Serial
Synchronization: Asynchronous
Handshaking: CTS/RTS control
Signal levels (RS232): Logic “1” = -3 to –15 V
Logic “0” = +3 to +15 V
Baud rate: 4800, 9600, 19200, 38400 bps (bps: bits per second)
Data word length: 8 bits (fixed)
Parity Settings: None, even, odd
Stop bits: Fixed to 1.
Connector (printer side): Male PHD 24 pin connector JST ref. S24B-PHDSS
Recommended female crimp conector: JST ref. PHDR-24VS
NOTES:
(1) The baud rate, and parity settings can be changed
(refer to point 3.4.2- PROGRAMMING MODE).
(2) The stop bit for the printer side is fixed to 1. (3) The data word length is fixed to 8 bits.
Pin Signal
name
Signal direction
(from the printer
side)
Function
21 RXD Input
Receive data
20 TXD Output
Transmit data
22 /RTS Output
Logic “0” indicates that the printer is connected and ready to receive data, and logic “1” indicates that the printer is offline or is BUSY. The printer goes OFFLINE:
1) When the power is turned on until the printer becomes ready for data transmission after it is initialised by a reset.
2) When the platen is open.
3) When the printer stops printing due to a paper-end.
4) When an error has occurred
The printer is BUSY when reception buffer is full (*)
23,24 GND -
Ground
(*) reception buffer is full when it increases till the maximum capacity (32 Kbytes).
Table 2.1-
Serial port pin-out.
Fig. 2.7-
Serial interface connector as seen from outside the TK23.
Pin 24
Pin 23
Pin 2
Pin 1
FENIX IMVICO
TK23 OPERATION MANUAL
20/81
2.3.2.2- Serial interface connection example
The cable, which has the signal connection, as shown below must be used.
PRINTER SIDE USER SIDE (PC)
CN6
Pin Num.
Signal Name
Signal Name
D-SUB9
Pin Num.
DCD 1
21 RxD RxD 2
20 TxD TxD 3
/DTR 4
23,24 SG SG 5
/DSR 6
22 /RTS /RTS 7
/CTS 8
RI 9
Table 2.2
- Serial interface connection example.
NOTE: Transmit data to the printer after turning on the power and initializing the printer.
The TK23 receives data continuously, even while performing printing operation. The TK23 serial input/output signals (RXD, /RTS and TXD) can be RS232C level or TTL
level (see APPENDIX F- HOW TO ORDER).
The TK23 receives and checks serial data according to the transmission baud rate programmed. If the input data is not printed correctly, the transmission conditions between the host
device and the TK23 do not probably match. If this happens, the character “?” is
continuously printed and user must adjust the transmission conditions so that they match.
Serial data output (TXD): output pin, SUB-D9-3
Data is output according to the programmed transmission conditions.
Serial data input (RXD): input pin, SUB-D9-2
Data input port
Data is input from the host device according to the programmed transmission
conditions.
Serial busy (/RTS): output pin, SUB-D9-7
Indicates whether or not the printer is ready to receive data.
When the /RTS signal is “LOW”, data can be input.
.
NOTE: For more information on serial data reception see point
3.5.9- SERIAL PORT
ERROR DETECTION FLOW CHART
.
Connect the communications cable before turning the TK23 ON.
FENIX IMVICO
TK23 OPERATION MANUAL
21/81
2.3.3- CENTRONICS PARALLEL INTERFACE
Compatibility Mode (Data transmission from host to printer Centronics compatible)
Compatibility Mode supports the compatibility with the Centronics parallel interface.
2.2.3.1 Specification
Data transmission: 8-bit parallel
Synchronization: External supplied /STB signals
Handshaking: /ACK and BUSY signals
Signal levels: TTL compatible
Connector (printer side): Male PHD 24 pin connector JST ref. S24B-PHDSS
Recommended female crimp conector: JST ref. PHDR-24VS
Fig 2.8 -
CENTRONICS-2 parallel cable (see APPENDIX F – HOW TO ORDER)
DB25 MALE
HOUSING :
PHDR-24VS (JST)
TERMINAL:
SPHD-001T-P0.5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12
13
23 24
shield to DB25 chassis
TK23
PC
18 to 25
FENIX IMVICO
TK23 OPERATION MANUAL
22/81
2.2.3.2 Timing diagram of data printer reception
Data n Data n+1 Data
tHold
nStrobe
tSetup tSTB
Busy
Peripheral Busy
tReady tBUSY
nAck
tnBUSY
tReply tACK
tNext
Specification
Description Symbol
Min(ns) Max(ns)
Data hold time tHold 750 --
Data setup time tSetup 750 --
STROBE pulse width tSTB 750 --
READY cycle idle time tReady 0 --
BUSY output delay time tBUSY 0 500
Data processing time
tReply 0
ACKNLG pulse width
tACK 500
10µs
BUSY release time
tnBUSY 0
ACK cycle idle time tNext 0 --
Fig 2.9 - Timming specifications of Centronics parallel interface
FENIX IMVICO
TK23 OPERATION MANUAL
23/81
Switching between online and offline
The printer enters offline status after any of the following:
1) When the power is turned on until the printer becomes ready for data transmission after it is initialized by a reset.
2) When the printer stops printing due to a paper-end (when an empty paper supply is detected by either the paper roll end detector or the paper roll near-end detector with a printing halt set by ESC c 4).
3) When an error has occurred.
2.3.3.3. Paralel Interface Connector pin assignement
CN6 TK23
Pin Number
Source Centronics Signal IF-2200 Signal
D-SUB25 PC
Pin Number
1 Host /Strobe /Strobe 1 2 Host Data0 (LSB) Data0 (LSB) 2 3 Host Data1 Data1 3 4 Host Data2 Data2 4 5 Host Data3 Data3 5 6 Host Data4 Data4 6 7 Host Data5 Data5 7 8 Host Data6 Data6 8
9 Host Data7 (MSB) Data7 (MSB) 9 10 Printer /Ack /Ack 10 11 Printer Busy Busy 11
12
Printer PE Paper End
Head Up
12
13 Printer Select /Error 13
14,15,16 - - Don’t Connect -
23-24 GND GND 18-25
- Host /Init - 16 13 Printer /Error /Error 15 17 Host - /Reset 18 Host - /Paper Feed
-
- Host /SelectIn - 17
Table 2.3-
Parallel interface connector pin assignment.
FENIX IMVICO
TK23 OPERATION MANUAL
24/81
NOTES: (1)
If the host is not provided with all or any of the Centronics Signal lines listed above
(TK23 specific signals are not required), both-way communication can fails.
(2)
For interfacing, is recommended that signal lines use twisted pair cables with the
return sides connected to signal ground level.
(3)
Data transmissions shall not ignore the /ACK or BUSY signals. An attempt to
transmit data with either /ACK or BUSY signal ignored, can cause lost data. (Data transmissions to the printer shall be made after verifying the /ACK signal or while the BUSY signal is at the low level.)
(4)
Interface cables shall have been made with the minimum length required (Max. 2 meters recommended).
Fig. 2.10-
CN6 communications connector as seen from outside of TK23.
NOTE: Connect communications connector before turning the TK23 ON.
Pin 24
Pin 23
Pin 2
Pin 1
FENIX IMVICO
TK23 OPERATION MANUAL
25/81
3 – BASIC OPERATIONS
3.1- LOADING PAPER
When the printer runs out of paper, there are two ways of loading paper: automatic and manual. Before starting the paper load sequence, please make sure the paper roll has been placed in the right way:
1)
Place the paper roll on the spindle.
2) Place the paper roll in the right direction. The thermal paper has only a side which TK23 can print (thermal side). If the user don’t know which one it is, just scratch the paper: the thermal side will show up the track on.
3)
Place the fixing button to assure the good positioning of the paper roll.
4)
Once in its place, the paper roll must be able to turn around the spindle smoothly, with very low friction.
Fig. 3.0 -
Place the paper roll
Thermal Side
paper roll button
Paper Guide
FENIX IMVICO
TK23 OPERATION MANUAL
26/81
3.1.1- AUTOMATIC PAPER LOAD
1) Make sure the TK23 is power supplied.
2) Open the printing head and remove paper from inside the mechanism (if there is any).
3) Make sure that the printing head is closed.
4) Make sure the paper end is cut in a straight way.
Fig.3.1-
Automatic paper load.
5)
Pass the paper end below the paper guide as shown in fig. 3.0 and fig 3.1
and
enter the paper in the mechanism inlet.
6) Push the paper in until the TK23 detects it and starts the auto-load sequence.
7) Wait until the auto-load sequence extracts the paper from the printer outlet.
NOTE:
In the automatic paper load, the printer motor runs at low speed, because the printer
needs the maximum motor torque. Running at low speed, the motor is noisier, but it is not a wrong performing.
FENIX IMVICO
TK23 OPERATION MANUAL
27/81
3.1.2- MANUAL PAPER LOAD
1) Open the printing head and remove the paper (if there is any).
2) Keep the printing head open.
3) Place the paper roll in the right direction. The thermal paper has only a side which
TK23
can print (thermal side). If you don’t knows which one is it, just scratch the
paper: the thermal side will show up the track on.
Fig.3.2-
(1) Manual paper load.
4)
Pass the paper end below the paper guide as shown in fig. 3.0 and fig 3.1
and enter the paper end in the mechanism inlet.
5) Push the paper in until it reaches the mechanism outlet.
Fig. 3.3-
(2) Manual paper load.
6) Close the printer head.
Open the printing head
FENIX IMVICO
TK23 OPERATION MANUAL
28/81
3.2 - PUSH BUTTONS AND LED
The buttons and led are placed in the topside of the printer, identified as follows:
3.2.1 - BUTTONS FUNCTIONS
1) PFEED Button
.
Functions:
If pressed on start-up, it activates the
SELF-TEST MODE.
If pressed together with PROG button on start-up, they activate the
HEXADECIMAL MODE
.
During
PROGRAMMING MODE
this is the “YES” button.
If pressed when the printer is already started, its function depends on whether
the OM (Optical Mark) sensor is enabled or not.
When the OM (Optical Mark) sensor is disabled, the printer feeds
paper continuously while pressing the PFEED button.
When the OM sensor is enabled, the printer will feed paper by mark
paper unit.
Paper feeding using the paper FEED button cannot be performed under the
following conditions:
The paper roll end sensor detects a paper end.
When the printer thermal head is opened.
2) PROG Button
.
Functions:
If pressed on start-up, it activates the
PROGRAMMING MODE
.
If pressed together with PFEED button on start-up, they activate the
HEXADECIMAL DUMP MODE
.
During
PROGRAMMING MODE
this is the “NO” button.
If pressed when the printer is already started, the TK23 removes paper from
inside the TK23 (if there is any), ready to use.
3.2.2 - LED INDICATOR
1) Power (POWER) LED:
ON: Power is stable. OFF: Power failure.
"PFEED" button
"POWER ON" led
"PROG" button
FENIX IMVICO
TK23 OPERATION MANUAL
29/81
3.4- SPECIAL MODES
Apart from the normal printing mode, where all the data received by the printer is printed according to the adjustments or conditions set by the commands also received and processed, the TK23 allows three
SPECIAL MODES
which must be set at the moment
of turning on the printer or via commands.
3.4.1- SELF-TEST MODE
The printer has a self-test function that checks the following:
Firmware version.
Printer mechanism which is connected to the printer interface.
Interface operating.
Printing speed.
Print density.
Selected font.
Character scale.
Character spacing.
Line Spacing.
Status of the Black Mark sensor.
Status of the CR command function (See point 4.CONTROL COMMANDS).
Starting the self-test mode:
To start the self-test on a paper roll, turn off the printer, and hold down the PFEED button then turn on the printer. Then the current printer status is printed.
After printing the current printer status, if the PFEED button is still hold down, the TK23 will print the scaling text pattern printing. While printing this sample text, some features of the TK23 can be checked:
Control circuit functions.
Status of the printer mechanism which is installed.
Print quality (at current print density).
Interface type and its operating condition.
Control software version.
Idea of its printing speed.
FENIX IMVICO
TK23 OPERATION MANUAL
30/81
Next figure shows an example of SELF-TEST MODE:
Fig. 3.4-
SELF-TEST MODE sample.
Rolling
pattern
Printer
status
FENIX IMVICO
TK23 OPERATION MANUAL
31/81
3.4.2- PROGRAMMING MODE
The TK23 has a PROGRAMMING MODE in order to set up some parameters of the printer, without sending any command. In this mode, the printer makes some questions to the user. These questions must be answered by pressing one of the two push buttons. PFEED button means “YES” and “PROG” button means “NO”.
Fig. 3.5-
Programming buttons.
NOTE - You can use the in-board push buttons: SW1 is PFEED and SW2 is PROG
Starting the programming mode:
To start the programming mode, turn off the printer, and hold down the PROG button then turn on the printer. Then the printer asks for the configurable parameters.
These are the configurable parameters during PROGRAMMING MODE:
Mechanism: LTP2242 series at 60mm, LTP2342 series at 80mm or
LTP2442 series at 112mm (total cutter or partial cutter).
Baudrate: 4800, 9600, 19200 or 38400 baud.
Parity for serial transmission: ODD, EVEN, NO PARITY.
Head Activation: 1 strobe (fixed mode) or 2 strobes (dinamic mode).
Print density: Light (-50%), Normal or Dark (+50%).
Black Mark: Enable / Disable marked paper.
Carry Return: Enable / Disable CR command.
YES
NO
"PFEED" button
"PROG" button
FENIX IMVICO
TK23 OPERATION MANUAL
32/81
Next figure shows how the printer asks for the configurable parameters:
YES
Fig. 3.6-
PROGRAMMING MODE sample
YES
NO
YES
NO
NO
NO
YES
FENIX IMVICO
TK23 OPERATION MANUAL
33/81
.
3.4.3- HEXADECIMAL DUMP MODE
The hexadecimal dump prints the data transmitted from the host computer as hexadecimal numbers and their corresponding ASCII characters.
In this mode, no commands are processed. All the received data is printed as it is in Hexadecimal mode. This is very useful for the user can debug the software implementation during the initial period of his application. He can check whether the communication is correct and the commands are well defined. If a set of commands and data does not act as it was expected, the error can be easily detected using this mode, for the user can compare what he is supposedly sending to the printer and what the printer is actually receiving.
Starting the hexadecimal dump: To start the hexadecimal dumping, turn off the printer, and hold down the PFEED button and the PROG button then turn on the printer. Then the printer first prints “Hexadecimal Dump” on the paper roll and prints the received print data in hexadecimal numbers and in its corresponding ASCII characters.
NOTES:
(1) If no characters correspond to the data received, the printer prints “.” (2) During the hexadecimal dump, no commands are processed.
Ending the hexadecimal dump: You can end the hexadecimal dump by turning the power off.
Next figure shows an example of the HEXADECIMAL DUMP MODE:
Fig. 3.7-
HEXADECIMAL DUMP MODE sample.
FENIX IMVICO
TK23 OPERATION MANUAL
34/81
3.5- ERROR PROCESSING
The TK23 can detect several errors. These errors are indicated in different ways depending on their relevancy and on the communications interface used (serial or parallel). There are two ways of indicating these errors:
SERIAL PORT:
When an error occurs, the DTR signal goes to active level (logical “HIGH” level). If the user detects that this signal is “high”, that means that an error has occurred. The TK23 can send the STATUS BYTES by the serial port, to communicate some of these errors (command
DEL EOT
), in
RS232 protocol.
PARALLEL PORT:
When a No Paper / Head-Up error occurs(see 3.5.1), it is indicated in the PE and /ERR signals. If a generic error ocurrs, it is indicated in the /ERR signal. Paper-Near-End sensor can be signaled in the PE signal by using Control Commands (see 3.5.2).
NOTE:
(1) For more information on how each error is indicated see points 3.5.1 to
3.5.8, here every error is explained in detail.
Name Description
NO PAPER There is no paper in the printer inlet HEAD-UP The thermal head is open PAPER-NEAR-END The paper roll is near its end HEAD TEMPERATURE The thermal head temperature is above 75ºC CUTTER The autocutter can not cut VOLTAGE
The thermal head voltage is out of range (Vp = 24V ± 10%)
HARDWARE There is an error in the control board interface OPTICAL MARK The optical mark is not detected NO ERROR There is no error
Table 3.1-
Errors explanation.
3.5.1- NO PAPER / HEAD-UP ERROR
Although these two errors have different causes, they are indicated in the same way because the action to recover from these errors is actually the same. This error is quite significant, so when it arises the motor stops and no printing is allowed.
ERROR ORIGIN: There is no paper in the printer inlet or the thermal head is open.
LEDS INDICATION: The PE led turns ON.
NOTE:
(1)
This error is indicated in the parallel port depending on the conditions set by
the
”ESC c 3”
command (See point 4. CONTROL COMMANDS).
RECOVERY: To recover from this error, user must do a paper load (See point 3.1- LOADING PAPER), or turn down the head lever.
FENIX IMVICO
TK23 OPERATION MANUAL
35/81
3.5.2- PAPER-NEAR-END ERROR
This error is not as significant as the “NO PAPER/ HEAD-UP” error. So, the user must decide what to do when this error comes. Depending on the settings of command
“ESC
c 4”
this error stops the printing or not (See point 4. CONTROL COMMANDS).
If this error is set to stop the printing, it will be detected as any other error. If this error is not set to stop the printing, user must detect it by polling the status bytes.
ERROR ORIGIN: The paper-near-end sensor does not detect the paper roll.
NOTE:
This error is indicated in the parallel port depending on the conditions set by the
”ESC c 3”
command (See point 4. CONTROL COMMANDS).
RECOVERY: To recover from this error, user must change the paper roll.
3.5.3- THERMAL HEAD TEMPERATURE ERROR
Due to very continuous use of the printer, or due to environmental conditions, the temperature in the thermal head may reach levels, which can damage the printer itself. When this situation occurs, an error must be indicated in order to protect the printer from abrasion. This error recovers automatically and the printer returns to normal status when the thermal head temperature drops to an acceptable level (below 70 ºC).
ERROR ORIGIN: The thermal head temperature raises over 75 ºC.
RECOVERY: The printer automatically recovers from this error when the thermal
head temperature drops below 75 ºC.
3.5.4- AUTOCUTTER ERROR
In some cases, after cutting a ticket, the cutter blade can be out of its home position. In other cases, an object may be obstructing the cutter blade, making it impossible to cut the ticket. After cutting a ticket, the printer checks the right position of the cutter blade, and if it has not returned to its home position, the printer indicates an error.
ERROR ORIGIN: For some mechanical reason, the cutter blade can not return to its
home position after trying to cut.
RECOVERY:
Not attempt turn up the head lever, because this can damage the
cutter blade.
The printer tries to automatically recover from this error at printer initialization (turn the printer OFF / ON). Remove the external paper or objects, and try recovering the cutter blade turning ON/OFF some times. If the cutter blade had been recovered, turn up the head lever and remove the internal paper or objects. If the cutter blade is still blocked, cutter unit must be replaced. See also
APPENDIX C
for manual recovering.
FENIX IMVICO
TK23 OPERATION MANUAL
36/81
3.5.5- THERMAL HEAD VOLTAGE (Vp) ERROR
The thermal head needs a stable voltage to produce a correct printing. This voltage is in the range of 21,6V to 26,4V. When the thermal head voltage (Vp) goes out of this range, correct printing can not be assured, so an error occurs.
ERROR ORIGIN: The thermal head voltage (Vp) is out of range (24V ± 10%).
RECOVERY: This is a Non-recoverable error. The only way to return the printer to a
normal status is to turn it OFF / ON and make sure that this time, the thermal head voltage (Vp) is in the specified range.
When this error occurs, some parts of the printer may be damaged. If this happens, the printer will be unable to recover itself and some of its components are likely to be replaced. Check the TK23 power supply.
3.5.6- HARDWARE ERROR
At initialisation, the printer internally checks its hardware devices. If they do not function properly, an error occurs.
ERROR ORIGIN: Some of the printer hardware devices do not function properly.
RECOVERY: This is a Non-recoverable error. One of the control board components
may be damaged and it is quite sure that the control board needs to be changed or repaired.
3.5.7- OPTICAL MARK ERROR
The printer can use marked paper. The use of the optical mark must be enabled via
hardware on printer start-up (See point 3.4.2- PROGRAMMING MODE). An error can
occur if:
The paper does not have optical mark.
The optical mark is not in the right position.
The optical mark does not have the right size or intensity.
NOTE:
See point 3.6- OPTICAL MARK for details on using marked paper.
ERROR ORIGIN: The optical mark sensor does not detect the optical mark.
RECOVERY: This is a Non-recoverable error. User must turn OFF the printer, and
check the paper and optical mark characteristics.
FENIX IMVICO
TK23 OPERATION MANUAL
37/81
3.5.8- SERIAL PORT ERROR DETECTION FLOW CHART
Fig.3.9-
Serial port error detection flow chart.
SEND “Real-time status“ COMMAND
READ “STATUS” FROM PRINTER AND
IDENTIFY ERROR
END
SEND
1 BYTE
BEGIN
NO
/RTS = 0
YES
END OF TRANDMISSION
NO
YES
FENIX IMVICO
TK23 OPERATION MANUAL
38/81
3.6- OPTICAL MARK
The TK23 printer has the capability of using the No-Paper mechanism sensor as an optical mark sensor to work with paper, which is pre-printed with an optical mark. To make use of this feature, the optical mark sensor must be enabled via hardware (See
point 3.4.2- PROGRAMMING MODE).
The optical mark must be placed in the back of the paper, and in its right side as seen in
Fig. 3.11.-
Optical mark characteristics
.
The optical mark must satisfy the dimensions shown in Fig. 3.11.-
Optical mark
characteristics
.
The optical mark is detected at the position, which the top edge of the optical mark comes into approximately 2mm from the middle of the optical mark sensor. After detecting the optical mark, it is not detected for approximately 2cm.
The reflecting rate of the optical mark must be 10% or less, and the reflecting rate of the white must be 75% or more. The reflecting rate means the value, which is measured with Macbeth density meter (PCMII) D filter.
By factory default setting, the cutting position is corrected 25mm forward and the printing position is corrected 12,5mm backward:
with this adjustments paper begins exactly at the position of the paper optical mark (where the optical mark sensor makes the detection). If you are using partial cut (see page 49), correction backward are not recommended.
The print starting position and the cutting position can be changed with the GS ( F command (See point 4- CONTROL COMMANDS)
Fig. 3.11-
Optical mark characteristics.
Paper feed direction
Print starting position (PP)
Cutting position (CP)
Center position of the Optical Mark Sensor
Approx. 2mm
25 mm
10mm
8mm or more
12mm or more
Approx. 2cm
Optical Mark in back side of paper
FENIX IMVICO
TK23 OPERATION MANUAL
39/81
3.6.1- EXAMPLE ON USING THE OPTICAL MARK
Some very concrete points must be observed when using the optical mark.
There are three commands for handling marked paper (See point 4- CONTROL COMMANDS for more details)
GS ( F
! Set adjustment values. This command allows setting the distances between the optical mark and the cutting position and printing position. These distances can be positive or negative starting from the optical mark.
GS FF
! Feed marked paper until printing position. This commands feeds paper until finding an optical mark. Then it moves the ticket backward or forward until placing it at the printing position.
GS V m n
!Cut paper. This command feeds paper until optical mark, then moves the
ticket to its cutting position and cuts, then it moves the ticket to the printing position.
Other considerations:
Paper can only be fed backward by using these previous commands. Feed backward is only recommended if Full Cut Autocutter is selected (see pag. 49 CONTROL COMMANDS ESC i / ESC m for more explanation).
Is highly recommended that the total amount that paper can be backward fed is less than 120 steps (15mm).
Pressing the PFEED button when the Optical Mark is enabled is the same as sending the GS V m n command.
Recommendations for the use of marked paper:
The optimum use of the marked paper follows this logical sequence: Place the current ticket at its printing position (PP): Print current ticket Use optical mark in current ticket to place current ticket at its cutting position (CP) Cut current ticket Place next ticket at its printing position (PP).
Marked paper normally uses tickets of the same length. Therefore the printing position (PP) and cutting position (CP) are the same for every ticket. Consequently, the optical mark handling sequence is the same for every ticket.
By default the distances for CP and PP are:
Printing position: 10mm after optical mark. Cutting position: 25mm after optical mark.
FENIX IMVICO
TK23 OPERATION MANUAL
40/81
Next figures illustrate an example on how to handle the marked paper.
Last line of TICKET 1 has been printed.
Feed paper until finding optical mark of TICKET1.
Place TICKET 1 at its cutting position (CP) and cut it.
Move paper backwards until finding the printing position (PP) of TICKET 2. Now TICKET 2 is ready to start printing.
Fig. 3.12-
Optical Mark recommended use sequence.
Last line
TICKET 1 TICKET 3 TICKET 2
First l ine
Paper feed direction
Paper feed direction
TICKET 1 TICKET 3 TICKET 2
Paper feed direction
TICKET 1 TICKET 3 TICKET 2
Paper feed direction
TICKET 3 TICKET 2
FENIX IMVICO
TK23 OPERATION MANUAL
41/81
4 – CONTROL COMMANDS
4.1- COMMAND NOTATION
[Name] The name of the command. [Format] The code sequence.
[ ]k indicates the contents of [ ] should be repeated k times. [Range] Gives the allowable ranges for the arguments. <00>H denotes the hexadecimal number 00. [Description] Describes the function of the command. [Notes] Provides important information on setting and using the printer command,
if necessary. [Default] Gives the default values, if any, for the command parameters. [Reference] Lists related commands.
4.2- EXPLANATION OF TERMS
2) Receive buffer
The receiver buffer is a buffer that stores, as it is, the data received from the host (the reception data). The data received is stored in the receiver buffer temporarily, and is then processed sequentially.
3) Print buffer
The print buffer is a buffer that stores the image data to be printed.
4) Ignore
The state in which all codes, including parameters, are read in and discarded, and nothing happens.
5) Inch
A unit of length. One inch is 25.4 mm.
6) MSB
Most Significant Bit
7) LSB
Least Significant Bit
8) Baseline
The standard position for character data stored in the print buffer. The illustration below shows normal character positions:
*1. When Font A (12x24 dots) is selected, this height is 18 dots.
When Font B (8x16 dots) is selected, this height is 14 dots.
FENIX IMVICO
TK23 OPERATION MANUAL
42/81
4.3- CONTROL COMMANDS DESCRIPTION Command List
Command
classification
Command Name
Executing Setting
Page
LF
Print and line feed X 43
CR
Print and carriage return X 43
DLE EOT
Real-time status transmission X 43
ESC SP
Set right-side character spacing X 45
ESC !
Select print mode(s) X 46
ESC 2
Select default line spacing X 46
ESC 3
Set line spacing X 47
ESC @
Initialise printer X X 47
ESC J
Print and feed paper X 47
ESC M
Select character font X 48
ESC c 5
Enable/disable panel buttons X 48
ESC d
Print and feed n lines X 48
ESC i
Paper Cut X 49
ESC m
Paper Cut X 49
ESC t
Select Character Code Table X 50
ESC E
Turn emphasized mode on/off X 50
ESC G
Turn on/off double-strike mode X 50
GS B
Turn white/black reverse printing mode X 51
GS FF
Feed marked paper to print starting position X 51
GS !
Select character size X 52
GS ( A
Execute test print X 53
GS ( F
Set adjustment value(s) X 53
GS ( K 2 0 0 m
Select print control mode X 54
GS ( K 2 0 1 m
Select print density X 55
GS E
Select Head Control Method X 56
GS H
Select printing position of HRI characters X 56
GS L
Set left margin X 57
GS T
Set print position to the beginning of print line X 57
GS V
Select cut mode and cut paper X 58
GS f
Select font for HRI characters X 59
GS h
Set bar code height X 59
GS k
Print bar code X 60
GS v 0
Print raster bit image X 62
GS w
Set bar code width X 63
Table 4.1-
Command List
FENIX IMVICO
TK23 OPERATION MANUAL
43/81
LF
[Name] Print and line feed [Format] ASCII LF
Hex 0A
Decimal 10 [Description] Prints the data in the print buffer and feeds one line, based on the current
line spacing. [Note] This command sets the print position to the beginning of the line. [Reference]
ESC 2, ESC 3.
CR
[Name] Print and carriage return [Format] ASCII CR
Hex 0D
Decimal 13 [Description] When automatic line feed is enabled, this command functions the same as
LF
; when automatic line feed is disabled, this command is ignored.
[Notes]
This command is set at the start-up, via the PROGRAMMING MODE (see
point 3.4.2- PROGRAMMING MODE).
Sets the print starting position to the beginning of the line.
[Reference]
LF
DLE EOT n
[Name] Real-time status transmission [Format] ASCII DLE EOT
n
Hex 10 04
n
Decimal 16 4 n
[Range] <01>H
n ≤
<04>H
[Description] Transmits the selected printer status specified by n in real-time, according
to the following parameters:
n
= <01>H: Transmit printer status
n
= <02>H: Transmit offline status
n
= <03>H: Transmit error status
n
= <04>H: Continuous paper sensor status
n
= <05>H: Paper sensor status
[Notes]
The status is transmitted whenever the data sequence <10>H<04>H<n> ( <01>H
n ≤
<05>H) is received.
The printer transmits the current status. Each status item is represented by
one-byte of data.
The printer transmits the status without confirming whether the host computer
can receive data (in serial interface).
The printer executes this command upon receiving it.
This command is executed even when the printer is offline, the receiver buffer
is full, or there is an error status with a serial interface model.
If a not recovery error occurred, the bit 2 in the Printer Status (
n
=1) will be
indeterminate.
FENIX IMVICO
TK23 OPERATION MANUAL
44/81
n
= <01>H: Printer status
Bit OFF/ON Function
0 OFF Not used. Fixed to OFF 1 ON Not used. Fixed to ON 2 OFF Not used. Fixed to OFF
OFF Online
3
ON Offline 4 ON Not used. Fixed to ON 5 OFF Does not wait for online error recovery
ON Waits for online error recovery 6 - Undefined 7 OFF Not used. Fixed to OFF
n
= <02>H: Offline status
Bit OFF/ON Function
0 OFF Not used. Fixed to OFF 1 ON Not used. Fixed to ON
OFF Platen is closed (Thermal head is closed)
2
ON Platen is open (Thermal head is open) 3 - Undefined 4 ON Not used. Fixed to ON
OFF No paper-end stop
5
ON Printing is being stopped
OFF No error
6
ON Error occurred 7 OFF Not used. Fixed to OFF
n
= <03>H: Error status
Bit OFF/ON Function
0 OFF Not used. Fixed to OFF 1 ON Not used. Fixed to ON 2 OFF Not used. Fixed to OFF
OFF No autocutter error
3
ON Autocutter error occurred 4 ON Not used. Fixed to ON
OFF No unrecoverable error
5
ON Unrecoverable error occurred
OFF No auto-recoverable error
6
ON Auto-recoverable error occurred 7 OFF Not used. Fixed to OFF
Bit 6: Bit 6 is ON when printing is stopped due to high print head temperature until the
print head temperature drops sufficiently.
FENIX IMVICO
TK23 OPERATION MANUAL
45/81
n = <04>H: Continuous paper sensor status
Bit OFF/ON Function
0 OFF Not used. Fixed to OFF 1 ON Not used. Fixed to ON 2 - Undefined
OFF Paper near-end sensor: Paper present
3
ON Paper near-end sensor: Paper not present 4 ON Not used. Fixed to ON 5 - Undefined
OFF Paper real-end sensor: Paper present
6
Paper real-end sensor: Paper not present
7 OFF Not used. Fixed to OFF
n = <05>H: Paper sensor status
Bit OFF/ON Function
0 OFF Not used. Fixed to OFF 1 ON Not used. Fixed to ON 2 - Undefined 3 OFF Not used. Fixed to OFF 4 ON Not used. Fixed to ON 5 - Undefined 6 - Undefined 7 OFF Not used. Fixed to OFF
ESC SP n
[Name] Set right-side character spacing [Format] ASCII ESC SP
n
Hex 1B 20
n
Decimal 27 32
n
[Range] <00>H
n≤
<FF>H
[Description] Sets the character spacing for the right side of the character to
[n x
0.125
mm
(n x
0.0049”)].
[Notes]
The right side character spacing for double-width mode is twice the normal
value. When characters are enlarged, the right-side character spacing is n times normal value.
This command is effective only when sent at the beginning of a line.
[Default] n = <04>H [Reference]
APPENDIX A
FENIX IMVICO
TK23 OPERATION MANUAL
46/81
ESC ! n
[Name] Select print mode(s) [Format] ASCII ESC !
n
Hex 1B 21
n
Decimal
27 33
n
[Range] <00>H n ≤
<FF>H
[Description] Selects print mode(s) using n as follows:
Bit OFF/ON Hex Function
OFF 00 Character font A (12 x24). 0
ON 01 Character font B (8 x 16). 1 -- -- Undefined. 2 -- -- Undefined.
OFF 00 Emphasized mode not selected. 3
ON 10 Emphasized mode selected.
OFF 00 Double-height mode not selected. 4
ON 20 Double-height mode selected.
OFF 00 Double-width mode not selected. 5
ON 20 Double-width mode selected. 6 -- -- Undefined.
OFF 00 Underline mode not selected. 7
ON 20 Underline mode selected.
[Notes]
When both double-height and double-width modes are selected, quadruple-
size characters are printed.
When some characters in a line are double or more height, all the characters
in the line are aligned at the baseline.
ESC E
can also select the emphasited mode. Be careful when uses both
command.
ESC M
can also select character font type. However, the setting of the last
received command is effective.
GS !
can also select character size. However, the setting of the last received
command is effective.
If this command is not received at the beginning of a line, and the character
font is to be changed, all previous data in the print buffer is printed and the ticket is placed at the beginning of the next line..
[Default]
n
= <00>H
[Reference]
ESC M, ESC E, ESC G, GS !, APPENDIX A
ESC 2
[Name] Select default line spacing [Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50 [Description] Selects 3.75 mm (30 x 0.125 mm) line spacing. [Reference]
ESC 3.
FENIX IMVICO
TK23 OPERATION MANUAL
47/81
ESC 3 n
[Name] Set line spacing [Format] ASCII ESC 3
n
Hex 1B 33
n
Decimal 27 51
n
[Range] <00>H n ≤
<FF>H
[Description] Sets the line spacing to
[n
x 0.125 mm]. [Default] n = <1E>H [Reference]
ESC 2
ESC @
[Name] Initialise printer [Format] ASCII ESC @
Hex 1B 40 Decimal 27 64
[Description] Clears the data in the print buffer and resets the printer settings to the
settings that were in effect when the power was turned on.
[Notes]
The data in the receiver buffer is not cleared.
ESC J n
[Name] Print and feed paper [Format] ASCII ESC J
n
Hex 1B 4A
n
Decimal 27 74 n
[Range] <00>H n ≤
<FF>H
[Description] Prints the data in the print buffer and feeds the paper
[n
x 0.125 mm
(0.0049”)].
[Notes]
After printing is completed, this command sets the print starting position to the
beginning of the line.
The paper feed amount set by this command does not affect the values set by
ESC 2
or
ESC 3
.
The printer uses the vertical motion unit
(
y).
FENIX IMVICO
TK23 OPERATION MANUAL
48/81
ESC M n
[Name] Select character font [Format] ASCII ESC M
n
Hex 1B 4D
n
Decimal 27 77
n
[Range]
n
= <00>H, <01>H
[Description] Selects the character font.
n
Function
<00>H Character Font A (12 x 24) selected <01>H Character Font B (8 x 16) selected
[Notes]
ESC !
can also select character font types. However the setting of the last
received command is effective.
This command must be sent at the beginning of a line. If it is sent in the middle
of a line, all previous data in the print buffer is printed and the ticket is placed at the beginning of the next line.
[Reference]
ESC !, APPENDIX A
ESC c 5 n
[Name] Enable/disable panel buttons [Format] ASCII ESC c 5
n
Hex 1B 63 35
n
Decimal 27 99 53
n
[Range] 0 n ≤
255
[Description] Enables or disables the panel buttons.
When the LSB of
n
is 0, the panel buttons are enabled.
When the LSB of
n
is 1, the panel buttons are disabled.
[Notes]
Only the lowest bit of
n
is valid.
When the panel buttons are disabled, none of them are usable.
In this printer, the only panel buttons is the FEED button.
[Default]
n
= 0
ESC d n
[Name] Print and feed n lines [Format] ASCII ESC d
n
Hex 1B 64
n
Decimal 27 100
n
[Range] <00>H n ≤
<FF>H [Description] Prints the data in the print buffer and feeds n character lines. [Notes]
This command sets the print starting position to the beginning of the line.
This command does not affect the line spacing set by
ESC 2
or
ESC 3
.
FENIX IMVICO
TK23 OPERATION MANUAL
49/81
The maximum paper feed amount is 1016 mm {40”}. If the paper feed amount
(n x
line spacing) of more than 1016 mm {40”} is specified, the printer feeds
the paper only 1016 mm {40”}.
Every line feed corresponds to the current selected font height (24 dots for
Font A and 16 dots for Font B).
[Reference]
ESC 2, ESC 3.
ESC i
[Name] Paper Cut [Format] ASCII ESC i
Hex 1B 69 Decimal 27 105
[Description]
ESC m
[Notes]
ESC m
[Reference]
ESC m
ESC m
[Name] Paper Cut [Format] ASCII ESC m
Hex 1B 73
Decimal 27 109 [Description] Cuts the Paper partial or fully, depends on the selection of jumper JP1 in IF2200 Interface board (see fig. 4.1) [Notes]
During cutting, printing and paper feeding is stopped
This command only can be used if auto-cutter is connected.
If this command is sent without auto-cutter connection, TK23 printer enter in
autocutter error status.
The interval between each cutting operation must be two seconds or more.
[Reference]
ESC i, GS V.
Fig. 4.1-
Jumper for cutter mode selection.
FULL CUT PARTIAL CUT
FENIX IMVICO
TK23 OPERATION MANUAL
50/81
ESC t n
[Name] Select character code table [Format] ASCII ESC t
n
Hex 1B 74
n
Decimal 27 116 n [Range]
n
= <00>H ,
n =
<11>H
[Description] Selects a page n from the character code table.
n
Character Code Table
0 PC437 (U.S.A., Standard Europe)
17 PC866 (Cyrillic #2)
[Default]
n
= 0
[Reference] APPENDIX B - CHARACTER CODE TABLES
ESC E n
[Name] Turn emphasized mode on/off [Format] ASCII ESC E
n
Hex 1B 45
n
Decimal 27 69 n
[Range] 0 n ≤
255
[Description] Turns emphasized mode on or off
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on. [Notes]
Only the least significant bit of
n
is enabled.
This command and
ESC !
turn on and off emphasized mode in the same way.
Be careful when this command is used with
ESC !
.
[Default]
n
= 0
[Reference]
ESC !, ESC G
ESC G n
[Name] Turn on/off double-strike mode [Format] ASCII ESC G
n
Hex 1B 47
n
Decimal 27 71 n
[Range] 0 n ≤
255
[Description] Turns double-strike mode on or off.
When the LSB of n is 0, double-strike(emphasized) mode is turned off.
When the LSB of n is 1, double-strike(emphasized) mode is turned on. [Notes]
This command is exactly the same as ESC E.
[Default]
n
= 0
[Reference]
ESC E
FENIX IMVICO
TK23 OPERATION MANUAL
51/81
GS B
n
[Name]
Turn white/black reverse printing mode
[Format] ASCII GS B
n
Hex 1D 42
n
Decimal 29 66 n
[Range] 0 n ≤ 255
[Description] Turns on or off white/black reverse printing mode. When the LSB of
n i
s 0, white/black reverse mode is turned off.
When the LSB of n is 1, white/black reverse mode is turned on. [Notes]
Only the lowest bit of
n
is valid.
When white/black reverse printing mode is on, it also applied to character
spacing set by
ESC SP
.
This command does not affect bit image, user-defined bit image, bar code
and HRI characters.
This command does not affect the space between lines.
White/black reverse mode has a higher priority than underline mode. Even if
underline mode is on, it is disabled (but not cancelled) when white/black reverse mode
is selected.
[Default]
n
= 0
GS FF
[Name] Feed marked paper to print starting position [Format] ASCII GS FF
Hex 1D 0C
Decimal 29 12 [Description] Feeds the marked paper to the print starting position. [Notes]
This command is enabled only when the Optical Mark sensor is set to be
effective using PROGRAMMING MODE.
This command sets the next print position to the beginning of the line.
Even if this command is executed at the print starting position of the marked
paper, the printer does not feed the marked paper to the next print starting position.
[Reference]
GS ( F
FENIX IMVICO
TK23 OPERATION MANUAL
52/81
GS ! n
[Name] Select character size [Format] ASCII GS !
n
Hex 1D 21
n
Decimal 29 33
n
[Range] <00> n ≤
<FF>H
(1 vertical number of times 8, 1 horizontal number of times 8)
[Description] Selects the character height using bits 0 to 3 and selects the character
width using bits 4 to 7, as follows:
Bit OFF / ON Hex Function 0 1 2 3
Character height selection. See Table 2.
4 5 6 7
Character width selection. See Table 1
Table 1 Table 2 Character Width Selection Character Height Selection
Hex Width Hex Height 00 1 (normal) 00 1 (normal) 10 2 (double-width) 01 2 (double-height) 20 3 02 3 30 4 03 4 40 5 04 5 50 6 05 6 60 7 06 7 70 8 07 8
[Notes]
This command is effective for all characters, except for HRI characters.
The vertical direction is the paper feed direction, and the horizontal direction is
perpendicular to the paper feed direction.
When characters are enlarged with different sizes on one line, all the
characters on the line are aligned at the baseline.
The
ESC !
command can also turn double-width and double-height modes on
or off. However, the setting of the last received command is effective.
[Default]
n
= <00>H
[Reference]
ESC !, APPENDIX A
FENIX IMVICO
TK23 OPERATION MANUAL
53/81
GS ( A pL pH n m
[Name] Execute test print [Format] ASCII GS ( A
pL pH n m
Hex 1D 28 41
pL pH n m
Decimal 29 40 65
pL pH n m
[Range] (pL + (pH x 256)) = 2 (where pL = <02>H, pH = <00>H)
<30>H n ≤ <32>H <31>H m <33>H
[Description]
Executes a test print with a specified test pattern on a specified paper.
pL, ph
specifies (pL+(phx256)) for the number of the bytes after ph (n and m).
n specifies the paper to be tested.
n
Paper <30>H <31>H <32>H
Paper roll
m
specifies a test pattern.
m
Test pattern <31>H Hexadecimal dump <32>H Printer status print <33>H Rolling pattern print
[Details]
This command has enabled only when processed at the beginning of a line.
After the test print is finished, the printer resets itself automatically. Therefore,
data already defined before this command is executed, such as user-defined buffer and print buffer are cleared; and each setting returns to the default value.
The printer cuts the paper at the end of the test print.
GS ( F pL pH a m nL nH
[Name] Set adjustment value(s) [Format] ASCII GS ( F
pL pH a m nL nH
Hex 1D 28 46 04
00 a m nL nH
[Range]
pL
= <04>H, pH = <00>H
<01>H a <02>H
m = <00>H,<01>H
0 ≤ (
nL
+
nH
x 256) 65535
(where <00>H nL <FF>H, <00>H nH <FF>H)
[Description] This command is effective only when the Optical Mark sensor is enabled. Set adjustment value(s) for the printer operations specified by a.
FENIX IMVICO
TK23 OPERATION MANUAL
54/81
pL
and pH specifies the number of bytes of the parameters (always 4).
a
specifies setting values for the positions to start printing and cutting.
A
Function <01>H Setting value for the positions to start the printing <02>H Setting value for the positions to start the cutting
m
specifies the direction of the adjustment.
M
Function <00>H Specifies a forward paper feeding direction <01>H Specifies a backward paper feeding direction
nL
and nH specifies the setting value to [(nL + nH x 256) x 0.125 mm].
The adjustment value for the print starting position (
a
= <01>H) is affected
with the following commands:
GS FF
The adjustment value for the paper cutting position (
a
= <02>H) is affected
with the following commands:
GS V
m n
[Notes]
The offset for the print starting position is refered to the offset of the cutting position, Offset for cutting position is always refered to the Optical Mark.
[Default]
By factory default setting, the cutting position is set to 200 forward and the printing position is set to 100 backward:
paper begins exactly
at the position of the paper optical mark (where the optical mark sensor
makes the detection). See point 3.6- OPTICAL MARK.
[Reference]
GS FF, GS V
GS ( K 2
0 0 m
[Name] Select the energized mode. [Format] ASCII GS ( K
2 0 0 m
Hex 1D 28 4B 02 00 00
m
[Range] <01>H m <02>H
[Description]
m
specifies the print control mode.
m Function
<01>H Specifies the non-divided print head energizing mode. <02>H Specifies the two-part print head energizing mode.
[Notes]
When this command sets the two part energized mode (m = <02>H), the maximum printing speed (150mm/s) is automatically prohibited.
[Default]
m
= <01>H
[Reference]
GS E, PROGRAMMING MODE
FENIX IMVICO
TK23 OPERATION MANUAL
55/81
GS ( K 2
0 1 m
[Name] Select the print density. [Format] ASCII GS ( K 2
0 1 m
Hex 1D 28 4B 02 00 01
m
[Range] <F6>H m <FF>H or
<00>H m <0A>H
(corresponds to print density from -50% to +50%)
[Description]
m
specifies the print density.
If <F6>H m <FF>H, the print density set to be lighter (“<F6>” is the lightest)
than the standard density.
If
m
= <00>H, the print density is set as the standard.
If <01> m <0A>H, the print density is set to be darker (“<0A>” is the
darkest) than the standard density.
The print density in one line is always the same even if different density is set.
In this case, the last specified data for the print density is effective.
M
Dec Hex
Print Density
10 0A +50%
9 09 +45% 8 08 +40% 7 07 +35% 6 06 +30% 5 05 +25% 4 04 +20% 3 03 +15% 2 02 +10% 1 01 +5% 0 00 Standard
-1 FF -5%
-2 FE -10%
-3 FD -15%
-4 FC -20%
-5 FB -25%
-6 FA -30%
-7 F9 -35%
-8 F8 -40%
-9 F7 -45%
-10 F6 -50%
[Default]
m
= <00>H
[Reference]
PROGRAMMING MODE
FENIX IMVICO
TK23 OPERATION MANUAL
56/81
GS E n
[Name] Select head control method. [Format] ASCII GS E n Hex 1D 45 n Decimal 29 69 n
[Range] <00>H n <FF>H
[Description] Selects the head control method.
Bit Off/On Hex Function
0-3 Off 00 Undefined 4 5
Specifies the print speed
6 Off 00 Undefined 7 Off 00 Undefined
Speed Level Bit 5 Bit 4
Speed 1 0 0 High speed Speed 2 0 1 Speed 3 1 0 Speed 4 1 1 Low speed
[Notes]
This command is effective only at the starting position of the line.
When the head elements are energized being divided into two, the maximum
printing speed in speed level 1 becomes 90mm/s.
When the print speed is set to maximum the energizing mode is automatically
set to non-divided print head energizing mode. [Default] Speed level 1 [Reference]
GS ( K 2 0 0 m, PROGRAMMING MODE
GS H n
[Name] Select print position for HRI characters. [Format] ASCII GS H
n
Hex 1D 48
n
Decimal 29 72 n
[Range]
n
= <00>H or n = <02>H [Description] Selects the print position of HRI characters when printing a bar code. n selects the print position as follows:
n Printing position
<00>H Not printed <02>H Below the bar code
[Notes]
HRI indicates Human Readable Interpretation
HRI characters are printed using X-scale = 1, Y-scale = 1 and the font
specified by
GS f.
[Default]
n
= <02>H [Reference]
GS f, GS k
FENIX IMVICO
TK23 OPERATION MANUAL
57/81
GS L
nL nH
[Name] Set left margin [Format] ASCII GS L
nL nH
Hex 1D 4C
nL nH
Decimal 29 76
nL nH
[Range] <00>H nL <FF>H
<00>H nH <FF>H
[Description] Sets the left margin using
nL
and nH.
The left margin is set to [(
nL + nH
x 256) x 0.125 mm].
[Notes]
This command is effective only when processed at the beginning of the line.
This commands affects text, graphic and bar code printing.
[Default]
nL
= <00>H,
nH
= <00>H
[Reference]
APPENDIX A
GS T n
[Name] Set print position to the beginning of print line [Format] ASCII GS T
n
Hex 1D 54 n Decimal 29 84 n
[Range]
n
= <00>H or n = <01>H
[Description] Sets the print position to the beginning of print line.
n
specifies the data processing in the print buffer.
n Printing position
<00>H Sets the print position to the beginning of print line after deleting all
data in the print buffer.
<01>H Sets the print position to the beginning of print line after printing all data
in the print buffer.
Printable area
Left margin
FENIX IMVICO
TK23 OPERATION MANUAL
58/81
1) GS V m 2) GS V m n
[Name] Select cut mode and cut paper
[Format] ASCII GS V
m
Hex 1D 56
m
Decimal 29 86 m
ASCII GS V
m n
Hex 1D 56
m n
Decimal 29 86
m n
[Range]
m
= 1, 49
m
= 66, 0 n 255
[Description] Selects a mode for cutting paper and executes paper cutting. The value of m selects the mode as follows:
m
Print Mode
<01>H Cuts paper in the current position <42>H Feeds paper (cutting position + [n x 0,125mm]), and cuts the paper.
[Notes for and ]
Cutting position is the distance between the thermal head and the cutter (15mm).
This command is effective only when processed at the beginning of a line.
After cutting the ticket, the printer always feeds the paper back to the printing
position.
[Notes for 1)] The printer cuts paper at the current position, even when the Optical Mark is enabled.
[Notes for 2)]
Without optical mark:
When
n
= <00>H, the printer feeds paper to the cutting position and cuts it.
When n <00>H, the printer feeds paper to (cutting position + [
n
x 0.125 mm
(0.0049”)]) and cuts it.
With optical mark:
When the Optical Mark sensor is set to be effective, the printer feeds paper to (Optical Mark ± [(Value which is set by
GS ( F
) x 0.125mm]) and cuts it. After
cutting, it feeds paper to the position specified by the command
GS ( F
. See point 3.6- OPTICAL MARK.
[Default]
n
= <00>H
[Reference]
GS ( F, ESC i, ESC m
FENIX IMVICO
TK23 OPERATION MANUAL
59/81
GS f n
[Name] Select font for Human Readable Interpretation (HRI) characters [Format] ASCII GS f
n
Hex 1D 66
n
Decimal 29 102
n
[Range]
n
= <00>H or <01>H
[Description] Selects a font for the HRI characters used when printing a bar code.
n
selects a font from the following table:
n
Font
<00>H Font A (12x24) <01>H Font B (8x16)
[Notes]
HRI indicates Human Readable Interpretation
HRI characters are printed at the position specified by
GS H
.
HRI characters are always printed at X-Scale = 1 and Y-Scale = 1
[Default]
n
= <01>H
[Reference]
GS H, GS k
GS h n
[Name] Select bar code height [Format] ASCII GS h
n
Hex 1D 68
n
Decimal 29 104
n
[Range] <01>H n <FF>H
[Description] Selects the height of the bar code.
n
specifies the number of dots in the vertical direction.
[Default]
n
= <A2>H (162 dots)
[Reference]
GS k
FENIX IMVICO
TK23 OPERATION MANUAL
60/81
GS k
m n d1...dn
[Name] Print bar code [Format] ASCII GS k
m n d
1...
dn
Hex 1D 6B
m n d
1...
dn
Decimal 29 107
m n d
1...
dn
[Range] m= <43>H , m = <45>H, m= <46>H or m= <49>H
(n
and d depend on the bar code system used). [Description] Selects a bar code system and prints the bar code. m selects a bar code system as follows:
m
Bar Code System Number of Characters Remarks
<43>H EAN13
n= <0C>H
<30>H d <39>H
<45>H CODE39
<01>H n <FF>H <30>H d <39>H, <41>H
d
<5ª>H, <20>H, <24>H,
<25>H, <2B>H, <2D>H, <2E>H, <2F>H
<46>H ITF
<01>H n <FF>H
(even number)
<30>H d <39>H
<49>H Code128
<02>H n <FF>H <00>H d <7F>H
[Notes]
n
indicates the number of bar code data bytes, and the printer processes
n
bytes from the next character data as bar code data.
If
n
is outside the specified range, the printer stops command processing and
processes the following data as normal data.
If
d
is outside the specified range, the printer only feeds paper and processes
the following data as normal data.
If the horizontal size exceeds printing area, the printer only feeds the paper.
This command feeds as much paper as is required to print the bar code,
regardless of the line spacing specified by
ESC 2
or
ESC 3
.
This command is enabled only when no data exists in the print buffer. When
data exists in the print buffer, the printer processes the data following m as normal data.
After printing the bar code, this command sets the print position to the
beginning of the line.
This command is not affected by print modes.
The number of data for the ITF bar code must be even numbers. When an odd
number of bytes of data is input, the printer ignores the last received data.
When Code128 (m=49h) is used:
1. Refer to Appendix G – CODE 128 BAR CODE for the information for the Code128 bar code and its code table.
2. When using Code128 in this printer, take the following points into account for data transmission:
! The top of the bar code data string must be the code set selection character (CODE A, CODE B or CODE C), which selects the first code set. ! Special characters are defined by combining two characters “{“ and one character. The ASCII character “{“ is defined by transmitting “{“ twice consecutively.
FENIX IMVICO
TK23 OPERATION MANUAL
61/81
Transmit data Specific
character
ASCII Hex Decimal
SHIFT {S 7B, 53 123, 83 CODE A {A 7B, 41 123, 65 CODE B {B 7B, 42 123, 66 CODE C {C 7B, 43 123,67
FNC1 {1 7B, 31 123, 49 FNC2 {2 7B,32 123, 50 FNC3 {3 7B, 33 123,51 FNC4 {4 7B,34 123, 52
“{“ {{ 7B, 7B 123, 123
[Example] Example data for printing “Ref. 258710” In this example, the printer first prints “No.” Using CODE B, then prints the following numbers using CODE C.
GS k
73 11 123 66 82 101 102 46 123 67 25 87 10
Fig. 4.2-
Code128 code example.
3. If the top of the bar code data is not the code set selection character, the printer stops command processing and processes the following data as normal data.
4. If the combination of “{“ and the following character does not apply any special character, the printer stop command processing and processes the following data as normal data.
5. If the printer receives characters that cannot be used in the special code set, the printer stop command processing and processes the following data as normal data.
6. The printer does not print HRI characters that correspond to the shift characters or code set selection characters.
7. HRI character for the function character is space.
8. HRI characters for the control character (<00>H to <1F>H and <7F>H) are space.
<Others> Be sure to keep spaces on both right and left sides of a bar code. (Spaces
are different depending on the types of the bar code.)
[Reference]
GS h, GS w
FENIX IMVICO
TK23 OPERATION MANUAL
62/81
GS v 0 m
xL xH yL yH d1 ... dk
[Name] Print raster bit image [Format] ASCII GS v 0
m xL xH yL yH d1...dk
Hex 1D 76 30
m xL xH yL yH d1...dk
Decimal 29 118 48
m xL xH yL yH d1...dk
[Range] <00>H m <03>H
<00>H xL <FF>H <00>H xH <FF>H where 1
(xL + xH
x 256) 128 <00>H yL <FF>H <00>H yH <08>H where 1
(yL + yH
x 256) 4095
<00>H d <FF>H
k = (xL + xH
x 256) x
(yL + yH
x 256)
(k ≠
0)
[Description] Selects raster bit-image mode. The value of m selects the mode, as
follows:
m
Mode
Vertical Dot Density
Horizontal Dot Density
<00>H Normal 203.2 dpi 203.2 dpi <01>H Double-width 203.2 dpi 101.6 dpi <02>H Double-height 101.6 dpi 203.2 dpi <03>H Quadruple 101.6 dpi 101.6 dpi
(dpi: dots per 25.4 mm {1"})
x
L, xH, select the number of data bytes (xL+
xH x
256) in the horizontal
direction for the bit image.
y
L, yH, select the number of data bits (yL+
yH x
256) in the vertical direction for
the bit image.
[Notes]
This command is effective only when there is no data in the print buffer.
Data outside the printing area is read in and discarded on a byte-by-byte
basis.
The position at which subsequent characters are to be printed for raster bit
image is specified by
GS L
(Set left margin).
d
indicates the bit-image data. Setting a bit to 1 prints a dot and setting it to 0
does not print a dot.
[Example] When xL + xH x 256 = 64
FENIX IMVICO
TK23 OPERATION MANUAL
63/81
GS w n
[Name] Set bar code width [Format] ASCII GS w
n
Hex 1D 77
n
Decimal 29 119
n
[Range] 2 n 6
[Description] Set the horizontal size of the bar code.
n
specifies the bar code width as follows:
Binary-level Bar Code
n
Module Width (mm)
for
Multi-level Bar
Code
Thin element
width (mm)
Thick element
width (mm)
2 0.282 0.282 0.706 3 0.423 0.426 1.129 4 0.564 0.564 1.411 5 0.706 0.706 1.834 6 0.847 0.847 2.258
Multi-level bar codes are as follows:
JAN 13(EAN13), CODE 128.
Binary-level bar codes are as follows:
ITF, CODE39
[Default]
n
= 3
[Reference]
GS k
FENIX IMVICO
TK23 OPERATION MANUAL
64/81
____________________________________________________________________
APPENDIX A – CHARACTERS x LINE
____________________________________________________________________
The maximum number of printable characters in one line is determined by the next formula:
The parameters of the formula are:
Mechanism: 832 dots (for LTP2442) 576 dots (for LTP2342)
448 dots (for LTP2242)
LeftMargin: 0 to 65535 -------------- Use
GS L nH nL
command
Right side: 0 to 255 ------------------ Use
ESC SP n
command
Font: 12 (for Font A)
8 (for Font B)
---------- Use
ESC M n
command
CharWidth: 1 to 8 ---------------------- Use
GS ! n
command
Max. Of char / line =
Mechanism - LeftMargin
(Right-side + Font) x CharWidth
FENIX IMVICO
TK23 OPERATION MANUAL
65/81
______________________________________________________
APPENDIX B – CHARACTER CODE TABLES
______________________________________________________
PAGE 0: PC437 USA, Standard Europe (International Character Set: USA).
FENIX IMVICO
TK23 OPERATION MANUAL
66/81
During execution, user can change the character code table sending
ESC t n
command to the printer, where n is the parameter (page number). By default, page 0 is selected (see point 4 - CONTROL COMMANDS for more details).
NOTE: Only the 128-255 upper character codes are affected, the 128 lower character codes are the same as PC437.
PAGE 17: PC866 [Cyrillic #2]
FENIX IMVICO
TK23 OPERATION MANUAL
67/81
____________________________________________________________________
APPENDIX C – RECOVERY FROM AUTOCUTTER ERROR
____________________________________________________________________
If a foreign object, such as a push pin or paper clip, drops in the autocutter and
causes the autocutter to lock up, the printer enters an error state and begins the recovery operation automatically.
If the problem is not serious, the autocutter returns to its normal position without any intervention by the user.
If the autocutter does not return to its normal position by itself, turn the printer off. Insert a Phillips screwdriver through the slot as shown in
figure C.1
and into the
screw in the worm gear of the motor axis. Then, turn the screw until blade retreats.
If you cannot rotate the motor gear, rotate it in the reverse direction to loosen it; then
press the paper feed button. Open the platen unit
(see pag. 7
-
figure a)
, remove
the jammed paper, and reinstall the paper roll. Then close the platen unit.
Figure C.1-
Printer mechanism. Front view.
Insert Phillips screwdriver and turn it till blade retreats
__________________________________________________________________
APPENDIX D – EXTERNAL APPEARANCE
____________________________________________________________________
Fig. D.1- TK23-60/80 external dimensions.
FENIX IMVICO
TK23 OPERATION MANUAL
69/81
Fig. D.2- TK23-60/80 isometric view. External dimensions without paper roll (aprox.) Unit:mm
70/81
___________________________________________________________________
APPENDIX E – SPECIFICATIONS
____________________________________________________________________
TK23
Printing mechanism series
SEIKO LTP2242 SEIKO LTP2342
Printing method Thermal dot line Data interface CENTRONICS parallel
RS232 Serial Dot composition/line 448 576 Resolution 8 dots/mm Printing speed (mm/s) (1) 90 75 Paper width (mm)
59.5 ± 0.5 79.5 ± 0.5
Paper roll diameter 110mm MAX. Printing width (mm) Max. 56 72 Character/line Max. Interchar:1,Font Scale:1x1 Font A (12x24) Font B (8x16)
34 49
44
64 Operating voltage range 24V DC +/-10% Tolerated voltage limits 18V DC min. to 27V DC max. Current consumption at 25% printing ratio (see 2.2.1.Power supply connector).
Fixed division:
-
Mean: 1,4 A
-Peak: 1,7 A
Two-part energizing mode:
-
Mean: 0,85 A
-Peak: 0,1 A
Standby:
Approx. 0,1 A
Fixed division:
-
Mean: 1,8 A
-Peak: 2,2 A
Two-part energizing mode:
-
Mean: 1,05 A
-Peak: 1,25 A
Standby:
Approx. 0,1 A
Maximum ticket length 200 mm (recommended) Operating ambient Temp. 0ºC to 50ºC (non condensing) Long Term Storage Temp. -20ºC to 60ºC (non condensing) Dimensions aprox.(mm) WxDxH (2)
121x167x89 141x167x89
Weight aprox. (gr) (2) 840 940 Recommended thermal Paper
TF50KS-E From Nippon Paper Industries P350 KSP AF50KS-E Jujo Thermal
PD160R From Oji Paper Industries Thermal head life Activation pulse resistance Abrasion resistance
100 million pulses or more
50 Km or more Autocutter life 1.000.000 cuts
(when above 30ºC and above 60% HR, 750.000 cuts)
(1) Printing speed may be slower, depending on the data transmission speed, control
commands, environmental conditions or selection of the print density.
(2) Without paper roll
FENIX IMVICO
TK23 OPERATION MANUAL
71/81
APPENDIX F – HOW TO ORDER
PRINTER
POWER SUPPLY (Optional)
FAPOS-1
Input voltage 100v –240v AC Frequency 50/60 Hz Output voltage 24v DC Output current 2,5 A Power 60 Watts (Max.) Safety requirements
UL/CSA/TUV/IEC950
CE
FFC Mechanical dimensions
132(L) x 69(W) x 40(H) mm
TK23 - XX - XX - XX
Paper width (Seiko mechanism):
60 :
59,5 mm (LTP2242)
80 :
79,5 mm (LTP2342)
Printer version:
nil
:
standard type
XX : Other special
requirements (under agreement only)
Autocutter:
nil
:
Full cut
(standard mode)
AP : Partial cut
FENIX IMVICO
TK23 OPERATION MANUAL
72/81
ACCESORIES (Optional)
TK44fotocelula
PULSA TK11
AVAILABLE ACCESORIES
PARTNUMBER
Description
FAPOS-1
Power supply
RS232- 2
Standard RS232 cable for TK23 1,5m
CENTRONIC-2
Standard Centronic cable for TK23 1,5m
T60X110X25
Standard 110 mm diameter paper roll for 60
T80X110X25
Standard 110 mm diameter paper roll for 80
FENIX IMVICO
TK23 OPERATION MANUAL
73/81
________________________________________________________________
APPENDIX G – FREQUENTLY ASKED QUESTIONS
____________________________________________________________________
The printer is connected and the power is ON but it does not print and the paper does not come out.
Check your power supply and make sure it is giving the specified values.
Remove any foreign objects from the paper inlet.
If using the serial port, check the port configuration.
The paper comes out but no characters are printed.
Make sure you are using the correct paper.
Make sure you are using the correct side of the thermal paper.
Check your program.
If the paper is correct, try to execute a self-test.
The printing is too light (or too dark).
Check that the environmental temperature is within the specified range.
Make sure you are using the correct paper.
Check the print density status (
”GS ( K 0 2 1 m”
command)
FENIX IMVICO
TK23 OPERATION MANUAL
74/81
___________________________________________________________________
APPENDIX H – CODE128 BAR CODE
____________________________________________________________________
In Code128 bar code system, it is possible to represent 128 ASCII characters and 2­digit numerals using one bar code character that is defined by combining one the 103 bar code characters and 3 code sets. Each code set is used for representing the following characters:
G.1 Description of the CODE128 Bar Code
Code set A: ASCII characters 00H to 5FH
Code set B: ASCII characters 20H to 7FH
Code set C: 2-digit numeral characters using one character (100 numerals from 00
to 99)
The following special characters are also available in Code128:
-
SHIFT characters
In code set A, the character just after SHIFT is processed as a character for code set B. In code set B, the character just after SHIFT is processed as the character for code set A. SHIFT character cannot be used in code set C.
-
Code set selection character (CODE A, CODE B or CODE C)
This character switches the following code set to code set A, B or C.
-
Function character (FNC1, FNC2, FNC3 or FNC4)
The usage of function characters depends on the application software. In code set C, only FNC1 is available.
FENIX IMVICO
TK23 OPERATION MANUAL
75/81
G.2 Printable characters in CODE SET A
Transmit Data Transmit Data Transmit Data
Character
Hex Decimal
Character
Hex Decimal
Character
Hex Decimal
NUL 00 0 ( 28 40 P 50 80
SOH 01 1 ) 29 41 Q 51 81
STX 02 2 * 2A 42 R 52 82 ETX 03 3 + 2B 43 S 53 83 EOT 04 4 , 2C 44 T 54 84
ENQ 05 5 - 2D 45 U 55 85
ACK 06 6 . 2E 46 V 56 86 BEL 07 7 / 2F 47 W 57 87
BS 08 8 0 30 48 X 58 88 HT 09 9 1 31 49 Y 59 89 LF 0A 10 2 32 50 Z 5A 90 VT 0B 11 3 33 51 [ 5B 91
FF 0C 12 4 34 52 \ 5C 92 CR 0D 13 5 35 53 ] 5D 93 SO 0E 14 6 36 54 ^ 5E 94
SI 0F 15 7 37 55 - 5F 95 DLE 10 16 8 38 56 FNC1 7B,31 123,49 DC1 11 17 9 39 57 FNC2 7B,32 123,50 DC2 12 18 : 3A 58 FNC3 7B,33 123,51 DC3 13 19 ; 3B 59 FNC4 7B,34 123,52 DC4 14 20 < 3C 60 SHIFT 7B,53 123,83 NAK 15 21 = 3D 61 CODEB 7B,42 123,66 SYN 16 22 > 3E 62 CODEC 7B,43 123,67 ETB 17 23 ? 3F 63
CAN 18 24 @ 40 64
EM 19 25 A 41 65 SUB 1A 26 B 42 66 ESC 1B 27 C 43 67
FS 1C 28 D 44 68 GS 1D 29 E 45 69 RS 1E 30 F 46 70 US 1F 31 G 47 71
SP 20 32 H 48 72
! 21 33 I 49 73
“ 22 34 J 4A 74 # 23 35 K 4B 75 $ 24 36 L 4C 76
% 25 37 M 4D 77
& 26 38 N 4E 78
` 27 39 O 4F 79
FENIX IMVICO
TK23 OPERATION MANUAL
76/81
G.3 Printable characters in CODE SET B
Transmit Data Transmit Data Transmit Data
Character
Hex Decimal
Character
Hex Decimal
Character
Hex Decimal
SP 20 32 H 48 72 P 70 112
! 21 33 I 49 73 Q 71 113
“ 22 34 J 4A 74 R 72 114 # 23 35 K 4B 75 S 73 115 $ 24 36 L 4C 76 T 74 116
% 25 37 M 4D 77 U 75 117
& 26 38 N 4E 78 V 76 118
´ 27 39 O 4F 79 W 77 119
( 28 40 P 50 80 X 78 120
) 29 41 Q 51 81 Y 79 121
* 2A 42 R 52 82 Z 7A 122 + 2B 43 S 53 83 { 7B,7B 123,123
, 2C 44 T 54 84 | 7C 124
- 2D 45 U 55 85 } 7D 125
. 2E 46 V 56 86 - 7E 126
/ 2F 47 W 57 87 DEL 7F 127 0 30 48 X 58 88 FNC1 7B,31 123,49 1 31 49 Y 59 89 FNC2 7B,32 123,50 2 32 50 Z 5A 90 FNC3 7B,33 123,51 3 33 51 [ 5B 91 FNC4 7B,34 123,52 4 34 52 \ 5C 92 SHIFT 7B,53 123,83 5 35 53 ] 5D 93 CODEA 7B,41 123,65 6 36 54 ^ 5E 94 CODEC 7B,43 123,67 7 37 55 - 5F 95 8 38 56 ` 60 96 9 39 57 a 61 97
: 3A 58 b 62 98
; 3B 59 c 63 99 < 3C 60 d 64 100 = 3D 61 e 65 101 > 3E 62 f 66 102 ? 3F 63 g 67 103
@ 40 64 h 68 104
A 41 65 i 69 105 B 42 66 j 6A 106 C 43 67 k 6B 107 D 44 68 l 6C 108 E 45 69 m 6D 109 F 46 70 n 6E 110
G 47 71 o 6F 111
FENIX IMVICO
TK23 OPERATION MANUAL
77/81
G.4 Printable characters in CODE SET C
Transmit Data Transmit Data Transmit Data
Character
Hex Decimal
Character
Hex Decimal
Character
Hex Decimal
00 00 0 40 28 40 80 50 80 01 01 1 41 29 41 81 51 81 02 02 2 42 2A 42 82 52 82 03 03 3 43 2B 43 83 53 83 04 04 4 44 2C 44 84 54 84 05 05 5 45 2D 45 85 55 85 06 06 6 46 2E 46 86 56 86 07 07 7 47 2F 47 87 57 87 08 08 8 48 30 48 88 58 88 09 09 9 49 31 49 89 59 89 10 0A 10 50 32 50 90 5A 90 11 0B 11 51 33 51 91 5B 91 12 0C 12 52 34 52 92 5C 92 13 0D 13 53 35 53 93 5D 93 14 0E 14 54 36 54 94 5E 94 15 0F 15 55 37 55 95 5F 95 16 10 16 56 38 56 96 60 96 17 11 17 57 39 57 97 61 97 18 12 18 58 3A 58 98 62 98 19 13 19 59 3B 59 99 63 99 20 14 20 60 3C 60 FNC1 7B,31 123,49 21 15 21 61 3D 61 CODEA 7B,41 123,65 22 16 22 62 3E 62 CODEB 7B,42 123,66 23 17 23 63 3F 63 24 18 24 64 40 64 25 19 25 65 41 65 26 1A 26 66 42 66 27 1B 27 67 43 67 28 1C 28 68 44 68 29 1D 29 69 45 69 30 1E 30 70 46 70 31 1F 31 71 47 71 32 20 32 72 48 72 33 21 33 73 49 73 34 22 34 74 4A 74 35 23 35 75 4B 75 36 24 36 76 4C 76 37 25 37 77 4D 77 38 26 38 78 4E 78 39 27 39 79 4F 79
FENIX IMVICO
TK23 OPERATION MANUAL
78/81
___________________________________________________________________
APPENDIX I – TESTING SOFTWARE
____________________________________________________________________
The TK23 printer is delivered together with a Windows-based, testing & configuring program. This program is an easy way to explore the TK23´s main features.
To install the program, run the “SETUP.EXE” file and follow the instructions on the
screen. The program is intended for three purposes:
Printer Configuration.
Printer Status.
Sample ticket.
These three parts are distinguished in the program main window. And they are explained next.
PRINTER CONFIGURATION
Fixed(default) or dinamic mode selection
mechanism selection by Paper-width
Serial(default) or Parallel Port selection
Serial Port configuration
FENIX IMVICO
TK23 OPERATION MANUAL
79/81
PRINTER STATUS
When enabling the printer status, the program tests the printer’s sensors and notifies every significant error or printing status.
The program tests the printer’s status once. In some errors, there may be a little time delay from the moment when the error is produced until the printer notifies it.
Check Printer Status Pushbutton
Push to restore default program settings
FENIX IMVICO
TK23 OPERATION MANUAL
80/81
SAMPLE TICKET
With this feature, user can appreciate different formats of text by choosing the attributes of the desired text.
Sample Text, up to 25 characters available
Attributes to choose
Character Font selection
Prints (no cut) customized ticket
Prints selected graphic sample
Prints BarCode
Printer Autotest
Inverse Print & Bold selection
Prints and cut customized ticket
FENIX IMVICO
TK23 OPERATION MANUAL
81/81
SPAIN c/ Pacífic, 53-55 – 08027 BARCELONA Phone Num: 34 – 93 353 92 22 Fax Num: 34 – 93 353 97 21 E-mail: fenixim@retemail.es http: www.feniximvico.com
Loading...