Preview only show first 10 pages with watermark. For full document please download

Tk55 Thermal Printer Series

   EMBED


Share

Transcript

TK55 THERMAL PRINTER SERIES Operation manual Rev 1.0 INDEX 1 -INTRODUCTION........................................................................................................3 2 -IMPORTANT NOTES ON THERMAL PRINTER HANDLING....................................4 2.1 -SAFETY PRECAUTIONS....................................................................................................... 4 2.2 -ABSOLUTE MAXIMUM RATINGS.......................................................................................... 5 2.3 -CLEANING PROCEDURE AND PRECAUTIONS...................................................................5 2.4 -RECOMMENDATIONS........................................................................................................... 5 3 -GENERAL SPECIFICATIONS....................................................................................6 3.1 -PRINTING SPECIFICATIONS................................................................................................ 6 3.2 -CHARACTER SPECIFICATIONS........................................................................................... 6 3.3 -PAPER SPECIFICATIONS..................................................................................................... 6 3.4 -COMMUNICATIONS INTERFACE.......................................................................................... 7 3.5 -DIGITAL OUTPUT................................................................................................................... 7 3.6 -INTERNAL BUFFER............................................................................................................... 7 3.7 -ELECTRICAL SPECIFICATIONS........................................................................................... 7 3.8 -BARCODE SPECIFICATIONS................................................................................................ 7 3.9 -MECHANICAL SPECIFICATIONS.......................................................................................... 7 3.10 -ENVIROMENTAL CONDITIONS........................................................................................... 8 4 -INSTALLATION..........................................................................................................9 4.1 -INSTALLATION CONSIDERATIONS......................................................................................9 4.1.1 -Direct output system.................................................................................................. 9 4.1.2 -External chute system..............................................................................................10 4.2 -TK55 CONNECTORS........................................................................................................... 11 4.2.1 -Power supply connector........................................................................................... 12 4.3 -RS-232 SERIAL INTERFACE............................................................................................... 12 4.3.1 -RS-232 Serial interface specifications ....................................................................12 4.3.2 -Change between online and offline mode................................................................13 4.3.3 -Serial RS-232 interface pins assignment.................................................................13 4.4 -USB INTERFACE................................................................................................................. 13 4.5 -DIGITAL OUTPUT CONNECTION........................................................................................ 14 5 -BASIC OPERATIONS..............................................................................................15 5.1 -PAPER LOADING................................................................................................................. 15 5.1.1 -Automatic paper loading.......................................................................................... 15 5.1.2 -Manual paper loading..............................................................................................15 5.2 -OPEN CUTTER UNIT........................................................................................................... 15 5.3 -BUTTON FUNCTIONS......................................................................................................... 16 5.4 -LED INDICATOR................................................................................................................... 16 5.5 -SPECIAL PRINTING MODES...............................................................................................16 5.5.1 -Self-test mode.......................................................................................................... 17 5.5.2 -Hexadecimal dump mode........................................................................................ 17 5.6 -BLACK MARK SENSOR....................................................................................................... 18 5.6.1 -Size and specification of black mark........................................................................19 5.7 -ERROR PROCESSING........................................................................................................ 19 5.7.1 -Error types............................................................................................................... 19 5.8 -DIGITAL OUTPUT................................................................................................................. 21 6 -CONTROL COMMANDS..........................................................................................23 6.1 -COMMAND NOTATION........................................................................................................ 23 6.2 -TERM DEFINITIONS............................................................................................................ 23 6.3 -DESCRIPTION OF THE CONTROL COMMANDS...............................................................24 APPENDIX A – MECHANICAL DIMENSIONS..............................................................48 APPENDIX B – HOW TO ORDER................................................................................52 APPENDIX C – CODE128 BARCODE.........................................................................53 APPENDIX D – INTERNAL CHARACTER TABLES.....................................................57 APPENDIX E – TESTING SOFTWARE........................................................................58 APPENDIX F – FONT LOADER SOFTWARE..............................................................60 TK55 SERIES OPERATION MANUAL 1 - INTRODUCTION The TK55 is a very high-performance thermal printer, specially designed to control EPSON MT54xII and M-T52xII printer mechanisms. Its compact and functional design covers many industrial uses. It is capable of printing text, graphics, logo and bar codes. The TK55 is intended to be integrated into the user’s final system. Its structure allows an easy connection both with the mechanism connectors and with the communications and power supply connectors. Main features of the TK55 thermal printer are: • Simple installation and easy maintenance. • Three paper widths available (59.5mm, 79.5mm and 82.5mm) depending on the printing mechanism used. • High speed printing: up to 250mm/s (NOTE 1). • Single 24V DC power supply. • Available sensors: No-paper, paper-near-end, optical mark, ticket pick-up and paper jam. • Programable optional output for user control (buzzer, LEDs, relay..) • Printing resolution: 8 dots/mm (203 dpi). • Port interface: - Serial RS232C data input interface on-board (up to 230400bps). - Universal Serial Bus (USB2.0). • Scalable font (independent scale in X / Y axis), up to 64 times. • Programmable character and line space. • Bold, underline, reverse and rotate character capabilities • Graphic bitmap printing capabilities. • Several format bar code (EAN13, Code39, Code128 and ITF). • Several 2D format Bar Code (QR and AZTEC). • Two internal character fonts (A font = 12x24 dots. B font = 8x16 dots). • Control code based on ESC / POS commands (NOTE 2). • Automatic paper load. • Four maintenance counters (On/Off times, hours, meters and cuts) • Hexadecimal mode for easy software debugging. • Self test mode feature • Input buffer of 32KBytes. • Multiple logo load capability through Windows driver or command. • Upgrading of firmware version through communication port (NOTE 3). • TrueType font loading capability (NOTE 3). • Extended operating temperature range (-20ºC to +70ºC). • Storage temperature range (-35ºC to +75ºC). • Automatic cut with partial or full cut capability. • Windows XP and Windows 7 drivers and demo/configuration program. • Linux Driver. (1) (2) (3) Print speed changes according to the baud rate in RS232 connection and temperature. Higher printer speed rates are achieved at higher baud rates and USB connection. ESC/POS are registered trademarks of Seiko Epson Corporation. In order to upload new firmware or new TrueType font, FWLoader and FontLoader application programs are available on our website. This manual is the printer operations’ guide and is intended for the designer’s application. The following sections contain a detailed description of both hardware and configuration software that allow obtaining the maximum benefit of the printer capabilities. 3 of 61 TK55 SERIES OPERATION MANUAL 2 - IMPORTANT HANDLING NOTES ON THERMAL PRINTER In order to preserve the life of the printer, it is necessary to keep in mind some precautions on the handling of the TK55 printer. Please read carefully the following points in order to make a good use of the printer. 2.1 - SAFETY PRECAUTIONS • Before using the printer, read carefully section 4- INSTALLATION. • NEVER connect the external power supply with the wrong polarity. This could permanently damage the printer. • Turn off the printer immediately if it produces smoke, a strange smell or an unusual noise. Keeping on using the printer could cause fire. Unplug the equipment immediately and contact your official distributor. • NEVER connect cables with different connectors from the ones mentioned in this manual. Failing on doing so could permanently damage the printer. • Use a power supply whose output voltage is within the specification range stated in this manual. Over voltage can permanently damage the printer. Under voltage can cause malfunctions. • NEVER wet TK55 thermal printer with water or any other liquid. If any liquid is spilled inside the equipment, unplug the power cable immediately and contact the technical service. • Make sure the printer is on a steady, securely fixed surface. If the printer falls down, it could break or damage. • NEVER use the printer in high humidity or in locations with high risk of fire. • NEVER place heavy objects on top of the printer and never lean on it. • NEVER put any object inside of the printer, as it could cause hardware damage on it, such as short-circuit, print head breaking or general failure of the printer. • NEVER shake the printer. • NEVER disassemble or modify the hardware of the printer. • NEVER try to repair the printer. Please contact your official distributor in case of failure. • As the printer contains electromagnets (inside of the motor), it should not be used in excessively dirty environments or places with dust or metal particles. • NEVER print without paper loaded or without the cover closed, as the thermal print head life can be highly shortened. • NEVER pull the paper out when the cover is closed. Use the paper advance button instead. • Avoid touching accessible parts with metallic objects, such as screwdrivers or tweezers, the print head thermal elements as well as the electronic printed circuit. They are delicate parts. • NEVER touch with bare hands the areas around the print head and the motor surface as they become very hot during and just after printing; wait 15 seconds after printing to let them cool down. • NEVER touch the surfaces of the print head thermal elements or the electronic printed circuit, as dust and dirt can stick to their surface and cause damage by electrostatic discharge. Moreover, some electronic components can get very hot during operation. • The thermal paper contains Na+, K+ and Cl- ions that can cause harm to the print head elements. Therefore, use only the specified paper. • If the printer has not been used for long period of time and the paper was loaded, the paper could become deformed by the drive roller pressure. It is recommended to make it advance at least 30 mm before printing again. • For safety reasons, unplug the printer if it is not going to be used over a long period of time. • Do not print continuously (without stopping) for more than 6 minutes. 4 of 61 TK55 SERIES OPERATION MANUAL 2.2 - ABSOLUTE MAXIMUM RATINGS Supply voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +30VDC Operating temperature range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −20°C to 70°C Storage temperature range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −35°C to 75°C 2.3 - CLEANING PROCEDURE AND PRECAUTIONS Paper dust, paper chips, and thermal chemicals attached to the heat elements of the print head and the platen may reduce print quality. In order to clean the thermal print head, proceed as indicated by the following steps: 1- Unplug the power supply cable and open the cutter unit. 2- Pull the paper lever in order to release the platen. 3- Soak a cotton sponge in alcohol (ethanol, methanol or IPA), and rub it gently along the thermal head in order to remove the possible accumulation of paper particles. 4- Wait for alcohol to evaporate before inserting the paper roll and closing the cover. FENIX recommends cleaning the thermal print head periodically (every 2 or 3 months) in order to keep an optimal print quality. NOTES:  The print head may be hot after printing. Make sure it has thoroughly cooled down before proceeding to clean it.  Never touch the thermal elements of the print head with your hands.  Never use metallic or piercing elements to clean the print head, as they could scratch it. Fig. 1 - Thermal print head cleaning 2.4 - RECOMMENDATIONS • The plug has to be located near the printer and has to be easily obtainable. • Before connecting any communication data cable, check the printer is working properly by executing the self-test. • Set the TK55 in a place where the connection cables do not suffer stretching or cross with each other. • IMPORTANT!!! Since the printer demands high current peaks during operation it is advisable to make the power supply cables the shortest possible. 5 of 61 TK55 SERIES OPERATION MANUAL 3 - GENERAL SPECIFICATIONS 3.1 - PRINTING SPECIFICATIONS Printing method Dot density Printing direction Thermal line printing 203 x 203 dpi (1) Unidirectional with friction feed M-T522II 60mm (448 dots) M-T532II 80mm (640 dots) M-T542II 82.5mm (640 dots) High speed mode: up to 250mm/s (2) 250mm/s (continuous paper feed) Printing width Printing speed Paper feed speed (1) (2) ‘dpi’: dots per inch. 1 inch = 25.4mm; 203 dpi = 8 dots per mm Printing speed could vary depending on the print head temperature as well as the command processing and the data transmission speed. Low transmission speed could cause intermittent printing. It is recommended to transmit data to the printer as quickly as possible. 3.2 - CHARACTER SPECIFICATIONS Character per line (default) Character spacing (default) Character structure Font A: 24 Font B: 32 0.5 mm (4 dots) Font A: 12 x 24 dots (1.5 x 3 mm). (default) Font B: 8 x 16 dots (1 x 2 mm). Font A WxH(mm) – cpl(2) Font B WxH(mm) – cpl Character size (mm) (1) Number of characters Line spacing (default) (1) (2) Standard Double-width Double-height Double width/height: Alphanumeric characters: Extended Graphics: 1,875mm (15 dots) 1.5 x 3 – 24 3 x 3 – 12 1.5 x 6 – 24 3 x 6 – 12 1 x 2 – 32 2 x 2 – 16 1 x 4 – 32 2 x 4 – 16 95 128 per page Characters can be scaled up to 64 times bigger than their normal size. ‘cpl’: characters per line. 3.3 - PAPER SPECIFICATIONS Paper type Paper specifications Thermal Original paper No.: TF11KS-ET Nippon paper industries Co., Ltd. Original paper No.: TF50KS-E Nippon paper industries Co., Ltd. Original paper No.: TF77KS-E Nippon paper industries Co., Ltd. Original paper No.: PD160R Oji paper MFG. Co., Ltd. Original paper No.: PD150R Oji paper MFG. Co., Ltd. Original paper No.: AF50KS-E JUJO THERMAL Original paper No.: KT55 Koehler Original paper No.: P350 KSP Paper loading Automatic. Width 59.5 ± 0.5mm (2.34” ± 0.02”) → M-T522II printing mechanism 79.5 ± 0.5mm (3.13” ± 0.02”) → M-T532II printing mechanism 82.5 ± 0.5mm (3.13” ± 0.02”) → M-T542II printing mechanism Size Inner diameter: 25m minimum Outter diameter: 80mm maximum for short paper holder version 180mm maximum for long paper holder version 6 of 61 TK55 SERIES OPERATION MANUAL NOTES: 1. Print quality varies depending on paper types. 2. Use the specified thermal paper, or proper print quality may not be obtained, the life of the print head and autocutter unit may be shortened, or printer troubles may be caused. 3. Be sure to use paper of 56 to 150 μm. 3.4 - COMMUNICATIONS INTERFACE Serial Serial interface RS232/TTL (baud options 203400, 115200, 38400, 19200, 9600) USB USB 2.0 480Mbit/s 3.5 - DIGITAL OUTPUT Max Drive current 100mA continuous, 200mA peak. Max supported voltage 45VDC open-drain 3.6 - INTERNAL BUFFER The standard TK55 printer has a 32 Kbytes internal memory buffer, whose functionality is dynamically shared by the receiving buffer. The buffer is being filled at the same time that buffered data is being printed, for that reason high transmission speed is required in order to ensure that data is available for printing at any time. Data transfer of at least 115200 bauds or USB connection increase the printing performance substantially. 3.7 - ELECTRICAL SPECIFICATIONS Power supply: +24VDC ± 10% Consumption: High speed mode Standby mode Mean current Peak current Mean current 80mm paper-width model Approx. 9A Approx. 14A Approx. 0.1A 60mm paper-width model Approx. 6.5A Approx. 10A Approx. 0.1A 3.8 - BARCODE SPECIFICATIONS Standard barcodes EAN-13, CODE39, ITF, CODE128 2D barcodes AZTEC, QR 3.9 - MECHANICAL SPECIFICATIONS Overall dimensions (W x D x H) See APPENDIX A – MECHANICAL DIMENSIONS Weight (without paper) TK55-60: 1300g approx. TK55-80 / TK55-82.5: 1500g approx. 7 of 61 TK55 SERIES OPERATION MANUAL 3.10 - ENVIROMENTAL CONDITIONS Operating temperature -20 to 70ºC Reliable printing: 5 to 50°C Note that there are some restrictions, depending on the temperature range Operating humidity 10 to 80% (non-condensing) (Humidity at 34°C or higher is equivalent to the absolute humidity at 34°C, 80%.) Storage temperature -35 to 75ºC (without paper, in a dry place) Life span (at 25ºC ) Activation pulse resistance 100 millions pulses or more (print ratio=12’5%). Abrasion resistance 50 Km or more NOTES: The ambient temperature should be kept close to room temperature. Stop printing when the print head temperature detected by the head thermistor reaches 75°C. Resume printing when the temperature drops down to 70°C for lower. Fig. 2 - Operating temperature and humidity range 8 of 61 TK55 SERIES OPERATION MANUAL 4 - INSTALLATION 4.1 - INSTALLATION CONSIDERATIONS The TK55 is designed to be fixed in a bigger case or structure or another kind of appropriate chassis. A wrong installation may cause many issues 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. Be sure to make a good earth connection. Prevent final user’s from accessing the printer outlet. Allow enough room and accessibility to reach the maintenance procedure points in case it is needed. Take notice all user accessible parts in the printer: – Printing Head – Paper roll location. – Connectors. – Led and push-button. Fix the TK55 printer to the chassis by using four screws (Ø5mm maximum) as shown on the pictures below. It is recommended to implement some system to allow the printer to be moved backwards when accessing the printing head. Below it is shown how to fix the printer onto a detachable or sliding tray or practice fixing slots on the supporting base, so that the TK55 can be moved backwards and forwards for easy maintenance. Fig. 3 - Fixing the TK55 onto a sliding tray or through fixing slots 4.1.1 - Direct output system The following points must be assured for the correct performance of the printer: • • In case of paper nozzle obstruction, the top opening will work as paper relief making a paper loop as the paper is being output from the printer mechanism. For this system to work properly it is necessary to leave a minimum gap as shown below. It is recommended to implement some system to allow printer retraction as show in previous figure. 9 of 61 TK55 SERIES OPERATION MANUAL • • It is recommended, also, to leave a sufficient gap at the paper roll side to allow the printer being removed for servicing. On the top side of the paper nozzle there is a notch intended to ease the paper collection. The front side of the cabinet or kiosk must not overlap this notch. The following figure shows a diagram of this system: 12mm minimum Front side of cabinet 25mm minimum Fig. 4 - Direct output system Below it is shown the dimensions of the slot to be practiced on the front side of the kiosk to put the paper nozzle across. Notice that the dimensions shown below take into account that a gap of 12mm is kept as shown in the figure above. For a different gap, the slot width has to be reduced accordingly. 60mm paper width printer 80/82.5mm paper width printer Fig. 5 - Cut window for paper nozzle (dimensions in mm) 4.1.2 - External chute system The idea of this system is to print and cut the ticket inside the machine, and then make it fall into a receptacle where the user can pick it up. When mounting the printer using this schema it must be assured that the minimum distance between printer and front wall is respected in order to be able to open the printer mechanism and also leave the ticket fall naturally into the receptacle. 10 of 61 TK55 SERIES OPERATION MANUAL Two points must be assured to make this system work right: • • The construction of the receptacle must prevent the user from reaching any internal part 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 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. The following figure shows a diagram of this system: Minimum 20mm to allow mechanism opening Front side of cabinet Ticket to be picked up from user Ticket receptacle Fig. 6 - External chute system Note: This schema of installation it is not the standard one therefore two points have to be taken into account: the printer has to be ordered specially for it (no paper nozzle is mounted) and the ticket pickup sensor should be installed by the customer on the self developed ticket receptacle. 4.2 - TK55 CONNECTORS On the TK55 could be found the following connectors: POWER SUPPLY USB POWER SUPPLY RS232 Fig. 7 - Connectors location USB and SERIAL interfaces 11 of 61 TK55 SERIES OPERATION MANUAL 4.2.1 - Power supply connector The TK55 is powered by an external power supply by means of 3-pins connector shown below. Verify power supply voltage before connecting the printer. GND 24VDC N.C Fig. 8 - Power supply connector J1. Use a 3-pin DC jack TCS-7960-43-2010 (HOSIDEN) or equivalent. NOTES: (1) The TK55 requires one power source: VCC (24VDC) for driving the thermal head and motor. If the number of dots that are energized at the same time is increased, a higher current will flow; therefore, a power supply with an adequate current capability must be used. When designing printing lines and bit images, take the printing ratio and print duty into consideration. Print quality may be poor if the printing ratio (energizing pulses/dot line) or print duty is high. Average energizing pulse width is defined as 64 of 192 dots/dot line that are energized. (2) (3) (4) WARNING: Beware not to invert the polarity of power supply. This may irremediably damage the printer. Ensure that the voltage is the correct one. Use the 4 terminals (4 wires) with 0.35mm² minimum section each. IMPORTANT NOTE ABOUT POWER SUPPLY: The required power supply depends on the content printed on the ticket. A 150W power supply covers all adverse possibilities (printing ratio of 100% black at any temperature). However, if the print ratio is not over 60%, a 60W power supply can be used. In any case, power supply must satisfy the peaks current that mechanism requires, which are determined by the following formula: Ipeak = [24/657] x number of printing dots FENIX offers different power supplies as an accessory option (See APPENDIX B – HOW TO ORDER). These power supplies which have been exhaustively tested are available in OPEN FRAME or ENCLOSED version. 4.3 - RS-232 SERIAL INTERFACE 4.3.1 - RS-232 Serial interface specifications • • • • Data transmission type: Synchronization: Flow control: Signal levels (RS232): • Speed: Serial Asynchronous None, Hardware and Xon/Xoff MARK = -3 to -15 V Logic ‘1’/OFF SPACE = +3 to +15 V Logic ‘0’/ON 9600, 19200, 38400, 115200 and 230400 bauds. 12 of 61 TK55 SERIES OPERATION MANUAL • • • • Data length: Parity: Stop bits: Connector (user side): 8 bits none, even and odd Fixed to 1 Male D-SUB9 pin connector NOTE: Speed, flow control and parity depend on the settings which can be changed by command or through the FENIX DEMO PROGRAM. 4.3.2 - Change between online and offline mode The printer is in offline mode: 1) 2) 3) 4) 5) 6) When powering up or resetting the printer, until the printer is ready to receive data. When the door is opened. After pressing the button while the paper advances. When ‘out of paper’ causes the printer to stop printing. When the power supply has a temporal abnormal voltage change. When an error has occurred. 4.3.3 - Serial RS-232 interface pins assignment The assignments of the terminals of the RS-232 connector and the functions of its signals are described in the following figure and table: 9 5 6 1 Fig. 9 - Serial RS-232 interface pins Pin number Signal name Function 5 SGND 7 RXD Data reception line 8 TXD Data transmission line 9 RTS Indicates whether the printer is busy other - Signal ground Not connected 4.4 - USB INTERFACE The TK55 USB interface has the following general features: • • • • USB specification Transfer type Maximum receive/transmit endpoint size Current consumption from USB bus USB 2.0 (480Mbits/s full speed) Bulk 64 bytes 2mA max. User has to use a standard “B” series USB connector. (see APPENDIX B – HOW TO ORDER). 13 of 61 TK55 SERIES OPERATION MANUAL 4.5 - DIGITAL OUTPUT CONNECTION The TK55 has an optional output which can be used for different purposes such a blink and external warning light when a ticket has not been picked up or the printer is running out of paper, DIGITAL OUTPUT CONNECTOR activate a beeper when previous or other events are triggered, etc. Fig. 10 - Digital output connector Housing: QH250-02H (Plastron) Contact: QH250T-010 (Plastron) The output provides a low power open collector transistor that can be associated to different printer error/warning events and that can be programmed to output different patterns when the associated event has been triggered. See section 5.8- DIGITAL OUTPUT for specifications and examples. 14 of 61 TK55 SERIES OPERATION MANUAL 5 - BASIC OPERATIONS 5.1 - PAPER LOADING There are mainly two ways of loading paper: automatic and manual. In any case, before starting the paper load sequence, please make sure the paper roll has been placed in the right way. 5.1.1 - Automatic paper loading 1. 2. 3. 4. 5. Make sure the TK55 is power supplied. Remove any rest of paper if there is any. Make sure that the platen is closed. Make sure the paper end is cut in a straight way. Thread the paper roll with the right orientation as shown in the next figure. The thermal paper has only one printing side (thermal side). If there are doubt about which one is the printing side, just scratch the paper and the thermal side will show up the track on. 6. Once the printer has detected the paper, it will automatically start the paper load sequence which consist of feeding few millimeters of paper at a very low speed. Note: running at low speed, the motor will be noisier. THERMAL SIDE UP LEVER Fig. 11 - Automatic paper loading 5.1.2 - Manual paper loading 1. Open the printing head by pulling the lever and remove the paper (if there is any). Keep the printing head open. 2. Place the paper roll in the right direction. 3. Put the paper end in the mechanism inlet. Push the paper in until it reaches the mechanism outlet. 4. Close the printer head. 5.2 - OPEN CUTTER UNIT Sometimes the cutter could get jammed if thicker paper is used, the printer mechanism is not properly closed or other reason. In that case the printer will report a cutter error and may not be possible to open the printer mechanism to fix it. In order to, manually release the cutter blade the cutter unit has a wheel that, when turned, will move the cutter blade up or downwards depending. 15 of 61 TK55 SERIES OPERATION MANUAL CUTTER WHEEL Fig. 12 - Unlocking the cutter blade 5.3 - BUTTON FUNCTIONS Fig. 13 - Button location in USB and SERIAL interfaces The on-board button has the following functions: • PAPER FEEDING: when the printer is powered on pressing the button will feed the paper. The paper roller will not move under the following conditions: - The paper roll end sensor detects a paper end. - When the door is open. - When another non-recoverable error is present. • SELF-TEST MODE: If pressed on start-up with the door closed, it activates this mode. • HEXADECIMAL MODE: In order to activate it, if the button is still pressed when the full Selftest has been printed, the printer will prompt the user to hold the button to enter this mode. If we do not hold the button in the next 3 seconds (meaning NO), the printer will exit to normal operation. 5.4 - LED INDICATOR The TK55 interface has one indicator led to visually inform about the printer status. When the LED lights or blink GREEN means normal operation. The LED blinks ORANGE when the printer has detect a non-recoverable error. The LED blinks RED when a recoverable error has been occurred. If the LED lights RED, there is no paper or the door has been opened (See section 5.7- ERROR PROCESSING). 5.5 - SPECIAL PRINTING MODES Besides the normal printing mode in which all the received data are printed according to the settings or conditions fixed by the commands, the TK55 printer allows two special working modes: selftest mode and the hexadecimal mode. 16 of 61 TK55 SERIES OPERATION MANUAL FENIX IMVICO 5.5.1 - Self-test mode The printer provides the selftest mode with two different functionality: showing information of the settings of that particular printer model and verifying the printing. To enter the self-test mode, the printer must be powered on while keeping pressing the button. The TK55 will start printing a report, which allows checking the features of this particular model, like the firmware current version, control functions of the communications protocol, and so on. Once this printing has been finished, if the button is kept pressed; the printer will start printing continuously and repetitively a character pattern until it finally concludes the self-test by printing ‘* * completed * *’. This second option of the self-test mode has the goal of validating the printing speed and quality. At the end of the self-test page there are few lines showing the four different maintenance counts: 1- Times that the printer has been switched on. 2- Time (in half hours) that the printer has been powered on. 3- Meters of paper printed. IF550 V1.7.1 MECHANISM: M-T52XII-60mm SERIAL PORT SETTINGS Data bits: Stop bits: Baud rate: Parity bit: Protocol: 8 (fixed) 1 (fixed) 115200 bauds No parity Hard.RTS/CTS USB PORT SETTINGS USB V2.0 480Mbits/s DEFAULT TEXT SETTINGS Set character Table A (12x24 dots) Character Height: Character Width: Character space: Line space: Print density: Black mark: Near-end-paper Carry Return: EUROPE 437 1 1 4 15 Standard Disabled Disabled Disabled CUTTER SETTINGS !”#$%&'()*+,-./01234567 !”#$%&'()*+,-./012345678 ”#$%&'()*+,-./0123456789 #$%&'()*+,-./012345679 : $%&'()*+,- ./012345679 : ; %&'()*+,-./0123456779 : ; < &'()*+,-./0123456779 : ; < '()*+,-./0123456779 : ; < - > ()*+,-./0123456779 : ; < - >? )*+,-./0123456779 :;< - >?@ *+,-./0123456779 :;< - >?@A +,-./0123456779 :;< - >?@AB ,-./0123456779 :;< - >?@ABC . . . . . vwxyz{ | }~ !”#$%&'()*+, wxyz{ | }~ !”#$%&'()*+,xyz{ | }~ !”#$%&'()*+,-. yz{ | }~ !”#$%&'()*+,-./ z{ | }~ !”#$%&'()*+,-./0 { | }~ !”#$&'()*+ , - . /01 | }~ !”#$&'()*+ , - . /012 * * completed * * Automatic full & partial EXTERNAL TABLES: (No table loaded) LOGOS LOADED: Fig. 14 - SELF-TEST mode example (No logo loaded) * RECORDS * Serial num. On/Off times: Meters: Cuts: Time ON(H:M): 0FE057057142 100 100 100 0:10 5.5.2 - Hexadecimal dump mode To enter this mode answer NO to the previous question “Enter in configuration?”. It will be followed then by the question “Enter hexadecimal mode?” to which YES must be answered. Once entered this mode, which will be indicated by “***HEXADECIMAL MODE***” anything sent to the printer will be printed as hexadecimal characters. Enter hexadecimal mode?... This mode can be very helpful for the application developer during the setup test time, as it allows detecting possible errors (like out of range parameters, non valid command sequences, 17 of 61 TK55 SERIES OPERATION MANUAL errors in the communication channel, etc.), comparing what it has theoretically been sent to the printer to what it is really being received. Turn off the printer to quit the hexadecimal mode. NOTES: (1) For any received characters under 20h, the ASCII ‘.’ will not be printed. (2) During the hexadecimal dump mode, the DEL EOT command does not work. (3) It must be taken into account that if the number of bytes is less than the minimum amount required to print one line (9 bytes), the printer will not print. It is recommended to complete the hexadecimal dump by sending at least 9 bytes (for example 00h). (4) It is also possible to enter the hexadecimal mode through the GS (A command. 1B 21 00 1B 330A 1B 2004 1B 61 01 1B 4500 1D 4200 1B 2D00 1B 56300A 1D 21 55544553540A 1D 21 00 1B 61 30 1B 33 01 1B 20 01 1B 4D00 1B 7400 1D 4C00 00 1B 4500 1D 4200 1B 2D 00 1B 56300A546578 74 0A2D2D2D2D0A4645 4E 49582070 72696E 74 65 72 2073 61 6D706C6520 7469636B65 74 0A0A0A 0A0A0A 1B 6D . ! . .3. . . . a. . E. .B. . -. .V0. . !U UTEST. . !. . a0.3. . . . M. .t. . L. . . E. .B . .-. .V0 .Text . - - - - . FE NIX print er sample ticket . . . ....m Fig. 15 - HEXADECIMAL DUMP mode example 5.6 - BLACK MARK SENSOR The TK55 interface has a specific sensor for optical (black) mark detection. In order to be able of using this feature, the optical mark sensor must be enabled by programming command (See command DC3 ESC FS GS) or Fenix Demo software. The command that sets black mark offsets (GS ( G) require two parameters that must be measured physically on the ticket: ticket length which is the distance between two consecutive cutting lines, and distance from black mark to next cutting line. This parameters will be saved into non-volatile memory. BM distance ticket length This command takes into account the distance from the black mark sensor and the cutter blade which is fixed in a particular assembly. For this reason, this distance must be kept if a different implementation is taken. Printing direction Fig. 16 - Black mark programming parameters 18 of 61 TK55 SERIES OPERATION MANUAL When the black mark photo-sensor is enabled, the behavior of the printer will change in the following way: – – – – – When pressing the paper feed button the printer will feed paper to the next cutting line according to the ticket length parameter set with the GS ( G command (See SECTION 6 – CONTROL COMMANDS) and then it will cut the paper. When sending any cut command to the printer will do the same as above. When sending a GS FF command to the printer it will feed paper to the next cutting line. If the printer detects that paper has been fed for a distance larger that the ticket length without having cut the paper, it will pop a black mark error. The first ticket should be discarded since the printer cannot estimate the distance to the next cutting line until it has detect at least one black mark. 5.6.1 - Size and specification of black mark The position of the black marks are marked on one of the following: on the right or left edge of the face of the paper, or on the right or left edge of the back of the paper. The standard position of the black mark is on the right side on the back of the paper (STD). 7mm 6mm STD Printing direction Fig. 17 - Black mark dimensions and location NOTES: 1. The size and position of the black mark detector must be as shown in figure above. The misalignment between the paper edge and a black mark must be 0.5 mm or less. 2. The reflecting rate of the black mark must be 10% or less, and the reflecting rate of the white be 75% or less. The reflecting rate means the value which is measured with Macbeth density meter (PCMII) D filter. 3. The black mark may be replaced by a hole in the paper. 5.7 - ERROR PROCESSING 5.7.1 - Error types When an error occurs, the printer visually notifies its type through the LED. This fact allows the final user to have a direct and visual reference of the current printer status. On the other hand, the printer status and all its possible errors can also be monitored via software through the DEL EOT command or activating the automatic status reporting (See section 6 – CONTROL COMMANDS). In this way, the application developer can have more complete information on the printer status, therefore being able to act accordingly. The errors detected by the interface are the following: No paper / door open error, hardware error, converter voltage error and printing head temperature error. 19 of 61 TK55 SERIES OPERATION MANUAL When any of these errors happen, the led blinks with a different blinking timing sequence and color for each of them according to the figure below. If no error happens the led will light permanently green. 1 5 10 15 20 25 30 No error Near-end paper Tic ket not pic ked up Hardw are error Input v oltage error Temperature error C utter error B lac k mark error Paper jam error No paper / door open Fig. 18 - LED Blinking sequence. Each time unit corresponds to 0.5 seconds. More information on these errors can be found below: NEAR END PAPER WARNING [Description] [Recover action] At run time, the printer checks periodically if there is enough remaining paper in the paper roll. If the printer in running out of paper the printer will warn visually the user. The print will not stop working. Change the paper roll by a new one. TICKET NOT PICKED UP WARNING [Description] [Recover action] Every time a ticket is printed if the correspondent sensor is properly installed in the output paper nozzle, the printer will warn that the ticket has not been picked up. The print will not stop working. Remove the printed ticket from the output paper nozzle. HARDWARE ERROR [Description] [Recover action] At initialization, the printer internally checks its hardware devices (i.e. flash memory). If they do not function properly, an error occurs. This error cannot be recovered. One of the control board components might be damaged and should be replaced or repaired. VP VOLTAGE ERROR [Description] [Recover action] [Note] The voltage of the VP voltage converter is out of range. This is a recoverable error. Unplug the power supply from the printer and check if the output voltage of the power supply is within the specified range. Replace it in case it is not working properly. 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. 20 of 61 TK55 SERIES OPERATION MANUAL THERMAL HEAD TEMPERATURE ERROR [Description] [Recover action] [Note] Due to very continuous use of the printer or due to environmental conditions, the temperature in the thermal head may reach levels (above 80ºC), which can damage the printer itself. When this situation occurs, an error must be indicated in order to protect the printer from abrasion. The printing recovers automatically from this error when the thermal print head temperature drops below 60ºC again. This error can happen if the ambient temperature is very high and the printer is working continuously with high-density printing. CUTTER ERROR [Description] [Recover action] If the cutter is not working correctly either due to an internal malfunction or a paper jam, this error pattern will be triggered. The printer tries to automatically recover from this error at printer initialization (turning the printer on). Remove paper jam and try recovering the cutter blade turning the printer on some times. If the autocutter does not return to its normal position by itself, manually rotate the cutter motor gear to return the cutter to its original position. (See Section 5.2- OPEN CUTTER UNIT.) BLACK MARK ERROR [Description] [Recover action] [Note] It will be triggered when, being the black mark option set, the printer has cut a ticket but has not found the next black mark. The possible reasons may be: a) The paper does not have black mark. b) The black mark is not in the right position. c) The black mark does not have the right size or intensity If paper with no black marks is used replace it by the correct one. Two consecutive black marks cannot be separated more than 50cm. PAPER JAM ERROR [Description] [Recover action] If an object obstructs the output, the paper may jam in the platen roller. Open the platen unit and remove the jammed paper. Also, depending on the paper type, paper dust may stick to the platen and may cause malfunction of the paper jam detector. In this case, clean the platen roller. NO PAPER ERROR / PLATEN OPEN [Description] [Recover action] [Note] The out-of-paper sensor detects there is not paper on the printing line. When the door is open the printer will also detect it the same way. This error disappears loading a new paper roll in the printer and closing the paper door (see section 5.1- PAPER LOADING). This error stops the printing and it cannot be restarted until it is not recovered. This error is indicated in the parallel port depending on the conditions set by the ESC c 3 command (see section 6- CONTROL COMMANDS). 5.8 - DIGITAL OUTPUT The TK55 provides a low power digital output that can drive an external warning device such as a LED strip, buzzer, etc. The digital output can be triggered either by any of the error events or can be activated instantaneously using the same command. 21 of 61 TK55 SERIES OPERATION MANUAL Fig. 19 - Digital output configuration The digital output provides a signal that can blink or stay stable for up to 16 cycles. In case that a blinking output is preferred, the time the output stays on and off are also programmable. See command DC3 p m ton toff for more details. R R Driving a buzzer. Driving a led array. R 220V AC Driving a relay. Fig. 20 - Digital output examples The transistor's output capability is: IC = 100mA VCEO = 45V Values beyond this absolute maximum ratings could result in a permanent damage of the device. 22 of 61 TK55 SERIES OPERATION MANUAL 6 - CONTROL COMMANDS 6.1 - COMMAND NOTATION [Name] [Format] [Range] [Description] [Notes] [Defect] [Reference] [Examples] Command name. Coding sequence. It provides the allowed range for the arguments. It describes the command functionality. It provides important information in command usage and warnings, if needed. It provides the default values, if any, for the command parameters. It lists related commands. It shows examples on how to use the command. 6.2 - TERM DEFINITIONS 1) Receiving buffer: It is the buffer that stores the received data (commands and data). They are stored temporally in the buffer and are sequentially processed later. 2) Printing buffer. The printing buffer is a buffer that holds the data of the image to be printed. 3) Printable area. It is the maximum range in which the printing is possible under the printer specifications. The printable area for this printer is 48mm in the horizontal direction by the total printable length. 4) Inch Length unit. One inch is 25.4 millimeters. 5) MSB Most significant bit. 6) LSB Least significant bit. 7) Base line. Standard position where the characters are printed. The following drawing shows the position of normal characters in standard mode: *1. When the font selected is A type (12x24 dots), this height is 18 dots. When the font selected is B type (8x16 dots), this height is 14 dots. 23 of 61 TK55 SERIES OPERATION MANUAL 6.3 - DESCRIPTION OF THE CONTROL COMMANDS Command type Executing Setting LF Print and line feed X CR Print and carriage return X DC3 p Enable digital output X X DLE EOT Real-time status transmission X DC3 ESC FS GS Program printer settings X ESC SP Set right-side character spacing X ESC DC2 GS BEL Save current settings X ESC DC3 GS BS Save default settings X ESC ! Select print mode(s) X ESC – Turn underline mode on/off X ESC 2 Select default line spacing X ESC 3 Set line spacing X ESC @ Initialize printer X X ESC E Turn emphasized mode on/off X ESC G Turn double-strike mode on/off X ESC I Turn reverse mode on/off X ESC J Print and feed paper X ESC M Select character font X ESC V Character rotation X ESC a Select justification X ESC c 4 Select paper-near-end sensor to stop printing X ESC d Print and feed n lines X ESC i Full cut X ESC j Back feed paper X ESC m Partial cut X ESC t Select character code table X ESC { Inverse print mode on/off X GS FF Feed marked paper to print starting position X GS ! Select character size X GS ( A Execute test print X GS ( C Erase all logos X GS ( G Set ticket length & cut offset related to black mark X GS B Turn white/black reverse printing mode on/off X GS E Set printing speed X GS H Select printing position of HRI characters X GS I n Firmware version query X GS L Set left margin X GS P Print a 2D AZTEC format barcode X GS Q Print a 2D QR format barcode X GS T Set print position to the beginning of print line X GS V Select cut distance and cut paper X GS a n Automatic status report X GS f Select font for HRI characters X GS h Set bar code height X GS k Print bar code X GS v 0 Print raster bit image X GS w Set bar code width X FS p Print NV bit image X FS q Define NV bit image X FS DC2 ESC Serial number query X FS GS ESC Historic counters transmission X Table 1. - Command List Command Name Page 25 25 25 26 28 29 30 30 30 31 31 31 31 31 32 32 32 32 33 33 34 34 34 34 35 35 35 36 36 37 37 37 38 38 38 39 39 39 40 40 40 41 41 42 42 44 44 45 45 42 47 24 of 61 TK55 SERIES OPERATION MANUAL LF [Name] [Format] [Description] [Note] [Reference] CR [Name] [Format] [Description] [Notes] [Reference] Print and line feed ASCII LF Hex 0A Decimal 10 Prints the data in the print buffer and feeds one line, based on the current line spacing. This command sets the print position to the beginning of the line. ESC 2, ESC 3. Print and carriage return ASCII CR Hex 0D Decimal 13 When automatic line feed is enabled, this command operates the same as LF; when automatic line feed is disabled, this command is ignored. ● This command is effective only it is programmed with such functionality (see command DC3 ESC FS GS) ● Sets the print starting position to the beginning of the line. LF DC3 p m ton toff [Name] Enable digital output [Format] ASCII DC3 p m ton toff Hex 13 70 m ton toff Decimal 19 112 m ton toff [Range] <00>H ≤ m, ton, toff ≤ H [Description] Enables the digital output which can be triggered either by an error event or intentionally The parameter m is composed by to nibbles. The high nibble sets the triggering event while the lower one set the number of complete cycles to be output. m (hex) high nibble m (hex) low nibble 0 0 to F No event. Output directly by command 1 0 to F Output triggered by hardware error 2 0 to F Output triggered by Vp voltage error 3 0 to F Output triggered by temperature error 4 0 to F Output triggered by cutter error 5 0 to F Output triggered by no-paper error 6 0 to F Output triggered by platen-opened error 7 0 to F Output triggered by black mark error 8 0 to F Output triggered by ticket not picked up error 9 0 to F Output triggered by paper-near-end error A 0 to F Output triggered by paper jam error Function Setting No-event associated to the digital output causes that the output will be enabled immediately by the command while associating it to an event, such as near-end-paper error, for instance, will cause that each time near-end-paper is detected, the digital output will be enabled. 25 of 61 TK55 SERIES OPERATION MANUAL ton and toff are the the time the digital output is in on or off estate respectively. The time unit is 0.01seg. The examples below shows how it look like different output signals with the parameters on the right-side. m = 0x03 ton = 100 toff = 200 1s 2s 1s 1s 1s m = 0x07 ton = 50 toff = 50 0.5s [Notes] DLE EOT n [Name] [Format] [Range] [Description] [Notes] m = 0x03 ton = 100 toff = 0 In order to disable an output associated to an event, the same command must be sent specifying the event in the m parameter but setting ton and toff to 0. Real-time status transmission ASCII DLE EOT n Hex 10 04 n Decimal 16 4 n <01>H ≤ n ≤ <04>H 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 ● The status is transmitted whenever the data sequence <10>H<04>H ( <01>H ≤ n ≤ <05>H) is received. ● The printer transmits the current status. Each status item is represented by one byte. ● 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. 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 ON Offline ON Not used. Fixed to ON OFF Does not wait for online error recovery ON Waits for online error recovery 3 4 5 6* 7 ON/OFF Ticket completed OFF Not used. Fixed to OFF 26 of 61 TK55 SERIES OPERATION MANUAL (*) Bit 6 is toggled every time a cut command is executed 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) ON Platen is open (Thermal head is open) 2 3 - 4 ON Not used. Fixed to ON OFF No paper-end stop ON Printing is being stopped OFF No error ON Error occurred OFF Not used. Fixed to OFF 5 6 7 Undefined 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 cutter error ON Cutter error occurred ON Not used. Fixed to ON OFF No unrecoverable error ON Unrecoverable error occurred OFF No auto-recoverable error ON Auto-recoverable error occurred OFF Not used. Fixed to OFF 3 4 5 6* 7 (*) Bit 6 is ON when printing is stopped due to high print head temperature until the print head temperature drops sufficiently. 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 OFF Paper jam sensor: Paper not present ON Paper jam sensor: Paper present 2 27 of 61 TK55 SERIES OPERATION MANUAL OFF Paper near-end sensor: Paper present ON Paper near-end sensor: Paper not present 4 ON Not used. Fixed to ON 5 - 3 6 7 Undefined OFF Paper real-end sensor: Paper present ON Paper real-end sensor: Paper not present 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 OFF Ticket not pick up ON Ticket pick up 4 ON Not used. Fixed to ON 5 - Undefined 6 - Undefined 7 OFF 3 Not used. Fixed to OFF DC3 ESC FS GS [Name] Program printer settings [Format] ASCII DC3 ESC FS GS n s1...sn Hex 13 1B 1C 1D n s1...sn Decimal 19 27 28 29 n s1...sn [Range] <00>H ≤ n ≤ <07>H [Description] Changes any of the programmable settings and saves them into non-volatile memory. Any of the settings can be programmed simultaneously with any other settings. n is the number of printer settings to be changed, and s1...sn indicates the type and new value of the setting as follows: [Notes] ● Once the command has been sent the printer will save the new setting into nonvolatile memory and print a message indicating if the feature has been saved successfully, or on the contrary if the feature is not supported. It is required, therefore, to have the paper roll installed. ● After this command has been executed, the printer will reset itself automatically in order to activate new settings. ● If communications setting are changed it will be required to change them also in the host controller in order to reestablish communications. ● The number and order of setting changed it is not important. Feature 1- Paper width s (high nibble) 0 s (low nibble) value 1 60mm 2 80mm 3 82.5mm 28 of 61 TK55 SERIES OPERATION MANUAL 2- Baudrate 1 3- Parity 2 4- Handshaking 3 5- Cutter 4 6- Printing density [Example] 5 7- Black Mark 6 8- Carriage return 7 9- Near-end paper sensor 8 0 9600 bauds 1 19200 bauds 2 38400 bauds 3 115200 bauds 4 230400 bauds 0 Odd parity 1 Even parity 2 No parity 0 Hardware 1 Xon/Xoff 2 No handshake 0 No cutter 1 Total cut 2 Partial cut 3 Total/partial cut 0 Normal 1 Light 2 Dark 0 Enable 1 Disable 0 Enable 1 Disable 0 Enable 1 Disable The following command will change baudrate to “115200 bauds”, parity to “Even” and handshake to “No handshake”. 13 1B 1C 1D 03 13 21 32 handshake parity baudrate number of setting If all the features are supported by the printer, it will print the following message on paper: Feature saved successfully-> 2 Feature saved successfully-> 3 Feature saved successfully-> 4 ESC SP n [Name] [Format] Set right-side character spacing ASCII ESC SP n Hex 1B 20 n Decimal 27 32 n 29 of 61 TK55 SERIES OPERATION MANUAL [Range] [Description] [Notes] [Default] <00>H ≤ n ≤ H Sets the character spacing for the right side of the character to [n x 0.125 mm (n x 0.0049”)]. ● The right side character spacing for double-width mode is twice the normal value. ● This command is effective only when sent at the beginning of a line. n = <04>H ESC DC2 GS BEL [Name] Save current settings into non-volatile memory [Format] ASCII ESC DC2 GS BEL Hex 1B 12 1D 07 Decimal 27 18 29 07 [Description] Saves current configuration into flash memory so when the printer is restarted, current configuration will be loaded. [Notes] The parameters that will be saved are line spacing, character spacing, character table, character width and height. ESC DC3 GS BS [Name] Save default settings into non-volatile memory [Format] ASCII ESC DC3 GS BS Hex 1B 13 1D 08 Decimal 27 19 29 08 [Description] Saves default configuration (factory settings) into flash memory so when the printer is restarted, default configuration will be loaded. [Notes] The parameters that will be saved are line spacing, character spacing, character table, character width and height. ESC ! n [Name] [Format] [Range] [Description] Select print mode(s) ASCII ESC ! n Hex 1B 21 n Decimal 27 33 n <00>H ≤ n ≤ H Selects print mode(s) using n as follows: Bit 0 1 2 3 4 5 6 7 [Notes] OFF/ON OFF ON --OFF ON OFF ON OFF ON -OFF ON Hex 00 01 --00 08 00 10 00 20 -00 80 Function Character font A (12 x 24). Character font B (8 x 16). Undefined. Undefined. Emphasized mode not selected. Emphasized mode selected. Double-height mode not selected. Double-height mode selected. Double-width mode not selected. Double-width mode selected. Undefined. Underline mode not selected. Underline mode selected. ● 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 emphasized 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. 30 of 61 TK55 SERIES OPERATION MANUAL ● 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 [Default] [Reference] ESC - n [Name] [Format] [Range] [Description] [Notes] [Default] [Reference] ESC 2 [Name] [Format] [Description] [Reference] ESC 3 n [Name] [Format] [Range] [Description] [Default] [Reference] ESC @ [Name] [Format] [Description] [Notes] ESC E n [Name] [Format] [Range] [Description] be changed, all previous data in the print buffer is printed and the ticket is placed at the beginning of the next line. n = <00>H ESC M, ESC E, ESC G, GS ! Turns on/off underline mode ASCII ESC n Hex 1B 2D n Decimal 27 45 n <00>H ≤ n ≤ H Sets the underline mode. Only the least significant two bits are valid for n: n = <00>H / <30>H : Underline mode is turned off. n = <01>H / <31>H: Set the underline thickness to 1-dot. n = <02>H / <32>H: Set the underline thickness to 2-dots. ESC ! command can turns off the underline mode. n = <00>H ESC ! Select default line spacing ASCII ESC 2 Hex 1B 32 Decimal 27 50 Selects 3.75 mm (30 x 0.125 mm) line spacing. ESC 3 Set line spacing ASCII ESC 3 n Hex 1B 33 n Decimal 27 51 n <00>H ≤ n ≤ H Sets the line spacing to [n x 0.125 mm]. n = <1E>H ESC 2 Initialize printer ASCII ESC @ Hex 1B 40 Decimal 27 64 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. ● The data in the receiver buffer is not cleared. ● This command does not involve a hardware reset. Turn emphasized mode on/off ASCII ESC E n Hex 1B 45 n Decimal 27 69 n <00>H ≤ n ≤ H Turns emphasized mode on or off 31 of 61 TK55 SERIES OPERATION MANUAL [Notes] [Default] [Reference] ESC G n [Name] [Format] [Range] [Description] [Notes] [Default] [Reference] ESC I n [Name] [Format] [Range] [Description] [Default] [Notes] ESC J n [Name] [Format] [Range] [Description] [Notes] ESC M n [Name] [Format] [Range] [Description] When the LSB of n is 0, emphasized mode is turned off. When the LSB of n is 1, emphasized mode is turned on. ● Only the least significant bit of n is enabled. ● This command and ESC ! turns on and off emphasized mode in the same way. Be careful when this command is used with ESC !. n = <00>H ESC !, ESC G Turn on/off double-strike mode ASCII ESC G n Hex 1B 47 n Decimal 27 71 n <00>H ≤ n ≤ H 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. Printer output is the same in double-strike mode and in emphasized mode. n = <00>H ESC E Turn reversed mode on/off ASCII ESC I n Hex 1B 49 n Decimal 27 73 n <00>H ≤ n ≤ H Turns reversed mode on or off When the LSB of n is 0, reversed mode is turned off. When the LSB of n is 1, reversed mode is turned on. n = <00>H Only the least significant bit of n is enabled. Print and feed paper ASCII ESC J n Hex 1B 4A n Decimal 27 74 n <00>H ≤ n ≤ H Prints the data in the print buffer and feeds the paper [n x 0.0625 mm (0.0024”)]. ● 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. Select character font ASCII ESC M n Hex 1B 4D n Decimal 27 77 n n = <00>H, <01>H, <30>H, <31>H Selects the character font. n <00>H <30>H Function Character Font A (12 x 24) selected 32 of 61 TK55 SERIES OPERATION MANUAL <01>H <31>H [Notes] Character Font B (8 x 16) selected ● 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 [Reference] ESC V n [Name] [Format] [Range] [Description] line, all previous data in the print buffer is printed and the ticket is placed at the beginning of the next line. ESC ! Character rotation ASCII ESC V n Hex 1B 56 n Decimal 27 86 n <00>H ≤ n ≤ <02>H, <30>H ≤ n ≤ <32>H Rotates the characters using the mode specified by n. n <00>H / <30>H <01>H / <31>H <02>H / <32>H Function Normal Right 90º rotated Left 90º rotated In both left and right 90º rotated modes, the characters lines transmission order changes from the normal mode, because can be printing several lines at once. Paper feed direction Example for right 90º ratation mode: Characters lines transmission order 1st line: T A T H 2nd line: E H E . . . . . . . . . . . . Last line: T S [Notes] HELLO TH IS I S A PRI NT TEST ● The vertical and horizontal character scaling effect to paper feed direction regardless of the character rotation setting. ● It is not allowed both normal and rotated mode in the same character line. ● When any rotated mode is setting, the inverse mode is disabled. ● This command is enabled only when processed at the beginning of a line. [Default] [Reference] n = <30>H GS ! ESC a n [Name] Select justification [Format] ASCII ESC a n Hex 1B 61 n Decimal 27 97 n [Range] <00>H ≤ n ≤ <02>H, <30>H ≤ n ≤ <32>H [Description] Aligns all the data in one line to the specified position. n selects the justification as follows: n <00>H / <30>H <01>H / <31>H <02>H / <32>H [Notes] Justification Left justification Centering Right justification ● The command is enabled only when processed at the beginning of the line. 33 of 61 TK55 SERIES OPERATION MANUAL ● This command executes justification in the printing area. [Reference] [Example] ESC ! Left justification ABC ABCD ABCDE ESC c 4 n [Name] [Format] [Range] [Description] [Notes] ESC d n [Name] [Format] [Range] [Description] [Notes] [Reference] ESC i [Name] [Format] [Description] [Notes] [Reference] ESC j n [Name] [Format] [Description] Centering ABC ABCD ABCDE Right justification ABC ABCD ABCDE Select paper-near-end sensor to stop printing ASCII ESC c 4 n Hex 1B 63 34 n Decimal 27 99 52 n <00>H ≤ n ≤ H Selects whether the paper-near-end sensor stops printing. When the bit 1 of n is 0, paper near-end sensor does not stop printing. When the bit 1 of n is 1, paper near-end sensor will stop printing. When bit 1 is on, in paper-near-end is detected, the printer goes offline and stop printing. Print and feed n lines ASCII ESC d n Hex 1B 64 n Decimal 27 100 n <00>H ≤ n ≤ H Prints the data in the print buffer and feeds n character lines. ● 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. ● 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). ESC 2, ESC 3. Full Cut ASCII ESC i Hex 1B 69 Decimal 27 105 Cuts the paper completely in the current position. ● If this command is sent without cutter connection TS1700 enters cutter error status. ● The interval between each cutting operation must be two seconds or more. ● When the black mark sensor is set to be effective, the printer feeds paper to (black 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 section 5.6 – BLACK MARK SENSOR) GS ( F, ESC m, GS V Back feed paper ASCII ESC j n Hex 1B 6A n Decimal 27 106 n [Range] <00>H ≤ n ≤ H Back feeds the paper [n x 0.0625 mm (0.0024”)]. 34 of 61 TK55 SERIES OPERATION MANUAL [Notes] ● This command is only effective when the optical mark sensor is enabled. ● Allows readjust the paper position when the black mark has surpassed the black mark sensor, and it is needed back feed paper to prepare the cutting. [Description] [Notes] [Reference] ESC t n [Name] [Format] [Range] [Description] Partial Cut ASCII ESC m Hex 1B 6d Decimal 27 109 Cuts the paper partially in the current position. ● If this command is sent without cutter connection, TS1700 enters cutter error status. ● The interval between each cutting operation must be two seconds or more. ● This command performs the partial cut even when the black mark is enabled, but no action relative to black mark is performed. ESC i, GS V. Select character code font ASCII ESC t n Hex 1B 74 n Decimal 27 116 n <00>H ≤ n ≤ <03>H, <30>H ≤ n ≤ <33>H Selects the character fonts between the internal character fonts and the Windows loaded character fonts. n <00>H / <30>H <01>H / <31>H <02>H / <32>H <03>H / <33>H [Default] [Reference] ESC { n [Name] [Format] [Range] [Description] Character font selected Both internal font A and font B are selected. External loaded font A is selected. Internal font B is selected. External loaded font B is selected. Internal font A is selected. Both external loaded font A and font B are selected. n = <30>H APPENDIX D – INTERNAL CHARACTER TABLES, APPENDIX F - FONT LOADER SOFTWARE. Inverse printing mode ASCII ESC { n Hex 1B 7B n Decimal 27 123 n <00>H ≤ n ≤ H Turns inverse printing mode on/off. When the LSB of n is 0, Inverse printing mode off. ABCD 12345 Paper feed direction Inverse printing mode OFF ABCD 12345 ESC m [Name] [Format] Inverse printing mode ON When the LSB of n is 1, Inverse printing mode on. 35 of 61 TK55 SERIES OPERATION MANUAL [Notes] ● Each character is printed upside down (180º rotating) and the sequence of [Default] characters is printed backwards as well. The character sent fist is printed al the right margin and subsequent characters are printed from right to left. The characters lines transmission order changes from the normal mode, because the first line is sent to the printer must be the last to appear on the ticket, and the last line is sent must be the first to appear on the ticket. ● When inverse mode is setting, the rotated mode (90º) is disabled. ● This command is enabled only when processed at the beginning of a line. n = <00>H GS FF [Name] [Format] [Description] [Notes] [Reference] GS ! n [Name] [Format] [Range] [Description] Feed marked paper to print starting position ASCII GS FF Hex 1D 0C Decimal 29 12 Feeds paper until finding the black mark. Then moves the ticket, forward or backward, placing it at the printing position. ● This command is only effective when the optical mark sensor is enabled. ● This command sets the next print position to the beginning of the line. ● The maximum amount of paper feed until find the black mark is 0,5m. GS ( G Select character size ASCII GS ! n Hex 1D 21 n Decimal 29 33 n <00>H ≤ n ≤ <77>H. While n ≤ <7X>H and n ≤ H Selects the character height using bits 0 to 3 and selects the character width using bits 4 to 7, as follows: Horizontal size (WIDTH) n x1 x2 x3 x4 x5 x6 x7 x8 x1 00 10 20 30 40 50 60 70 x2 01 11 21 31 41 51 61 71 x3 02 12 22 32 42 52 62 72 x4 03 13 23 33 43 53 63 73 x5 04 14 24 34 44 54 64 74 x6 05 15 25 35 45 55 65 75 x7 06 16 26 36 46 56 66 76 x8 07 17 27 37 47 57 67 77 Vertical size (HEIGHT) (in hex) [Notes] ● This command is effective for all characters, except for HRI characters. ● 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. [Default] However, the setting of the last received command is effective. n = <00>H 36 of 61 TK55 SERIES OPERATION MANUAL [Reference] ESC !, APPENDIX D – INTERNAL CHARACTER TABLES 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) <00>H ≤ n ≤ <02>H, <30>H ≤ n ≤ <32>H <01>H ≤ n ≤ <03>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 <00> / <30>H Paper roll <01> / <31>H <02> / <32>H • m specifies a test pattern. m Test pattern <01> / <31>H Hexadecimal dump <02> / <32>H Printer status print <03> / <33>H Rolling pattern print [Notes] ● 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 ( C pL pH NULL 6 NULL C L R [Name] Erase all logos [Format] ASCII GS ( C pL pH NULL Hex 1D 28 43 pL pH 00 Decimal 29 40 67 pL pH 00 [Range] pL = <06>H (fixed), pH = <00>H (fixed) [Description] Erases all logos stored in non-volatile memory. [Reference] FS p, FS q commands. 6 36 54 NULL C 00 43 00 67 L 4C 76 R 52 82 GS ( G nL nH mL mH [Name] Set ticket length and cut offset related to black mark [Format] ASCII GS ( G nL nH mL mH Hex 1D 28 47 nL nH mL mH [Range] 0 ≤ (nL + nH x 256) ≤ 65535 0 ≤ (mL + mH x 256) ≤ 65535 (where <00>H ≤ nL, nH, mL and mH ≤ H) [Description] (nL + nH x 256) specifies the total ticket length in dots (0.125 mm) and (mL + mH x 256) sets the offset distance, also in dots, between the top of the black mark and the next cutting line of the ticket in the paper feed direction (see section 5.6.- BLACK MARK SENSOR). [Notes] ● Normally, the first ticket printed after powering up the printer must be discarded as it will have different length that the following ones. ● This command takes into account the distance from the black mark sensor and the cutter blade which is fixed in a particular assembly. For this reason, this distance must be kept if a different implementation is taken. ● This parameters are saved in non-volatile memory. [Default] (nL + nH x 256) = 800 (100mm) ; (mL + mH x 256) = 400 (50mm) [Reference] GS FF, GS V, ESC i, ESC m 37 of 61 TK55 SERIES OPERATION MANUAL GS B n [Name] [Format] [Range] [Description] [Notes] [Default] GS E n [Name] [Format] [Range] [Description] Turn white/black reverse printing mode ASCII GS B n Hex 1D 42 n Decimal 29 66 n <00>H ≤ n ≤ H Turns on or off white/black reverse printing mode. When the LSB of n is 0, white/black reverse mode is turned off. When the LSB of n is 1, white/black reverse mode is turned on. ● 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. n=0 Set printing speed. ASCII GS E n Hex 1D 45 n n = <00>H, <10>H, <20>H, <30>H Selects the printing speed. n <00>H <10>H <20>H <30>H [Notes] [Default] GS H n [Name] [Format] [Range] [Description] Printing speed Maximum speed Fast Speed Slow Speed Minimum Speed This command can be used when the power supply does not give the current request (less speed less average current), or when an accurate outline quality is desirable (less speed  best outline quality). n = <00>H Select print position for HRI characters. ASCII GS H n Hex 1D 48 n Decimal 29 72 n <00>H ≤ n ≤ <03>H , <30>H ≤ n ≤ <33>H Selects the print position of HRI characters when printing a bar code. n selects the print position as follows: n <00>H / <30>H <01>H / <31>H <02>H / <32>H <03>H / <33>H [Notes] [Default] [Reference] Printing position Not printed Above the bar code Below the bar code Both above and below the code bar ● HRI indicates Human Readable Interpretation ● HRI characters are printed using X-scale = 1, Y-scale = 1 and the font specified by GS f. n = <02>H GS f, GS k 38 of 61 TK55 SERIES OPERATION MANUAL GS I n [Name] [Format] [Range] [Description] Firmware version transmission ASCII GS I n Hex 1D 49 n Decimal 29 73 n n = <33>H ● Transmits the firmware version number. ● Besides of checking the firmware version by printing the self-test page, this command can be used as support for possible automatic firmware upgrade through the host application. Thus, the system could check whether the current version is less than the new provided (contact with FENIX IMVICO or distributor if necessary). ● Returns one byte indicating numerically the current firmware version and revision (1st and 2nd index. 3Rd index indicates the boot firmware version and it is not transmitted by this command Example: FENIX IMVICO Byte transmitted: 10 TS1700 V1.0.1 SERIAL PORT SETTINGS Data bits: Stop bits: Baud rate: GS L nL nH [Name] [Format] [Range] [Description] 8 (fixed) 1 (fixed) 115200 bauds Set left margin ASCII GS L nL nH Hex 1D 4C nL nH Decimal 29 76 nL nH <00>H ≤ nL ≤ H, <00>H ≤ nH ≤ H ● Sets the left margin using nL and nH. ● The left margin is set to [(nL + nH x 256) x 0.125 mm]. Printable area Left margin [Notes] ● This command is effective only when processed at the beginning of the line. ● This commands affects text, graphic and bar code printing. [Default] [Reference] nL = nH = <00>H APPENDIX D – INTERNAL CHARACTER TABLES GS P nL nH d1...dn [Name] Print a 2D AZTEC format barcode [Format] ASCII GS P nL nH d1..dn Hex 1D 50 nL nH d1..dn Decimal 29 80 nL nH d1..dn [Description] Prints a 2D Aztec barcode with n characters where n = nL + nH x 256. [Range] nH = <00>H, <00>H ≤ nL ≤ H. The maximum number of characters is undetermined as it depends on the available paper size and the type of characters to be printed (numbers, uppercase / lowercase characters, etc.) 39 of 61 TK55 SERIES OPERATION MANUAL [Example] Sending the following command to the printer will result in a 2Daztec barcode as shown below. <1D 50 2D 00> H ASCII GS Q nL nH d1...dn [Name] Print a 2D QR format barcode [Format] ASCII GS Q nL nH d1..dn Hex 1D 51 nL nH d1..dn Decimal 29 81 nL nH d1..dn [Description] Prints a 2D QR barcode with n characters where n = nL + nH x 256. [Range] nH = <00>H, <00>H ≤ nL ≤ H. The maximum number of characters is undetermined as it depends on the available paper size and the type of characters to be printed (numbers, uppercase / lowercase characters, etc.) [Example] Sending the following command to the printer will result in a 2D QR barcode as shown below. <1D 51 2D 00> H ASCII GS T n [Name] [Format] [Range] [Description] Set print position to the beginning of print line ASCII GS T n Hex 1D 54 n Decimal 29 84 n <00>H ≤ nL ≤ <01>H ● 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. GS V m (1) [Name] [Format] GS V m n (2) Select cut distance and cut paper 1) ASCII GS V Hex 1D 56 Decimal 29 86 2) ASCII GS V Hex 1D 56 Decimal 29 86 m m m m m m n n n 40 of 61 TK55 SERIES OPERATION MANUAL [Range] [Description] 1) m = <01>H 2) m = <42>H; <00>H ≤ n ≤ H Selects a distance for cutting paper and executes a full cut. The value of m sets the distance as follows: m <01>H <42>H Cutting distance Cuts the paper in the current position. Feeds paper (“cutting-D” + [n x 0,0625mm]), and cuts the paper. [Notes for 1) and 2)] ● This command is effective only when processed at the beginning of a line ● “Cutting-D” is the distance between the thermal head (printing position) and the cutter (8.4mm). ● After cutting the ticket, the printer always feeds the paper back to the printing position. ● If this command is sent without cutter connection, TS1700 enter cutter error status. [Notes for 1)] ● The printer cuts paper at the current position, even when the black mark is enabled. [Notes for 2)] ● Black mark disabled: – When n = <00>H, the printer feeds paper “Cutting-D” and cut it. – When n ≠ <00>H, the printer feeds paper (“Cutting-D” + [n x 0.0625 mm]) and cuts it. ● Black mark enabled: – When the black mark sensor is set to be effective, the printer feeds paper to (black mark ± [(value which is set by GS ( F) x 0.0625mm]) and cuts it. After cutting, it feeds paper to the position specified by the command GS ( F. See point 5.6.1 – Black mark sensor. [Default] n = <00>H [Reference] GS ( F, ESC i, ESC m GS a n [Name] [Format] [Range] [Description] Automatic status report ASCII GS a n Hex 1D 61 n Decimal 29 97 n <00>H ≤ n ≤ <01>H, <30>H ≤ n ≤ <31>H ● Enable/disable automatic status report. n <00>H / <30>H <01>H / <31>H Function Disable automatic status report Enable automatic status report ● When enabling the automatic status report, the printer remains in this state indefinitely, until it becomes disabling, or until switch the power off. ● After enabling the automatic status report, the printer returns the 5 states mentioned in the command DLE EOT n, every 0.5 seconds in the following order: [Default] [Reference] First status sent........................................ Last status sent (status1) ................................................ (status5) status1 = Transmit printer status status2 = Transmit offline status status3 = Transmit error status status4 = Continuous paper sensor status status5 = Paper sensor status n = <30>H DEL EOT GS f n [Name] Select font for Human Readable Interpretation (HRI) characters 41 of 61 TK55 SERIES OPERATION MANUAL [Format] [Range] [Description] [Notes] [Default] [Reference] GS h n [Name] [Format] [Range] [Description] [Default] [Reference] ASCII GS f n Hex 1D 66 n Decimal 29 102 n <00>H ≤ n ≤ <01>H, <30>H ≤ n ≤ <31>H 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 / <30>H Font A (12x24) <01>H / <31>H Font B (8x16) ● 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 n = <01>H GS H, GS k Select bar code height ASCII GS h n Hex 1D 68 n Decimal 29 104 n <01>H ≤ n ≤ H Selects the height of the bar code. n specifies the number of dots in the vertical direction (n x 0.125mm). n = H (162 dots20,25mm) GS k GS k m n d1...dn [Name] Print bar code [Format] ASCII GS k m n d1...dn Hex 1D 6B m n d1...dn Decimal 29 107 m n d1...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 [Notes] <43>H Bar Code System EAN13 Num. of characters n = 12 <45>H CODE39 1 ≤ n ≤ 255 <46>H <49>H ITF CODE128 1 ≤ n ≤ 255 (even) 2 ≤ n ≤ 255 Remarks 48 ≤ d ≤ 57 48 ≤ d ≤ 57, 65 ≤ d ≤ 90, 32, 36, 37, 43, 45, 46, 47 48 ≤ d ≤ 57 0 ≤ d ≤ 127 ● 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. 42 of 61 TK55 SERIES OPERATION MANUAL ● 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 C – 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. Specific character SHIFT CODE A CODE B CODE C FNC1 FNC2 FNC3 FNC4 “{“ [Example] Transmit data ASCII {S {A {B {C {1 {2 {3 {4 {{ Hex 7B, 53 7B, 41 7B, 42 7B, 43 7B, 31 7B,32 7B, 33 7B,34 7B, 7B Decimal 123, 83 123, 65 123, 66 123,67 123, 49 123, 50 123,51 123, 52 123, 123 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. 21 - Code128 bar code 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 stops 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 stops 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. 43 of 61 TK55 SERIES OPERATION MANUAL [Reference] 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.) GS h, GS w 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 ≤ H <00>H ≤ xH ≤ H where 1 ≤ (xL + xH x 256) ≤ 128 <00>H ≤ yL ≤ H <00>H ≤ yH ≤ <08>H where 1 ≤ (yL + yH x 256) ≤ 4095 <00>H ≤ d ≤ 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 <00>H Normal 203.2 dpi <01>H Double-width 203.2 dpi <02>H Double-height 101.6 dpi <03>H Quadruple 101.6 dpi (dpi: dots per 25.4 mm {1"}) Vertical Dot Density 203.2 dpi 101.6 dpi 203.2 dpi 101.6 dpi ● xL, xH, select the number of data bytes (xL+xH x 256) in the horizontal direction for the bit image. ● yL, 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 [Example] GS w n [Name] [Format] [Range] [Description] not print a dot. When xL + xH x 256 = 64 Set bar code width ASCII GS w n Hex 1D 77 n Decimal 29 119 n <02>H ≤ n ≤ <06>H Sets the horizontal size of the bar code. n specifies the bar code width as follows: n Module Width (mm) for Multi-level Bar Code <02>H <03>H <04>H <05>H <06>H 0.282 0.423 0.564 0.706 0.847 Binary-level Bar Code Thin element Thick element width (mm) width (mm) 0.282 0.706 0.426 1.129 0.564 1.411 0.706 1.834 0.847 2.258 Multi-level bar codes are JAN 13(EAN13), CODE 128. 44 of 61 TK55 SERIES OPERATION MANUAL [Default] [Reference] FS p n m [Name] [Format] [Range] [Description] Binary-level bar codes are ITF, CODE39. n = <03>H GS k Print NV bit image ASCII FS p n m Hex 1C 70 n m Decimal 28 112 n m <01>H ≤ n ≤ number of saved logo <30>H ≤ m ≤ <33>H Prints a NV bit image n using the mode specified by m. m Mode <30>H Normal <31>H Double-width <32>H Double-height <33>H Quadruple [dpi: dots per 25.4 mm] Vertical Dot Density 203.2 dpi 203.2 dpi 101.6 dpi 101.6 dpi Horizontal Dot Density 203.2 dpi 101.6 dpi 203.2 dpi 101.6 dpi n is the number of the NV bit image (always 1). m specifies the bit image mode. [Notes] ● NV bit image means a bit image which is defined in a non-volatile memory by FS q and printed by FS p. ● This command is not effective when the specified NV bit image has not been defined. ● This command is effective only when there is no data in the print buffer. ● This command is not affected by print modes (emphasized, double-strike, underline, character size, white/black reverse printing, etc.). ● If the printing area width set by GS L for the NV bit image is less than one vertical ● ● ● ● [Reference] line, the following processing is performed only on the line in question. However, in NV bit image mode, one vertical line means 1 dot in normal mode (m=30H) and in double-height mode (m=31H), and it means 2 dots in double-width mode (m=32H) and in quadruple mode (m=33H). If the printing area width cannot be extended by one line vertically, the left margin is reduced to accommodate one line vertically. The printing area width is extended to the right in NV bit image mode up to one line vertically. In this case, printing does not exceed the printable area. If the downloaded bit-image to be printed exceeds one line, the excess data is not printed. After printing the bit image, this command sets the print position to the beginning of the line and processes the data that follows as normal data. FS q, GS v 0 FS q n [xL xH yL yH d1…dk]1…[xL xH yL yH d1…dk] [Name] Define NV bit image [Format] ASCII FS q n [xL xH yL yH d1...dk]1...[ xL xH yL yH d1...dk] Hex 1C 71 n [xL xH yL yH d1...dk]1...[ xL xH yL yH d1...dk] Decimal 28 113 n [xL xH yL yH d1...dk]1...[ xL xH yL yH d1...dk] [Range] n = <01>H xL ≤ <30>H, xH = <00>H (when 1≤ (xL+ xH × H) ≤ <30>H) <00>H ≤ yL ≤ H, <00>H ≤ yH ≤ <01>H (when 1≤ (yL+ yH × H) ≤ 288) <00>H ≤ d ≤ H, k = (xL+ xH × 256) × (yL+ yH × 256) × 8 Total available data area = 16380 bytes (16KB-4Bytes) [Description] Define the NV bit image specified by n . n specifies the NV bit image number (always 1). 45 of 61 TK55 SERIES OPERATION MANUAL [Notes] [Reference] xL, xH specifies (xL+ xH × 256) × 8 dots in the horizontal direction for the NV bits image you are defining. yL, yH specifies (yL+ yH × 256) × 8 dots dots in the vertical direction for the NV bit image you are defining. ● From the beginning of the processing of this command till the finish, mechanical operations (including initializing the position of the printer head when the cover is open, paper feeding by using the button, etc.) cannot be performed. ● NV bit image means a bit image which is defined in a non-volatile memory by FS q and printed by FS p. ● This command is effective only when processed at the beginning of the line. ● This command is effective when 7 bytes is processed as a normal value. ● When the amount of data exceeds the capacity left in the range defined by xL, xH, yL, yH, the printer processes xL, xH, yL, yH out of the defined range. ● The d indicates the definition data. In data (d) a 1 bit specifies a dot to be printed and a 0 bit specifies a dot not to be printed. ● The definition area in this printer is a maximum of 16KBytes-4Bytes. ● Once a NV bit image is defined, it is not erased by performing ESC @, reset or power off. ● This command performs only definition of a NV bit image and does not perform printing. Printing of the NV bit image is performed by the FS p command. FS p IMPORTANT NOTE: FENIX provides a powerful utility to the Windows driver, that makes logo load extremely easy and useful. Taking advantage of high features in drawing and image handle software like Word, Paint, Photoshop, etc. the user can load a logo, selecting in “Device operation” (TS1700 Windows driver) the correct option. Fig. 22 - Logo loading We suggest adjusting the logo selecting “Driver mode” option until get the size, the layout and the arrangement desired. Afterwards, the user just have to reprint with the option “Load Logo 1” selected, and the logo will be stored same way that last printing. FS DC2 ESC [Name] [Format] Serial number transmission ASCII FS DC2 Hex 1C 12 Decimal 28 18 ESC 1B 27 46 of 61 TK55 SERIES OPERATION MANUAL [Description] Transmits the interface exclusive serial number. This number consists of 12 hexadecimal digits (6 bytes). Transmission order is from least to most significant byte. Example: Serial number = 12D4AC78F38E First byte sent........................................Last byte sent 8E ................. F3 78 AC D4 .............12 [Notes] (Hex) ● The interface exclusive serial number can be used to assure absolute traceability because no two parts are alike. ● The serial number can also be verified by printing the self-test: * RECORDS * Serial num. On/Off times: Meters: Cuts: Time ON(H:M): 0FE057057142 100 100 100 0:10 FS GS ESC n [Name] Historic counters transmission [Format] ASCII FS GS ESC Hex 1C 1D 1B Decimal 28 29 27 n <31>H <32>H <33>H <34>H Type of counter On/off times Time On Meters Cuts n n n Description Number of times the printer has been turned on Number of seconds the printer has been working Number of meters the printer has printed Number of cuts performed Bytes returned 2 4 2 2 [Range] [Description] <31>H ≤ n ≤ <34>H Each of the counters consist of a 16 bits register except the “Time On” counter that has 32 bits. The transmission of each counter starts by the LSB and ends at MSB. In order to obtain any counter it is required to send the correspondent command and immediately read 2 or 4 bytes (b0, b1, b2, b3) depending on the counter required. Finally in order to obtain the absolute value of the counter proceed as follow: [Notes] ● The “Meters” counter only registers complete meters, any portion of a meter that has counter value = 16777216 x b3 + 65536 x b2 + 256 x b1 + b0 been printed before turning the printer off will be discard. ● For the “Cuts” counter to increment the full cut or partial cut command has to be sent to the printer. ● The maximum number of each counter is 65536 counts except “Time On” counter that records up to 232 seconds → 1193046 hours → 49710 days uninterruptedly. 47 of 61 TK55 SERIES OPERATION MANUAL APPENDIX A – MECHANICAL DIMENSIONS NOTE: All dimensions in milimeters Fig. 23 - TK55 60mm main body 48 of 61 TK55 SERIES OPERATION MANUAL Fig. 24 - TK55 80mm main body 49 of 61 TK55 SERIES OPERATION MANUAL Fig. 25 - Long paper holder (centered and extreme positions with Ø180 paper roll) 50 of 61 TK55 SERIES OPERATION MANUAL Fig. 26 - Short paper holder (centered and extreme positions with Ø80 paper roll) 51 of 61 TK55 SERIES OPERATION MANUAL APPENDIX B – HOW TO ORDER TK55- XX - X X - XX Paper width 60: 60 mm paper width. 80: 80 mm paper width. 82: 82,55 mm paper width. Communication thermal printer S: serial RS232 thermal printer. U: USB 2.0 thermal printer. Paper holder S: short paper holder (up to 80mm paper roll). L: long paper holder (up to 180mm paper roll). Others nil : with nozzle and total cut (Standard type). P : with nozzle and partial cutter. SB : without nozzle and total cutter. XX : custom-made type (under agreement only). AVAILABLE ACCESORIES (optional) Part Number FAPOS-1 FA-40TK RS232-5 TxxX110X25 TxxX150X25 Fotocélula Description Power supply close frame (jack-2 Terminals) Power supply open frame Serial cable 1,5m Standard 110 mm diameter paper roll for 60mm (xx=60), 80mm (xx=80), 82mm (xx=82) or 112mm (xx=12) Standard 150 mm diameter paper roll for 60mm (xx=60), 80mm (xx=80), 82mm (xx=82) or 112mm (xx=12) Paper near-end and Ticket picked up photo-sensors 52 of 61 TK55 SERIES OPERATION MANUAL APPENDIX C – CODE128 BARCODE 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: C.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. 53 of 61 TK55 SERIES OPERATION MANUAL C.2 Printable characters in CODE SET A Character Transmit Data Character Transmit Data Character Transmit Data Hex Decimal Hex Decimal 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 54 of 61 TK55 SERIES OPERATION MANUAL C.3 Printable characters in CODE SET B Character Transmit Data Hex Decimal SP 20 32 ! 21 33 “ 22 # Character Transmit Data Hex Decimal H 48 72 I 49 73 34 J 4A 74 23 35 K 4B $ 24 36 L % 25 37 & 26 ´ Character Transmit Data Hex Decimal P 70 112 Q 71 113 R 72 114 75 S 73 115 4C 76 T 74 116 M 4D 77 U 75 117 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 55 of 61 TK55 SERIES OPERATION MANUAL C.4 Printable characters in CODE SET C Character Transmit Data Hex Decimal 00 00 0 01 01 1 02 02 03 Character Transmit Data Hex Decimal 40 28 40 41 29 41 2 42 2A 03 3 43 04 04 4 05 05 06 Character Transmit Data Hex Decimal 80 50 80 81 51 81 42 82 52 82 2B 43 83 53 83 44 2C 44 84 54 84 5 45 2D 45 85 55 85 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 56 of 61 TK55 SERIES OPERATION MANUAL APPENDIX D – INTERNAL CHARACTER TABLES PC437: USA, Standard Europe (International Character Set: USA). 57 of 61 TK55 SERIES OPERATION MANUAL APPENDIX E – TESTING SOFTWARE The TS1700 printer has been developed together with a Windows-based, testing program. This program is an easy way to explore the TS1700’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: • PC communication port configuration. • Printer Status. • Sample ticket. These three parts are distinguished in the program main window. And they are explained next. PC COMMUNICATION PORT CONFIGURATION Fig. 27 - Demo Program There are three main sections which are Printer Configuration, Sample Ticket and Printer Status. SAMPLE TICKET In this section we will define the ticket to be printed. • Text to print: Write here any character string (up to 50 characters) to be printed on the ticket. • Character size: By X-Scale and Y-Scale it is possible to change the width and height of the character (from 1 to 8, 1-Normal, 2-Double, etc.) • Line and Char Spacing: Each unit means an increment of 0.0625 mm of either character or line space. • Left Margin: Each unit means an increment of 0.125 mm of margin of the left hand side. 58 of 61 TK55 SERIES OPERATION MANUAL • Number of lines: By setting this the program will repeat the text sample line as many times as specified. • Char Type: Allows you to swap between font sizes A and B and also between the two different character tables. • “B”,“N”, “S”: Bold, Negative and underline. • “A”: Rotate the text • Barcode: It will print the code written as a barcode of any of the four types supported. In case of printing a 2D format code bar, as it required more input data, the characters used will be the ones input in the “Text to print” box. • Graphic: It prints the graphic selected. • Logo: It allows loading or erasing a logo into printer memory as well as printing it. When a logo is being load, the graphic options will be disabled. • Cut: It allows to select full, partial cut or no cut at all. PRINTER STATUS When enabling the printer status window, 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. BUTTONS Below is a brief explanation of the buttons supported by the demo program: - Save settings Button: By clicking this button the configuration parameters set will be load into printer memory. - Restore Default Button: This button will restore the default configuration parameters (Port: COM1, Baud Rate: 9600, etc.) - Print Button: Prints a customized ticket according to the properties set. - Selftest Button: Prints a Selftest ticket. - Check Status: Launches the status checking. After a while the status LEDs will light up to show if any problem has been detected. - Arrows Button: Enables/disable the automatic status report mode. 59 of 61 TK55 SERIES OPERATION MANUAL APPENDIX F – FONT LOADER SOFTWARE Font Loader program is a Fenix Imvico software designed to easily and intuitively load any Windows installed font into a Fenix printer. The loaded font may be then printed by the standard printer command set. The software has the following capabilities: • • • • • • Load any TrueType font that is currently installed in Windows into TS1700 printer. Change any individual character by any other we like. (i.e. if we like to print “€” character every time we sent “E” character to the printer). Change the size of any individual character to fit it better into its cell. Move any individual character to any direction to fit it better into its cell. Change any individual character to underline and/or italic if desired. Automatically adjust each character to fit better into each cell. Fig. 28 - Font Loader Program 60 of 61 c/ Pacífico, 53-55 – 08027 BARCELONA, SPAIN Phone Num: +34 – 93 353 92 22 Fax Num: +34 – 93 353 97 21 E-mail: [email protected] http://www.feniximvico.com