28.06.2015 Views

B-SP2D Series External Equipment Interface ... - Toshiba Tec Italia

B-SP2D Series External Equipment Interface ... - Toshiba Tec Italia

B-SP2D Series External Equipment Interface ... - Toshiba Tec Italia

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TOSHIBA TEC Portable Printer<br />

B-<strong>SP2D</strong> <strong>Series</strong><br />

<strong>External</strong> <strong>Equipment</strong> <strong>Interface</strong> Specification<br />

First Edition: May 9, 2003<br />

Second Edition: February 18, 2004<br />

Third Edition: November 30, 2004


TABLE OF CONTENTS<br />

Page<br />

1. SCOPE/GENERAL DESCRIPTION .............................................................................................................1-1<br />

1.1 SCOPE ...................................................................................................................................................1-1<br />

1.2 GENERAL DESCRIPTION .....................................................................................................................1-1<br />

1.2.1 SPECIFICATION ORGANIZATION................................................................................................1-1<br />

2. OUTLINE OF SPECIFICATIONS.................................................................................................................2-1<br />

2.1 GENERAL DESCRIPTION .....................................................................................................................2-1<br />

2.2 DIMENSION............................................................................................................................................2-1<br />

2.3 WEIGHT .................................................................................................................................................2-1<br />

2.4 PRINTING METHOD...............................................................................................................................2-1<br />

2.5 HEAD SPECIFICATION..........................................................................................................................2-1<br />

2.6 PRINT SPEED ........................................................................................................................................2-1<br />

2.7 PRINT MODE..........................................................................................................................................2-1<br />

2.8 FONT TYPE............................................................................................................................................2-2<br />

2.8.1 BIT MAP FONT...............................................................................................................................2-2<br />

2.8.2 OUTLINE FONT .............................................................................................................................2-2<br />

2.9 TYPE OF BAR CODE/TWO-DIMENSIONAL CODE...............................................................................2-3<br />

2.9.1 BAR CODE.....................................................................................................................................2-3<br />

2.9.2 TWO-DIMENSIONAL CODE..........................................................................................................2-3<br />

2.10 FORMAT STORAGE...............................................................................................................................2-3<br />

2.11 GRAPHIC STORAGE .............................................................................................................................2-3<br />

2.12 WRITABLE CHARACTER STORAGE....................................................................................................2-3<br />

2.13 INTERFACE............................................................................................................................................2-4<br />

2.14 POWER SOURCE..................................................................................................................................2-4<br />

2.15 BATTERY CAPACITY.............................................................................................................................2-4<br />

2.16 SWITCH..................................................................................................................................................2-4<br />

2.17 SENSOR.................................................................................................................................................2-4<br />

2.18 LED.........................................................................................................................................................2-4<br />

2.19 ISSUE MODE..........................................................................................................................................2-4<br />

2.20 PAPER....................................................................................................................................................2-5<br />

2.21 CUT.........................................................................................................................................................2-5<br />

2.22 BROKEN HEAD DOTS CHECK FUNCTION ..........................................................................................2-5<br />

2.23 STATUS TRANSMISSION......................................................................................................................2-5<br />

2.24 AUTO LABEL POSITIONING FUNCTION ..............................................................................................2-5<br />

2.25 STATUS PRINTING................................................................................................................................2-5<br />

2.26 CONTINUOUS PRINTING FUNCTION...................................................................................................2-5<br />

i


Page<br />

3. INTERFACE .................................................................................................................................................3-1<br />

3.1 GENERAL DESCRIPTION .....................................................................................................................3-1<br />

3.2 IrDA INTERFACE (TEC Protocol)...........................................................................................................3-2<br />

3.2.1 SPECIFICATIONS FOR PHYSICAL LAYER AND TRANSMISSION CONTROL METHOD...........3-2<br />

3.2.2 INPUT/OUTPUT SIGNAL ...............................................................................................................3-3<br />

3.2.3 TRANSMISSION CONTROL..........................................................................................................3-3<br />

3.2.4 HOW TO SEND THE DATA PRINT COMMAND WHICH CANNOT BE INCLUDED IN<br />

ONE PACKET IN THE LABEL MODE ............................................................................................3-9<br />

3.2.5 CONNECTION SEQUENCE EXAMPLE (FOR LABEL MODE) ...................................................3-10<br />

3.2.6 CONNECTION SEQUENCE EXAMPLE (FOR RECEIPT/TPCL-LE MODES).............................3-14<br />

3.2.7 PRINTER STATE TRANSITION (FOR LABEL MODE) ................................................................3-15<br />

3.2.8 PRINTER STATE TRANSITION (FOR RECEIPT/TPCL-LE MODES)..........................................3-16<br />

3.3 IrDA (IrCOMM) INTERFACE.................................................................................................................3-17<br />

3.4 RS-232C INTERFACE..........................................................................................................................3-18<br />

3.4.1 TRANSMISSION CONTROL (XON/XOFF PROTOCOL) .............................................................3-18<br />

3.4.2 NOTES WHEN SENDING A COMMAND.....................................................................................3-19<br />

3.5 Bluetooth INTERFACE .........................................................................................................................3-24<br />

3.5.1 OUTLINED SPECIFICATIONS.....................................................................................................3-24<br />

3.5.2 Bluetooth DEVICE ADDRESS (BD address)................................................................................3-24<br />

3.6 WIRELESS LAN INTERFACE ..............................................................................................................3-25<br />

3.6.1 OUTLINED SPECIFICATIONS.....................................................................................................3-25<br />

3.6.2 MAC ADDRESS ...........................................................................................................................3-25<br />

4. TRANSMISSION SEQUENCE .....................................................................................................................4-1<br />

4.1 GENERAL DESCRIPTION .....................................................................................................................4-1<br />

4.2 TPCL-LE MODE......................................................................................................................................4-2<br />

4.2.1 INITIAL SETTING...........................................................................................................................4-2<br />

4.2.2 LABEL ISSUE OPERATION...........................................................................................................4-4<br />

4.3 LABEL MODE .........................................................................................................................................4-6<br />

4.3.1 INITIAL SETTING...........................................................................................................................4-6<br />

4.3.2 LABEL ISSUE OPERATION...........................................................................................................4-7<br />

4.4 RECEIPT MODE.....................................................................................................................................4-8<br />

4.4.1 INITIAL SETTING...........................................................................................................................4-8<br />

4.4.2 RECEIPT ISSUE OPERATION ......................................................................................................4-9<br />

ii


Page<br />

5. TPCL-LE MODE (INTERFACE COMMANDS) ............................................................................................5-1<br />

5.1 GENERAL DESCRIPTION .....................................................................................................................5-1<br />

5.2 OUTLINE OF COMMANDS ....................................................................................................................5-2<br />

5.2.1 FORMAT OF INTERFACE COMMAND..........................................................................................5-2<br />

5.2.2 HOW TO USE REFERENCE .........................................................................................................5-2<br />

5.2.3 PRECAUTIONS..............................................................................................................................5-2<br />

5.3 COMMANDS RELATED TO SETTING ...................................................................................................5-3<br />

5.3.1 LABEL SIZE SET COMMAND [ESC] D ..........................5-3<br />

5.3.2 PRINTER ID SET COMMAND [ESC] ID .........................5-6<br />

5.3.3 MODE SELECT COMMAND [ESC] M..........................5-7<br />

5.4 COMMANDS RELATED TO FINE ADJUSTMENT ...............................................................................5-10<br />

5.4.1 POSITION FINE ADJUST COMMAND [ESC] AX......................5-10<br />

5.4.2 PRINT DENSITY FINE ADJUST COMMAND [ESC] AY......................5-12<br />

5.4.3 STRIP SENSOR THRESHOLD VALUE SET COMMAND [ESC] AH......................5-14<br />

5.5 COMMANDS RELATED TO CLEAR.....................................................................................................5-15<br />

5.5.1 IMAGE BUFFER CLEAR COMMAND [ESC] C ........................5-15<br />

5.5.2 CLEAR AREA COMMAND [ESC] XR......................5-16<br />

5.6 COMMANDS RELATED TO DRAWING FORMAT ...............................................................................5-18<br />

5.6.1 LINE FORMAT COMMAND [ESC] LC ......................5-18<br />

5.6.2 BIT MAP FONT FORMAT COMMAND [ESC] PC......................5-21<br />

5.6.3 OUTLINE FONT FORMAT COMMAND [ESC] PV......................5-32<br />

5.6.4 BAR CODE FORMAT COMMAND (WPC, CODE128, EAN128, Customer Bar Code) [ESC] XB......................5-41<br />

5.6.5 BAR CODE FORMAT COMMAND (MSI, ITF, CODE39, NW7) [ESC] XB......................5-50<br />

6.5.6 BAR CODE FORMAT COMMAND (RSS (Reduced Space Symbology)) [ESC]XB......................5-56<br />

5.6.7 TWO-DIMENSIONAL CODE FORMAT COMMAND (Data Matrix) [ESC] XB......................5-62<br />

5.6.8 TWO-DIMENSIONAL CODE FORMAT COMMAND (PDF417) [ESC] XB......................5-71<br />

5.6.9 TWO-DIMENSIONAL CODE FORMAT COMMAND (MicroPDF417) [ESC] XB......................5-76<br />

5.6.10 TWO-DIMENSIONAL CODE FORMAT COMMAND (QR Code) [ESC] XB......................5-82<br />

5.6.11 TWO-DIMENSIONAL CODE FORMAT COMMAND (Maxicode) [ESC] XB......................5-88<br />

5.7 COMMANDS RELATED TO PRINT DATA ...........................................................................................5-92<br />

5.7.1 BIT MAP FONT DATA COMMAND [ESC] RC .....................5-92<br />

5.7.2 OUTLINE FONT DATA COMMAND [ESC] RV......................5-94<br />

5.7.3 BAR CODE/TWO-DIMENSIONAL CODE DATA COMMAND<br />

(Any codes other than Maxicode)<br />

[ESC] RB......................5-96<br />

5.7.4 TWO-DIMENSIONAL CODE DATA COMMAND (Maxicode) [ESC] RB....................5-108<br />

iii


Page<br />

5.8 COMMANDS RELATED TO ISSUE AND FEED.................................................................................5-109<br />

5.8.1 ISSUE COMMAND [ESC] XS....................5-109<br />

5.8.2 FEED COMMAND [ESC] T ......................5-112<br />

5.9 COMMANDS RELATED TO FORMAT................................................................................................5-114<br />

5.9.1 FLASH MEMORY FORMAT COMMAND [ESC] J1 ...........................................5-114<br />

5.10 COMMANDS RELATED TO WRITABLE CHARACTERS...................................................................5-115<br />

5.10.1 BIT MAP WRITABLE CHARACTER COMMAND [ESC] XD ..........................................5-115<br />

5.11 COMMANDS RELATED TO GRAPHICS............................................................................................5-122<br />

5.11.1 GRAPHIC COMMAND [ESC] SG..........................................5-122<br />

5.12 COMMANDS RELATED TO PC COMMAND SAVING .......................................................................5-128<br />

5.12.1 SAVE START COMMAND [ESC] XO..........................................5-128<br />

5.12.2 SAVE TERMINATE COMMAND [ESC] XP ..........................................5-129<br />

5.12.3 SAVED DATA CALL COMMAND [ESC] XQ..........................................5-130<br />

5.13 COMMANDS RELATED TO CHECK ..................................................................................................5-131<br />

5.13.1 HEAD BROKEN DOTS CHECK COMMAND [ESC] HD..........................................5-131<br />

5.14 COMMANDS RELATED TO CONTROL .............................................................................................5-132<br />

5.14.1 RESET COMMAND [ESC] WR.........................................5-132<br />

5.15 COMMANDS RELATED TO STATUS ................................................................................................5-133<br />

5.15.1 STATUS REQUEST COMMAND [ESC] WS, [ESC] FM, [ESC] v..........5-133<br />

5.15.2 MODE INFORMATION ACQUIRE COMMAND [ESC] WX .........................................5-135<br />

5.15.3 VERSION INFORMATION ACQUIRE COMMAND [ESC] WV .........................................5-136<br />

5.16 COMMANDS RELATED TO Bluetooth AND WIRELESS LAN ...........................................................5-138<br />

5.16.1 DEVICE ADDRESS ACQUIRE COMMAND [ESC] IT............................................5-138<br />

6. LABEL MODE (INTERFACE COMMANDS)................................................................................................6-1<br />

6.1 GENERAL DESCRIPTION .....................................................................................................................6-1<br />

6.2 OUTLINE OF COMMANDS ....................................................................................................................6-2<br />

6.2.1 FORMAT OF INTERFACE COMMAND..........................................................................................6-2<br />

6.2.2 HOW TO USE REFERENCE .........................................................................................................6-2<br />

6.2.3 PRECAUTIONS..............................................................................................................................6-2<br />

6.3 COMMANDS RELATED TO SETTING ...................................................................................................6-3<br />

6.3.1 LABEL SIZE SET COMMAND [ESC] D ................................................6-3<br />

6.3.2 ID SET COMMAND [ESC] ID ...............................................6-5<br />

6.3.3 MODE SELECT COMMAND [ESC] M ................................................6-6<br />

iv


Page<br />

6.4 COMMANDS RELATED TO FINE ADJUSTMENT .................................................................................6-9<br />

6.4.1 POSITION FINE ADJUST COMMAND [ESC] AX ..............................................6-9<br />

6.4.2 PRINT DENSITY FINE ADJUST COMMAND [ESC] AY ............................................6-11<br />

6.4.3 STRIP SENSOR ADJUST COMMAND [ESC] AZ ............................................6-12<br />

6.5 COMMANDS RELATED TO DRAWING FORMAT ...............................................................................6-13<br />

6.5.1 LINE FORMAT COMMAND [ESC] LC ......................6-13<br />

6.5.2 BIT MAP FONT FIELD COMMAND [ESC] PC......................6-15<br />

6.5.3 OUTLINE FONT FIELD COMMAND [ESC] PV......................6-20<br />

6.5.4 BAR CODE FORMAT COMMAND (MSI, ITF, CODE39, NW7) [ESC] XB......................6-28<br />

6.5.5 BAR CODE FORMAT COMMAND (JAN8/EAN8, JAN13/EAN13) [ESC] XB......................6-30<br />

6.5.6 BAR CODE FORMAT COMMAND (EAN128) [ESC] XB......................6-31<br />

6.5.7 BAR CODE FORMAT COMMAND (CODE128) [ESC] XB......................6-32<br />

6.5.8 BAR CODE FORMAT COMMAND (Customer Bar Code) [ESC] XB......................6-34<br />

6.5.9 TWO-DIMENSIONAL CODE FORMAT COMMAND (PDF417) [ESC] XB......................6-35<br />

6.5.10 TWO-DIMENSIONAL CODE FORMAT COMMAND (QR Code) [ESC] XB......................6-38<br />

6.5.11 TWO-DIMENSIONAL CODE FORMAT COMMAND (Data Matrix) [ESC] XB......................6-40<br />

6.5.12 TWO-DIMENSIONAL CODE FORMAT COMMAND (MircoPDF417) [ESC] XB......................6-42<br />

6.5.13 TWO-DIMENSIONAL CODE FORMAT COMMAND (Maxicode) [ESC] XB......................6-43<br />

6.6 COMMANDS RELATED TO ISSUE AND FEED...................................................................................6-49<br />

6.6.1 DATA PRINT COMMAND [ESC] X ........................6-49<br />

6.7 COMMANDS RELATED TO FORMAT..................................................................................................6-55<br />

6.7.1 FLASH MEMORY STORAGE AREA FORMAT COMMAND [ESC] J1.......................6-55<br />

6.8 COMMANDS RELATED TO WRITABLE CHARACTERS.....................................................................6-56<br />

6.8.1 WRITABLE CHARACTER DATA STORE COMMAND [ESC] XD......................6-56<br />

6.9 COMMANDS RELATED TO GRAPHICS..............................................................................................6-58<br />

6.9.1 GRAPHIC DATA STORE COMMAND [ESC] SG .....................6-58<br />

6.9.2 GRAPHIC FIELD COMMAND [ESC] N ........................6-60<br />

6.10 COMMANDS RELATED TO PC COMMAND SAVING .........................................................................6-61<br />

6.10.1 FORM STORE START COMMAND [ESC] XO .....................6-61<br />

6.10.2 FORM STORE TERMINATE COMMAND [ESC] XP......................6-62<br />

6.11 COMMANDS RELATED TO CONTROL ...............................................................................................6-63<br />

6.11.1 INITIALIZE COMMAND [ESC] WR, [ESC] @ ....6-63<br />

6.12 COMMANDS RELATED TO STATUS ..................................................................................................6-64<br />

6.12.1 STATUS REQUEST COMMAND [ESC] FM, [ESC] WS, [ESC] v......6-64<br />

6.12.2 MODE INFORMATION ACQUIRE COMMAND [ESC] WX.....................6-66<br />

6.13 COMMANDS RELATED TO Bluetooth AND WIRELESS LAN .............................................................6-67<br />

6.13.1 DEVICE ADDRESS ACQUIRE COMMAND [ESC] IT .......................6-67<br />

v


Page<br />

7. RECEIPT MODE (INTERFACE COMMANDS) ............................................................................................7-1<br />

7.1 GENERAL DESCRIPTION .....................................................................................................................7-1<br />

7.2 OUTLINE OF COMMANDS ....................................................................................................................7-2<br />

7.2.1 FORMAT OF INTERFACE COMMAND..........................................................................................7-2<br />

7.2.2 HOW TO USE REFERENCE .........................................................................................................7-2<br />

7.2.3 PRECAUTIONS..............................................................................................................................7-3<br />

7.3 COMMANDS RELATED TO SETTING ...................................................................................................7-4<br />

7.3.1 MODE SELECT COMMAND [ESC] M.....................................7-4<br />

7.4 COMMANDS RELATED TO FINE ADJUSTMENT .................................................................................7-7<br />

7.4.1 LINE FEED LENGTH SET COMMAND [ESC] 3......................................7-7<br />

7.4.2 PRINT POSITION ALIGN COMMAND [ESC] a......................................7-8<br />

7.5 COMMANDS RELATED TO DRAWING FORMAT .................................................................................7-9<br />

7.5.1 LINE FORMAT COMMAND [ESC] L......................................7-9<br />

7.5.2 FONT TYPE COMMAND [ESC] K ...................................7-10<br />

7.5.3 OUTLINE FONT FORMAT COMMAND [ESC] KV .................................7-11<br />

7.5.4 BAR CODE/TWO-DIMENSIONAL CODE PRINT COMMAND [GS] k ......................................7-12<br />

7.5.5 CHARACTER MAGNIFICATION COMMAND [ESC] !.....................................7-14<br />

7.5.6 BAR CODE HORIZONTAL SIZE COMMAND [GS] w .....................................7-15<br />

7.5.7 BAR CODE HEIGHT COMMAND [GS] h ......................................7-16<br />

7.5.8 NUMERALS UNDER BARS COMMAND [GS] Hn ...................................7-17<br />

7.5.9 SECURITY LEVEL COMMAND [GS] s ......................................7-18<br />

7.5.10 NO. OF COLUMNS (STRINGS) COMMAND [GS] c ......................................7-19<br />

7.5.11 PRINT WIDTH COMMAND [ESC] W ..................................7-20<br />

7.5.12 HORIZONTAL PRINT POSITION COMMAND [ESC] H ...................................7-21<br />

7.5.13 HORIZONTAL OFFSET POSITION COMMAND [ESC] O ...................................7-23<br />

7.5.14 CHARACTER ROTATE COMMAND [ESC] R ...................................7-25<br />

7.5.15 ERROR CORRECTION LEVEL SET COMMAND (For QR Code) [GS] q ......................................7-26<br />

7.5.16 QR CODE MODEL SET COMMAND [GS] r.......................................7-27<br />

7.6 COMMANDS RELATED TO ISSUE AND FEED...................................................................................7-28<br />

7.6.1 PRINT LINE FEED COMMAND [LF]..........................................7-28<br />

7.6.2 BACK FEED OMISSION COMMAND [ESC]B ....................................7-29<br />

7.7 COMMANDS RELATED TO GRAPHICS..............................................................................................7-30<br />

7.7.1 GRAPHIC DATA STORE COMMAND [ESC] SG.................................7-30<br />

7.7.2 GRAPHIC PRINT COMMAND [GS] / .......................................7-32<br />

vi


Page<br />

7.8 COMMANDS RELATED TO CONTROL ...............................................................................................7-33<br />

7.8.1 INITIALIZE COMMAND [ESC] @, [ESC] WR................7-33<br />

7.9 COMMANDS RELATED TO STATUS ..................................................................................................7-34<br />

7.9.1 STATUS REQUEST COMMAND [ESC] v, [ [ESC] FM, [ESC] WS....7-34<br />

7.9.2 MODE INFORMATION ACQUIRE COMMAND [ESC] WX......................................7-36<br />

7.10 COMMANDS RELATED TO Bluetooth AND WIRELESS LAN .............................................................7-37<br />

7.10.1 DEVICE ADDRESS ACQUIRE COMMAND [ESC] IT ........................................7-37<br />

7.11 COMMANDS RELATED TO MACRO SETTING...................................................................................7-38<br />

7.11.1 MACRO DEFINITION COMMAND [GS] :.............................................7-38<br />

7.11.2 MACRO EXECUTE COMMAND [GS] ^ [NUL] .....................7-39<br />

7.12 EXAMPLES OF USING COMMANDS ..................................................................................................7-40<br />

8. ERROR PROCESSING................................................................................................................................8-1<br />

8.1 GENERAL DESCRIPTION .....................................................................................................................8-1<br />

8.2 OPERATIONS WHEN AN ERROR OCCURS ........................................................................................8-2<br />

8.3 OPERATIONS AFTER AN ERROR IS CLEARED..................................................................................8-2<br />

8.3.1 LABEL MODE.................................................................................................................................8-2<br />

8.3.2 RECEIPT MODE (Mode = 1 or 3)...................................................................................................8-2<br />

8.3.3 RECEIPT1 MODE (Mode = 2)........................................................................................................8-2<br />

8.3.4 TPCL-LE MODE .............................................................................................................................8-2<br />

8.4 SYNTAX ERRORS OF COMMANDS .....................................................................................................8-2<br />

8.5 PAPER JAM............................................................................................................................................8-2<br />

8.6 LABEL END ............................................................................................................................................8-3<br />

8.6.1 LABEL MODE, RECEIPT MODE (Mode = 1 or 3), TPCL-LE MODE..............................................8-3<br />

8.6.2 RECEIPT1 MODE (Mode = 2)........................................................................................................8-3<br />

8.7 NORMAL END + LABEL END ................................................................................................................8-3<br />

8.7.1 LABEL MODE, TPCL-LE MODE ....................................................................................................8-3<br />

8.7.2 RECEIPT MODE ............................................................................................................................8-3<br />

8.8 COVER OPEN ERROR ..........................................................................................................................8-3<br />

8.9 BROKEN THERMAL HEAD DOTS ERROR ...........................................................................................8-3<br />

8.10 THERMAL HEAD EXCESSIVE TEMPERATURE ...................................................................................8-3<br />

8.11 FLASH ROM WRITE ERROR.................................................................................................................8-3<br />

8.12 FLASH ROM ERASE ERROR ................................................................................................................8-4<br />

8.13 FLASH ROM STORAGE AREA FULL ....................................................................................................8-4<br />

8.14 LOW BATTERY ......................................................................................................................................8-4<br />

8.15 OTHER ERRORS ...................................................................................................................................8-4<br />

8.16 STATUS VALUES...................................................................................................................................8-5<br />

vii


Page<br />

9. SYSTEM MODE ...........................................................................................................................................9-1<br />

9.1 GENERAL DESCRIPTION .....................................................................................................................9-1<br />

9.2 STARTING THE PRINTER IN SYSTEM MODE .....................................................................................9-1<br />

9.3 COMMUNICATIONS CONDITIONS .......................................................................................................9-2<br />

9.3.1 IrDA ................................................................................................................................................9-2<br />

9.3.2 RS-232C.........................................................................................................................................9-2<br />

9.3.3 Bluetooth ........................................................................................................................................9-2<br />

9.3.4 WIRELESS LAN.............................................................................................................................9-2<br />

9.4 LIMITATIONS IN SYSTEM MODE..........................................................................................................9-2<br />

9.5 OUTLINE OF COMMANDS ....................................................................................................................9-3<br />

9.5.1 FORMAT OF INTERFACE COMMAND..........................................................................................9-3<br />

9.5.2 HOW TO USE REFERENCE .........................................................................................................9-3<br />

9.5.3 PRECAUTIONS..............................................................................................................................9-3<br />

9.6 COMMANDS RELATED TO SETTING ...................................................................................................9-4<br />

9.6.1 ID SET COMMAND [ESC] ID..........................................9-4<br />

9.6.2 MODE SELECT COMMAND [ESC] M...........................................9-5<br />

9.7 COMMANDS RELATED TO FINE ADJUSTMENT .................................................................................9-7<br />

9.7.1 PRINT DENSITY FINE ADJUST COMMAND [ESC] AY.........................................9-7<br />

9.7.2 STRIP SENSOR THRESHOLD VALUE SET COMMAND [ESC] AH, [ESC] AZ........................9-8<br />

9.8 COMMANDS RELATED TO CONTROL .................................................................................................9-9<br />

9.8.1 INITIALIZE COMMAND [ESC] WR, [ESC] @ .......................9-9<br />

9.9 COMMANDS RELATED TO STATUS ..................................................................................................9-10<br />

9.9.1 STATUS REQUEST COMMAND [ESC] FM, [ESC] WS, [ESC] v......9-10<br />

9.9.2 MODE INFORMATION ACQUIRE COMMAND [ESC] WX......................................9-13<br />

9.10 COMMANDS RELATED TO PARAMETER SETTING ..........................................................................9-14<br />

9.10.1 PARAMETER SET COMMAND [ESC] ZZ .......................................9-14<br />

9.11 COMMANDS RELATED TO Bluetooth .................................................................................................9-16<br />

9.11.1 DEVICE ADDRESS ACQUIRE COMMAND [ESC] IT ........................................9-16<br />

9.12 STATUS PRINTING..............................................................................................................................9-17<br />

9.12.1 GENERAL DESCRIPTION ...........................................................................................................9-17<br />

9.12.2 CONTENTS TO BE PRINTED......................................................................................................9-17<br />

9.12.3 PRINT SAMPLE ...........................................................................................................................9-18<br />

9.13 SETUP MODE ......................................................................................................................................9-22<br />

9.13.1 GENERAL DESCRIPTION ...........................................................................................................9-22<br />

9.13.2 PRINTER CONDITIONS TO CHANGE SETTINGS......................................................................9-22<br />

viii


Page<br />

9.13.3 HOW TO ENTER INTO SETUP MODE........................................................................................9-22<br />

9.13.4 HOW TO RETURN TO SYSTEM MODE DURING SETTING ......................................................9-22<br />

9.13.5 AUTO POWER-OFF FUNCTION DURING SETTING..................................................................9-22<br />

9.13.6 HOW TO CANCEL EACH SETUP MODE....................................................................................9-22<br />

9.13.7 HOW TO CHECK EACH MODE SETTING ..................................................................................9-22<br />

9.13.8 OTHER.........................................................................................................................................9-22<br />

9.13.9 FORCED IrCOMM MODE ............................................................................................................9-23<br />

9.13.10 SETUP MENU ..............................................................................................................................9-23<br />

9.13.11 IrDA COMMUNICATION SETUP MENU ......................................................................................9-24<br />

9.13.12 BAUD RATE SETUP MENU.........................................................................................................9-25<br />

9.13.13 PARITY SETUP MENU ................................................................................................................9-26<br />

9.13.14 AUTO POWER-OFF TIME SETUP MENU...................................................................................9-27<br />

9.13.15 MODEL TYPE (DESTINATION) SETUP MENU...........................................................................9-28<br />

10. OTHER FUNCTIONS .................................................................................................................................10-1<br />

10.1 GENERAL DESCRIPTION ...................................................................................................................10-1<br />

10.2 REPRINT FUNCTION...........................................................................................................................10-2<br />

10.2.1 LABEL MODE...............................................................................................................................10-2<br />

10.2.2 RECEIPT MODE ..........................................................................................................................10-2<br />

10.2.3 TPCL-LE MODE ...........................................................................................................................10-2<br />

10.3 POWER SAVE MODE ..........................................................................................................................10-2<br />

10.4 AUTOMATIC LABEL PRINT POSITIONING.........................................................................................10-3<br />

10.4.1 LABEL MODE, TPCL-LE MODE ..................................................................................................10-3<br />

10.4.2 RECEIPT MODE ..........................................................................................................................10-3<br />

10.5 CONTINUOUS PRINTING FUNCTION.................................................................................................10-3<br />

10.5.1 LABEL MODE, RECEIPT MODE (Mode = 1 or 3) ........................................................................10-3<br />

10.5.2 RECEIPT1 MODE (Mode = 2), TPCL-LE MODE..........................................................................10-3<br />

10.6 AUTOMATIC LABEL PRINT POSITIONING AT POWER ON TIME.....................................................10-3<br />

10.7 BD ADDRESS PRINTING FUNCTION .................................................................................................10-3<br />

10.8 WIRELESS LAN PARAMETER SETTINGS PRINTING FUNCTION ....................................................10-4<br />

11. CHARACTER CODE TABLE.....................................................................................................................11-1<br />

11.1 GENERAL DESCRIPTION ...................................................................................................................11-1<br />

11.2 TIMES ROMAN.....................................................................................................................................11-2<br />

11.3 HELVETICA ..........................................................................................................................................11-2<br />

11.4 LETTER GOTHIC .................................................................................................................................11-3<br />

11.5 PRESTIGE ELITE.................................................................................................................................11-3<br />

ix


Page<br />

11.6 COURIER .............................................................................................................................................11-4<br />

11.7 GOTHIC725 BLACK .............................................................................................................................11-4<br />

11.8 PRESENTATION ..................................................................................................................................11-5<br />

11.9 STANDARD (12×24).............................................................................................................................11-5<br />

11.10 OCR-A ..................................................................................................................................................11-6<br />

11.11 OCR-B ..................................................................................................................................................11-6<br />

11.12 PRICE FONT 1/PRICE FONT 2............................................................................................................11-7<br />

11.13 BOLD CHARACTER .............................................................................................................................11-7<br />

11.14 OUTLINE FONT TEC FONT 1 ..............................................................................................................11-8<br />

11.15 OUTLINE FONT PRICE FONT 2 ..........................................................................................................11-8<br />

12. BAR CODE/TWO-DIMENSIONAL CODE TABLE.....................................................................................12-1<br />

12.1 GENERAL DESCRIPTION ...................................................................................................................12-1<br />

12.2 JAN8/EAN8, JAN13/EAN13, UPC-A, UPC-E, ITF, EAN128, MSI, RSS-14, RSS-14 STACKED,<br />

RSS-14 STACKED OMNIDIRECTIONAL, RSS-LIMITED.....................................................................12-2<br />

12.3 CODE39 (STANDARD).........................................................................................................................12-2<br />

12.4 NW-7.....................................................................................................................................................12-3<br />

12.5 CUSTOMER BAR CODE, HIGHEST PRIORITY CUSTOMER BAR CODE .........................................12-3<br />

12.6 CODE128..............................................................................................................................................12-4<br />

12.6.1 TRANSFER CODE.......................................................................................................................12-4<br />

12.6.2 HOW TO SEND CONTROL CODE DATA....................................................................................12-4<br />

12.6.3 HOW TO SEND SPECIAL CODES..............................................................................................12-4<br />

12.6.4 DESIGNATION OF START CODE ...............................................................................................12-4<br />

12.6.5 VALUE CODE TABLE ..................................................................................................................12-5<br />

12.7 RSS EXPANDED..................................................................................................................................12-6<br />

12.8 DATA MATRIX ......................................................................................................................................12-7<br />

12.8.1 FORMAT ID..................................................................................................................................12-7<br />

12.8.2 TRANSFER CODE.......................................................................................................................12-7<br />

12.8.3 HOW TO SEND CONTROL CODE DATA....................................................................................12-7<br />

12.8.4 HOW TO SEND SPECIAL CODES..............................................................................................12-7<br />

12.9 PDF417, MicroPDF417.........................................................................................................................12-8<br />

12.9.1 MODE/CODE ...............................................................................................................................12-8<br />

12.9.2 TRANSFER CODE.......................................................................................................................12-8<br />

12.9.3 HOW TO SEND CONTROL CODE DATA....................................................................................12-9<br />

12.9.4 HOW TO SEND SPECIAL CODES..............................................................................................12-9<br />

x


Page<br />

12.10 MAXICODE.........................................................................................................................................12-10<br />

12.10.1 HOW TO SEND CONTROL CODE DATA..................................................................................12-11<br />

12.10.2 HOW TO SEND SPECIAL CODES............................................................................................12-11<br />

12.11 QR CODE ...........................................................................................................................................12-12<br />

12.11.1 MODE SELECTION....................................................................................................................12-12<br />

12.11.2 TRANSFER CODE.....................................................................................................................12-12<br />

12.11.3 HOW TO SEND CONTROL CODE DATA..................................................................................12-13<br />

12.11.4 HOW TO SEND SPECIAL CODES............................................................................................12-13<br />

12.12 START/STOP CODE ..........................................................................................................................12-13<br />

13. PRINT SAMPLE.........................................................................................................................................13-1<br />

13.1 BIT MAP FONT.....................................................................................................................................13-1<br />

13.2 OUTLINE FONT....................................................................................................................................13-5<br />

xi


1. SCOPE/GENERAL DESCRIPTION<br />

1. SCOPE/GENERAL DESCRIPTION<br />

1.1 SCOPE<br />

This specification applies to the software that is used with the B-<strong>SP2D</strong> probate printer.<br />

1.2 GENERAL DESCRIPTION<br />

The external equipment interface connects a printer to the host computer through the RS-232C, IrDA,<br />

Bluetooth TM , or wireless LAN interface for storing forms, or issuing labels or receipts. This specification<br />

describes how to use the external equipment interface and the [FEED] switch. The specification is<br />

organized as below. Refer to each chapter according to your needs.<br />

1.2.1 SPECIFICATION ORGANIZATION<br />

Chapter 1: SCOPE/GENERAL DESCRIPTION<br />

Chapter 2: OUTLINE OF SPECIFICATIONS<br />

Chapter 3: INTERFACE<br />

Chapter 4: TRANSMISSION SEQUENCE<br />

Chapter 5: TPCL-LE MODE (INTERFACE COMMANDS)<br />

Chapter 6: LABEL MODE (INTERFACE COMMANDS)<br />

Chapter 7: RECEIPT MODE (INTERFACE COMMANDS)<br />

Chapter 8: ERROR PROCESSING<br />

Chapter 9: SYSTEM MODE<br />

Chapter 10: OTHER FUNCTIONS<br />

Chapter 11: CHARACTER CODE TABLE<br />

Chapter 12: BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

* BLUETOOTH is a trademark owned by Bluetooth SIG, Inc., U.S.A. and licensed to TOSHIBA TEC<br />

Corporation.<br />

* Other company names or product names described in this document are registered trademarks or<br />

trademarks of respective companies.<br />

1-1


2. OUTLINE OF SPECIFICATIONS<br />

2. OUTLINE OF SPECIFICATIONS<br />

2.1 GENERAL DESCRIPTION<br />

This chapter describes the outline of specifications – modes which the printer has. For more details,<br />

refer to the appropriate chapter.<br />

„ [TPCL-LE (TEC Printer Command Language Light Edition) mode]<br />

The printer draws data according to the format information and print data sent from the host, and<br />

issues labels according to the Issue Command.<br />

„ [LABEL mode]<br />

The label format information, graphic data, or writable character data sent from the host, is<br />

previously stored in flash ROM as an initial setting. The printer links the print data sent through its<br />

interface to the format data or writable character data in flash ROM, then prints.<br />

„ [RECEIPT mode]<br />

The printer draws and issues according to the data or commands sent from the host.<br />

„ [SYSTEM mode]<br />

In this mode, self-test printing, slant line printing, or settings/changing of internal parameters are<br />

performed.<br />

2.2 DIMENSION<br />

114 (W) × 91 (D) × 44 (L) mm (excluding the belt holder and cover open lever, etc.)<br />

* 114 (W) x 101 (D) x 44 (L) mm (for the wireless LAN interface model)<br />

2.3 WEIGHT<br />

Approx. 380 g (including a battery, excluding paper)<br />

* Approx. 410 g (for the wireless LAN interface model)<br />

2.4 PRINTING METHOD<br />

Direct thermal<br />

2.5 HEAD SPECIFICATION<br />

8 dots/mm (203 dpi)<br />

Effective print width: 48 mm<br />

2.6 PRINT SPEED<br />

Approx. 12.5 mm/sec to Approx. 80 mm/sec<br />

(at 25°C when using the battery designated and paper recommended by <strong>Toshiba</strong> TEC)<br />

2.7 PRINT MODE<br />

• LABEL mode<br />

• RECEIPT mode<br />

• TPCL-LE mode<br />

2-1


2. OUTLINE OF SPECIFICATIONS<br />

2.8 FONT TYPE<br />

2.8.1 BIT MAP FONT<br />

• Standard character/Characters under bars..............12 × 24 dots<br />

• Bold character ..........................................................48 × 96 dots<br />

• Price Font 1 ..............................................................16 × 40 dots<br />

• Price Font 2 ..............................................................32 × 48 dots<br />

• Times Roman (Medium) ..........................................12 point<br />

• Times Roman (Medium) ..........................................15 point<br />

• Times Roman (Bold) ................................................15 point<br />

• Times Roman (Bold) ................................................18 point<br />

• Times Roman (Bold) ................................................21 point<br />

• Times Roman (Italic) ................................................18 point<br />

• Helvetica (Medium) ..................................................9 point<br />

• Helvetica (Medium) ..................................................15 point<br />

• Helvetica (Medium) ..................................................18 point<br />

• Helvetica (Bold) ........................................................18 point<br />

• Helvetica (Bold) ........................................................21 point<br />

• Helvetica (Italic)........................................................18 point<br />

• Presentation (Bold)...................................................27 point<br />

• Letter Gothic (Medium) ............................................14.3 point<br />

• Prestige Elite (Medium) ...........................................10.5 point<br />

• Prestige Elite (Bold)..................................................15 point<br />

• Courier (Medium) .....................................................15 point<br />

• Courier (Bold) ...........................................................18 point<br />

• OCR-A......................................................................12 point<br />

• OCR-B......................................................................12 point<br />

• GOTHIC725 Black ...................................................6 point<br />

• Writable character ....................................................16 × 16 dots<br />

• Writable character ....................................................24 × 24 dots<br />

NOTE: Some fonts cannot be printed depending on the print mode.<br />

2.8.2 OUTLINE FONT<br />

• TEC Font 1 (Not proportional)<br />

• TEC Font 1 (Proportional)<br />

• Price Font 2 (* Firmware V1.2 or greater)<br />

NOTE: Some fonts cannot be printed depending on the print mode.<br />

2-2


2. OUTLINE OF SPECIFICATIONS<br />

2.9 TYPE OF BAR CODE/TWO-DIMENSIONAL CODE<br />

2.9.1 BAR CODE<br />

• JAN8/EAN8<br />

• JAN13/EAN13<br />

• UPC-A<br />

• UPC-E<br />

• Interleaved 2 of 5 (ITF)<br />

• NW7<br />

• CODE39<br />

• CODE128<br />

• EAN128<br />

• MSI<br />

• Customer bar code<br />

• RSS (* Firmware V1.2 or greater)<br />

NOTE: Some bar codes cannot be printed depending on the print mode.<br />

2.9.2 TWO-DIMENSIONAL CODE<br />

• QR code<br />

• PDF417<br />

• Data Matrix<br />

• Maxicode<br />

• MicroPDF417<br />

NOTE: Some two-dimensional codes cannot be printed depending on the print mode.<br />

2.10 FORMAT STORAGE<br />

LABEL mode.........Max. 20 types can be stored. (Form storage)<br />

TPCL-LE mode .....Max. 99 types can be stored. (PC saving)<br />

Storage capacity: 128KB<br />

Storage capacity: 192KB<br />

2.11 GRAPHIC STORAGE<br />

Two graphic data can be stored. (Max. 48 × 90 Kbytes)<br />

Storage capacity: 64KB<br />

2.12 WRITABLE CHARACTER STORAGE<br />

LABEL mode.........24 × 24 dots: Max. 50 writable characters can be stored<br />

TPCL-LE mode .....Free size: Max. 224 writable characters can be stored<br />

16 × 16 dots: Max. 188 writable characters can be stored<br />

24 × 24 dots: Max. 188 writable characters can be stored.<br />

Storage capacity:<br />

64KB in total<br />

2.13 INTERFACE<br />

• IrDA V1.2 (IrCOMM, TEC Protocol)<br />

• RS-232C<br />

• Bluetooth V1.1 (Class 2)<br />

• Wireless LAN (802.11b)<br />

2-3


2. OUTLINE OF SPECIFICATIONS<br />

2.14 POWER SOURCE<br />

Type: Lithium-ion battery<br />

Voltage: 7.4 V 1400 mAH (Nominal values)<br />

Charging method: Charge only the battery using the battery charger.<br />

2.15 BATTERY CAPACITY<br />

• 300 sheets (48 (W) × 40 (H) mm label) printed/charged once<br />

• Print ratio: 30%<br />

• Ambient temperature: 25°C<br />

NOTE:<br />

The printable number of labels may vary depending on the contents to be printed.<br />

2.16 SWITCH<br />

POWER switch<br />

FEED switch<br />

2.17 SENSOR<br />

Cover open sensor<br />

Transmissive sensor<br />

Reflective sensor<br />

Strip issue path detection sensor<br />

Head temperature sensor<br />

Ambient temperature sensor<br />

2.18 LED<br />

LED (Green, Orange, Red)<br />

When the printer is turned ON ..........First, the LED blinks in red, secondly, blinks in green, and then<br />

changes color depending on the battery level.<br />

Battery level 3 or greater:<br />

Battery level 2 or greater:<br />

Battery level 1:<br />

Power ON → Blinks in red → Blinks in green → Lights in green<br />

Power ON → Blinks in red → Blinks in green → Lights in orange<br />

Power ON → Blinks in red → Blinks in green → Lights in red<br />

Error .................................................Blinks in red.<br />

Low battery (print failure) ..................Lights up in red.<br />

Near-low battery................................Lights up in orange.<br />

2.19 ISSUE MODE<br />

Strip issue<br />

Batch issue<br />

2-4


2. OUTLINE OF SPECIFICATIONS<br />

2.20 PAPER (<strong>Toshiba</strong> TEC recommended paper should be used.)<br />

Label width ........................................25 to 55 mm<br />

Gap length between labels................3 to 7 mm<br />

Black mark length .............................3 to 7 mm<br />

Backing paper width..........................28 to 58 mm<br />

Receipt paper width ..........................28 to 58 mm<br />

Paper replacing method....................Label loading-in method<br />

2.21 CUT<br />

Manual cut using the tear bar<br />

2.22 BROKEN HEAD DOTS CHECK FUNCTION<br />

When the printer is turned ON, or the cover is closed, the program will check for broken head dots. If<br />

broken head dots are detected, a broken head dot error will occur.<br />

2.23 STATUS TRANSMISSION<br />

The printer sends a status when:<br />

• The host requests status transmission.<br />

• The printer receives a command, while it is in an error state.<br />

• Automatic status transmission in the Issue Command has already been designated.<br />

2.24 AUTO LABEL POSITIONING FUNCTION<br />

When the cover is closed after replacing the label paper, the label is automatically fed to the first print<br />

position. However, when the RECEIPT mode is selected or no sensor is designated, this function is<br />

not performed.<br />

2.25 STATUS PRINTING<br />

When the printer is turned ON while holding down the [FEED] switch, self-test is performed and the<br />

result of the printer’s state will be printed.<br />

2.26 CONTINUOUS PRINTING FUNCTION<br />

When the RECEIPT mode (Mode = 2), TPCL-LE mode (Mode = A), or TPCL-LE1 mode (Mode = B)<br />

is selected, the received data is continuously printed, after an error state (label end, cover open error,<br />

or a paper jam) is cleared. After the paper is replaced, when the cover is closed, the error is cleared.<br />

The printer automatically restarts printing. If the printer is in the label end state when the cover is<br />

closed, the printer neither clears the error nor performs automatic printing. The printer is still in an<br />

error state.<br />

2-5


3. INTERFACE<br />

3. INTERFACE<br />

3.1 GENERAL DESCRIPTION<br />

This chapter describes details on the interfaces between the host and the printer. The printer<br />

configurations are as follows:<br />

• IrDA + RS-232C model<br />

• IrDA + Bluetooth model<br />

• IrDA + Wireless LAN model<br />

IrDA has the following two protocols. These explanations are independently described on later pages.<br />

• TEC Protocol<br />

• IrCOMM (9-WIRE)<br />

The printer interface is automatically switched between IrDA and RS-232C/Bluetooth/wireless LAN on<br />

the following conditions:<br />

• IrDA+RS-232C model<br />

When the RS-232C cable is connected to the printer, the printer interface will be switched to the<br />

RS-232C interface. When the RS-232C cable is disconnected, the interface will be switched to<br />

IrDA.<br />

• IrDA+Bluetooth model or IrDA+Wireless LAN model<br />

Usually, IrDA interface is standing by for a communication. When data is sent from Bluetooth<br />

interface or wireless LAN interface, the printer interface is automatically switched to the appropriate<br />

interface.<br />

When over 5 seconds have passed since the termination of the communication by Bluetooth or<br />

wireless LAN interface, the printer interface will return to IrDA. Therefore, communication by IrDA<br />

cannot be made during or within 5 seconds after the communication by Bluetooth or wireless LAN<br />

interface.<br />

If data is sent to the printer by Bluetooth or wireless LAN interface during the communication by<br />

IrDA, the printer interface will be automatically switched to Bluetooth or wireless LAN, and<br />

consequently the communication by IrDA cannot be made successfully.<br />

3-1


3. INTERFACE<br />

3.2 IrDA INTERFACE (TEC Protocol)<br />

In IrDA standard, only IrDA-SIR of the physical layer should be used. For the data link layer, original<br />

simplified protocol should be provided.<br />

3.2.1 SPECIFICATIONS FOR PHYSICAL LAYER AND TRANSMISSION CONTROL METHOD<br />

Transport layer<br />

IrLMP<br />

Simplified protocol<br />

IrLAP<br />

IrDA-SIR<br />

IrDA V1.2 (Low Power) standard<br />

IrDA-SIR<br />

B-<strong>SP2D</strong><br />

: parts are required.<br />

(1) Specifications for physical layer<br />

Item<br />

Specifications<br />

Normal mode<br />

Communication mode Physical layer conforming to IrDA-SIR V1.2<br />

(Low Power) standard<br />

Transfer rate 9600, 19200, 38400, 115200 bps *1<br />

Communication distance within 0.1 m *2<br />

Peak wave length of 850 to 900 nm<br />

emitted light<br />

Communicable angle within ±15°<br />

Ambient illuminance 1000 lx or less<br />

(fluorescent lamp and incandescent lamp)<br />

Emissive power Min 3.6 mW/Sr (θh, θv ≤ ±15°)<br />

Min. photo sensibility Min 9 µW/cm 2 (θh, θv ≤ ±15°)<br />

*1: Values for the normal mode are dependent on the communication protocol settings.<br />

*2: The communication distance may become shorter than 0.1 m, depending on the host’s<br />

performance.<br />

3-2


3. INTERFACE<br />

3.2.2 INPUT/OUTPUT SIGNAL<br />

• RD (Host → Printer)<br />

A data signal which the printer receives from the host.<br />

Logic 1 is Low level, while logic 0 is High level.<br />

It is in a Low state when no transmission is in progress.<br />

• SD (Printer → Host)<br />

A data signal which the printer sends to the host.<br />

Logic 1 is Low level, while logic 0 is High level.<br />

It is in a Low state when no transmission is in progress.<br />

3.2.3 TRANSMISSION CONTROL<br />

The host performs transmission control with a NAK (15H)/ACK (06H), which means the printer is<br />

ready, a link request PAD (FFH), and a command packet.<br />

c Link request (Host → Printer)<br />

The host should send a link request PAD (FFH) in order to link to the printer. The link request<br />

PAD should be intermittently sent until the printer is linked and enters a ready state.<br />

d Printer ready (Printer → Host)<br />

When the printer detects the link request PAD from the host, and enters a ready state for<br />

receiving the command packet, the printer sends a NAK within 40 msec. When an error such<br />

as CRC occurs, the printer sends a NAK.<br />

NAK<br />

15H<br />

The printer sends an ACK, when the printer properly receives the command packet and enters<br />

a ready state for receiving the next data, or when the data is stored into flash ROM.<br />

ACK<br />

06H<br />

e End of link (Host → Printer)<br />

When there is no packet to be sent, the host sends an EOT to end the link.<br />

EOT<br />

04H<br />

f Turnaround time<br />

The printer should send a NAK/ACK/status packet after 5 ms from when a PAD/command<br />

packet has been received.<br />

g Time out<br />

Host:<br />

Time out due to waiting for a NAK after a PAD is sent ................................ 50 msec.<br />

Time out due to waiting for an ACK after a command is sent ..................... 200 msec.<br />

Printer: Time out due to waiting for a command after a NAK is sent ....................... 1 sec.<br />

Time out due to waiting for an EOT or a command after an ACK is sent.... 1 sec.<br />

Time out due to waiting for an EOT after the status is sent......................... 1 sec.<br />

3-3


3. INTERFACE<br />

h Status packet (Printer → Host)<br />

If the printer enters an error state when the command is sent from the host, or when status<br />

transmission is requested, the printer sends a status.<br />

NOTE: The data error is checked by CRC. However, noise included in sent/received data<br />

may cause misprinting. (Though CRC check is carried out in 16 bits, there is a<br />

possibility that the data including noise matches 16 bits of CRC check.)<br />

[LABEL/RECEIPT modes]<br />

Data to be sent<br />

STX Printer ID Version No. of each form Printer status Battery status CRC<br />

02H xxH xxH V01 V02 ··········· V20 xxH xxH xxH xxH<br />

Range of CRC calculation<br />

• Printer ID ......... 2-byte hex data (in order from High to Low)<br />

• Version No. of each form (00H to 09H)<br />

V01 ............... Version of form No. 1 (1-byte hex data)<br />

V02 ............... Version of form No. 2 (1-byte hex data)<br />

V20 ............... Version of form No. 20 (1-byte hex data)<br />

• Printer status ... Printer status is indicated in 1-byte data.<br />

00H: Normal status (Idling)<br />

01H: Cover open status<br />

02H: Command syntax error<br />

03H: Paper jam<br />

04H: Label end<br />

05H: Cover open error<br />

06H: Broken thermal head dots error<br />

07H: Thermal head excessive temperature<br />

08H: Flash ROM write error<br />

09H: Flash ROM erase error<br />

0AH: Low battery (Print failure)<br />

0BH: Operating<br />

0DH: Normal end + Label end<br />

0EH: Flash ROM storage area full state<br />

10H: Normal end<br />

• Battery status .. The battery charge status is indicated in 5 levels.<br />

01H: 7.2 V or less (Print failure)<br />

02H: 7.3 V to 7.4 V<br />

(Remaining No. of printable labels: Approx. 1 to 20)<br />

03H: 7.5 V to 7.7 V<br />

(Remaining No. of printable labels: Approx. 20 to 100)<br />

04H: 7.8 V to 7.9 V<br />

(Remaining No. of printable labels: Approx. 100 to 200)<br />

05H: 8.0 V or more<br />

(Remaining No. of printable labels: Approx. 200 or more)<br />

* The remaining number of printable labels may vary according to the<br />

contents to be printed and the ambient environment.<br />

3-4


3. INTERFACE<br />

[TPCL-LE mode]<br />

Data to be sent<br />

STX Printer ID Status Remaining No. of labels CRC<br />

02H xxH xxH 3xH 3xH 3xH 3xH 3xH 3xH 3xH xxH xxH<br />

Range of CRC calculation<br />

• Printer ID ......... 2-byte hex data (in order from High to Low)<br />

• Status .............. Detailed status indicated in 2-byte data<br />

“00”: Normal state<br />

“01”: Cover open state<br />

“02”: Operating<br />

“06”: Command syntax error<br />

“09”: Normal issue end + Label end<br />

“11”: Paper jam<br />

“13”: Label end<br />

“15”: Cover open error<br />

“17”: Broken head dots error<br />

“18”: Thermal head excessive temperature<br />

“36”: Low battery<br />

“40”: Normal issue end<br />

“41”: Normal feed end<br />

“50”: Flash ROM write error<br />

“51”: Flash ROM erase error<br />

“54”: Flash ROM storage area full state<br />

• Status type ...... Indicated in 1-byte data<br />

“1”: Status Request Command<br />

“2”: Automatic status transmission<br />

• Remaining No. of labels .... Indicated in 4-byte data<br />

“0000” to “9999”<br />

3-5


3. INTERFACE<br />

i Command packet in the LABEL mode (Host → Printer)<br />

Length is designated in 1 byte:<br />

STX Printer ID Length Command CRC<br />

02H xxH xxH xxH xxH xxH<br />

Length is designated in 2 bytes:<br />

Range of the length<br />

STX Printer ID Length Command CRC<br />

02H xxH xxH 00H xxH xxH xxH xxH<br />

Range of CRC calculation<br />

Range of the length<br />

• Printer ID ......... 2-byte hex data (in order from High to Low)<br />

• Length ............. Hex data indicating the number of bytes of command data<br />

• When the length is designated in 1 byte: 1 byte<br />

01H to FFH<br />

• When the length is designated in 2 bytes: 3 bytes<br />

The first 1 byte is fixed as 00H.<br />

Designate the length using the remaining 2 bytes.<br />

(in order from Low to High): 0001 H to 0FFFH<br />

• CRC ................ 2-byte hex data (in order from Low to High)<br />

* Between the start and the termination of storing the form, a packet including several commands<br />

can be sent. However, the command data should not be included in two packets. For other<br />

commands, one packet should include only one command.<br />

* For all commands except the Graphic Data Store Command, data included in several packets<br />

should not be sent. The Data Print Command can also send data included in several packets if<br />

it is sent using the format on the next page.<br />

3-6


3. INTERFACE<br />

* Multiple packet format for including the Data Print Command in several packets<br />

(Host → Printer)<br />

Length is designated in 1 byte:<br />

STX Printer ID Length Mode Flag Command & Data CRC<br />

02H xxH xxH xxH Y xxH xxH xxH<br />

Range of the length<br />

Length is designated in 2 bytes:<br />

STX Printer ID Length Mode Flag Command & Data CRC<br />

02H xxH xxH 00H xxH xxH Y xxH xxH xxH<br />

Range of CRC calculation<br />

Range of the length<br />

• Printer ID ......... 2-byte hex data (in order from High to Low)<br />

• Length ............. Hex data indicating the number of bytes of command data<br />

• When the length is designated in 1 byte: 1 byte<br />

01H to FFH<br />

• When the length is designated in 2 bytes: 3 bytes<br />

The first 1 byte is fixed as 00H.<br />

Designate the length using the remaining 2 bytes.<br />

(in order from Low to High): 0001 H to 0FFFH<br />

NOTE:<br />

Up to 4 KB per one packet can be sent. However, total data<br />

amount from the first block to the final block must be 60 KB or<br />

less.<br />

• Mode ............... Fixed as “Y” (indicating the RECEIPT mode)<br />

• Flag ................. Flag indicating the block No. or the final block flag for the receipt issue<br />

(1 byte)<br />

Block No. (0 to 7F)<br />

• CRC ................ 2-byte hex data (in order from Low to High)<br />

Final block flag<br />

0: Final<br />

1: Not final<br />

3-7


3. INTERFACE<br />

j Command packet in the RECEIPT/TPCL-LE modes (Host → Printer)<br />

Length is designated in 1 byte:<br />

STX Printer ID Length Mode Flag Command & Data CRC<br />

02H xxH xxH xxH Y xxH xxH xxH<br />

Range of the length<br />

Length is designated in 2 bytes:<br />

STX Printer ID Length Mode Flag Command & Data CRC<br />

02H xxH xxH 00H xxH xxH Y xxH xxH xxH<br />

Range of CRC calculation<br />

Range of the length<br />

• Printer ID ......... 2-byte hex data (in order from High to Low)<br />

• Length ............. Hex data indicating the number of bytes of command data<br />

• When the length is designated in 1 byte: 1 byte<br />

01H to FFH<br />

• When the length is designated in 2 bytes: 3 bytes<br />

The first 1 byte is fixed as 00H.<br />

Designate the length using the remaining 2 bytes.<br />

(in order from Low to High): 0001 H to 0FFFH<br />

NOTE:<br />

Up to 4 KB per one packet can be sent. However, total data<br />

amount from the first block to the final block must be 60 KB or<br />

less.<br />

• Mode ............... Fixed as “Y” (indicating the RECEIPT mode)<br />

• Flag ................. Flag indicating the block No. or the final block flag for the receipt issue<br />

(1 byte)<br />

Block No. (0 to 7F)<br />

Final block flag 0: Final<br />

1: Not final<br />

• CRC ................ 2-byte hex data (in order from Low to High)<br />

* For the Status Request Command, the Mode Select Command, and Reset Command, one<br />

packet should include only one command.<br />

k Turnaround time<br />

The printer should send a NAK/ACK/status packet after 10 ms from when a PAD/command<br />

packet has been received.<br />

3-8


3. INTERFACE<br />

3.2.4 HOW TO SEND THE DATA PRINT COMMAND WHICH CANNOT BE INCLUDED IN ONE<br />

PACKET IN THE LABEL MODE<br />

When the Data Print Command in the LABEL mode cannot be included in one packet (256 bytes<br />

or more in 1-byte length designation, 4096 bytes or more in 2-byte length designation), it can be<br />

included in several packets by using the multiple packet format for the Data Print Command,<br />

described on page 3-7.<br />

Conditions: Data length for the Bit Map Font Field Command, the Outline Font Field Command,<br />

and the Bar Code/Two-dimensional Code Format Command, should be fixed as “00”.<br />

For the JIS 8 and Shift JIS Kanji codes only.<br />

(Example)<br />

To include the Data Print Command below into several packets:<br />

X [01H] [01H] [01]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

Command packet 1<br />

[STX] [00H] [00H] [DEH] Y [80H] X [01H] [01H] [01H]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

[CRC] [CRC]<br />

Command packet 2<br />

[STX] [00H] [00H] [DAH] Y [01H]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF] ABCDEFGHIJKLMNOPQRSTUVWXYZ [LF]<br />

[CRC] [CRC]<br />

3-9


3. INTERFACE<br />

3.2.5 CONNECTION SEQUENCE EXAMPLE (FOR LABEL MODE)<br />

< Normal transmission ><br />

• When one packet is sent<br />

Host<br />

Printer<br />

PAD<br />

Detection of the link request<br />

Ensuring link<br />

NAK<br />

Within 40 msec.<br />

Command packet<br />

Normal reception<br />

ACK<br />

Start of command process<br />

EOT<br />

End of data storage or an issue<br />

ACK<br />

ACK transmission for the command process end<br />

• When several packets are sent (for storing a form or graphics, or printing data)<br />

Host<br />

Printer<br />

PAD<br />

Detection of the link request<br />

Ensuring link<br />

NAK<br />

Within 40 msec.<br />

Command packet<br />

Normal reception<br />

ACK<br />

Start of command process<br />

Command packet<br />

ACK<br />

Command packet<br />

ACK<br />

EOT<br />

End of data storage or an issue<br />

ACK<br />

ACK transmission for the command process end<br />

3-10


3. INTERFACE<br />

• When the Status Request Command is sent<br />

Host<br />

Printer<br />

PAD<br />

Detection of the link request<br />

Ensuring link<br />

NAK<br />

Within 40 msec.<br />

Status request command packet<br />

Normal reception<br />

Status packet<br />

Status transmission<br />

EOT<br />

• When the host is started up, the host should send the Status Request Command to acquire the<br />

printer ID.<br />

• When the printer ID in the command packet is set to “0”, this command is acceptable for all<br />

printers.<br />

• The IrDA interface cannot be used while the RS-232 cable is connected.<br />

• When the Mode Select Command is sent<br />

Host<br />

Printer<br />

PAD<br />

Detection of the link request<br />

Ensuring link<br />

NAK<br />

Within 40 msec.<br />

Mode select command packet<br />

Normal reception<br />

ACK<br />

Start of mode selection process<br />

EOT<br />

End of mode selection process<br />

ACK<br />

ACK transmission for process end<br />

• When an EOT or other command data is not sent, after the mode select command packet is sent,<br />

the printer sends an ACK within 1 second after the mode select process is completed.<br />

3-11


3. INTERFACE<br />

< Error transmission ><br />

• When an error occurs during communication<br />

Host<br />

Printer<br />

Time out<br />

PAD/Command packet<br />

NAK/ACK/Status packet<br />

When a command packet or an EOT cannot<br />

be received within 1 sec. after a NAK, an<br />

ACK, or a status packet is sent, the link is<br />

terminated. However, when a CRC error, a<br />

framing error, or an overrun error occurs<br />

within 1 sec., the timer is reset.<br />

Command packet<br />

NAK<br />

CRC error<br />

When a CRC error occurs in the received<br />

command, the printer sends a NAK after the<br />

command packet is received.<br />

EOT/Command packet<br />

NAK<br />

Framing error, overrun error<br />

When the reception of an EOT or a command<br />

packet results in a framing error or an overrun<br />

error, a NAK is sent at that time.<br />

• When the communication is made during an error state<br />

Host<br />

Printer<br />

PAD<br />

Detection of the link request<br />

Ensuring link<br />

NAK<br />

Within 40 msec.<br />

Command packet<br />

EOT<br />

Status packet<br />

If the printer is in an error state, it returns<br />

a status packet, and not an ACK.<br />

Error is cleared.<br />

The command is not processed.<br />

3-12


3. INTERFACE<br />

• When the Status Request Command is sent during an error state<br />

Host<br />

Printer<br />

PAD<br />

Detection of the link request<br />

Ensuring link<br />

Status request command packet<br />

EOT<br />

NAK<br />

Status packet<br />

Within 40 msec.<br />

In spite of a normal or error state, the printer<br />

returns a status packet when receiving the Status<br />

Request Command.<br />

Error is cleared.<br />

• When an error occurs while the command is being processed.<br />

Host<br />

Printer<br />

PAD<br />

Detection of the link request<br />

Ensuring link<br />

NAK<br />

Within 40 msec.<br />

Command packet<br />

Normal reception<br />

ACK<br />

Start of command process<br />

EOT<br />

An error occurs.<br />

The process ends abnormally.<br />

Therefore, an ACK is not sent.<br />

Time out<br />

Host:<br />

Printer:<br />

Time out due to waiting for a NAK after a PAD is sent...............50 msec.<br />

(After time out, a PAD should be sent repeatedly.)<br />

Time out due to waiting for an ACK after a command is sent ....200 msec.<br />

NOTE: The process time for issuing a label or storing data into flash ROM varies<br />

according to the contents to be processed. Therefore, time out waiting for an<br />

ACK is not set.<br />

Time out due to waiting for a command after a NAK is sent .......................... 1 sec.<br />

Time out due to waiting for an EOT or a command after an ACK is sent ...... 1 sec.<br />

Time out due to waiting for an EOT after the status is sent ........................... 1 sec.<br />

3-13


3. INTERFACE<br />

3.2.6 CONNECTION SEQUENCE EXAMPLE (FOR RECEIPT/TPCL-LE MODES)<br />

The transmission control is basically the same as for the LABEL mode. Below is an example of<br />

the setting method for the flag of each command packet.<br />

Host<br />

Printer<br />

PAD<br />

Detection of the link request<br />

Ensuring link<br />

NAK<br />

Within 40 msec.<br />

STX<br />

ID<br />

ID<br />

Length<br />

Y<br />

80H Command & Data CRC CRC<br />

Receipt command packet<br />

ACK<br />

STX<br />

ID<br />

ID<br />

Length<br />

Y<br />

81H Command & Data CRC CRC<br />

Receipt command packet<br />

ACK<br />

STX<br />

ID<br />

ID<br />

Length<br />

Y<br />

02H Command & Data CRC CRC<br />

ACK<br />

Start of command process<br />

EOT<br />

ACK<br />

End of command process<br />

ACK transmission for command<br />

process end<br />

* Flag description:<br />

7 6 5 4 3 2 1 0<br />

Block No. (0 to 7F)<br />

Final block flag<br />

0: Final<br />

1: Not final<br />

* After each packet is checked by CRC, the packets which pass the check are stored. When the<br />

final block is received normally, an issue is started.<br />

* 128 block Nos. can be set from 0 to 7F. (However, if the packet length is designated in 2 bytes,<br />

total data amount of all blocks must be 60 KB or less. Therefore, a maximum of 128 block Nos.<br />

may not be able to be set.) When 128 block Nos. (or 60 KB) are not enough, terminate the<br />

command transmission, and issue the receipt. After issuing the receipt, the remainder can be<br />

sent. If the next command packet is sent during an issue, it is discarded without being<br />

processed.<br />

* The block Nos. must be consecutive, starting from 0 (in ascending order). If the block Nos. are<br />

not consecutive, starting from 0 in ascending order, a command syntax error occurs. If the<br />

same block No. is received again before the final block is received, the block is discarded<br />

without being stored.<br />

* For the final block, the most significant bit must be cleared to 0. The printer starts an issue after<br />

the final block is received. Therefore, if this setting is not made, the printer does not start<br />

printing.<br />

3-14


3. INTERFACE<br />

3.2.7 PRINTER STATE TRANSITION (FOR LABEL MODE)<br />

Printer state transition<br />

Event<br />

State<br />

Wait state for<br />

the link<br />

S1<br />

Wait state for a<br />

command after<br />

the NAK<br />

transmission<br />

S2<br />

Ensuring link<br />

NAK<br />

transmission<br />

→ S2<br />

Issue<br />

Command<br />

reception<br />

Store<br />

Command<br />

reception<br />

— Normal<br />

ACK<br />

transmission<br />

Command<br />

analysis<br />

→ S3<br />

Error<br />

Status<br />

transmission<br />

End of issue<br />

End of storage<br />

Status Request<br />

Command EOT reception Time out CRC error<br />

reception<br />

Syntax error,<br />

Storage error,<br />

Error during<br />

issuing<br />

— — — — — — —<br />

— Normal<br />

Status<br />

transmission<br />

→ S3<br />

— Error<br />

Status<br />

transmission<br />

End of link<br />

NAK<br />

transmission<br />

Wait state for a<br />

command/EOT<br />

after the ACK<br />

transmission<br />

S3<br />

Wait state for<br />

an EOT after<br />

the status<br />

transmission<br />

S4<br />

→ S4<br />

— ACK<br />

transmission<br />

Command<br />

analysis<br />

— Status<br />

transmission<br />

EOT has been Status<br />

received transmission<br />

ACK<br />

transmission<br />

(NOTE 1)<br />

→ S1<br />

EOT has not<br />

been received<br />

→ S3 → S3 → S3<br />

→ S4<br />

— Status<br />

transmission<br />

→ S4 → S1 → S1 → S2 → S1<br />

→ S4<br />

Store<br />

Command<br />

Start of storage<br />

process<br />

→ S3<br />

End of link NAK<br />

(NOTE 2) transmission<br />

Issue<br />

Command<br />

ACK<br />

transmission if<br />

the issue is<br />

completed.<br />

(NOTE 1)<br />

→ S1<br />

If the issue is<br />

not completed<br />

→ S3<br />

Status Request<br />

Command<br />

→ S1 → S1 → S2 → S1<br />

Clear of error End of link<br />

—<br />

→ S1<br />

→ S1<br />

→ S1<br />

NOTES: 1. Only when the ACK transmission for the process end is specified by the Data Print<br />

Command, an ACK is sent after an issue is completed.<br />

2. An ACK for the command process end is also sent, when the time out occurs during the<br />

wait state for an EOT.<br />

Host state transition<br />

State<br />

Event<br />

Wait state for a<br />

NAK for the link<br />

request<br />

S1<br />

Wait state for<br />

an ACK/status<br />

after the<br />

command<br />

transmission<br />

S2<br />

Wait state for<br />

an ACK after<br />

the EOT<br />

transmission<br />

S3<br />

Key entry mode<br />

NAK reception<br />

Command<br />

transmission<br />

ACK reception<br />

Status<br />

reception<br />

Time out<br />

(NOTE 1)<br />

CRC error<br />

Framing error<br />

Overrun error<br />

→ S2 → S1 → S1 → S1 → S1<br />

Command<br />

retransmission<br />

→ S2<br />

—<br />

Middle block<br />

Command<br />

transmission<br />

→ S2<br />

Final block<br />

EOT<br />

transmission<br />

→ S3<br />

or<br />

→ S4<br />

EOT<br />

transmission<br />

→ S4 → S4 → S4<br />

→ S4 → S4 → S4 → S4<br />

— —<br />

Activation of<br />

transmission to<br />

the printer<br />

—<br />

—<br />

—<br />

S4 → S4 → S4 → S4<br />

→ S1<br />

NOTE:<br />

The retry count is optionally determined by the host.<br />

3-15


3. INTERFACE<br />

3.2.8 PRINTER STATE TRANSITION (FOR RECEIPT/TPCL-LE MODES)<br />

Printer state transition<br />

State<br />

Wait state for<br />

the link<br />

S1<br />

Wait state for a<br />

packet after the<br />

NAK<br />

transmission<br />

S2<br />

Event<br />

Ensuring link<br />

NAK<br />

transmission<br />

→ S2<br />

Reception of<br />

the middle<br />

block packet<br />

— Normal<br />

ACK<br />

transmission<br />

Reception of<br />

the final block<br />

packet<br />

End of issue<br />

Status<br />

Request<br />

Command<br />

reception<br />

EOT<br />

reception<br />

Time out<br />

CRC error<br />

Framing error<br />

Overrun error<br />

Syntax error<br />

Error during<br />

issuing<br />

— — — — — — — — —<br />

→ S3<br />

Error<br />

Status<br />

transmission<br />

Normal<br />

ACK<br />

transmission<br />

Command<br />

analysis<br />

→ S3<br />

Error<br />

Status<br />

transmission<br />

— Normal<br />

Status<br />

transmission<br />

→ S3<br />

— Error<br />

Status<br />

transmission<br />

End of link<br />

NAK<br />

transmission<br />

NAK<br />

transmission<br />

Wait state for a<br />

packet/EOT<br />

after the ACK<br />

transmission<br />

S3<br />

→ S4<br />

— ACK<br />

transmission<br />

→ S4<br />

ACK<br />

transmission<br />

Command<br />

analysis<br />

EOT has<br />

been<br />

received.<br />

ACK<br />

transmission<br />

→ S1<br />

EOT has not<br />

been received<br />

→ S4 → S1 → S1 → S2 → S2 → S1<br />

Status<br />

transmission<br />

Normal<br />

command<br />

ACK<br />

transmission<br />

if the issue is<br />

completed.<br />

→ S1<br />

If the issue is<br />

not completed<br />

→ S3<br />

Status<br />

request<br />

End of link NAK<br />

(NOTE 1) transmission<br />

NAK<br />

transmission<br />

Wait state for<br />

an EOT after<br />

the status<br />

transmission<br />

S4<br />

→ S3<br />

— Status<br />

transmission<br />

→ S4<br />

→ S3<br />

Status<br />

transmission<br />

→ S4<br />

→ S3 → S3<br />

— Status<br />

transmission<br />

→ S4<br />

→ S1 → S1 → S2 → S2 → S1<br />

Clear of error End of link<br />

— Timer reset<br />

→ S1 → S1<br />

→ S4 → S1<br />

NOTE:<br />

An ACK for the command process end is also sent, when the time out occurs during the wait<br />

state for an EOT.<br />

Host state transition<br />

Event<br />

State<br />

Wait state for a<br />

NAK of the link<br />

request<br />

S1<br />

Wait state for<br />

an ACK/status<br />

after the<br />

command<br />

transmission<br />

S2<br />

Wait state for<br />

an ACK after<br />

the EOT<br />

transmission<br />

S3<br />

Key entry mode<br />

NAK reception<br />

Command<br />

transmission<br />

ACK reception<br />

Status<br />

reception<br />

Time out<br />

(NOTE 1)<br />

CRC error<br />

Framing error<br />

Overrun error<br />

→ S2 → S1 → S1 → S1 → S1<br />

Packet<br />

retransmission<br />

→ S2<br />

—<br />

Middle block<br />

Packet<br />

transmission<br />

→ S2<br />

Final block<br />

EOT<br />

transmission<br />

→ S3<br />

or<br />

→ S4<br />

EOT<br />

transmission<br />

→ S4 → S4 → S4<br />

→ S3 → S4 → S4 → S4<br />

— —<br />

Activation of<br />

transmission to<br />

the printer<br />

—<br />

—<br />

—<br />

S4 → S4 → S4 → S4<br />

→ S1<br />

NOTE:<br />

The retry count is optionally determined by the host.<br />

3-16


3. INTERFACE<br />

3.3 IrDA (IrCOMM) INTERFACE<br />

The protocol for IrComm specifications is provided.<br />

Application layer<br />

IrComm<br />

Tiny TP<br />

IrLMP<br />

IrLAP<br />

IrDA-SIR<br />

IrDA V1.2 (Low Power) standard<br />

parts are required.<br />

Item<br />

Specifications<br />

Communication mode Physical layer conforming to IrDA-SIR V1.2 (Low<br />

Power) standard<br />

Transfer speed 9600, 19200, 38400, 115200 bps *1<br />

Communication distance within 0.1 m *2<br />

Peak wave length of 850 to 900 nm<br />

emitted light<br />

Communication angle within ±15°<br />

Ambient illuminance 1000 lx or less<br />

(fluorescent lamp and incandescent lamp)<br />

Emissive power Min 3.6 mW/Sr (θh, θv ≤ ±15°)<br />

Min. photo sensibility Min 9 µW/cm 2 (θh, θv ≤ ±15°)<br />

*1: Values are dependent on the communication protocol settings.<br />

*2: The communication distance may become shorter than 0.1 m, depending on the host’s<br />

performance.<br />

Device nickname:<br />

B-<strong>SP2D</strong><br />

Service name (Class name): IrDA: IrCOMM<br />

Min. turnaround time:<br />

1 msec<br />

Link termination threshold time: 12 sec<br />

3-17


3. INTERFACE<br />

3.4 RS-232C INTERFACE<br />

Item<br />

Specifications<br />

Normal mode<br />

Communication mode Start-stop synchronization mode<br />

Communication direction Transmission/reception (Full duplex)<br />

Transmission rate 9600, 19200, 38400, 115200 bps *1<br />

Start bit<br />

1 bit<br />

Stop bit<br />

1 bit<br />

Data length<br />

8 bits<br />

Parity<br />

None/Even (depending on the setting)<br />

Error detection *2<br />

Overrun error<br />

Framing error<br />

Parity error<br />

Received buffer<br />

64 KB<br />

*1: Values are dependent on the communication protocol settings.<br />

*2: Error detection is available only for the RECEIPT mode.<br />

3.4.1 TRANSMISSION CONTROL (XON/XOFF PROTOCOL)<br />

• The printer sends an XOFF code (13H) to the host, when the blank positions in the receive<br />

buffer become 800 bytes or less.<br />

• The printer sends an XON code (11H) to the host, when the blank positions in the receive buffer<br />

become 2K bytes or more.<br />

• When there are no blank positions in the receive buffer, the printer discards the received data<br />

which exceeds the receive buffer capacity without storing it in the buffer, and the buffer full error<br />

occurs. (After detecting the XOFF code, the host must stop transmission before the printer<br />

receive buffer becomes full.)<br />

3-18


3. INTERFACE<br />

3.4.2 NOTES WHEN SENDING A COMMAND<br />

• In the LABEL mode, when any of the commands below are sent, the host should send the next<br />

command after receiving the process end status. If the host sends the next command before<br />

receiving the process end status, the printer may discard it without receiving.<br />

• Print Density Fine Adjust Command (If it is not stored in the form)<br />

• Print Position Fine Adjust Command (If it is not stored in the form)<br />

• Form Store Terminate Command<br />

• Graphic Data Store Command<br />

• Printer ID Set Command<br />

• Flash Memory Storage Area Format Command<br />

• Writable Character Data Store Command<br />

• Status Request Command<br />

• Mode Select Command<br />

• Strip Sensor Adjust Command<br />

• Data Print Command<br />

* When automatic status transmission is not specified by the Data Print Command, the<br />

issue end status is not sent. Therefore, check the printer status by transmitting the<br />

Status Request Command. When the printer status is idling, the next command should<br />

be sent.<br />

• In the TPCL-LE mode, when the automatic status response is selected, the host sends a<br />

response when receiving an error, print end, and feed end status.<br />

• In the RECEIPT mode, the host sends a status when receiving an error status, though there is<br />

no automatic status response selection. To the print end and feed end statuses, the host does<br />

not return any status.<br />

3-19


3. INTERFACE<br />

• Contents of the status<br />

[LABEL/RECEIPT modes]<br />

Data to be sent (Fixed as 5 bytes)<br />

STX Printer ID Printer status Battery status<br />

02H xxH xxH xxH xxH<br />

• Printer ID ......... 2-byte hex data (in order from High to Low)<br />

• Printer status ... Printer status is indicated in 1-byte data.<br />

00H: Normal status (Idling)<br />

01H: Cover open status<br />

02H: Command syntax error<br />

03H: Paper jam<br />

04H: Label end<br />

05H: Cover open error<br />

06H: Broken thermal head dots error<br />

07H: Thermal head excessive temperature<br />

08H: Flash ROM write error<br />

09H: Flash ROM erase error<br />

0AH: Low battery (Print failure)<br />

0BH: Operating<br />

0CH: Communication error (Parity, overrun, framing errors)<br />

(only for RECEIPT mode)<br />

0DH: Normal end + Label end (See NOTE.)<br />

0EH: Flash ROM storage area full state<br />

10H: Normal end<br />

NOTE: In the LABEL mode, this is a state when the printer runs out of<br />

labels, after the effective print length is printed. In the RECEIPT<br />

mode, this status is returned to the host, when the printer runs out<br />

of labels, after a receipt is issued.<br />

• Battery status .. The battery charge status is indicated in 5 levels.<br />

01H: 7.2 V or less (Print failure)<br />

02H: 7.3 V to 7.4 V<br />

(Remaining No. of printable labels: Approx. 1 to 20)<br />

03H: 7.5 V to 7.7 V<br />

(Remaining No. of printable labels: Approx. 20 to 100)<br />

04H: 7.8 V to 7.9 V<br />

(Remaining No. of printable labels: Approx. 100 to 200)<br />

05H: 8.0 V or more<br />

(Remaining No. of printable labels: Approx. 200 or more)<br />

* The remaining number of printable labels may vary according to the<br />

contents to be printed and the ambient environment.<br />

3-20


3. INTERFACE<br />

[TPCL-LE mode]<br />

Data to be sent<br />

SOH STX Status Remaining No. of labels ETX EOT CR LF<br />

01H 02H 3xH 3xH 3xH 3xH 3xH 3xH 3xH 03H 04H 0DH 0AH<br />

• Status .............. Detailed status indicated in 2-byte data<br />

“00”: Normal state<br />

“01”: Cover open state<br />

“02”: Operating<br />

“06”: Command syntax error<br />

“09”: Normal issue end + Label end<br />

“11”: Paper jam<br />

“13”: Label end<br />

“15”: Cover open error<br />

“17”: Broken head dots error<br />

“18”: Thermal head excessive temperature<br />

“36”: Low battery<br />

“40”: Normal issue end<br />

“41”: Normal feed end<br />

“50”: Flash ROM write error<br />

“51”: Flash ROM erase error<br />

“54”: Flash ROM storage area full state<br />

• Status type ...... Indicated in 1-byte data<br />

“1”: Status Request Command<br />

“2”: Automatic status transmission<br />

• Remaining No. of labels .... Indicated in 4-byte data<br />

“0000” to “9999”<br />

3-21


3. INTERFACE<br />

(1) Connector pin diagram and signal description<br />

Pin No. Signal name Function Signal direction<br />

1<br />

2<br />

SG<br />

Ground line for all data and control signals.<br />

(without the noise filter)<br />

3 RXD Line for data which the host sends to the printer.<br />

Logic “1” is a “Low” level, while logic “0” is a “High”<br />

level.<br />

It is in a “Low (Mark)” state when no transmission is in<br />

progress.<br />

In power save mode, it should be in a “Low (Mark)”<br />

state. If it is in a “High” state, the printer cannot be<br />

returned to the normal state from the power save<br />

mode by opening/closing the cover, or pressing the<br />

[POWER] switch or the [FEED] switch.<br />

4 TXD Line for data which the printer sends to the host.<br />

Logic “1” is a “Low” level, while logic “0” is a “High”<br />

level. It is in a “Low (Mark)” state when no<br />

transmission is in progress. It is in a high impedance<br />

state in power save mode.<br />

–<br />

← Host<br />

Printer →<br />

5 CTS N/A –<br />

6 RTS N/A –<br />

7 TEST The signal is connected with SG. –<br />

8 N.C –<br />

(2) Wire connection diagram<br />

[Host]<br />

[Printer]<br />

GND 5 1 SG<br />

RXD 2 2 SG<br />

TXD 3 3 RXD<br />

CTS 8 4 TXD<br />

RTS 7 5 CTS<br />

DCD 1 6 RTS<br />

DTR 4 7 TEST<br />

DSR 6 8 +5V<br />

RI 9<br />

3-22


3. INTERFACE<br />

(3) <strong>Interface</strong> circuit<br />

• Input circuit<br />

RXD<br />

TTL/CMOS<br />

LOGIC LEVEL<br />

RS-232C LEVEL<br />

• Output circuit<br />

TXD<br />

TTL/CMOS<br />

LOGIC LEVEL<br />

RS-232C LEVEL<br />

Signal levels<br />

Input voltage<br />

Output voltage<br />

H .... +2.4 V to +25 V<br />

L..... -25 V to -0.6 V<br />

H .... Min. +5.0 V Typ +5.4 V<br />

L..... Min. -5.0 V Typ -5.4 V<br />

(4) Connector used for the communication cable<br />

• For the printer<br />

Manufacturer: HOSHIDEN<br />

Model name: TCP8580 or equivalent<br />

• For the host<br />

Manufacturer: DDK<br />

Model name: 17JE-13090-02-D8C or equivalent<br />

3-23


3. INTERFACE<br />

3.5 Bluetooth INTERFACE<br />

3.5.1 OUTLINED SPECIFICATIONS<br />

Item<br />

Specification<br />

Communication method Bluetooth V1.1 (with logo certification)<br />

Supported profile<br />

Serial port profile<br />

Communication class Class 2<br />

Communication distance 3 m/360°<br />

Service name<br />

ZV-AT<br />

Device nickname<br />

TOSHIBA TEC BT<br />

Flow control<br />

Credit based flow control<br />

Operation mode<br />

Slave mode<br />

PIN code<br />

Not used<br />

Receive buffer<br />

2 Kbytes<br />

Link break time out 20 sec.<br />

Inquiry control<br />

No response to an inquiry can be made 1 minute after the<br />

power is turned ON.<br />

SR mode at page/inquiry<br />

scanning<br />

R1 scan interval 1.28 sec.<br />

Scan window 22.5 msec. (*1)<br />

(*1) Applicable from the production of January 2004. For the production of December 2003 or<br />

before, it is 11.25 msec.<br />

3.5.2 Bluetooth DEVICE ADDRESS (BD address)<br />

As long as the Bluetooth interface has been installed on the printer, when the printer is turned<br />

ON, the printer prints the Bluetooth device address.<br />

[Character]<br />

The BD address is printed on the self-test result in the system mode.<br />

[Bar code]<br />

The bar code indicating BD address is printed by holding down the [POWER] switch for<br />

approximately 5 seconds, when the printer is turned ON.<br />

3-24


3. INTERFACE<br />

3.6 WIRELESS LAN INTERFACE<br />

3.6.1 OUTLINED SPECIFICATIONS<br />

Item<br />

Communication method<br />

Supported profile<br />

Transmission rate<br />

Communication distance<br />

Client protocol<br />

Security protocol<br />

Flow control<br />

Antenna<br />

Parameter setting<br />

Specification<br />

IEEE802.11b<br />

Socket communication/LPR<br />

11/5.5/2/1M bps<br />

100 m/360° (depending on operating environment)<br />

DHCP, WINS<br />

WEP (40 bits, 104 bits), MD5/EAP<br />

TCP/IP flow control<br />

Built-in<br />

Via HTTP or via UART<br />

3.6.2 MAC ADDRESS<br />

When the wireless LAN module has been installed on the printer, the printer prints the MAC<br />

address and wireless LAN module’s parameter settings.<br />

[MAC address]<br />

The MAC address is printed on the self-test result in the system mode.<br />

[Parameter settings]<br />

The parameter settings are printed by holding down the [POWER] switch for<br />

approximately 5 seconds, when the printer is turned ON.<br />

3-25


4. TRANSMISSION SEQUENCE<br />

4. TRANSMISSION SEQUENCE<br />

4.1 GENERAL DESCRIPTION<br />

This section describes details of the transmission sequence between the host and the printer.<br />

4-1


4. TRANSMISSION SEQUENCE<br />

4.2 TPCL-LE MODE<br />

4.2.1 INITIAL SETTING<br />

Writable characters, logo, and PC interface commands must be stored, before the label issue<br />

operation.<br />

(1) Storing writable characters and logos<br />

Power ON<br />

No<br />

<br />

(Add/change)<br />

Yes<br />

Format Command<br />

[ESC] J1:<br />

Formats flash memory.<br />

Bit Map Writable<br />

Character Command<br />

[ESC] XD: Stores writable characters or a<br />

logo on flash memory.<br />

No<br />

Completion of storing<br />

all characters<br />

Yes<br />

• Storing PC interface commands<br />

• Label issue operation<br />

NOTES: (1) The storage of writable characters or logos is only performed if it is required.<br />

(2) When the Format Command is not sent before storing a writable character or a<br />

logo with the same number as the already stored writable character or logo,<br />

memory will be used with each storing.<br />

4-2


4. TRANSMISSION SEQUENCE<br />

(2) Storing PC interface commands<br />

Power ON<br />

Mode Select Command [ESC] M: Changes the print mode.<br />

(Add/change)<br />

No<br />

<br />

Yes<br />

Format Command<br />

[ESC] J1: Formats flash memory.<br />

Save Start Command<br />

[ESC] XO: Declares the start of saving PC interface<br />

commands.<br />

Label Size Set Command<br />

[ESC] D:<br />

Sets the label size.<br />

Position Fine Adjust Command<br />

[ESC] AX: Adjusts the print position.<br />

Print Density Fine Adjust<br />

Command<br />

[ESC] AY: Adjusts the print density.<br />

Image Buffer Clear Command<br />

[ESC] C:<br />

Clears the image buffer.<br />

Line Format Command<br />

Bit Map Font Format Command<br />

Outline Font Format Command<br />

Bar code/2-D Code Format Command<br />

Bit Map Font Data Command<br />

Save Terminate Command<br />

[ESC] LC: Sets the line format and draws it.<br />

[ESC] PC: Sets the bit map font format.<br />

[ESC] PV: Sets the outline font format.<br />

[ESC] XB: Sets the bar code/2-D code format.<br />

[ESC] RC: Draws data of the bit map font.<br />

[ESC] XP: Declares the termination of saving PC<br />

interface commands.<br />

No<br />

Completion of<br />

all storing<br />

Yes<br />

z Storing writable characters or logos<br />

z Label issue operation<br />

NOTES:<br />

(1) The storage of PC commands is only performed if it is required.<br />

(2) When the Format Command is not sent before storing the PC interface command<br />

with the same number as the already stored PC command, memory will be used<br />

with each storing.<br />

(3) Select commands to be stored as the occasion arises.<br />

4-3


4. TRANSMISSION SEQUENCE<br />

4.2.2 LABEL ISSUE OPERATION<br />

An example of the label issue operation is described below.<br />

(1) Where the Saved Data Call Command is not used:<br />

Power ON<br />

Mode Select Command [ESC] M: Changes the print mode.<br />

Place paper<br />

Label Size Set Command<br />

[ESC] D:<br />

Sets the label size.<br />

Position Fine Adjust Command<br />

Print Density Fine<br />

Adjust Command<br />

[ESC] AX: Adjusts the feed length.<br />

[ESC] AY: Adjusts the print density.<br />

Feed Command<br />

[ESC] T:<br />

Feeds one sheet of paper and aligns it<br />

with the first print position.<br />

Image Buffer Clear Command<br />

[ESC] C:<br />

Clears the image buffer.<br />

Line Format Command<br />

Bit Map Font Format Command<br />

Outline Font Format Command<br />

Bar Code/2-D Code Format Command<br />

[ESC] LC: Sets the line format and draws it.<br />

[ESC] PC: Sets the bit map font format.<br />

[ESC] PV: Sets the outline font format.<br />

[ESC] XB: Sets the bar code/2-D code format.<br />

Bit Map Font Data Command<br />

Outline Font Data Command<br />

Bar Code/2-D Code Data Command<br />

Issue Command<br />

[ESC] RC: Draws bit map font data.<br />

[ESC] RV: Draws outline font data.<br />

[ESC] RB: Draws bar code/2-D code data.<br />

[ESC] XS: Issues (prints) the label.<br />

Yes<br />

Yes<br />

Yes<br />

<br />

No<br />

<br />

No<br />

<br />

No<br />

Power OFF<br />

NOTES:<br />

(1) The Label Size Set Command must be sent.<br />

(2) After the power is turned off then on, the Bit Map Font Format Command, the<br />

Outline Font Format Command, and the Bar Code/Two-dimensional Code Format<br />

Command should be sent as the occasion arises, because they are not protected<br />

in memory.<br />

4-4


4. TRANSMISSION SEQUENCE<br />

(2) Where the Saved Data Call Command is used:<br />

Power ON<br />

Place paper<br />

Saved Data Call Command<br />

[ESC] XQ: Calls the label format stored in flash<br />

memory.<br />

Feed Command [ESC] T: Feeds one sheet of paper and aligns it with<br />

the first print position.<br />

Bit Map Font Data Command<br />

Outline Font Data Command<br />

[ESC] RC: Draws bit map font data.<br />

[ESC] RV: Draws outline font data.<br />

Bar Code/2-D Code Data Command<br />

[ESC] RB: Draws bar code/2-D code data.<br />

Issue Command<br />

[ESC] XS: Issues (prints) the label.<br />

Yes<br />

Yes<br />

<br />

No<br />

<br />

No<br />

Power OFF<br />

4-5


4. TRANSMISSION SEQUENCE<br />

4.3 LABEL MODE<br />

4.3.1 INITIAL SETTING<br />

Start<br />

No<br />

Mode Select Command<br />

< Completion of mode selection ><br />

Yes<br />

Status Request Command<br />

Form Store Start Command<br />

[ESC] M:<br />

Changes the mode to the LABEL mode as<br />

required.<br />

Check to see if the mode has been changed by the<br />

status request.<br />

[ESC] FM: Checks the printer state by the status<br />

request.<br />

[ESC] XO: Declares the start of form storage.<br />

Label Size Set Command<br />

[ESC] D:<br />

Sets the label size.<br />

Print Density Fine Adjust Command<br />

Print Position Fine Adjust Command<br />

Outline Font Field Command<br />

Bit Map Font Field Command<br />

Bar Code/2-D Code Format Command<br />

Line Format Command<br />

[ESC] AY: Adjusts the print density as required.<br />

[ESC] AX: Adjusts the print position as required.<br />

[ESC] PV: Sets the outline font format.<br />

[ESC] PC: Sets the bit map font format.<br />

[ESC] XB: Sets the bar code/2-D code format.<br />

[ESC] LC: Sets the line format.<br />

Graphic Field Command<br />

[ESC] N:<br />

Sets the graphic field format.<br />

Form Store Terminate Command<br />

No<br />

< Completion of form storage ><br />

Yes<br />

No<br />

< Completion of all form storage ><br />

Yes<br />

Graphic Data Store Command<br />

No<br />

< Completion of storing graphic data ><br />

Yes<br />

Writable Character Data Store Command<br />

[ESC] XP: Declares the termination of form storage.<br />

Check to see if the form storage has been completed<br />

by the status request.<br />

[ESC] SG: Stores the graphic data.<br />

Check to see if storage of the graphic data has been<br />

completed by the status request.<br />

[ESC] XD: Stores the writable character data.<br />

No<br />

< Completion of storing writable characters ><br />

Yes<br />

Check to see if storage of the writable character data<br />

has been completed by the status request.<br />

End<br />

NOTES: (1) Previously assign the form to be stored to each form No., and store it. Store<br />

writable character data and graphic data as required.<br />

(2) When a command such as the above is sent, be sure to confirm that the process<br />

is completed, before the next command is sent.<br />

4-6


4. TRANSMISSION SEQUENCE<br />

4.3.2 LABEL ISSUE OPERATION<br />

Host<br />

Start<br />

Printer<br />

Start<br />

Data Print Command<br />

RS-232C<br />

Data is sent/received<br />

through the RS-232C.<br />

NG<br />

Batch<br />

< Data is checked. ><br />

OK<br />

< Batch/Strip issue ><br />

Strip<br />

Printing<br />

Printing<br />

No<br />

< Normal end ><br />

Yes<br />

The status of<br />

issue end is sent.<br />

The status of<br />

issue end is sent.<br />

To the next command<br />

No<br />

Is the [FEED]<br />

switch pressed?<br />

Yes<br />

< Completion > Yes<br />

No<br />

Press the<br />

[FEED] switch.<br />

Printing<br />

Printing<br />

NOTES: (1) In the batch issue mode, the printer issues the designated number of labels. If the<br />

labels are short because one failed to attach, issue labels again by pressing the<br />

[FEED] switch.<br />

(2) In the strip issue mode, the printer issues only one label in spite of the<br />

designation. Issue the required number of labels by pressing the [FEED] switch.<br />

4-7


4. TRANSMISSION SEQUENCE<br />

4.4 RECEIPT MODE<br />

4.4.1 INITIAL SETTING<br />

Start<br />

Mode Select Command<br />

[ESC] M: Changes the mode to the LABEL mode.<br />

No<br />

< Completion of mode selection ><br />

Yes<br />

Writable Character Data Store Command<br />

[ESC] XD: Stores the writable character data.<br />

No<br />

< Completion of storing ><br />

Yes<br />

Graphic Data Store Command<br />

[ESC] SG: Stores the graphic data.<br />

No<br />

< Completion of storing ><br />

Yes<br />

Print Density Fine Adjust Command<br />

[ESC] AY: Adjusts the print density.<br />

No<br />

< Completion of storing ><br />

Yes<br />

Mode Select Command<br />

[ESC] M: Changes the mode to the RECEIPT mode.<br />

No<br />

< Completion of mode selection ><br />

Yes<br />

End<br />

NOTES:<br />

(1) To store the writable character data and the print tone fine adjustment value, the<br />

mode should be changed to the LABEL mode. After storing is finished, the mode<br />

should be returned to the RECEIPT mode.<br />

(2) When a command such as the above is sent, be sure to confirm that the process<br />

is completed, before the next command is sent.<br />

4-8


4. TRANSMISSION SEQUENCE<br />

4.4.2 RECEIPT ISSUE OPERATION<br />

Host<br />

Start<br />

Printer<br />

Start<br />

Command & Data<br />

for a receipt issue<br />

RS-232C<br />

Data is received.<br />

Printing<br />

Status Request Command<br />

Data is received.<br />

No<br />

< Normal end ><br />

Yes<br />

A status is sent.<br />

Command & Data<br />

for a receipt issue<br />

Data is received.<br />

Printing<br />

Status Request Command<br />

Data is received.<br />

No<br />

< Normal end ><br />

Yes<br />

A status is sent.<br />

NOTES:<br />

(1) In the RECEIPT mode, the status of issue end is not<br />

automatically sent. Before the next receipt is issued,<br />

whether or not the sent data is issued normally should<br />

be confirmed by sending the Status Request Command.<br />

When a receipt is not issued due to an error, the data<br />

should be sent again.<br />

(2) In the RECEIPT mode, when the [FEED] switch is<br />

pressed, a 20-mm feed is performed.<br />

(3) In the RECEIPT mode, the issue count cannot be set. If<br />

the batch/strip issue mode is set, it does not become<br />

effective.<br />

No<br />

Is the [FEED]<br />

switch pressed?<br />

Yes<br />

20-mm feed<br />

4-9


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.1 GENERAL DESCRIPTION<br />

This chapter describes details regarding the interface commands for the TPCL-LE mode (including<br />

TPCL-LE1 mode) of the print mode. There are two issue types, “Batch issue” and “Strip issue”. In<br />

batch issues, a backfeed is performed before printing, regardless of the selected sensor type. In strip<br />

issues, a backfeed is not performed.<br />

NOTE:<br />

With the firmware V1.3 or greater, a back feed is not performed even in batch issue mode if there is no<br />

print data to be printed within 2.1 mm from the top of the print area.<br />

[Command List]<br />

Format<br />

Command<br />

Automatic ACK/Status Response<br />

(conditionally)<br />

[ESC]D Label Size Set Command No<br />

[ESC]ID Printer ID Set Command Yes<br />

[ESC]M<br />

Mode Select Command<br />

No, when the mode is changed to<br />

TPCL-LE.<br />

[ESC]AX Position Fine Adjust Command Yes<br />

[ESC]AY Print Density Fine Adjust Command Yes<br />

[ESC]AH Strip Sensor Threshold Value Set Command Yes<br />

[ESC]C Image Buffer Clear Command No<br />

[ESC]XR Clear Area Command No<br />

[ESC]LC Line Format Command No<br />

[ESC]PC Bit Map Font Format Command No<br />

[ESC]PV Outline Font Format Command No<br />

[ESC]XB Bar Code Format Command No<br />

[ESC]RC Bit Map Font Data Command No<br />

[ESC]RV Outline Font Data Command No<br />

[ESC]RB Bar Code/Two-Dimensional Code Data Command No<br />

[ESC]XS Issue Command Yes<br />

[ESC]T Feed Command Yes<br />

[ESC]J1 Flash Memory Format Command Yes<br />

[ESC]XD Bit Map Writable Character Command Yes<br />

[ESC]SG Graphic Command No<br />

[ESC]XO Save Start Command No<br />

[ESC]XP Save Terminate Command Depends on the setting of [ESC]X0.<br />

[ESC]XQ Saved Data Call Command No<br />

[ESC]HD Head Broken Dots Check Command Yes<br />

[ESC]WR<br />

Reset Command<br />

Yes, only when the interface is IrDA<br />

ESC]WS<br />

[ESC]FM<br />

(TEC Protocol) or RS-232C.<br />

Status Request Command ---<br />

[ESC]v<br />

[ESC]WX Mode Information Acquire Command ---<br />

[ESC]WV Version Information Acquire Command ---<br />

[ESC]IT Device Address Acquire Command ---<br />

5-1


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.2 OUTLINE OF COMMANDS<br />

5.2.1 FORMAT OF INTERFACE COMMAND<br />

ESC Command & Data LF NUL<br />

z The length from [ESC] to [LF] [NUL] must be as specified by each command.<br />

z There are the following three kinds of control codes:<br />

c ESC (1BH), LF (0AH), NUL (00H)<br />

d { (7BH), | (7CH), } (7DH)<br />

5.2.2 HOW TO USE REFERENCE<br />

Function<br />

Format<br />

Describes the outline of the function of the command.<br />

Shows the format of the command.<br />

The format designation method should conform to the following rules:<br />

z Each set of small letters (such as aa, bbbb) indicates a parameter item.<br />

z An item enclosed in parentheses may be omitted.<br />

z “---” indicates the repetition of an item.<br />

z Brackets and parentheses are used only in coding, and must not be transmitted<br />

in practice.<br />

z Other symbols must always be inserted at designated positions before being<br />

transmitted.<br />

Term<br />

Explains the term(s) used in the format.<br />

* “0 to 999” described in the entry range indicates that up to 3-digit variable-length<br />

entry is allowed. (Entry of “001” or “009” is also possible.) “000 to 999” indicates<br />

that the entry must be fixed as 3 digits.<br />

Explanation<br />

Note<br />

Refer to<br />

Examples<br />

Explains the command in detail.<br />

Supplementary explanation of the command.<br />

Related commands<br />

Explains the command examples.<br />

[ESC] T20C30 [LF] [NUL]<br />

The above corresponds to the transfer of the following:<br />

1B 54 32 30 43 33 30 0A 00<br />

[ESC] T 2 0 C 3 0 [LF] [NUL]<br />

5.2.3 PRECAUTIONS<br />

The commands and parameters described in this specification must always be used. If any<br />

command or parameter other than those covered in this specification are used, the printer’s<br />

operation will not be guaranteed.<br />

5-2


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.3 COMMANDS RELATED TO SETTING<br />

5.3.1 LABEL SIZE SET COMMAND [ESC] D<br />

Function<br />

Format<br />

Sets the size of a label or tag.<br />

[ESC] Daaaa, bbbb, cccc (, dddd) [LF] [NUL]<br />

Term aaaa: Pitch length of the label or tag<br />

4 and 5 digits (in 0.1 mm units)<br />

4 digits: 0100 (10.0 mm) to 5070 (507.0 mm)<br />

5 digits: 00100 (10.0 mm) to 05070 (507.0 mm)<br />

bbbb:<br />

cccc:<br />

dddd:<br />

Effective print width<br />

Fixed as 4 digits (in 0.1 mm units)<br />

0480 (48.0 mm)<br />

Effective print length<br />

4 and 5 digits (in 0.1 mm units)<br />

4 digits: 0070 (7.0 mm) to 5000 (500.0 mm)<br />

5 digits: 00070 (7.0 mm) to 05000 (500.0 mm)<br />

Reserved area (Omissible)<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Explanation<br />

(1) Pitch length of labels or tags<br />

If any value out of the above range is specified, it should be corrected. When a<br />

smaller value than 10.0 mm is specified, it should be changed to 10.0 mm. When a<br />

larger value than 507.0 mm is specified, it should be changed to 507.0 mm.<br />

(2) Effective print width<br />

It should be fixed as 48.0 mm. If any value other than 48.0 mm is specified, it is<br />

changed to 48.0 mm.<br />

(3) Effective print length<br />

If any value out of the above range is specified, it should be corrected. When a<br />

smaller value than 7.0 mm is specified, it should be changed to 7.0 mm. When a<br />

larger value than 500.0 mm is specified, it should be changed to 500.0 mm.<br />

(4) Reserved area (Omissible)<br />

The reserved parameter is not checked.<br />

5-3


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

0 X<br />

Paper feed direction<br />

0 X<br />

Paper feed direction<br />

Y<br />

Y<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Effective print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Effective print width<br />

4.5 mm 3.0 mm<br />

4.5 mm 3.0 mm<br />

Effective<br />

print length<br />

Label<br />

pitch<br />

Effective<br />

print length<br />

Label<br />

pitch<br />

Backing paper<br />

Label<br />

Black mark<br />

(Printed on the<br />

back of receipt)<br />

[Label]<br />

[Receipt with black marks]<br />

Notes (1) When the label size or type of sensor is changed, the Label Size Set Command<br />

must first be transmitted.<br />

(2) The label pitch length is protected in memory (even if the power is turned off).<br />

(3) After sending the Label Size Set Command, one sheet of paper must be fed by the<br />

[FEED] switch or the Feed Command ([ESC] T), to align the paper with the first<br />

print position prior to printing.<br />

(4) The origin of drawing coordinates and the print stop position (head position at stop)<br />

are determined according to the parameters of the Label Size Set Command.<br />

(5) The origin of drawing coordinates and the print stop position (head position at stop)<br />

are adjustable by the Fine Adjust Commands.<br />

(6) Even if a gap or a black mark is detected within less than 90% of the effective print<br />

length specified by the Label Size Set Command, it is ignored.<br />

(7) When a gap or a black mark cannot be detected within less than 150% of the label<br />

pitch length, it is assumed to be a paper jam error.<br />

Example<br />

[ESC] D0430, 0480, 0380 [LF] [NUL]<br />

48.0 mm<br />

48.0 mm<br />

3.0 mm<br />

3.0 mm<br />

38.0 mm<br />

38.0 mm<br />

43.0 mm 43.0 mm<br />

2.0 mm<br />

2.0 mm<br />

5-4


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Available media size<br />

[mm]<br />

Item Paper Label Receipt<br />

Issue Batch Strip with black marks without black marks<br />

Label pitch Min. 10.0 13.0 10.0 –<br />

Max. 167.0 67.0 507.0 –<br />

Label length Min. 7.0 10.0 7.0 –<br />

Max. 160.0 60.0 500.0 –<br />

Backing paper width Min. 28.0, 31.0, 34.0, 37.0, 40.0, 43.0, –<br />

Max. 46.0, 49.0, 52.0, 55.0, 58.0 ± 0.5<br />

Label width Min. 25.0 –<br />

Max. 55.0<br />

Paper width Min. – 28.0, 31.0, 34.0, 37.0, 40.0, 43.0,<br />

Max. – 46.0, 49.0, 52.0, 55.0, 58.0 ± 0.5<br />

Gap length Min. 3.0 –<br />

Max. 7.0 –<br />

Black mark length Min. – 3.0 –<br />

Max. – 7.0 –<br />

Margins of backing Min. 1.5 –<br />

paper Max. 7.0 –<br />

Effective print width Min. 48.0<br />

Max. –<br />

Effective print length Min. 7.0 –<br />

Max. 160.0 60.0 500.0 –<br />

Slow up interval 2.25<br />

Non-printable area Min. 1.0 (*1) (when the gap or black mark length is 5.0 mm) –<br />

Max. 3.0 (when the gap or black mark length is 3.0 mm) –<br />

(*1) Print position fine adjustment is necessary.<br />

5-5


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.3.2 PRINTER ID SET COMMAND [ESC] ID<br />

Function<br />

Format<br />

Sets the ID for the printer.<br />

[ESC] ID ; aa(,b) [LF] [NUL]<br />

Term aa: Printer ID (2-byte hex data)<br />

0000H to FFFFH<br />

b: Reserved area (Omissible) (* Firmware V1.3 or greater)<br />

Fixed to 0.<br />

Explanation<br />

Notes<br />

(1) The printer ID is necessary information to identify each printer in RF<br />

communications<br />

(1) The set printer ID is backed up in memory (even if the power is turned off).<br />

(2) The last 5 digits of the printer’s serial number have been set as the printer ID, at the<br />

time of shipment from the factory.<br />

(3) In IrDA: TEC Protocol, the printer checks the set ID against the ID in the received<br />

command packet. If they do not match, the printer discards the command packet.<br />

However, when the ID in the command packet is “0”, the printer accepts the<br />

command packet without checking the set IDs.<br />

Example<br />

To set “03H 51H” as the ID of the printer:<br />

[ESC] ID ; [03H] [51H] [LF] [NUL]<br />

In this case, the printer ID in status printing is “00849”.<br />

5-6


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.3.3 MODE SELECT COMMAND [ESC] M<br />

Function<br />

Format<br />

Changes the print mode.<br />

[ESC] M; a(,b) [LF] [NUL]<br />

Term a: Print mode designation<br />

7 6 5 4 3 2 1 0<br />

Print mode (Bit 0 to Bit 6 * See Table 1.)<br />

* Table 1 Print mode<br />

Automatic status response in IrDA: IrCOMM<br />

0: Not performed<br />

1: Performed<br />

HEX Mode How to deal with the received data after an error is cleared<br />

30H LABEL Discards<br />

31H RECEIPT Discards<br />

32H RECEIPT1 Continues printing<br />

33H RECEIPT Discards<br />

41H TPCL-LE Continues printing<br />

42H TPCL-LE1 Continues printing (* Firmware V1.5 or greater)<br />

b: Print position detection feed (Omissible. If omitted, the print position detection feed<br />

is not performed.) (* Firmware V1.1 or greater)<br />

0: When the mode change from RECEIPT or RECEIPT1 to LABEL is requested,<br />

a print position detection feed is not performed after the mode is changed.<br />

1: When the mode change from RECEIPT or RECEIPT1 to LABEL is requested,<br />

a print position detection feed is performed after the mode is changed.<br />

Explanation<br />

(1) There are 3 types of the print mode: “LABEL”, “RECEIPT”, and “TPCL-LE”.<br />

(2) Both 31H and 33H are used for the “RECEIPT” mode. 33H is provided to maintain<br />

the compatibility with RECEIPT2 used for the conventional models. On the B-<br />

<strong>SP2D</strong>, the RECEIPT mode operation of 33H is the same as the 31H. Therefore,<br />

both 31H and 33H are defined as “RECEIPT”.<br />

(3) “Automatic status response in IrDA: IrCOMM” is the function for the specifications<br />

which do not allow the printer to spontaneously send the status thorough IrDA;<br />

IrCOMM. This function enables the printer to forcefully send the status to the host,<br />

if the link between the printer and the host is established. However, if the link<br />

between the printer and the host is not established upon the status transmission,<br />

the printer cannot send the status. Therefore, the status is discarded. (In the next<br />

connection to the host, the printer does not send the status to the host.)<br />

(4) “Print position detection feed” is a function that automatically feeds the label to the<br />

print start position after the print mode is changed from RECEIPT or RECEIPT1 to<br />

LABEL. The sensor is not used when issuing in RECEIPT or RECEIPT 1 mode,<br />

therefore, after mode is changed to LABEL, the print start position cannot be<br />

detected. This is useful when using sensor detectable paper in both RECEIPT and<br />

LABEL modes.<br />

(5) In the TPCL-LE1 mode, it is possible to re-print the last print data by pressing the<br />

FEED button.<br />

5-7


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) The print mode designation (the specified print mode and the automatic status<br />

response in IrDA: IrCOMM) is backed up in memory (even if the power is turned<br />

off).<br />

(2) The factory default is “30H: LABEL mode” and “Automatic status response in IrDA:<br />

IrCOMM is not performed”. (The IrDA protocol is “TEC Protocol”.)<br />

(3) When the print mode is changed, the type of sensor is automatically changed.<br />

LABEL mode (0):<br />

TPCL-LE mode (A):<br />

TPCL-LE1 mode (B):<br />

RECEIPT mode (1 or 3):<br />

RECEIPT1 mode (2):<br />

The previously backed up sensor is designated.<br />

The previously backed up sensor is designated.<br />

The previously backed up sensor is designated.<br />

No sensor is designated.<br />

No sensor is designated.<br />

(4) If the RECEIPT mode is selected or no sensor is designated in the LABEL or<br />

TPCL-LE mode, an initial feed is not performed when the cover is closed.<br />

(5) When the mode change is finished, the printer sends the normal end status or an<br />

ACK to the host. However, when the mode is changed to the TPCL-LE mode, the<br />

printer does not send the status. In IrDA: IrCOMM, only when bit 7 of the print<br />

mode designation is set to “1”, the printer sends the status.<br />

(6) The print mode can be changed by the printer itself. However, since the setting for<br />

the automatic status response in IrDA: IrCOMM cannot be changed, the setting<br />

remains as the same.<br />

(7) As the print position detection feed parameter is effective only when changing the<br />

print mode to LABEL, this parameter status will be ignored when changing the<br />

mode to TPCL-LE.<br />

(8) The print position detection feed is performed according to the conditions, such as,<br />

label pitch, fine adjustment, and sensor selection, which were set in the LABEL or<br />

TPCL-LE mode before the printer is operated in RECEIPT or RECEIPT1 mode. If<br />

no sensor is selected, the print position detection feed will not be performed.<br />

(9) After performing a print position detection feed, the printer does not send a process<br />

end status. If an error occurs during the print position detection feed, the printer<br />

does not feed after the error is cleared. However, when the error is cleared by<br />

opening/closing the cover, the print position detection feed is performed.<br />

(10) When changing the print mode by the printer itself, the print position detection feed<br />

parameter cannot be set.<br />

(11) When the mode select command is designated with the print position detection<br />

feed at the end of a print data issued in RECEIPT1 mode, and if an error occurs<br />

while printing, the printing will restart after the error is cleared and then, the print<br />

mode will be changed to the LABEL mode and a print position detection feed is<br />

performed.<br />

(12) When the LABEL mode is selected in the mode select command and the print<br />

position detection feed parameter is set 0 (not performed), and if an error occurs<br />

while the printer issues in RECEIPT1 mode, the print mode is changed to the<br />

LABEL mode after the error is cleared. (The mode select command is executed.)<br />

5-8


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Normal mode<br />

(LED lights up in green or orange)<br />

Open the cover<br />

Press the [FEED] switch for 3 seconds<br />

Press the [FEED] switch<br />

Mode selection mode<br />

(LED lights up in red)<br />

Press the [POWER] switch<br />

Start from where the setting is currently made<br />

Press the [FEED] switch<br />

TPCL-LE mode<br />

(LED blinks in red once)<br />

Close the cover<br />

Mode selection mode<br />

is canceled.<br />

Press the [POWER] switch<br />

LABEL mode<br />

(LED blinks in red twice)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

RECEIPT mode<br />

(LED blinks in red 3 times)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

RECEIPT1 mode<br />

(LED blinks in red 4 times)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

TPCL-LE1 mode<br />

(LED blinks in red 5 times)<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Save (update) the setting<br />

5-9


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.4 COMMANDS RELATED TO FINE ADJUSTMENT<br />

5.4.1 POSITION FINE ADJUST COMMAND [ESC] AX<br />

Function<br />

Format<br />

Adjusts the feed value so that the label will be shifted forward or backward from the<br />

standard print start position.<br />

[ESC] AX; abbb, cddd, eff [LF] [NUL]<br />

Term a: Indicates the direction, forward or backward, in which a fine adjustment is to<br />

be made.<br />

+: Backward<br />

-: Forward<br />

bbb:<br />

Feed value to be finely adjusted.<br />

000 to 150 (in 0.1 mm units)<br />

c: Reserved area<br />

ddd:<br />

Reserved area<br />

e: Reserved area<br />

ff:<br />

Reserved area<br />

Explanation<br />

(1) When parameter “a” is set to any value other than “+” or “-“, a command error<br />

occurs.<br />

(2) If any value out of the above range is specified for the feed value, it should be<br />

corrected. If a larger value than 15.0 mm is specified, it should be changed to 15.0<br />

mm.<br />

(3) The reserved parameters are not checked.<br />

(4) When the print position is changed or the gap between the labels is not 3 mm, the<br />

Print Position Fine Adjust Command should be used as required. (When the gap<br />

between the labels is 3 mm, the standard print start position is 3 mm from the<br />

leading edge of the label.)<br />

5-10


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

[Print position fine adjustment] (To finely adjust the feed for shifting backward or forward)<br />

One label<br />

± 0.0 mm<br />

Print start position<br />

(Standard: 3 mm from the leading edge of the label)<br />

+15.0 mm<br />

Print start position<br />

-15.0 mm<br />

Print start position<br />

Paper feed direction<br />

Notes<br />

(1) The set print position fine adjustment value is protected in memory (even if the<br />

power is turned off).<br />

(2) The factory default value is 0.0 mm.<br />

(3) The fine adjustment values changed by the Position Fine Adjust Command in the<br />

LABEL mode, are also effective for the TPCL-LE mode.<br />

5-11


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.4.2 PRINT DENSITY FINE ADJUST COMMAND [ESC] AY<br />

Function<br />

Format<br />

Adjusts the automatically set print density.<br />

[ESC] AY ; abb, c (, d) [LF] [NUL]<br />

Term a: Indicates whether to increase or decrease the density<br />

+: Increase (Darker)<br />

-: Decrease (Lighter)<br />

bb:<br />

Print density fine adjustment value<br />

00 to 10 (in units of 1 step)<br />

c: Print mode<br />

0: Reserved<br />

1: Direct thermal<br />

d: Head output division designation (Omissible)<br />

0: Auto (Divided by 2 or 3)<br />

1: Divided by 2 (Default)<br />

2: Divided by 3<br />

3: Auto1 (Not divided/Divided by 2 or 3)<br />

Explanation (1) If the print mode is set to any value other than “1”, it should be changed to “1"<br />

(2) The default value for the head output division designation is “1”.<br />

(3) The standard density is finely adjusted to increase or decrease.<br />

(4) When any print density fine adjustment value out of the above range is set, a<br />

command error will occur.<br />

(5) The print density may become lower if the print ratio per line is high. When<br />

“Divided by 3” is designated in the head output division designation, the print<br />

density may be improved. However, the issue speed when “Divided by 3” is set,<br />

may be slower than when “Divided by 2” is set.<br />

(6) When “0: Auto” is designated, “Divided by 3” or “Divided by 2” is automatically<br />

selected for every line according to the print ratio. The width of half a dot may not<br />

be printed on the line when switching between “Divided by 2” and “Divided by 3”.<br />

Therefore, do not designate “0: Auto” when a serial bar code is printed.<br />

(7) When “3: Auto1” is designated, “Not divided”, “Divided by 3”, or “Divided by 2” is<br />

automatically selected for every line according to the print ratio. The width of half a<br />

dot may not be printed on the line when switching between “Not divided”, “Divided<br />

by 2” and “Divided by 3”. Therefore, do not designate “3: Auto1” when a serial bar<br />

code is printed.<br />

(8) When “3: Auto1” is designated, it will be automatically changed to “Divided by 3” if<br />

the battery level becomes 2, in order to stable the print quality. As a result, the print<br />

speed will be reduced.<br />

5-12


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) The set print density fine adjustment value and the head output division<br />

designation, are protected in memory (even if the power is turned off).<br />

(2) The fine adjustment values changed by the Print Density Fine Adjust Command in<br />

the LABEL mode, are also effective for the TPCL-LE mode.<br />

(3) When the head output division designation is omitted, the backed up value in<br />

memory is used.<br />

Examples To set the density to -2.<br />

[ESC] AY; -02, 1 [LF] [NUL]<br />

To set the density to +3.<br />

[ESC] AY; +03, 1 [LF] [NUL]<br />

5-13


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.4.3 STRIP SENSOR THRESHOLD VALUE SET COMMAND [ESC] AH<br />

Function<br />

Format<br />

Sets the sensor threshold value to switch the mode between strip and batch.<br />

[ESC] AH; a [LF] [NUL]<br />

Term a: Setting<br />

0: Default value (3.2 V)<br />

1: Threshold value<br />

2: Fixed as the batch mode<br />

3: Fixed as the strip mode<br />

4: Reserved<br />

Explanation (1) If the issue mode is not properly switched when using thin backing paper, “1:<br />

Threshold value” should be set, as required.<br />

(2) When “1: Threshold value” is set, this command is sent after the backing paper of<br />

the label to be used, is positioned on the strip issue path and the cover is closed.<br />

The printer reads the sensor adjustment value for the backing paper, and then sets<br />

the threshold value to switch the mode between strip and batch. (When this<br />

command is sent, the backing paper must be loaded on the strip issue path. If the<br />

backing paper is loaded on the batch issue path, or the label is loaded, and the<br />

command is sent, the mode will not be switched properly.)<br />

Notes<br />

(1) The set threshold value is backed up and kept until a new value is set using this<br />

command. When the power is turned on, the backed up value is retrieved and set<br />

(2) “0: Default value” has been set as the default at the time of shipment from the<br />

factory.<br />

(3) This command is used for sensor adjustment. Therefore, it must not be included in<br />

issue operations.<br />

(4) When either “2: Fixed as the batch mode” or “3: Fixed as the strip mode” for<br />

parameter “a”, is selected, the printer operates in the specified mode, without<br />

automatically switching between the batch and strip modes.<br />

Particularly when the printer is used without the strip roller module, the strip sensor<br />

value becomes unstable. Additionally, the stop position for the label becomes<br />

misaligned, and the issue count is corrected to “1”. Therefore, “2: Fixed as the<br />

batch mode” or “3: Fixed as the strip mode” for parameter “a” must be specified in<br />

this command.<br />

5-14


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.5 COMMANDS RELATED TO CLEAR<br />

5.5.1 IMAGE BUFFER CLEAR COMMAND [ESC] C<br />

Function<br />

Format<br />

Clears the image buffer for drawing characters, lines, bar codes, and graphics.<br />

[ESC] C [LF] [NUL]<br />

Explanation (1) After changing the label size, the image buffer must be cleared.<br />

(2) The increment/decrement designation is valid until the Image Buffer Clear<br />

Command is transmitted.<br />

Examples<br />

[ESC]D0508,0480,0468[LF][NUL]<br />

[ESC]T20C51[LF][NUL]<br />

[ESC]C[LF][NUL]<br />

[ESC]PC000;0080,0065,1,1,A,+00,00,B,J0000,M0,+0000000000,Z00,P1[LF][NUL]<br />

[ESC]PC001;0250,0150,1,1,G,+00,00,B,J0000,M0,+0000000000,Z00,P1[LF][NUL]<br />

[ESC]RC000;ABC[LF][NUL]<br />

[ESC]RC001;DEF[LF][NUL]<br />

[ESC]XS;I,0001,0002C3000[LF][NUL]<br />

5-15


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.5.2 CLEAR AREA COMMAND [ESC] XR<br />

Function<br />

Format<br />

Clears the designated area or reverses the white/black dot pattern in the designated<br />

area in the drawing area.<br />

[ESC] XR; aaaa, bbbb, cccc, dddd, e [LF] [NUL]<br />

Term aaaa: Designated area start point X-coordinate<br />

Fixed as 4 digits (in 0.1 mm units)<br />

bbbb:<br />

cccc:<br />

dddd:<br />

Designated area start point Y-coordinate<br />

4 or 5 digits (in 0.1 mm units)<br />

Designated area end point X-coordinate<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Designated area end point Y-coordinate<br />

4 or 5 digits (in 0.1 mm units)<br />

e: How to clear<br />

A: Clears the contents in the designated area to zeros.<br />

B: Reverses the white/black dot pattern in the designated area.<br />

Explanation<br />

Backing paper<br />

Label<br />

End point<br />

Effective<br />

print length<br />

Start point<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Y<br />

Paper feed direction<br />

Notes (1) The result is the same even if the start and end point coordinates are reversed.<br />

(2) The result is the same even if the start and end point coordinates are set to an<br />

upper right and a lower left points, respectively.<br />

(3) The start and end point coordinates of the designated area must be set within the<br />

effective print area set by the Label Size Set Command ([ESC] D).<br />

(4) If the print ratio of one line (the print head width) is higher than defined, printing<br />

may become poor, or the printer may reset. When “B: Reverses the white/black<br />

dot pattern in the designated area” is selected for how to clear and the black dot<br />

pattern is increased, note the print ratio.<br />

5-16


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

Origin (0, 0)<br />

Start point of<br />

designated area<br />

Effective print area<br />

10.0 mm<br />

58.5 mm<br />

Designated area<br />

End point of designated area<br />

24.5 mm<br />

Paper feed direction<br />

36.2 mm<br />

[ESC]XR;0245,0100,0362,0585,A[LF][NUL]<br />

[ESC]XS;I,0001,0002C3000[LF][NUL]<br />

5-17


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6 COMMANDS RELATED TO DRAWING FORMAT<br />

5.6.1 LINE FORMAT COMMAND [ESC] LC<br />

Function<br />

Format<br />

Sets the line format and draws the line.<br />

[ESC] LC; aaaa, bbbb, cccc, dddd, e, f (, ggg) [LF] [NUL]<br />

Term aaaa: Start point X-coordinate<br />

Fixed as 4 digits (in 0.1 mm units)<br />

bbbb:<br />

cccc:<br />

dddd:<br />

Start point Y-coordinate<br />

4 or 5 digits (in 0.1 mm units)<br />

End point X-coordinate<br />

Fixed as 4 digits (in 0.1 mm units)<br />

End point Y-coordinate<br />

4 or 5 digits (in 0.1 mm units)<br />

e: Type of line<br />

0: Line (horizontal, vertical)<br />

1: Rectangle<br />

2: Reserved (If specified, it is processed as “0”.)<br />

3: Reserved (If specified, it is processed as “1”.)<br />

4: Reserved (If specified, it is processed as “1”.)<br />

5: Reserved (If specified, it is processed as “0”.)<br />

6: Reserved (If specified, it is processed as “1”.)<br />

f: No. of line width dots<br />

1 to 9 (in 0.1 mm units)<br />

ggg:<br />

Reserved area (Omissible)<br />

Fixed as 3 digits (in 0.1 mm units)<br />

Explanation (1) When the set values for the start point X- and Y- coordinates and the end point X-<br />

and Y- coordinates are not within the image (frame) buffer, the line is not drawn.<br />

(2) When the type of line is set to any value other than the range from 0 to 6, a<br />

command error occurs.<br />

(3) When the number of line width dots is set to “0”, a command error occurs.<br />

(4) The reserved parameter is not performed.<br />

(5) If the print ratio of one line (the print head width) is higher than defined, printing<br />

may become poor, or the printer may be reset. When a horizontal line is printed,<br />

note the print ratio.<br />

5-18


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Backing paper<br />

Label<br />

Effective<br />

print length<br />

End<br />

point<br />

Start<br />

point<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

[Line]<br />

(1) Horizontal line (In the case of |Y 2 - Y 1 | = 0)<br />

(X 1,Y 1) (X 2,Y 2)<br />

Line width<br />

(2) Vertical line (In the case of |X 2 - X 1 | = 0)<br />

(X 1,Y 1)<br />

(X 2,Y 2)<br />

Line width<br />

5-19


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

[Rectangle]<br />

(X 1,Y 1)<br />

(X 2,Y 2)<br />

Line width<br />

(X 2,Y 2) (X 1,Y 1)<br />

Line width<br />

Line width<br />

Line width<br />

Notes<br />

(1) In line designation, a horizontal line or a vertical line is drawn, according to the<br />

start and end point coordinates. When the coordinates which make a slanted line<br />

are specified, a rectangle is drawn.<br />

(2) The result is the same even if the start and end point coordinates are reversed.<br />

(3) The start and end point coordinates must be set so that the result of line drawing<br />

will be within the effective print area set by the Label Size Set Command<br />

([ESC] D).<br />

Examples<br />

Origin (0, 0)<br />

Effective print area<br />

5.0 mm<br />

28.0 mm<br />

0.4 mm<br />

20.0 mm<br />

0.4 mm<br />

Paper feed direction<br />

30.5 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]LC;0200,0050,0305,0050,0,4[LF][NUL]<br />

[ESC]LC;0200,0050,0200,0280,0,4[LF][NUL]<br />

[ESC]XS;I,0001,0002C3000[LF][NUL]<br />

5-20


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.2 BIT MAP FONT FORMAT COMMAND [ESC] PC<br />

Function<br />

Format<br />

Sets the format indicating the position on the label at which the bit map font is to be<br />

printed and how it is to be printed.<br />

[ESC] PCaaa; bbbb, cccc, d, e, ff (, ghh), ii, j (, Jkkll) (, Mm) (, noooooooooo)<br />

(, Zpp) (, Pq) (= rrr ------ rrr) [LF] [NUL]<br />

Term aaa: Character string number<br />

000 to 199 (Two digits, 00 to 99, also acceptable.)<br />

bbbb: Print origin of X-coordinate of character string<br />

Fixed as 4 digits (in 0.1 mm units)<br />

cccc:<br />

Print origin of Y-coordinate of character string<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Character horizontal magnification<br />

0.5 to 4.0 (in 0.5 magnification units)<br />

* Two digit designation enables magnifications in 0.5 units.<br />

(05 ~ 40: 0.5 to 4.0 magnifications)<br />

d d<br />

Designation in 0.5 magnification units : 0 or 5<br />

Designation in magnifications : 0 to 4<br />

e: Character vertical magnification<br />

0.5 to 4.0 (in 0.5 magnification units)<br />

* Two digit designation enables magnifications in 0.5 units.<br />

(05 ~ 40: 0.5 to 4.0 magnifications)<br />

e e<br />

Designation in 0.5 magnification units : 0 or 5<br />

Designation in magnifications : 0 to 4<br />

ff:<br />

Type of font<br />

A: Times Roman (Medium) 12 point<br />

B: Times Roman (Medium) 15 point<br />

C: Times Roman (Bold) 15 point<br />

D: Times Roman (Bold) 18 point<br />

E: Times Roman (Bold) 21 point<br />

F: Times Roman (Italic) 18 point<br />

G: Helvetica (Medium) 9 point<br />

H: Helvetica (Medium) 15 point<br />

I: Helvetica (Medium) 18 point<br />

J: Helvetica (Bold) 18 point<br />

K: Helvetica (Bold) 21 point<br />

L: Helvetica (Italic) 18 point<br />

M: Presentation (Bold) 27 point<br />

N: Letter Gothic (Medium) 14.3 point<br />

O: Prestige Elite (Medium) 10.5 point<br />

P: Prestige Elite (Bold) 15 point<br />

Q: Courier (Medium) 15 point<br />

R: Courier (Bold) 18 point<br />

S: OCR-A 12 point<br />

T: OCR-B 12 point<br />

5-21


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

U: Writable character 41 (16 × 16 dots)<br />

W: Writable character 42 (24 × 24 dots)<br />

a: Standard character (12 × 24 dots)<br />

b: Bold character (48 × 96 dots)<br />

d: Price Font 1 (16 × 40 dots)<br />

e: Price Font 2` (32 × 48 dots)<br />

o: Gothic725 Black 6 point<br />

q: Gothic725 Black 6 point<br />

01 (a): Writable character 1 (1×1 dot to 384×720 dots)<br />

a: Reserved area (Omissible)<br />

0 to 2<br />

* The following fonts are proportional.<br />

A, B, C, D, E, F, G, H, I, J, K, L, o, q<br />

ghh:<br />

ii:<br />

Fine adjustment of character-to-character space<br />

(Omissible. If omitted, space is adjusted according to the designated font.)<br />

g: Designates whether to increase or decrease the character-to-character<br />

space.<br />

+: Increase<br />

-: Decrease<br />

hh: No. of space dots between characters<br />

00 to 99 (in dots)<br />

Rotational angles of a character and character string<br />

00: 0° (char.) 0° (char.-string)<br />

11: 90° (char.) 90° (char.-string)<br />

22: 180° (char.) 180° (char.-string)<br />

33: 270° (char.) 270° (char.-string)<br />

j: Character attribution<br />

B: Black character<br />

W (aabb): Reverse character<br />

aa: No. of dots from the character string to the end of the black<br />

background in the horizontal direction<br />

aa: 01 to 99 (in units of dots)<br />

bb: No. of dots from the character string to the end of the black<br />

background in the vertical direction<br />

bb: 01 to 99 (in units of dots)<br />

F (aabb): Reserved (If specified, it is processed as “B”.)<br />

aa: 01 to 99<br />

bb: 01 to 99<br />

C (aa): Reserved (If specified, it is processed as “B”.)<br />

aa: 01 to 99<br />

* Parenthesized descriptions are omissible. If “F” or “C” is specified, it is<br />

ignored.<br />

If the parenthesized values for “W: Reverse character” are omitted, the<br />

characters are reversed. Thus, increasing the larger of the two black<br />

character magnifications (horizontal or vertical) × 6 dots.<br />

5-22


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Jkkll:<br />

Mm:<br />

Reserved area (Omissible)<br />

kk: 00 to 16<br />

ll: 00 to 16<br />

Reserved area (Omissible)<br />

m: 0 to 2<br />

noooooooooo: Increment and decrement (Omissible)<br />

n: Designates whether to increment or decrement.<br />

+: Increment<br />

-: Decrement<br />

oooooooooo: Skip value<br />

0000000000 to 9999999999<br />

* If omitted, incrementing/decrementing is not performed.<br />

Zpp:<br />

Pq:<br />

Reserved area (Omissible)<br />

pp: 00 to 20<br />

Alignment (Omissible. If omitted, the alignment is set to the left.)<br />

q: Designates the character position<br />

1: Left<br />

2: Center<br />

3: Right<br />

4aaaa: Reserved (If specified, it is processed as “1”)<br />

aaaa: 0050 to 1040<br />

5aaaabbbcc: Reserved (If specified, it is processed as “1”)<br />

aaaa: 0050 to 1040<br />

bbb: 010 to 500<br />

cc: 01 to 99<br />

rrr------rrr:<br />

Data string to be printed (Omissible)<br />

Max. 100 digits<br />

5-23


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Character string number<br />

When drawing by the Data Command ([ESC] RC), the format designated by the<br />

character string number is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print length<br />

Print origin<br />

of coordinates<br />

Y<br />

Effective print<br />

width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set, so that the character drawing result will<br />

be within the effective print area set by the Label Size Set Command ([ESC] D).<br />

(3) Horizontal magnification and vertical magnification<br />

Vertical<br />

magnification<br />

Horizontal<br />

magnification<br />

Horizontal<br />

magnification<br />

Vertical<br />

magnification<br />

5-24


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

[Relationship between drawing coordinates and magnification]<br />

Char. height ×<br />

Vertical<br />

magnification<br />

Point of<br />

origin<br />

Char.<br />

height<br />

Enlarge<br />

Left offset<br />

Char. width<br />

Horizontal spacing/<br />

proportional spacing<br />

Point of<br />

origin of<br />

next char.<br />

Point of<br />

origin<br />

Char. Width ×<br />

Horizontal magnification<br />

(Horizontal spacing/proportional spacing)<br />

× Horizontal magnification<br />

Point of<br />

origin of<br />

next char.<br />

(4) Type of font<br />

A: Times Roman :<br />

B: Times Roman :<br />

C: Times Roman :<br />

D: Times Roman :<br />

E: Times Roman :<br />

F: Times Roman :<br />

G: Helvetica :<br />

H: Helvetica :<br />

I: Helvetica :<br />

J: Helvetica :<br />

K: Helvetica :<br />

L: Helvetica :<br />

M: Presentation :<br />

N: Letter Gothic :<br />

O: Prestige Elite :<br />

P: Prestige Elite :<br />

Q: Courier :<br />

R: Courier :<br />

S: OCR-A :<br />

T: OCR-B :<br />

5-25


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

o, q: Gothic725 Black:<br />

(5) Fine adjustment of character-to-character space<br />

If no character-to-character space is specified or the number of space dots between<br />

characters is 0, drawing will take place according to the horizontal spacing/proportional<br />

spacing determined for each character. If character-to-character space is specified,<br />

drawing will take place according to the value obtained by adding the character<br />

spacing/proportional spacing to the specified value.<br />

Point of<br />

origin<br />

Point of origin of<br />

next char.<br />

(Horizontal spacing/proportional<br />

spacing) × Horizontal magnification<br />

No. of fine adjust space dots<br />

between characters<br />

(6) Rotational angles of a character and character string<br />

Sample<br />

Origin<br />

0° (00) 90° (11) 180° (22) 270° (33)<br />

(7) Selection of character attribution<br />

No. of dots in the<br />

horizontal direction<br />

A<br />

B<br />

A<br />

B<br />

No. of dots in the<br />

vertical direction<br />

Black characters<br />

Reverse characters<br />

If the print ratio of one line (the print head width) is higher than defined, printing may<br />

become poor, or the printer may be reset. When “B: Reverses the white/black dot<br />

pattern in the designated area” is selected for how to clear and the black dot pattern is<br />

increased, note the print ratio.<br />

5-26


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(8) Increment/decrement<br />

Printing is performed while the data is incremented or decremented every time a label is<br />

issued. Where the data row exceeds the maximum number of digits (40), the data row<br />

will not be drawn.<br />

When the font type is U, V, a, e, or j, the increment or decrement cannot be specified.<br />

(Even if the increment or decrement is specified, it will be ignored.) Font type “e” is<br />

applicable only when Chinese () is specified, therefore, it is possible to specify the<br />

increment/decrement in case of Price Font 2.<br />

Initial value 0000 0000 0000 0000 999999<br />

INC/DEC +10 +10 +10 +10 +1<br />

1st label 0000 0000 000 0000 999999<br />

2nd label 0010 0010 010 0010 000<br />

3rd label 0020 0020 020 0020 001<br />

4th label 0030 0030 030 0030 002<br />

5th label 0040 0040 040 0040 003<br />

Letters and numerals for increment/decrement<br />

For the data string, up to 40 digits (including letters, numerals, and symbols) are<br />

possible. Only the numerals are selected and calculated for incrementing/<br />

decrementing, and then are returned to the previous position to draw the data.<br />

Example of increment/decrement calculation<br />

Initial value 00000 A0A0A 7A8/9 A2A0A<br />

INC/DEC +1 +1 +3 -3<br />

1st label 00000 A0A0A 7A8/9 A2A0A<br />

2nd label 00001 A0A1A 7A9/2 A1A7A<br />

3rd label 00002 A0A2A 7A9/5 A1A4A<br />

4th label 00003 A0A3A 7A9/8 A1A1A<br />

5th label 00004 A0A4A 8A0/1 A0A8A<br />

(9) Alignment<br />

Designated origin<br />

Left<br />

Center<br />

Right<br />

(10) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” Up to 100 digits can be printed. If the number of digits exceeds the maximum value,<br />

the excess data will be discarded.<br />

For the character code table, refer to chapter 11 “CHARACTER CODE TABLE”.<br />

(11) Reserved area (Omissible)<br />

The value range of the reserved parameter is described in this specification. However, if<br />

values for the reserved parameters are specified, they are not checked.<br />

5-27


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes (1) Up to 32 fields for which incrementing/decrementing has been designated can be<br />

drawn. If the total bit map font, outline font, and bar code/two-dimensional code<br />

increment/decrement fields exceeds 32, drawing will take place without<br />

incrementing/decrementing any excess field. The field to be incremented or<br />

decremented is incremented or decremented until the Image Buffer Clear<br />

Command ([ESC] C) is transmitted.<br />

[Example]<br />

1) Format Command (Increment character string No. 001 (+1))<br />

2) Format Command (No incrementing for character string No. 002)<br />

3) Format Command (Increment character string No. 003 (+2))<br />

4) Image Buffer Clear Command<br />

5) Data Command (Character string No. 001 “0001”)<br />

6) Data Command (Character string No. 002 “AB-”)<br />

7) Data Command (Character string No. 003 “0100”)<br />

8) Issue Command (2 labels)<br />

0001<br />

AB - 0100<br />

0002<br />

AB - 0102<br />

9) Issue Command (1 label)<br />

0003<br />

AB - 0104<br />

10) Image Buffer Clear Command<br />

11) Data Command (Character string No. 002 “00000”)<br />

12) Issue Command (1 label)<br />

00000<br />

5-28


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2) The Bit Map Font Format Command may be connected to the Outline Font Format<br />

Command when transmitted.<br />

[ESC] P C001; 0100, 0150, 1, 1, A, 00, B [LF]<br />

C002; 0350, 0180, 1, 1, A, 00, B [LF]<br />

C005; 0200, 0300, 25, 2, C, +05, 00, B, +0000000001 [LF]<br />

V01; 0500, 0400, 0100, 0100, A, 00, B [LF] [NUL]<br />

(3) When the drawing data is changed per label issue during printing, the drawing data<br />

field for the previous label is automatically cleared using the character string<br />

number. Then the next drawing data is printed. Therefore, the character string<br />

number which differs according to the drawing fields should be designated. Since<br />

the automatic field clear is not performed between the Clear Command ([ESC] C)<br />

and Issue Command ([ESC] XS), the fixed data may be drawn using the same<br />

character string number. In this case, the Format Command and Data Command<br />

should be sent alternately. (After the Issue Command is sent, the fields with the<br />

same character string number are automatically cleared until the Clear Command<br />

is sent.)<br />

Refer to<br />

Bit Map Font Data Command ([ESC] RC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Format Command ([ESC] XB)<br />

5-29


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

Origin (0, 0)<br />

(1)<br />

12.5<br />

mm<br />

30.0<br />

mm<br />

S a m p l e<br />

Effective print area<br />

55.0<br />

mm<br />

A B C D<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]PC000;0200,0300,1,1,A,00,B=ABCD[LF][NUL]<br />

[ESC]PC001;0200,0125,1,1,C,00,B[LF][NUL]<br />

[ESC]PC002;0450,0550,2,2,G,33,B,+0000000001[LF][NUL]<br />

[ESC]RC001;Sample[LF][NUL]<br />

[ESC]RC002;001[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

5-30


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2)<br />

Origin (0, 0)<br />

30.0<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

S 0 0 1<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] PC001; 0200, 0300, 1, 1, C, 00, B=S001 [LF] [NUL]<br />

[ESC] PV01; 0450, 0550, 0200, 0150, B, 33, B=001 [LF] [NUL]<br />

[ESC] XB01; 0200, 0550, 3, 1, 03, 03, 08, 08, 03, 0, 0150=S001 [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-31


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.3 OUTLINE FONT FORMAT COMMAND [ESC] PV<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the outline font is to be<br />

printed and how it is to be printed.<br />

[ESC] PVaa; bbbb, cccc, dddd, eeee, f (, ghhh), ii, j (, Mk) (, lmmmmmmmmmm)<br />

(, Znn) (, Po) (= ppp ------ ppp) [LF] [NUL]<br />

Term aa: Character string number<br />

00 to 99<br />

bbbb:<br />

cccc:<br />

dddd:<br />

eeee:<br />

Print origin of X-coordinate of the character string<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of the character string<br />

4 or 5 digits (in 0.1 mm units)<br />

Character width<br />

0020 to 0300 (in 0.1 mm units)<br />

Height of the character<br />

0020 to 0300 (in 0.1 mm units)<br />

f: Type of font<br />

A: TEC FONT1 (Helvetica [bold])<br />

B: TEC FONT1 (Helvetica [bold] proportional)<br />

F: Price font 2 (* Firmware V1.5 or greater)<br />

C, D, E, G, H, I, J: Reserved (If specified, it is processed as “B”.)<br />

ghhh:<br />

ii:<br />

Fine adjustment of character-to-character space<br />

(Omissible. If omitted, space is adjusted according to the designated font.)<br />

g: Designates whether to increase or decrease the character-to-character<br />

space.<br />

+: Increase<br />

-: Decrease<br />

hhh: No. of space dots between characters<br />

000 to 099 (in dots)<br />

Rotational angles of a character and character string<br />

00: 0° (char.) 0° (char.-string)<br />

11: 90° (char.) 90° (char.-string)<br />

22: 180° (char.) 180° (char.-string)<br />

33: 270° (char.) 270° (char.-string)<br />

5-32


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

j: Character attribution<br />

B: Black character<br />

W (aabb): Reverse character<br />

aa: 01 to 99 (in units of dots)<br />

bb: 01 to 99 (in units of dots)<br />

F (aabb): Reserved (If specified, it is processed as “B”.)<br />

aa: 01 to 99<br />

bb: 01 to 99<br />

C (aa): Reserved (If specified, it is processed as “B”.)<br />

aa: 01 to 99<br />

. Mk: Reserved area (Omissible)<br />

k: 0 to 2<br />

* Parenthesized descriptions are omissible. If “F” or “C” is specified, it is<br />

ignored.<br />

If the parenthesized values for “W: Reverse character” are omitted, the<br />

characters are reversed. Thus, increasing the larger of the two black<br />

character width or height ÷ 8 dots.<br />

lmmmmmmmmmm: Increment and decrement (Omissible)<br />

l: Designates whether to increment or decrement.<br />

+: Increment<br />

-: Decrement<br />

mmmmmmmmmm: Skip value<br />

0000000000 to 9999999999<br />

* If omitted, incrementing/decrementing is not performed.<br />

Znn:<br />

Po:<br />

Reserved area (Omissible)<br />

nn: 00 to 20<br />

Alignment (Omissible. If omitted, the alignment is set to the left.)<br />

o: Designates the character position.<br />

1: Left<br />

2: Center<br />

3: Right<br />

4aaaa: Reserved (If specified, it is processed as “1”.)<br />

aaaa: 0050 to 1040<br />

ppp------ppp:<br />

Data string to be printed (Omissible)<br />

Max. 100 digits<br />

5-33


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Character string number<br />

When drawing by the Data Command ([ESC] RV), the format designated by the<br />

character string number is selected.<br />

(2) Print origin of coordinates<br />

Backing<br />

paper<br />

Label<br />

Print origin of<br />

coordinates<br />

Effective<br />

print length<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Y<br />

Paper feed direction<br />

• The print origin of coordinates must be set so the character drawing result will<br />

be within the effective print area set by the Label Size Set Command ([ESC] D).<br />

(3) Character width and character height<br />

Char.<br />

height<br />

Char.<br />

height<br />

Char.<br />

width<br />

Char.<br />

height<br />

Standard size<br />

(256 × 256 dots)<br />

Char. width<br />

Char.<br />

width<br />

5-34


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(4) Type of font<br />

A: TEC FONT1 (Helvetica [bold])<br />

B: TEC FONT1 (Helvetica [bold] proportional)<br />

When any value from 01 to 30 is specified, it is processed as “B: TEC FONT1”.<br />

F: Price Font 2<br />

(5) Fine adjustment of character-to-character space<br />

If no character-to-character space is specified or the number of space dots<br />

between characters is 0, drawing will take place according to the horizontal<br />

spacing/proportional spacing determined for each character. If character-tocharacter<br />

space is specified, drawing will take place according to the value<br />

obtained by adding the character spacing/proportional spacing to the specified<br />

value.<br />

(6) Rotational angles of a character and character string<br />

Sample<br />

Origin<br />

0° (00) 90° (11) 180° (22) 270° (33)<br />

5-35


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(7) Selection of character attribution<br />

No. of dots in the<br />

horizontal direction<br />

A<br />

B<br />

A<br />

B<br />

No. of dots in the<br />

vertical direction<br />

Black characters<br />

Reverse characters<br />

If the print ratio of one line (the print head width) is higher than defined, printing may<br />

become poor, or the printer may be reset. When “B: Reverses the white/black dot<br />

pattern in the designated area” is selected for how to clear and the black dot pattern is<br />

increased, note the print ratio.<br />

(8) Increment/decrement<br />

Printing is performed while the data is incremented or decremented each time a label is<br />

issued. Where the data row exceeds the maximum number of digits (40), the data row<br />

will not be drawn.<br />

Initial value 0000 0000 0000 0000 999999<br />

INC/DEC +10 +10 +10 +10 +1<br />

1st label 0000 0000 000 0000 999999<br />

2nd label 0010 0010 010 0010 000<br />

3rd label 0020 0020 020 0020 001<br />

4th label 0030 0030 030 0030 002<br />

5th label 0040 0040 040 0040 003<br />

Letters and numerals for increment/decrement<br />

For the data string, up to 40 digits (including letters, numerals, and symbols) are<br />

possible. Only the numerals are selected and calculated for incrementing/<br />

decrementing, and then are returned to the previous position to draw the data.<br />

Example of increment/decrement calculation<br />

Initial value 00000 A0A0A 7A8/9 A2A0A<br />

INC/DEC +1 +1 +3 -3<br />

1st label 00000 A0A0A 7A8/9 A2A0A<br />

2nd label 00001 A0A1A 7A9/2 A1A7A<br />

3rd label 00002 A0A2A 7A9/5 A1A4A<br />

4th label 00003 A0A3A 7A9/8 A1A1A<br />

5th label 00004 A0A4A 8A0/1 A0A8A<br />

(9) Alignment<br />

Origin<br />

Left<br />

Center<br />

Right<br />

5-36


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(10) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” Up to 100 digits can be printed. When the number of digits exceeds the maximum<br />

value, the excess data will be discarded. For the character code table, refer to chapter 11<br />

“CHARACTER CODE TABLE”.<br />

(11) Reserved area (Omissible)<br />

The value range of the reserved parameter is described in this specification. However, if<br />

values for the reserved parameters are specified, they are not checked.<br />

Notes (1) Up to 32 fields for which incrementing/decrementing has been designated can be<br />

drawn. If the total bit map font, outline font, and bar code/two-dimensional code<br />

increment/decrement fields exceeds 32, drawing will take place without<br />

incrementing/decrementing any excess field. The field to be incremented or<br />

decremented is incremented or decremented until the Image Buffer Clear<br />

Command ([ESC] C) is transmitted.<br />

[Examples]<br />

1) Format Command (Increment character string No. 01 (+1))<br />

2) Format Command (No incrementing for character string No. 02)<br />

3) Format Command (Increment character string No. 03 (+2))<br />

4) Image Buffer Clear Command<br />

5) Data Command (Character string No. 01 “0001”)<br />

6) Data Command (Character string No. 02 “AB-”)<br />

7) Data Command (Character string No. 03 “0100”)<br />

8) Issue Command (2 labels)<br />

0001<br />

AB-0100<br />

0002<br />

AB-0102<br />

9) Issue Command (1 label)<br />

0003<br />

AB-0104<br />

10) Image Buffer Clear Command<br />

11) Data Command (Character string No. 02 “00000”)<br />

12) Issue Command (1 label)<br />

00000<br />

5-37


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2) The Outline Font Format Command may be connected to the Bit Map Font Format<br />

Command when transmitted.<br />

[ESC] PC001; 0100, 0150, 1, 1, A, 00, B [LF]<br />

C002; 0350, 0180, 1, 1, A, 00, B [LF]<br />

C005; 0200, 0300, 25, 2, C, +05, 00, B, +0000000001 [LF]<br />

V01; 0400, 0400, 0100, 0100, A, 00, B [LF] [NUL]<br />

(3) When the drawing data is changed per label issue during printing, the drawing data<br />

field for the previous label is automatically cleared using the character string<br />

number, then the next drawing data is printed. Therefore, the character string<br />

number which differs according to the drawing fields should be designated. Since<br />

the automatic field clear is not performed between the Clear Command ([ESC] C)<br />

and Issue Command ([ESC] XS), the fixed data may be drawn using the same<br />

character string number. In this case, the Format Command and Data Command<br />

should be sent alternately. (After the Issue Command is sent, the fields with the<br />

same character string number are automatically cleared until the Clear Command<br />

is sent.)<br />

(4) When characters overlap due to the character-to-character space fine adjustment,<br />

the outline font is not painted properly. Program the fine adjustment value so that<br />

characters will not overlap. Also, when drawings such as lines or characters are<br />

on the outline font drawing position, the outline font is not painted properly. The<br />

fine adjustment value should be set so that other drawings do not overlap the area<br />

in which the outline font is to be drawn.<br />

Refer to<br />

Outline Font Data Command ([ESC] RV)<br />

Bit Map Font Format Command ([ESC] PC)<br />

Bar Code/Two-dimensional Code Format Command ([ESC] XB)<br />

5-38


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

Origin (0, 0)<br />

(1)<br />

12.5<br />

mm<br />

30.0<br />

mm<br />

S a m p l e<br />

Effective print area<br />

55.0<br />

mm<br />

A B C D<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]PV00;0200,0300,0030,0030,B,00,B=ABCD[LF][NUL]<br />

[ESC]PV01;0200,0125,0050,0050,B,00,B[LF][NUL]<br />

[ESC]PV02;0450,0550,0150,0100,B,33,B,+0000000001[LF][NUL]<br />

[ESC]RV01;Sample[LF][NUL]<br />

[ESC]RV02;001[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

5-39


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2)<br />

Origin (0, 0)<br />

30.0<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

S 0 0 1<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]PC001;0200,0300,1,1,C,00,B=S001[LF][NUL]<br />

[ESC]PV01;0450,0550,0200,0150,B,33,B=001[LF][NUL]<br />

[ESC]XB01;0200,0550,3,1,02,02,06,06,02,0,0150=S001[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

5-40


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.4 BAR CODE FORMAT COMMAND (WPC, CODE128, EAN128, Customer Bar Code) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the bar code is to be<br />

printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, e, ff, g, hhhh (, ijjjjjjjjjj, kkk, l, mm)<br />

(= nnn ------ nnn) [LF] [NUL]<br />

Term aa: Bar code number<br />

00 to 31<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of the bar code<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Type of bar code<br />

0: JAN8, EAN8<br />

5: JAN13, EAN13<br />

6: UPC-E<br />

7: EAN-13 + 2digits (*Firmware V1.5 or greater)<br />

8: EAN-13 + 5digits (*Firmware V1.5 or greater)<br />

9: CODE128 (with auto code selection)<br />

A: CODE128 (without auto code selection)<br />

G: UPC-E + 2 digits (*Firmware V1.5 or greater)<br />

H: UPC-E + 5 digits (*Firmware V1.5 or greater)<br />

I: EAN-8 + 2 digits (*Firmware V1.5 or greater)<br />

J: EAN-8 + 5 digits (*Firmware V1.5 or greater)<br />

K: UPC-A<br />

L: UPC-A + 2 digits (*Firmware V1.5 or greater)<br />

M: UPC-A + 5 digits (*Firmware V1.5 or greater)<br />

N: EAN128<br />

R: Customer bar code (Postal code for Japan)<br />

S: Highest priority customer bar code (Postal code for Japan)<br />

e: Type of check digit<br />

3: Check digit auto attachment<br />

WPC Modulus 10<br />

CODE128 PSEUDO 103<br />

EAN128 PSEUDO 103<br />

Customer code Special check digit<br />

ff: 1-module width<br />

01 to 15 (in dots)<br />

g: Rotational angle of bar code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

hhhh:<br />

Height of the bar code<br />

0000 to 0350 (in 0.1 mm units)<br />

For the Customer bar code, the height of the long bar is specified.<br />

5-41


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

ijjjjjjjjjj:<br />

Increment/decrement (Omissible)<br />

i: Indicates whether to increment or decrement<br />

+: Increment<br />

-: Decrement<br />

jjjjjjjjjj: Skip value<br />

0000000000 to 9999999999<br />

* If omitted, incrementing/decrementing is not performed.<br />

kkk:<br />

Length of WPC guard bar<br />

(Omissible. If omitted, the guard bar is not attached.)<br />

000 to 100 (in 0.1 mm units)<br />

l: Selection of print or non-print of numerals under bars<br />

(Omissible. If omitted, the numerals under the bars are not printed.)<br />

0: Non-print<br />

1: Print<br />

mm:<br />

Reserved (Omissible)<br />

00 to 20<br />

nnn ------ nnn: Data string to be printed (Omissible)<br />

Max. 100 digits. However, it varies depending on the type of bar code.<br />

* Omissible parameters (such as “Increment/decrement” and “Selection of print or nonprint<br />

of numerals under bars”) cannot be set when the customer bar code is selected.<br />

* WPC is the generic name for bar codes of JAN, EAN and UPC.<br />

* In the above descriptions, “customer bar code” includes the highest priority customer<br />

bar code.<br />

5-42


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Bar code number<br />

When drawing by the Data Command ([ESC] RB), the format designated by the<br />

bar code is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print<br />

length<br />

Print origin of<br />

coordinates<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set so that the bar code drawing<br />

result will be within the effective print area set by the Label Size Set<br />

Command ([ESC] D).<br />

(3) Type of bar code<br />

0: JAN8, EAN8 5: JAN13, EAN13 6: UPC-E<br />

7: EAN-13 + 2 digits 8: EAN-13 + 5digits<br />

9: CODE128 G: UPC-E + 2 digits H: UPC-E + 5 digits<br />

I: EAN-8 + 2 digits J: EAN-8 + 5 digits K: UPC-A<br />

5-43


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

L: UPC-A + 2 digits M: UPC-A + 5 digits<br />

N: EAN128 R: Customer bar code<br />

S: Highest priority customer bar code<br />

(4) Bar width, space width, and character-to-character space<br />

Designate the bar, space, and character-to-character space widths according to<br />

the type of bar code. Note that the designated proper value differs according to<br />

the rotational angle of bar code, type, number of digits, print speed, paper used,<br />

etc. Examples of such designations are listed below. (1 dot = 1/8 mm)<br />

In the case of JAN, EAN, UPC, CODE128, EAN128, a 2- to 4-module width is<br />

automatically calculated, when a 1-module width is designated.<br />

[Example of setting]<br />

Type of bar code 1 module 2 modules 3 modules 4 modules<br />

Bar Space Bar Space Bar Space Bar Space<br />

JAN, EAN, UPC 3 6 9 12<br />

CODE128, EAN128 2 4 6 8<br />

In the case of the customer bar code<br />

1-module width<br />

(5) Rotational angle of bar code<br />

Point of origin<br />

0° 90° 180° 270°<br />

5-44


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(6) Bar code height<br />

Height<br />

Height<br />

[Postal code]<br />

Height<br />

(7) Length of guard bar<br />

The length of guard bar is valid only when the type of bar code is WPC.<br />

It is ignored in all other cases.<br />

Height of bar code<br />

Length of guard bar<br />

(8) Numerals under bars<br />

Numerals are/are not provided under bars according to the parameter for print/non<br />

print of numerals under bars. The contents of numerals under bars to be printed<br />

vary according to the type of bar code. The character set of numerals under bars<br />

is the standard character. Such numerals are enlarged or reduced only<br />

horizontally according to the width of the bar code. They are drawn vertically in the<br />

fixed one magnification.<br />

[Drawing positions of numerals under bars]<br />

c In the case of JAN and EAN<br />

(Example) JAN8, EAN8<br />

5-45


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

d In the case of UPC<br />

(Example) UPC-E<br />

e In the case of bar codes other than JAN, EAN, and UPC<br />

(Example) EAN128<br />

(9) Increment/decrement<br />

Printing is performed while the data is incremented or decremented every time a label is<br />

issued. Where the data row exceeds the maximum number of digits (40), the data row<br />

will not be drawn.<br />

When CODE128 (without auto code selection) is used, the number of the start code (code<br />

A, code B, and code C) digits is regarded as 2.<br />

Initial value 0000 0000 0000 0000 999999<br />

INC/DEC +10 +10 +10 +10 +1<br />

1st label 0000 0000 000 0000 999999<br />

2nd label 0010 0010 010 0010 000<br />

3rd label 0020 0020 020 0020 001<br />

4th label 0030 0030 030 0030 002<br />

5th label 0040 0040 040 0040 003<br />

5-46


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Letters and numerals for increment/decrement<br />

For CODE128, if a data string other than numerals are included in the data,<br />

increment/decrement is performed. If any code which does not exist in each bar code<br />

table is contained in the data, increment/decrement is not performed.<br />

Up to 40 digits (including letters, numerals, and symbols) are possible. Only the<br />

numerals are selected and calculated for incrementing/decrementing, and then are<br />

returned to the previous position to draw the data.<br />

Example of increment/decrement calculation<br />

Initial value 00000 A0A0A 7A8/9 A2A0A<br />

INC/DEC +1 +1 +3 -3<br />

1st label 00000 A0A0A 7A8/9 A2A0A<br />

2nd label 00001 A0A1A 7A9/2 A1A7A<br />

3rd label 00002 A0A2A 7A9/5 A1A4A<br />

4th label 00003 A0A3A 7A9/8 A1A1A<br />

5th label 00004 A0A4A 8A0/1 A0A8A<br />

Example of increment/decrement of data including the special codes of CODE128<br />

Increment/decrement calculation starts from the last digit in the data strings. When the<br />

data string to be calculated is numeric, and the next (upper) digit is “>”, the data is a<br />

special code (shown with underline below). The next digit is calculated without<br />

incrementing/decrementing these two digits.<br />

Example of increment/decrement calculation of CODE128<br />

Initial value 00000 00>08 0A>08 0A9>08<br />

INC/DEC +1 +1 +1 +1<br />

1st label 00000 00>08 0A>08 0A9>08<br />

2nd label 00001 00>09 0A>09 0A9>09<br />

3rd label 00002 01>00 1A>00 1A0>00<br />

4th label 00003 01>01 1A>01 1A0>01<br />

5th label 00004 01>02 1A>02 1A0>02<br />

(10) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” The maximum number of digits to be printed varies according to the types of bar<br />

codes. For codes, refer to chapter 12 “BAR CODE/TWO-DIMENSIONAL CODE TABLE”.<br />

5-47


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) The check digit attachment and increment/decrement processes are performed according to<br />

the following priority. If any of the conditions is improper, no drawing will take place.<br />

Increment/decrement > Attachment of check digit<br />

(2) Up to 32 fields for which incrementing/decrementing has been designated can be drawn. If<br />

the total bit map font, outline font, and bar code increment/decrement fields exceeds 32,<br />

drawing will take place without incrementing/decrementing any excess field. The field to be<br />

incremented or decremented is incremented or decremented until the Image Buffer Clear<br />

Command ([ESC] C) is transmitted.<br />

[Example]<br />

c Format Command (Increment bar code No. 01 (+1))<br />

d Format Command (Increment bar code No. 02 (+2))<br />

e Image Buffer Clear Command<br />

f Data Command (Bar code No. 01 “0001”)<br />

g Data Command (Bar code No. 02 “0100”)<br />

h Issue Command (2 labels)<br />

(0001)<br />

(0100)<br />

(0002)<br />

(0102)<br />

i Issue Command (1 label)<br />

(0003)<br />

(0104)<br />

j Image Buffer Clear Command<br />

k Data Command (Bar code No. 02 “3000”)<br />

l Issue Command (1 label)<br />

(3000)<br />

5-48


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(3) More than one Bar Code Format Command can be connected when transmitted.<br />

[ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]<br />

B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]<br />

(4) When the drawing data is changed per label issue during printing, the field of the drawing<br />

data for the previous label is automatically cleared using the bar code number, then the next<br />

drawing data is printed. Therefore, the bar code number which differs according to the<br />

drawing fields should be designated.<br />

(5) Since the automatic field clear is not performed between the Clear Command ([ESC] C) and<br />

Issue Command ([ESC] XS), the fixed data may be drawn using the same bar code number.<br />

In this case, the Format Command and Data Command should be sent alternately. (After<br />

the Issue Command is sent, the fields with the same bar code number are automatically<br />

cleared until the Clear Command is sent.)<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Data Command ([ESC] RB)<br />

Examples<br />

Origin (0, 0)<br />

12.5<br />

mm<br />

Effective print area<br />

15.0<br />

mm<br />

Paper feed direction<br />

20.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] XB01; 0200, 0125, 9, 3, 02, 0, 0150=12345 [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-49


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.5 BAR CODE FORMAT COMMAND (MSI, ITF, CODE39, NW7) [ESC] XB<br />

Function<br />

Sets the format to indicate the position on the label, at which the bar code is to be<br />

printed and how it is to be printed.<br />

Format [ESC] XBaa; bbbb, cccc, d, e, ff, gg, hh, ii, jj, k, llll (, mnnnnnnnnnn, o, pp) (, q)<br />

(= rrr ------ rrr) [LF] [NUL]<br />

Term aa: Bar code number<br />

00 to 31<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of the bar code<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Type of bar code<br />

1: MSI<br />

2: Interleaved 2 of 5 (ITF)<br />

3: CODE39 (Standard)<br />

4: NW7<br />

e: Type of check digit<br />

1: Without attaching check digit<br />

ff:<br />

gg:<br />

hh:<br />

ii:<br />

jj:<br />

Narrow bar width<br />

01 to 99 (in dots)<br />

Narrow space width<br />

01 to 99 (in dots)<br />

Wide bar width<br />

01 to 99 (in dots)<br />

Wide space width<br />

01 to 99 (in dots)<br />

Character-to-character space width<br />

01 to 99 (in dots)<br />

* For MSI and ITF: 00<br />

k: Rotational angle of bar code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

llll:<br />

Height of the bar code<br />

0000 to 0350 (in 0.1 mm units)<br />

mnnnnnnnnnn: Increment/decrement (Omissible)<br />

m: Indicates whether to increment or decrement<br />

+: Increment<br />

-: Decrement<br />

nnnnnnnnnn: Skip value<br />

0000000000 to 9999999999<br />

* If omitted, incrementing/decrementing is not performed.<br />

5-50


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

o: Selection of print or non-print of numerals under bars<br />

(Omissible. If omitted, the numerals under the bars are not printed.)<br />

0: Non-print<br />

1: Print<br />

pp:<br />

Reserved area (Omissible)<br />

00 to 20<br />

q: Designates the attachment of start/stop code (Omissible)<br />

T, P, N, Omitted: Attached to Code39, not attached to NW7<br />

rrr------rrr:<br />

Data string to be printed (Omissible)<br />

Max. 100 digits. However, the number of digits varies depending on<br />

the type of bar code.<br />

Explanation (1) Bar code number<br />

When drawing by the Data Command ([ESC] RB), the format designated by the<br />

bar code is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print<br />

length<br />

Print origin of<br />

coordinates<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set so that the bar code drawing<br />

result will be within the effective print area set by the Label Size Set<br />

Command ([ESC] D).<br />

(3) Type of bar code<br />

1: MSI 2: Interleaved 2 of 5<br />

3: CODE39 (Standard) 4: NW7<br />

5-51


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(4) Bar width, space width, and character-to-character space<br />

Designate the bar, space, and character-to-character space widths according to<br />

the type of bar code. Note that the designated proper value differs according to<br />

the rotational angle of bar code, type, number of digits, print speed, paper used,<br />

etc. Examples of such designations are listed below. (1 dot = 1/8 mm)<br />

[Example of setting]<br />

Type of bar code Narrow Wide Character-to-character<br />

Bar Space Bar Space<br />

space<br />

MSI 2 2 6 6 0<br />

ITF 2 2 6 6 0<br />

CODE39 2 2 6 6 2<br />

NW7 2 2 6 6 2<br />

(5) Rotational angle of bar code<br />

Point of origin<br />

0° 90° 180° 270°<br />

(6) Bar code height<br />

Height<br />

Height<br />

(7) Numerals under bars<br />

Numerals are/are not provided under bars according to the parameter for print/non<br />

print of numerals under bars. The contents of numerals under bars to be printed<br />

vary according to the type of bar code. The character set of numerals under bars<br />

is the standard character. Such numerals are enlarged or reduced only<br />

horizontally according to the width of the bar code. They are drawn vertically in the<br />

fixed one magnification.<br />

[Drawing positions of numerals under bars]<br />

In the case of CODE39<br />

5-52


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(8) Increment/decrement<br />

Printing is performed while the data is incremented or decremented every time a label is<br />

issued. Where the data row exceeds the maximum number of digits (40), the data row<br />

will not be drawn.<br />

Initial value 0000 0000 0000 0000 999999<br />

INC/DEC +10 +10 +10 +10 +1<br />

1st label 0000 0000 000 0000 999999<br />

2nd label 0010 0010 010 0010 000<br />

3rd label 0020 0020 020 0020 001<br />

4th label 0030 0030 030 0030 002<br />

5th label 0040 0040 040 0040 003<br />

Letters and numerals for increment/decrement<br />

For CODE39 (Standard) and NW-7, if a data string other than numerals are included in<br />

the data, increment/decrement is performed. If any code which does not exist in each<br />

bar code table is contained in the data, increment/decrement is not performed.<br />

Up to 40 digits (including letters, numerals, and symbols) are possible. Only the<br />

numerals are selected and calculated for incrementing/decrementing, and then are<br />

returned to the previous position to draw the data.<br />

Example of increment/decrement calculation<br />

Initial value 00000 A0A0A 7A8/9 A2A0A<br />

INC/DEC +1 +1 +3 -3<br />

1st label 00000 A0A0A 7A8/9 A2A0A<br />

2nd label 00001 A0A1A 7A9/2 A1A7A<br />

3rd label 00002 A0A2A 7A9/5 A1A4A<br />

4th label 00003 A0A3A 7A9/8 A1A1A<br />

5th label 00004 A0A4A 8A0/1 A0A8A<br />

(9) Start/stop code<br />

[CDOE39]<br />

The top and the bottom characters of data are checked, and “*” will be automatically<br />

attached if the characters are not “*”. When the host sends data with “*” attached as the<br />

start/stop codes, the bar code will be drawn with “*”.<br />

[NW7]<br />

As the start and stop codes are not attached automatically, they should be attached if<br />

necessary. When the data is sent without start and stop codes, the bar code will be drawn<br />

without the codes.<br />

(10) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” The maximum number of digits to be printed varies according to the types of bar<br />

codes. For codes, refer to chapter 12 “BAR CODE/TWO-DIMENSIONAL CODE TABLE”.<br />

5-53


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) Up to 32 fields for which incrementing/decrementing has been designated can be drawn. If<br />

the total bit map font, outline font, and bar code increment/decrement fields exceeds 32,<br />

drawing will take place without incrementing/decrementing any excess field. The field to be<br />

incremented or decremented is incremented or decremented until the Image Buffer Clear<br />

Command ([ESC] C) is transmitted.<br />

[Example]<br />

c Format Command (Increment bar code No. 01 (+1))<br />

d Format Command (Increment bar code No. 02 (+2))<br />

e Image Buffer Clear Command<br />

f Data Command (Bar code No. 01 “0001”)<br />

g Data Command (Bar code No. 02 “0100”)<br />

h Issue Command (2 labels)<br />

(0001)<br />

(0100)<br />

(0002)<br />

(0102)<br />

i Issue Command (1 label)<br />

(0003)<br />

(0104)<br />

j Image Buffer Clear Command<br />

k Data Command (Bar code No. 02 “3000”)<br />

l Issue Command (1 label)<br />

(3000)<br />

5-54


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2) More than one Bar Code Format Command can be connected when transmitted.<br />

[ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]<br />

B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]<br />

(3) When the drawing data is changed per label issue during printing, the field of the drawing<br />

data for the previous label is automatically cleared using the bar code number, then the next<br />

drawing data is printed. Therefore, the bar code number which differs according to the<br />

drawing fields should be designated.<br />

(4) Since the automatic field clear is not performed between the Clear Command ([ESC] C) and<br />

Issue Command ([ESC] XS), the fixed data may be drawn using the same bar code number.<br />

In this case, the Format Command and Data Command should be sent alternately. (After<br />

the Issue Command is sent, the fields with the same bar code number are automatically<br />

cleared until the Clear Command is sent.)<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Data Command ([ESC] RB)<br />

Examples<br />

Origin (0, 0)<br />

12.5<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

15.0<br />

mm<br />

Paper feed direction<br />

5.0 mm<br />

30.0 mm<br />

15.0 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]XB01;0050,0125,3,1,02,02,06,06,02,0,0150=12345[LF][NUL]<br />

[ESC]XB02;0300,0550,3,1,02,03,06,07,03,3,0150,+0000000000,1,00,N[LF][NUL]<br />

[ESC]RB02;*ABC*[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

5-55


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.6 BAR CODE FORMAT COMMAND (RSS (Reduced Space Symbology)) [ESC] XB<br />

(Firmware V1.2 or greater)<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the bar code is to be<br />

printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, e, ff, g, hhhh (, ijjjjjjjjjj,kk) (= lll ------ lll) [LF] [NUL]<br />

Term aa: Bar code number<br />

00 to 31<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the bar code<br />

Fixed to 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of the bar code<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Type of bar code<br />

b: RSS family<br />

e: Version (Detailed types)<br />

1: RSS-14<br />

2: RSS-14 Stacked<br />

3: RSS-14 Stacked Omnidirectional<br />

4: RSS Limited<br />

5: RSS Expanded<br />

ff:<br />

1-module width<br />

01 to 15 (in dots)<br />

g: Rotational angle of bar code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

hhhh:<br />

ijjjjjjjjjj:<br />

Height of the bar code<br />

0000 to 0350 (in 0.1 mm units)<br />

Increment/decrement (Omissible)<br />

i: Indicates whether to increment or decrement<br />

+: Increment<br />

-: Decrement<br />

jjjjjjjjjj: Skip value<br />

0000000000 to 9999999999<br />

kk:<br />

lll------lll:<br />

* If omitted, incrementing/decrementing is not performed.<br />

Reserved area (Omissible)<br />

00 to 20<br />

Data string to be printed (Omissible)<br />

Max. 70 digits. However, the number of digits varies depending on the<br />

bar code version.<br />

5-56


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Bar code number<br />

When drawing by the Data Command ([ESC] RB), the format designated by the<br />

bar code is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print<br />

length<br />

Print origin of<br />

coordinates<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set so that the bar code drawing<br />

result will be within the effective print area set by the Label Size Set<br />

Command ([ESC] D).<br />

(3) Type of bar code (Detailed version types)<br />

1: RSS-14<br />

2: RSS-14 Stacked 3: RSS-14 Stacked Omnidirectional<br />

4: RSS Limited<br />

5: RSS Expanded<br />

5-57


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(4) Bar width, space width, and character-to-character space<br />

Designate the bar, space, and character-to-character space widths according to<br />

the type of bar code. Note that the designated proper value differs according to<br />

the rotational angle of bar code, type, number of digits, print speed, paper used,<br />

etc. Examples of such designations are listed below. (1 dot = 1/8 mm)<br />

[Example of setting]<br />

1 module 2 module 3 module 4 module<br />

Bar Space Bar Space Bar Space Bar Space<br />

2 4 6 8<br />

3 6 9 12<br />

(5) Rotational angle of bar code<br />

Point of origin<br />

0° 90° 180° 270°<br />

(6) Bar code height<br />

[RSS-14]<br />

Height<br />

[RSS-14 Stacked]<br />

Height (Ratio of the upper bar code height to lower bar code height is 5 to 7.)<br />

[RSS-14 Stacked omnidirectional]<br />

Height (The height of the upper bar code and the lower bar code are equal.)<br />

[RSS-14 Limited]<br />

Height<br />

5-58


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

[RSS-14 Expanded]<br />

Height<br />

When the bar code height is set to “0000”, the bar code including guard bars and number<br />

under bar are not printed.<br />

(7) Increment/decrement<br />

Printing is performed while the data is incremented or decremented every time a label is<br />

issued. Where the data row exceeds the maximum number of digits (40), the data row<br />

will not be drawn.<br />

Initial value 0000 0000 0000 0000 999999<br />

INC/DEC +10 +10 +10 +10 +1<br />

1st label 0000 0000 000 0000 999999<br />

2nd label 0010 0010 010 0010 000<br />

3rd label 0020 0020 020 0020 001<br />

4th label 0030 0030 030 0030 002<br />

5th label 0040 0040 040 0040 003<br />

Letters and numerals for increment/decrement<br />

Up to 40 digits (including letters, numerals, and symbols) are possible. Only the<br />

numerals are selected and calculated for incrementing/decrementing, and then are<br />

returned to the previous position to draw the data.<br />

Example of increment/decrement calculation<br />

Initial value 00000 A0A0A 7A8/9 A2A0A<br />

INC/DEC +1 +1 +3 -3<br />

1st label 00000 A0A0A 7A8/9 A2A0A<br />

2nd label 00001 A0A1A 7A9/2 A1A7A<br />

3rd label 00002 A0A2A 7A9/5 A1A4A<br />

4th label 00003 A0A3A 7A9/8 A1A1A<br />

5th label 00004 A0A4A 8A0/1 A0A8A<br />

(8) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” The maximum number of digits to be printed varies according to the types of bar<br />

codes. For codes, refer to chapter 12 “BAR CODE/TWO-DIMENSIONAL CODE TABLE”.<br />

RSS-14:<br />

RSS-14 Stacked:<br />

RSS-14 Stacked Omnidirectional:<br />

RSS Limited:<br />

RSS Expanded:<br />

Fixed to 13 digits<br />

Fixed to 13 digits<br />

Fixed to 13 digits<br />

Fixed to 13 digits<br />

Max. 70 digits<br />

5-59


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) Up to 32 fields for which incrementing/decrementing has been designated can be drawn. If<br />

the total bit map font, outline font, and bar code increment/decrement fields exceeds 32,<br />

drawing will take place without incrementing/decrementing any excess field. The field to be<br />

incremented or decremented is incremented or decremented until the Image Buffer Clear<br />

Command ([ESC] C) is transmitted.<br />

[Example]<br />

c Format Command (Increment bar code No. 01 (+1))<br />

d Format Command (Increment bar code No. 02 (+2))<br />

e Image Buffer Clear Command<br />

f Data Command (Bar code No. 01 “0001”)<br />

g Data Command (Bar code No. 02 “0100”)<br />

h Issue Command (2 labels)<br />

(0001)<br />

(0100)<br />

(0002)<br />

(0102)<br />

i Issue Command (1 label)<br />

(0003)<br />

(0104)<br />

j Image Buffer Clear Command<br />

k Data Command (Bar code No. 02 “3000”)<br />

l Issue Command (1 label)<br />

(3000)<br />

(2) More than one Bar Code Format Command can be connected when transmitted.<br />

[ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]<br />

B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]<br />

5-60


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(3) When the drawing data is changed per label issue during printing, the field of the drawing<br />

data for the previous label is automatically cleared using the bar code number, then the next<br />

drawing data is printed. Therefore, the bar code number which differs according to the<br />

drawing fields should be designated.<br />

(4) Since the automatic field clear is not performed between the Clear Command ([ESC] C) and<br />

Issue Command ([ESC] XS), the fixed data may be drawn using the same bar code number.<br />

In this case, the Format Command and Data Command should be sent alternately. (After<br />

the Issue Command is sent, the fields with the same bar code number are automatically<br />

cleared until the Clear Command is sent.)<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Data Command ([ESC] RB)<br />

Examples<br />

Origin (0, 0)<br />

12.5 mm<br />

Effective print area<br />

15.0 mm<br />

Paper feed direction<br />

20.0 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]XB01;0200,0125,b,1,02,0,0150=1234567890123[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

5-61


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.7 TWO-DIMENSIONAL CODE FORMAT COMMAND (Data Matrix) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h (, Ciiijjj) (, Jkkllmmmnnn) (= ooo ------ ooo)<br />

[LF] [NUL]<br />

Term aa: Two-dimensional code number<br />

00 to 31<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of the two-dimensional code<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Type of two-dimensional code<br />

Q: Data Matrix<br />

ee:<br />

ff:<br />

gg:<br />

ECC type<br />

00: ECC000<br />

01: ECC050<br />

04: ECC050<br />

05: ECC050<br />

06: ECC080<br />

07: ECC080<br />

08: ECC080<br />

09: ECC100<br />

10: ECC100<br />

11: ECC140<br />

12: ECC140<br />

13: ECC140<br />

14: ECC140<br />

20: ECC200<br />

1-cell width<br />

00 to 99 (in dots)<br />

Format ID<br />

01: Format ID 1<br />

02: Format ID 2<br />

03: Format ID 3<br />

04: Format ID 4<br />

05: Format ID 5<br />

06: Format ID 6<br />

* When ECC200 is designated as ECC type, the format ID designation is ignored.<br />

When format ID of 11 through 16 is designated, the selection of ECC200 is<br />

compulsory (to maintain compatibility with the conventional models).<br />

5-62


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

h: Rotational angle of two-dimensional code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

Ciiijjj:<br />

No. of cells<br />

(Omissible. If omitted, it is automatically set.)<br />

iii: No. of cells in the X direction 000 to 144<br />

jjj: No. of cells in the Y direction 000 to 144<br />

* Cell setting varies according to the ECC type.<br />

No. of cells to be<br />

designated<br />

ECC000 to ECC140<br />

Odd numbers only<br />

ECC200<br />

Even numbers only<br />

Min./Max. No. of cells 9 × 9 to 49 × 49 10 × 10 to 144 × 144<br />

Rectangular code None 18 × 8<br />

32 × 8<br />

26 × 12<br />

36 × 12<br />

36 × 16<br />

48 × 16<br />

• When this parameter is omitted, the number of cells is automatically<br />

set. Also, when any data other than the above values are designated<br />

for the number of cells in the X and Y directions, the number of cells<br />

are automatically set.<br />

Jkkllmmmnnn:<br />

ooo ------ ooo:<br />

Connection setting<br />

(Omissible. No connection if this parameter is omitted.)<br />

kk: Code number 01 to 16<br />

ll: No. of divided codes 02 to 16<br />

mmm: ID number 1 001 to 254<br />

nnn: ID number 2 001 to 254<br />

Data string to be printed (Omissible)<br />

Max. 2000 digits.<br />

* The maximum of 2000 digits of data string to be printed and the<br />

maximum of 99 dots of the 1-cell width are acceptable. (The<br />

maximum number of digits of the data string to be printed differs<br />

depending on the ECC level and the contents of data.) However,<br />

note the following limits:<br />

• The maximum of 2000-digit data string to be printed are<br />

acceptable. However, it cannot actually be printed, since it cannot<br />

be contained within the 2-inch head width.<br />

• If the print ratio of one line (the print head width) is high, printing<br />

may become poor, or the printer may be reset. Note the print ratio.<br />

• When a large value is set for the 1-cell width, decrease the number<br />

of digits of data to contain the data within the head width.<br />

5-63


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Two-dimensional code number<br />

When drawing by the Data Command ([ESC] RB), the format designated by the<br />

two-dimensionl code number is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print<br />

length<br />

Print origin of<br />

coordinates<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set so that the two-dimensional<br />

code drawing result will be within the effective print area set by the Label<br />

Size Set Command ([ESC] D).<br />

(3) Type of two-dimensional code<br />

Q: Data Matrix<br />

(4) 1-cell width<br />

1-cell width<br />

1-cell width = 3<br />

When 1-cell width is 00 for the Data Matrix, a<br />

two-dimensional code is not drawn.<br />

However, the two-dimensional code printed<br />

on the previous label is cleared.<br />

The maximum cell width is 99 dots.<br />

(However, the number of digits of data<br />

should be limited so the two-dimensional<br />

code can be printed within the 2-inch head<br />

width.)<br />

5-64


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(5) Rotational angle of two-dimensional code<br />

Point of origin<br />

0° 90° 180° 270°<br />

(6) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” The maximum number of digits to be printed is 2000. (However, the number of digits<br />

of data should be limited so the two-dimensional code can be printed within the 2-inch<br />

head width.)<br />

(7) ECC type<br />

Data Matrix contains a function to correct a code reading error using an error correction<br />

code (ECC) and restore normal data. There are several ECCs. ECC should be<br />

designated according to usage. The general correction ability is as follows. However, it<br />

may vary according to the error conditions.<br />

ECC type Error Correction Ability Overhead by ECC<br />

ECC000 0%<br />

Low<br />

ECC050 25%<br />

ECC080 33%<br />

ECC100<br />

High<br />

50%<br />

ECC140 75%<br />

ECC200 Approx. 30%<br />

(8) Format ID<br />

Data Matrix can handle all codes including alphanumerics, symbols and Kanji. Since data<br />

compression rate varies according to codes, a code to be used is designated using the<br />

format ID.<br />

Format ID Code Details<br />

1 Numerics 0 to 9 space<br />

2 Letters A to Z space<br />

3 Alphanumerics, symbols 0 to 9 A to Z space . , - /<br />

4 Alphanumerics 0 to 9 A to Z space<br />

5 ASCII (7 bit) 00H to 7FH<br />

6 ISO (8 bit) 00H to FFH (Kanji)<br />

5-65


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(9) Maximum number of digits<br />

The maximum number of digits varies according to the ECC type or format ID.<br />

Since each Kanji character uses 2 bytes, the maximum number of digits for it becomes<br />

half of the following values.<br />

ECC000 ECC050 ECC080 ECC100 ECC140<br />

Format ID 1 500 457 402 300 144<br />

Format ID 2 452 333 293 218 105<br />

Format ID 3 394 291 256 190 91<br />

Format ID 4 413 305 268 200 96<br />

Format ID 5 310 228 201 150 72<br />

Format ID 6 271 200 176 131 63<br />

Numeric Alphanumeric 8 bit<br />

ECC200 2000 2000 1556<br />

For the maximum number of digits in cell units, see the next page.<br />

(10) Connection setting<br />

The connection setting is used to comprise data with a set of two-dimensional codes<br />

when the data cannot be expressed with a two-dimensional code. When three twodimensional<br />

codes are used to comprise data, identification information of 1/3, 2/3, and<br />

3/3 is inserted into each two-dimensional code. The ID number is programmed to include<br />

a proper combination of two-dimensional codes when one label contains plural connecting<br />

symbols. For example, when there are two kinds of data containing identification<br />

information for 1/2 and 2/2 in the same label, combination of two-dimensional codes is<br />

unclear. By adding the ID number, the combination is made clearer.<br />

5-66


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(11) Cell size and the effective data capacity<br />

ECC000 ECC050 ECC080 ECC100 ECC140<br />

Symbol size<br />

Row<br />

Col<br />

Numeric Alphanum<br />

capacity capacity<br />

8-bit Numeric Alphanum 8-bit Numeric Alphanum 8-bit Numeric Alphanum 8-bit Numeric Alphanum 8-bit<br />

byte capacity capacity byte capacity capacity byte capacity capacity byte capacity capacity byte<br />

capacity capacity capacity capacity capacity<br />

9 9 3 2 1 – – – – – – – – – – – –<br />

11 11 12 8 5 1 1 – – – – – – – – – –<br />

13 13 24 16 10 10 6 4 4 3 2 1 1 – – – –<br />

15 15 37 25 16 20 13 9 13 9 6 8 5 3 – – –<br />

17 17 53 35 23 32 21 14 24 16 10 16 11 7 2 1 1<br />

19 19 72 48 31 46 30 20 36 24 16 25 17 11 6 4 3<br />

21 21 92 61 40 61 41 27 50 33 22 36 24 15 12 8 5<br />

23 23 115 76 50 78 52 34 65 43 28 47 31 20 17 11 7<br />

25 25 140 93 61 97 65 42 82 54 36 60 40 26 24 16 10<br />

27 27 168 112 73 118 78 51 100 67 44 73 49 32 30 20 13<br />

29 29 197 131 86 140 93 61 120 80 52 88 59 38 38 25 16<br />

31 31 229 153 100 164 109 72 141 94 62 104 69 45 46 30 20<br />

33 33 264 176 115 190 126 83 164 109 72 121 81 53 54 36 24<br />

35 35 300 200 131 217 145 95 188 125 82 140 93 61 64 42 28<br />

37 37 339 226 148 246 164 108 214 143 94 159 106 69 73 49 32<br />

39 39 380 253 166 277 185 121 242 161 106 180 120 78 84 56 36<br />

41 41 424 282 185 310 206 135 270 180 118 201 134 88 94 63 41<br />

43 43 469 313 205 344 229 150 301 201 132 224 149 98 106 70 46<br />

45 45 500 345 226 380 253 166 333 222 146 248 165 108 118 78 51<br />

47 47 500 378 248 418 278 183 366 244 160 273 182 119 130 87 57<br />

49 49 500 413 271 457 305 200 402 268 176 300 200 131 144 96 63<br />

In case of ECC000, when the symbol size of the row and the column is respectively 9, the maximum number<br />

of digits of numeric is 3, that of alphanumeric is 2, and that of 8 bit is 1.<br />

5-67


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Symbol size<br />

Row<br />

Col<br />

ECC200<br />

Numeric Alphanum<br />

capacity capacity<br />

8-bit<br />

byte<br />

capacity<br />

10 10 6 3 1<br />

12 12 10 6 3<br />

14 14 16 10 6<br />

16 16 24 16 10<br />

18 18 36 25 16<br />

20 20 44 31 20<br />

22 22 60 43 28<br />

24 24 72 52 34<br />

26 26 88 64 42<br />

32 32 124 91 60<br />

36 36 172 127 84<br />

40 40 228 169 112<br />

44 44 288 214 142<br />

48 48 348 259 172<br />

52 52 408 304 202<br />

64 64 560 418 278<br />

72 72 736 550 366<br />

80 80 912 682 454<br />

88 88 1152 862 574<br />

96 96 1392 1042 694<br />

104 104 1632 1222 814<br />

120 120 2000 1573 1048<br />

132 132 2000 1954 1302<br />

144 144 2000 2000 1556<br />

Rectangular code<br />

ECC200<br />

Symbol size<br />

Row<br />

Col<br />

Numeric<br />

capacity Alphanum<br />

capacity<br />

8-bit<br />

byte<br />

capacity<br />

8 18 10 6 3<br />

8 32 20 13 8<br />

12 26 32 22 14<br />

12 36 44 31 20<br />

16 36 64 46 30<br />

16 48 98 72 47<br />

5-68


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) More than one two-dimensional Code Format Command can be connected when<br />

transmitted.<br />

[ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]<br />

B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]<br />

(2) When the drawing data is changed per label issue during printing, the field of the drawing<br />

data for the previous label is automatically cleared using the two-dimensional code number,<br />

then the next drawing data is printed. Therefore, the two-dimensional code number which<br />

differs according to the drawing fields should be designated.<br />

(3) Since the automatic field clear is not performed between the Clear Command ([ESC] C) and<br />

Issue Command ([ESC] XS), the fixed data may be drawn using the same two-dimensional<br />

code number. In this case, the Format Command and Data Command should be sent<br />

alternately. (After the Issue Command is sent, the fields with the same two-dimensional<br />

code number are automatically cleared until the Clear Command is sent.)<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Data Command ([ESC] RB)<br />

5-69


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

Origin (0, 0)<br />

12.5<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

Paper feed direction<br />

5.0 mm<br />

30.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] XB01; 0050, 0125, Q, 20, 05, 01, 0 [LF] [NUL]<br />

[ESC] XB02; 0300, 0550, Q, 08, 03, 05, 3 [LF] [NUL]<br />

[ESC] RB01; <strong>Toshiba</strong> TEC [LF] [NUL]<br />

[ESC] RB02; Data Matrix [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-70


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.8 TWO-DIMENSIONAL CODE FORMAT COMMAND (PDF417) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h, iiii (= jjj ------ jjj) [LF] [NUL]<br />

Term aa: Two-dimensional code number<br />

00 to 31<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of the two-dimensional code<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Type of two-dimensional code<br />

P: PDF417<br />

ee:<br />

ff:<br />

gg:<br />

Security level<br />

00: Level 0<br />

01: Level 1<br />

02: Level 2<br />

03: Level 3<br />

04: Level 4<br />

05: Level 5<br />

06: Level 6<br />

07: Level 7<br />

08: Level 8<br />

1-module width<br />

01 to 10 (in dots)<br />

No. of columns (strings)<br />

01 to 30<br />

h: Rotational angle of two-dimensional code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

iiii:<br />

Bar height<br />

0000 to 0100 (in 0.1 mm units)<br />

jjj-----jjj: Data string to be printed (Omissible)<br />

Max. 2,000 digits<br />

* The maximum of 2000 digits of data string to be printed are acceptable.<br />

(The maximum number of digits of the data string to be printed differs<br />

depending on the security level and the contents of data.) However, note the<br />

following limits:<br />

• The maximum of 2000-digit data string to be printed are acceptable.<br />

However, it cannot actually be printed, since it cannot be contained within<br />

the 2-inch head width.<br />

• If the print ratio of one line (the print head width) is high, printing may<br />

become poor, or the printer may be reset. Note the print ratio.<br />

5-71


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Two-dimensional code number<br />

When drawing by the Data Command ([ESC] RB), the format designated by the<br />

two-dimensional code number is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print<br />

length<br />

Print origin of<br />

coordinates<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set so that the two-dimensional<br />

code drawing result will be within the effective print area set by the Label<br />

Size Set Command ([ESC] D).<br />

(3) Type of two-dimensional code<br />

P: PDF417<br />

(4) 1-module width<br />

When a 1-module width is designated, 2- to 6-module width is automatically<br />

calculated.<br />

[Example of setting]<br />

Type of 2-D code 1 module 2 modules 3 modules 4 modules 5 modules 6 modules<br />

Bar Space Bar Space Bar Space Bar Space Bar Space Bar Space<br />

PDF417 2 4 6 8 10 12<br />

5-72


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(5) Rotational angle of two-dimensional code<br />

Point of origin<br />

0° 90° 180° 270°<br />

(6) Height of two-dimensional code<br />

Height<br />

Height<br />

(7) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” The maximum number of digits to be printed is 2000. (However, the number of digits<br />

of data should be limited so the two-dimensional code can be printed within the 2-inch<br />

head width.)<br />

(8) Security level<br />

The PDF417 contains a function to correct a code reading error using an error correcting<br />

code word and restore normal data. The security level should be designated according to<br />

usage to perform the error correction function.<br />

Security level Error Correction Ability<br />

No. of error correction<br />

code words<br />

Level 0 0<br />

Level 1 Low<br />

2<br />

Level 2 6<br />

Level 3 14<br />

Level 4 30<br />

Level 5 62<br />

Level 6 126<br />

Level 7 High<br />

254<br />

Level 8 510<br />

5-73


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(9) No. of columns (strings)<br />

The number of rows are variable in the PDF417. The row length (No. of data strings) is<br />

also variable. Therefore, a symbol can be created in a form that can be easily printed, by<br />

changing the proportion of the height and width. The number of columns (data strings) is<br />

varied between 1 and 30.<br />

If the number of columns is too small when th data amount is large and the security level<br />

is high, drawing may not be performed. This is because the number of rows exceeds 90<br />

when the number of columns becomes small. (The number of rows of symbols is limited<br />

from 3 to 90.)<br />

(1) More than one two-dimensional Code Format Command can be connected when<br />

transmitted.<br />

[ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]<br />

B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]<br />

(2) When the drawing data is changed per label issue during printing, the field of the drawing<br />

data for the previous label is automatically cleared using the two-dimensional code number,<br />

then the next drawing data is printed. Therefore, the two-dimensional code number which<br />

differs according to the drawing fields should be designated.<br />

(3) Since the automatic field clear is not performed between the Clear Command ([ESC] C) and<br />

Issue Command ([ESC] XS), the fixed data may be drawn using the same two-dimensional<br />

code number. In this case, the Format Command and Data Command should be sent<br />

alternately. (After the Issue Command is sent, the fields with the same two-dimensional<br />

code number are automatically cleared until the Clear Command is sent.)<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Data Command ([ESC] RB)<br />

5-74


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

Origin (0, 0)<br />

12.5<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

Paper feed direction<br />

5.0 mm<br />

30.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] XB01; 0050, 0125, P, 04, 02, 03, 0, 0010 [LF] [NUL]<br />

[ESC] XB02; 0300, 0550, Q, 08, 03, 05, 3 [LF] [NUL]<br />

[ESC] RB01; PDF417 [LF] [NUL]<br />

[ESC] RB02; Data Matrix [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-75


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.9 TWO-DIMENSIONAL CODE FORMAT COMMAND (MicroPDF417) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h, iiii (= jjj ------ jjj) [LF] [NUL]<br />

Term aa: Two-dimensional code number<br />

00 to 31<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of the two-dimensional code<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Type of two-dimensional code<br />

X: MicroPDF417<br />

ee:<br />

ff:<br />

gg:<br />

Security level<br />

00: Fixed<br />

1-module width<br />

01 to 10 (in dots)<br />

No. of columns/rows<br />

00 to 38<br />

h: Rotational angle of two-dimensional code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

iiii:<br />

Bar height<br />

0000 to 0100 (in 0.1 mm units)<br />

jjj-----jjj: Data string to be printed (Omissible)<br />

Max. 366 digits<br />

* The maximum of 366 digits of data string to be printed are acceptable. (The<br />

maximum number of digits of the data string to be printed differs depending<br />

on the numbers of columns, the number of rows, and the contents of data.)<br />

However, note the following limits:<br />

• The maximum of 366-digit data string to be printed are acceptable.<br />

However, it cannot actually be printed, since it cannot be contained within<br />

the 2-inch head width.<br />

• If the print ratio of one line (the print head width) is high, printing may<br />

become poor, or the printer may be reset. Note the print ratio.<br />

5-76


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Two-dimensional code number<br />

When drawing by the Data Command ([ESC] RB), the format designated by the<br />

two-dimensional code number is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print<br />

length<br />

Print origin of<br />

coordinates<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set so that the two-dimensional<br />

code drawing result will be within the effective print area set by the Label<br />

Size Set Command ([ESC] D).<br />

(3) Type of two-dimensional code<br />

X: MicroPDF417<br />

(4) 1-module width<br />

When a 1-module width is designated, 2- to 6-module width is automatically<br />

calculated<br />

[Example of setting]<br />

Type of 2-D code 1 module 2 modules 3 modules 4 modules 5 modules 6 modules<br />

Bar Space Bar Space Bar Space Bar Space Bar Space Bar Space<br />

MicroPDF417 2 4 6 8 10 12<br />

5-77


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(5) Rotational angle of two-dimensional code<br />

Point of origin<br />

0° 90° 180° 270°<br />

(6) Height of two-dimensional code<br />

Height<br />

Height<br />

(7) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” The maximum number of digits to be printed is 366. (However, the number of digits<br />

of data should be limited so the two-dimensional code can be printed within the 2-inch<br />

head width.)<br />

(8) Security level<br />

The MicroPDF417 contains a function to correct a code reading error using an error<br />

correcting code word and restore normal data. The printer automatically sets the security<br />

level.<br />

(9) No. of columns (strings)<br />

For the MicroPDF417, not only the number of columns (data strings) but also the number<br />

of rows (data lines) can be designated. When these are to be designated, see the table<br />

on the next page. Note that the max. number of digits for the set parameter (gg) varies<br />

according to the character type. If data over the max. number of digits for the set<br />

parameter (gg) is set, the two-dimensional code is not printed. The number of columns<br />

(data strings) is varied from 1 to 4. However, the max. number of lines, which is 44,<br />

depends on the number of columns.<br />

5-78


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(10) The maximum number of columns and rows<br />

Parameter<br />

(gg)<br />

No. of columns No. of rows<br />

Max. number of digits<br />

for binary mode<br />

Max. number of digits for<br />

upper case letter/space mode<br />

Max. number of digits<br />

for numeric mode<br />

00 – – 150 250 366<br />

01 1 – 22 38 55<br />

02 2 – 43 72 105<br />

03 3 – 97 162 237<br />

04 4 – 150 250 366<br />

05 11 3 6 8<br />

06 14 7 12 17<br />

07 1 17 10 18 26<br />

08 20 13 22 32<br />

09 24 18 30 44<br />

10 28 22 38 55<br />

11 8 8 14 20<br />

12 11 14 24 35<br />

13 14 21 36 52<br />

14 2 17 27 46 67<br />

15 20 33 56 82<br />

16 23 38 64 93<br />

17 26 43 72 105<br />

18 6 6 10 14<br />

19 8 10 18 26<br />

20 10 15 26 38<br />

21 12 20 34 49<br />

22 3 15 27 46 67<br />

23 20 39 66 96<br />

24 26 54 90 132<br />

25 32 68 114 167<br />

26 38 82 138 202<br />

27 44 97 162 237<br />

28 4 8 14 20<br />

29 6 13 22 32<br />

30 8 20 34 49<br />

31 10 27 46 67<br />

32 12 34 58 85<br />

33 4 15 45 76 111<br />

34 20 63 106 155<br />

35 26 85 142 208<br />

36 32 106 178 261<br />

37 38 128 214 313<br />

38 44 150 250 366<br />

“–” for parameter 00 to 04 indicates the numbers of columns/rows which are automatically set by the printer.<br />

In this case, the pattern which has a smaller number of code words is automatically selected. When the<br />

numbers of code words is equal, the smaller number of columns are selected.<br />

5-79


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) More than one two-dimensional Code Format Command can be connected when<br />

transmitted.<br />

[ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]<br />

B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]<br />

(2) When the drawing data is changed per label issue during printing, the field of the drawing<br />

data for the previous label is automatically cleared using the two-dimensional code number,<br />

then the next drawing data is printed. Therefore, the two-dimensional code number which<br />

differs according to the drawing fields should be designated.<br />

(3) Since the automatic field clear is not performed between the Clear Command ([ESC] C) and<br />

Issue Command ([ESC] XS), the fixed data may be drawn using the same two-dimensional<br />

code number. In this case, the Format Command and Data Command should be sent<br />

alternately. (After the Issue Command is sent, the fields with the same two-dimensional<br />

code number are automatically cleared until the Clear Command is sent.)<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Data Command ([ESC] RB)<br />

5-80


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

Origin (0, 0)<br />

12.5<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

Paper feed direction<br />

5.0 mm<br />

30.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] XB01; 0050, 0125, X, 00, 02, 00, 0, 0010 [LF] [NUL]<br />

[ESC] XB02; 0300, 0550, Q, 08, 03, 05, 3 [LF] [NUL]<br />

[ESC] RB01; MicroPDF417 [LF] [NUL]<br />

[ESC] RB02; Data Matrix [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-81


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.10 TWO-DIMENSIONAL CODE FORMAT COMMAND (QR Code) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, e, ff, g, h (, Mi) (, Kj) (, Jkkllmm) (= nnn --- nnn) [LF] [NUL]<br />

Term aa: Two-dimensional code number<br />

00 to 31<br />

bbbb: Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

cccc: Print origin of Y-coordinate of the two-dimensional code<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Type of two-dimensional code<br />

T: QR code<br />

e: Designation of error correction level<br />

L: High density level<br />

M: Standard level<br />

Q: Reliability level<br />

H: High reliability level<br />

ff: 1-cell width<br />

00 to 52 (in dots)<br />

g: Selection of mode<br />

M: Manual mode<br />

A: Automatic mode<br />

h: Rotational angle of the two-dimensional code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

Mi: Selection of model<br />

(Omissible. If omitted, Model 1 is automatically selected.)<br />

i = 1: Model 1<br />

2: Model 2<br />

Kj: Mask number<br />

(Omissible. If omitted, the number is automatically set.)<br />

j = 0 to 7: Mask number 0 to 7<br />

8: No mask<br />

Jkkllmm: Connection setting<br />

(Omissible. No connection if this parameter is omitted.)<br />

kk = 01 to 16: Value indicating which divided code is connected.<br />

ll = 01 to 16: Number of divided codes<br />

mm = 00 to FF: A value for all data to be printed, to which XOR is applied<br />

in units of bytes (Not divided)<br />

5-82


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

nnn --- nnn:<br />

Data string to be printed (Omissible)<br />

Max. 2000 digits<br />

* The maximum of 2000 digits of data string to be printed and the<br />

maximum of 52 dots of the 1-cell width are acceptable. (The maximum<br />

number of digits of the data string to be printed differs depending on the<br />

ECC level and the contents of data.) However, note the following limits:<br />

• The maximum of 2000-digit data string to be printed are acceptable.<br />

However, it cannot actually be printed, since it cannot be contained<br />

within the 2-inch head width.<br />

• If the print ratio of one line (the print head width) is high, printing may<br />

become poor, or the printer may be reset. Note the print ratio.<br />

• When a large value is set for the 1-cell width, decrease the number of<br />

digits of data to contain the data within the head width.<br />

Explanation (1) Two-dimensional code number<br />

When drawing by the Data Command ([ESC] RB), the format designated by the<br />

two-dimensional code number is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print<br />

length<br />

Print origin of<br />

coordinates<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set so that the two-dimensional<br />

code drawing result will be within the effective print area set by the Label<br />

Size Set Command ([ESC] D).<br />

(3) Type of two-dimensional code<br />

T: QR code<br />

5-83


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(4) 1-cell width<br />

1-cell width<br />

1-cell width<br />

When the 1-cell width is 0, a two-dimensional code is not drawn. However, the bar<br />

code/two-dimensional code printed on the previous label is cleared.<br />

The maximum cell width is 52 dots. (However, the number of digits of data should be<br />

limited so the two-dimensional code can be printed within the 2-inch head width.)<br />

(5) Rotational angle of two-dimensional code<br />

Point of origin<br />

0° 90° 180° 270°<br />

(6) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the symbol<br />

“=.” The maximum number of digits to be printed is 2000. (However, the number of digits<br />

of data should be limited so the two-dimensional code can be printed within the 2-inch<br />

head width.)<br />

(7) Error correction level<br />

The QR code contains functions to detect and correct an error. If one of the data<br />

characters is damaged, the information can be restored when this code is read.<br />

There are 4 levels that can be designated. The level should be specified according to<br />

usage. The general correction ability is as follows.<br />

Level<br />

Error correction ability<br />

Overhead by correcting<br />

an error<br />

High density level Low 7%<br />

Standard level 15%<br />

Reliability level 25%<br />

High reliability level High 30%<br />

5-84


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(8) Selection of mode<br />

All codes including alphanumerals, symbols, and Kanji can be used in one QR code.<br />

Manual mode or automatic mode can be selected to perform the operation. FFH data<br />

cannot be used in the automatic mode, but can be used in the manual mode.<br />

(9) Selection of model<br />

Model 1:<br />

Model 2:<br />

Original specification<br />

Extended specification which enhances the function of position correction<br />

and can contain a large amount of data.<br />

(10) Mask number<br />

To be sure the QR code is read, it is preferable that white and black modules are<br />

arranged in this symbol in a balanced manner. This prevents the bit pattern “1011101”,<br />

which is characteristically seen in the position detecting pattern, from appearing in the<br />

symbol as much as possible.<br />

The mask number is 0 to 7. The pattern is determined by placing each masking pattern<br />

for the mask number upon the module pattern. When the mask number is set to 8,<br />

masking is not performed. When the parameter is omitted, the most appropriate mask<br />

number is automatically selected to perform masking.<br />

(11) Connection setting<br />

For QR code, data can be divided into several codes. Even though there is only a narrow<br />

print space, the code can be entered in the space by dividing the code. The data can be<br />

divided into a max. of 16 codes. Parity data is obtained by XORing all input data in units<br />

of bytes before dividing. The input data is calculated based on shift JIS for Kanji, or on<br />

JIS 8 for others. Examples are shown below:<br />

“0123456789 ” is divided into “0123”, “4567”, and “89 ”.<br />

Code No. 1 No. of divided codes: 3 Parity data: 84 Data “0123”<br />

Code No. 2 No. of divided codes: 3 Parity data: 84 Data “4567”<br />

Code No. 3 No. of divided codes: 3 Parity data: 84 Data “89 ”<br />

* The parity data is the XORed value for “0123456789 ”.<br />

30 31 32 33 34 35 36 37 38 39 93 FA 96 7B = 85<br />

5-85


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) More than one two-dimensional Code Format Command can be connected when<br />

transmitted.<br />

[ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]<br />

B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]<br />

(2) When the drawing data is changed per label issue during printing, the field of the drawing<br />

data for the previous label is automatically cleared using the two-dimensional code number,<br />

then the next drawing data is printed. Therefore, the two-dimensional code number which<br />

differs according to the drawing fields should be designated.<br />

(3) Since the automatic field clear is not performed between the Clear Command ([ESC] C) and<br />

Issue Command ([ESC] XS), the fixed data may be drawn using the same two-dimensional<br />

code number. In this case, the Format Command and Data Command should be sent<br />

alternately. (After the Issue Command is sent, the fields with the same two-dimensional<br />

code number are automatically cleared until the Clear Command is sent.)<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Data Command ([ESC] RB)<br />

5-86


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

Origin (0, 0)<br />

12.5<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

Paper feed direction<br />

5.0 mm<br />

30.0 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]XB01;0050,0125,T,M,02,A,0[LF][NUL]<br />

[ESC]XB02;0300,0550,Q,08,03,05,3[LF][NUL]<br />

[ESC]RB01;QR Code[LF][NUL]<br />

[ESC]RB02;Data Matrix[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

5-87


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.6.11 TWO-DIMENSIONAL CODE FORMAT COMMAND (Maxicode) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d (, e) (, Jffgg) (, Zh) [LF] [NUL]<br />

Term aa: Two-dimensional code number<br />

00 to 31<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of the two-dimensional code<br />

4 or 5 digits (in 0.1 mm units)<br />

d: Type of two-dimensional code<br />

Z: Maxicode<br />

e: Mode selection (Omissible)<br />

Omitted: Mode 2<br />

0: Mode 2<br />

1: Mode 4<br />

2: Mode 2<br />

3: Mode 3<br />

4: Mode 4<br />

5: Mode 2<br />

6: Mode 6<br />

7: Mode 2<br />

8: Mode 2<br />

9: Mode 2<br />

Jffgg:<br />

Zh:<br />

Connection setting (Omissible. No connection if this parameter is omitted.)<br />

ff: Code number 01 to 08<br />

gg: No. of divided codes 01 to 08<br />

Attachment of Zipper block and Contrast block<br />

(Omissible. If omitted, they are not attached.)<br />

h= 0: No attachment of Zipper block and Contrast block<br />

1: Attachment of Zipper block and Contrast block<br />

2: Attachment of Zipper block<br />

3: Attachment of Contrast block<br />

5-88


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Two-dimensional code number<br />

When drawing by the Data Command ([ESC] RB), the format designated by the<br />

two-dimensional code number is selected.<br />

(2) Print origin of coordinates<br />

Backing paper<br />

Label<br />

Effective<br />

print<br />

length<br />

Print origin of<br />

coordinates<br />

Y<br />

Effective<br />

print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

X<br />

0<br />

Paper feed direction<br />

The print origin of coordinates must be set so that the two-dimensional<br />

code drawing result will be within the effective print area set by the Label<br />

Size Set Command ([ESC] D).<br />

(3) Type of two-dimensional code<br />

Z: Maxicode<br />

(4) Data string to be printed<br />

Drawing data can be programmed by designating the number of digits after the<br />

symbol “=.” The maximum number of digits to be printed is 93.<br />

(5) Connection setting<br />

For Maxicode, data can be divided into a max. of 8 codes.<br />

5-89


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) More than one two-dimensional Code Format Command can be connected when<br />

transmitted.<br />

[ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]<br />

B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]<br />

(2) When the drawing data is changed per label issue during printing, the field of the drawing<br />

data for the previous label is automatically cleared using the two-dimensional code number,<br />

then the next drawing data is printed. Therefore, the two-dimensional code number which<br />

differs according to the drawing fields should be designated.<br />

(3) Since the automatic field clear is not performed between the Clear Command ([ESC] C) and<br />

Issue Command ([ESC] XS), the fixed data may be drawn using the same two-dimensional<br />

code number. In this case, the Format Command and Data Command should be sent<br />

alternately. (After the Issue Command is sent, the fields with the same two-dimensional<br />

code number are automatically cleared until the Clear Command is sent.)<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Outline Font Format Command ([ESC] PV)<br />

Bar Code/Two-dimensional Code Data Command ([ESC] RB)<br />

5-90


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

Origin (0, 0)<br />

12.5<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

Paper feed direction<br />

5.0 mm<br />

30.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] XB01; 0050, 0125, P, 04, 02, 03, 0, 0010 [LF] [NUL]<br />

[ESC] XB02; 0300, 0550, Q, 08, 03, 05, 3 [LF] [NUL]<br />

[ESC] RB01; Maxicode [LF] [NUL]<br />

[ESC] RB02; Data Matrix [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-91


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.7 COMMANDS RELATED TO PRINT DATA<br />

5.7.1 BIT MAP FONT DATA COMMAND [ESC] RC<br />

Function<br />

Format<br />

Provides data for the bit map font row.<br />

[ESC] RCaaa; bbb ------ bbb [LF] [NUL]<br />

Term aaa: Character string number<br />

000 to 199 (Two digits, 00 to 99, also acceptable.)<br />

bbb ------ bbb: Data string to be printed<br />

Max. 100 digits<br />

Explanation (1) Data string to be printed<br />

Any excess data which exceeds the maximum number of digits is discarded.<br />

For character codes, refer to chapter 11 “CHARACTER CODE TABLE”.<br />

Refer to<br />

Bit Map Font Format Command ([ESC] PC)<br />

Examples<br />

(1)<br />

Origin (0, 0)<br />

Effective print area<br />

12.5 mm<br />

Sample<br />

55.0 mm<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] PC001; 0200, 0125, 1, 1, C, 00, B [LF] [NUL]<br />

[ESC] PC002; 0450, 0550, 2, 2, G, 33, B, +0000000001 [LF] [NUL]<br />

[ESC] RC001; Sample [LF] [NUL]<br />

[ESC] RC002; 001 [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-92


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2)<br />

Origin (0, 0)<br />

30.0<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

S 0 0 1<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] PC001; 0200, 0300, 1, 1, C, 00, B=S001 [LF] [NUL]<br />

[ESC] PV01; 0450, 0550, 0200, 0150, B, 33, B=001 [LF] [NUL]<br />

[ESC] XB01; 0200, 0550, 3, 1, 03, 03, 08, 08, 03, 0, 0150=S001 [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-93


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.7.2 OUTLINE FONT DATA COMMAND [ESC] RV<br />

Function<br />

Format<br />

Provides data for the outline font row.<br />

[ESC] RVaa; bbb ------ bbb [LF] [NUL]<br />

Term aa: Character string number<br />

00 to 99<br />

bbb ------ bbb: Data string to be printed<br />

Max. 100 digits<br />

Any excess data will be discarded.<br />

For the character codes, refer to chapter 11 “CHARACTER CODE<br />

TABLE”.<br />

Refer to<br />

Examples<br />

(1)<br />

Outline Font Format Command ([ESC] PV)<br />

Origin (0, 0)<br />

Effective print area<br />

12.5 mm<br />

Sample<br />

55.0 mm<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] PV01; 0200, 0125, 0100, 0100, B, 00, B [LF] [NUL]<br />

[ESC] PV02; 0450, 0550, 0200, 0150, B, 33, B, +0000000001 [LF] [NUL]<br />

[ESC] RV01; Sample [LF] [NUL]<br />

[ESC] RV02; 001 [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-94


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2)<br />

Origin (0, 0)<br />

30.0<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

S 0 0 1<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] PC001; 0200, 0300, 1, 1, C, 00, B=S001 [LF] [NUL]<br />

[ESC] PV01; 0450, 0550, 0200, 0150, B, 33, B=001 [LF] [NUL]<br />

[ESC] XB01; 0200, 0550, 3, 1, 02, 02, 06, 06, 02, 0, 0150=S001 [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-95


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.7.3 BAR CODE/TWO-DIMENSIONAL CODE DATA COMMAND (Any codes other than Maxicode) [ESC] RB<br />

Function<br />

Format<br />

Provides data for the bar code/two-dimensional code.<br />

[ESC] RBaa; bbb ------ bbb [LF] [NUL]<br />

Term aa: Bar code/two-dimensional code number<br />

00 to 31<br />

bbb ------ bbb: Data string to be printed<br />

The maximum number of digits varies according to the type of bar<br />

code/two-dimensional code.<br />

Explanation<br />

(1) Data check<br />

If there is data in the data row, which does not meet the type of bar code/twodimensional<br />

code, the bar code/two-dimensional code will not be drawn. If wrong<br />

code selection takes place in the data row of CODE128 (without auto code<br />

selection), the bar code will not be drawn.<br />

If there is data different from the one designated using the format ID when Data<br />

Matrix is used, the symbol is not drawn.<br />

(2) No. of digits of data<br />

When data exceeding the maximum number of digits is sent, the excess data will<br />

be discarded. For the maximum number of digits for each bar code/twodimensional<br />

code, see below.<br />

Data Matrix, PDF417, QR code:<br />

MicroPDF417:<br />

Customer bar code:<br />

Highest priority customer bar code:<br />

Bar codes other than the above<br />

2000 digits<br />

366 digits<br />

20 digits<br />

19 digits<br />

100 digits<br />

When the number of digits does not correspond to the bar code/two-dimensional<br />

code type, the bar code/two-dimensional code is not drawn.<br />

(3) The maximum number of digits for Data Matrix varies according to the settings for<br />

ECC type, format ID, and the cell size. In the case of Kanji, the maximum number<br />

of digits is half those of the values described below since a Kanji character<br />

occupies 2 bytes.<br />

Max number of digits for Data Matrix<br />

ECC000 ECC050 ECC080 ECC100 ECC140<br />

Format ID 1 500 457 402 300 144<br />

Format ID 2 452 333 293 218 105<br />

Format ID 3 394 291 256 190 91<br />

Format ID 4 413 305 268 200 96<br />

Format ID 5 310 228 201 150 72<br />

Format ID 6 271 200 176 131 63<br />

Numeric Alphanumeric 8 bit<br />

ECC200 2000 2000 1556<br />

5-96


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Cell Size and Effective Data Capacity<br />

Symbol size<br />

Row<br />

Col<br />

ECC000 ECC050 ECC080 ECC100 ECC140<br />

Numeric Alphanum<br />

capacity capacity<br />

8-bit Numeric Alphanum 8-bit Numeric Alphanum 8-bit Numeric Alphanum 8-bit Numeric Alphanum 8-bit<br />

byte capacity capacity byte capacity capacity byte capacity capacity byte capacity capacity byte<br />

capacity capacity capacity capacity capacity<br />

9 9 3 2 1 – – – – – – – – – – – –<br />

11 11 12 8 5 1 1 – – – – – – – – – –<br />

13 13 24 16 10 10 6 4 4 3 2 1 1 – – – –<br />

15 15 37 25 16 20 13 9 13 9 6 8 5 3 – – –<br />

17 17 53 35 23 32 21 14 24 16 10 16 11 7 2 1 1<br />

19 19 72 48 31 46 30 20 36 24 16 25 17 11 6 4 3<br />

21 21 92 61 40 61 41 27 50 33 22 36 24 15 12 8 5<br />

23 23 115 76 50 78 52 34 65 43 28 47 31 20 17 11 7<br />

25 25 140 93 61 97 65 42 82 54 36 60 40 26 24 16 10<br />

27 27 168 112 73 118 78 51 100 67 44 73 49 32 30 20 13<br />

29 29 197 131 86 140 93 61 120 80 52 88 59 38 38 25 16<br />

31 31 229 153 100 164 109 72 141 94 62 104 69 45 46 30 20<br />

33 33 264 176 115 190 126 83 164 109 72 121 81 53 54 36 24<br />

35 35 300 200 131 217 145 95 188 125 82 140 93 61 64 42 28<br />

37 37 339 226 148 246 164 108 214 143 94 159 106 69 73 49 32<br />

39 39 380 253 166 277 185 121 242 161 106 180 120 78 84 56 36<br />

41 41 424 282 185 310 206 135 270 180 118 201 134 88 94 63 41<br />

43 43 469 313 205 344 229 150 301 201 132 224 149 98 106 70 46<br />

45 45 500 345 226 380 253 166 333 222 146 248 165 108 118 78 51<br />

47 47 500 378 248 418 278 183 366 244 160 273 182 119 130 87 57<br />

49 49 500 413 271 457 305 200 402 268 176 300 200 131 144 96 63<br />

In case of ECC000, when the symbol size of the row and the column is respectively 9, the maximum number<br />

of digits for numeric is 3, that of alphanumeric is 2, and that of 8 bit is 1.<br />

5-97


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Symbol size<br />

Row<br />

Col<br />

ECC200<br />

Numeric Alphanum<br />

capacity capacity<br />

8-bit<br />

byte<br />

capacity<br />

10 10 6 3 1<br />

12 12 10 6 3<br />

14 14 16 10 6<br />

16 16 24 16 10<br />

18 18 36 25 16<br />

20 20 44 31 20<br />

22 22 60 43 28<br />

24 24 72 52 34<br />

26 26 88 64 42<br />

32 32 124 91 60<br />

36 36 172 127 84<br />

40 40 228 169 112<br />

44 44 288 214 142<br />

48 48 348 259 172<br />

52 52 408 304 202<br />

64 64 560 418 278<br />

72 72 736 550 366<br />

80 80 912 682 454<br />

88 88 1152 862 574<br />

96 96 1392 1042 694<br />

104 104 1632 1222 814<br />

120 120 2000 1573 1048<br />

132 132 2000 1954 1302<br />

144 144 2000 2000 1556<br />

Rectangular code<br />

ECC200<br />

Symbol size<br />

Row<br />

Col<br />

Numeric<br />

capacity Alphanum<br />

capacity<br />

8-bit<br />

byte<br />

capacity<br />

8 18 10 6 3<br />

8 32 20 13 8<br />

12 26 32 22 14<br />

12 36 44 31 20<br />

16 36 64 46 30<br />

16 48 98 72 47<br />

5-98


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(4) When PDF417 or MicroPDF417 is used, the number of symbol characters called<br />

code words is limited to 928 or less. Moreover, the data compression rate varies<br />

according to the contents of data. Therefore, the maximum number of digits<br />

according to modes is as follows.<br />

When letters and numerics are mixed in data in EXC mode, for example, the<br />

maximum values become smaller than the values below, since the internal mode<br />

selection code is used.<br />

To correct a reading error by designating the security level, the maximum value<br />

becomes smaller, since the error correction code words below are used.<br />

When the number of the code words exceeds 928, or when the number of rows<br />

exceeds 90, the symbols are not drawn.<br />

For the MicroPDF417, the numbers of rows and columns can be specified.<br />

The maximum number of digits varies according to the setting.<br />

In the case of PDF417<br />

• Extended Alphanumeric Compaction (EXC) mode:<br />

• Binary/ASCII Plus mode:<br />

• Numeric compaction mode:<br />

In the case of MicroPDF417<br />

• Binary mode:<br />

• Upper case letter/space mode:<br />

• Numeric compaction mode:<br />

1850 digits<br />

1108 digits<br />

2000 digits<br />

150 digits<br />

250 digits<br />

366 digits<br />

No. of Error Correction Code Words of PDF417<br />

For the MicroPDF417, the printer<br />

sets the security level automatically.<br />

Security level Error Correction Ability<br />

No. of error correction<br />

code words<br />

Level 0 0<br />

Level 1 Low<br />

2<br />

Level 2 6<br />

Level 3 14<br />

Level 4 30<br />

Level 5 62<br />

Level 6 126<br />

Level 7 High<br />

254<br />

Level 8 510<br />

5-99


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

The maximum number of columns and rows for the MicroPDF417<br />

Parameter<br />

(gg)<br />

No. of columns<br />

No. of rows<br />

Max. number of digits<br />

for binary mode<br />

Max. number of digits for<br />

upper case letter/space mode<br />

Max. number of digits<br />

for numeric mode<br />

00 – – 150 250 366<br />

01 1 – 22 38 55<br />

02 2 – 43 72 105<br />

03 3 – 97 162 237<br />

04 4 – 150 250 366<br />

05 11 3 6 8<br />

06 14 7 12 17<br />

07 1 17 10 18 26<br />

08 20 13 22 32<br />

09 24 18 30 44<br />

10 28 22 38 55<br />

11 8 8 14 20<br />

12 11 14 24 35<br />

13 14 21 36 52<br />

14 2 17 27 46 67<br />

15 20 33 56 82<br />

16 23 38 64 93<br />

17 26 43 72 105<br />

18 6 6 10 14<br />

19 8 10 18 26<br />

20 10 15 26 38<br />

21 12 20 34 49<br />

22 3 15 27 46 67<br />

23 20 39 66 96<br />

24 26 54 90 132<br />

25 32 68 114 167<br />

26 38 82 138 202<br />

27 44 97 162 237<br />

28 4 8 14 20<br />

29 6 13 22 32<br />

30 8 20 34 49<br />

31 10 27 46 67<br />

32 12 34 58 85<br />

33 4 15 45 76 111<br />

34 20 63 106 155<br />

35 26 85 142 208<br />

36 32 106 178 261<br />

37 38 128 214 313<br />

38 44 150 250 366<br />

* The maximum of 2000 digits of data string to be printed are acceptable. However, note the following limits:<br />

• The maximum of 2000-digit data string to be printed are acceptable. However, it cannot actually be<br />

printed, since it cannot be contained within the 2-inch head width.<br />

• If the print ratio of one line (the print head width) is high, printing may become poor, or the printer may be<br />

reset. Note the print ratio.<br />

5-100


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(5) CODE128 code selection<br />

In the case of CODE128 (with auto code selection), code selection is performed in<br />

the following manner. (Conforming to USS-128 APPENDIX-G)<br />

c Determining the start character<br />

(a) If the data begins with four or more consecutive numerals, the start code<br />

to be used is (CODE C).<br />

(b) In any case other than (a) in c, if a control character appears before a<br />

small letter (see f.) or four or more consecutive numerals, the start code<br />

is (CODE A).<br />

(c) In none of the above cases, the start code is (CODE B).<br />

d If the data begins with an odd number of digits in (a), c:<br />

(a) Insert the (CODE A) or (CODE B) character just before the last numeric<br />

data. When (FNC1), if found in the number, breaks a pair of digits in the<br />

number, insert the (CODE A) or (CODE B) character before the numeric<br />

data preceding the (FNC1). Selection of (CODE A) or (CODE B) should<br />

conform to (b) and (c) in c.<br />

e If four or more digits of numeric data continue in (CODE A) or (CODE B).<br />

(a) When the numeric data is an even number of digits, insert the (CODE C)<br />

character just before the first numeric data.<br />

(b) When the numeric data is an odd number of digits, insert the (CODE C)<br />

character immediately after the first numeric data.<br />

f If a control character appears in (CODE B):<br />

(a) In the subsequent data, when a small letter appears before the next<br />

control character or four or more consecutive digits, insert the (SHIFT)<br />

character before the first control character.<br />

(b) When not so, insert the (CODE B) character just before the first control<br />

character.<br />

g If a small letter appears in (CODE A):<br />

(a) In the subsequent data, when a control character appears before the next<br />

small letter or four or more consecutive digits, insert the (SHIFT)<br />

character before the first small letter.<br />

(b) When not so, insert the (CODE B) character just before the first small<br />

letter.<br />

h If any data other than the numerals appears in (CODE C):<br />

(a) Insert the (CODE A) or (CODE B) character just before the data other<br />

than the numerals. Selection of (CODE A) or (CODE B) should conform<br />

to (b) and (c) in c.<br />

5-101


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(6) CODE128 code selection check<br />

Check if selection of (CODE A), (CODE B), or (CODE C) of CODE128 has been<br />

set correctly. If an error is found, the bar code will not be drawn.<br />

[Conditions causing an error]<br />

c No start code is designated.<br />

d A small letter (including { , | , } , ~, _ ) is found in (CODE A).<br />

e A control character is found in (CODE B).<br />

f Any data other than the numerals, (FNC1), (CODE A), and (CODE B) is found<br />

in (CODE C).<br />

g There are two or more consecutive (SHIFT) characters.<br />

h The number in (CODE C) is an odd number of digits.<br />

i (SHIFT) is followed by (CODE A), (CODE B) or (CODE C).<br />

(7) Kanji code selection<br />

• In the case of Data Matrix, PDF417, and QR code, Kanji codes can be printed.<br />

Shift JIS and JIS 8 codes can be mixed.<br />

(8) When manual mode is selected in the Format Command for a QR code<br />

c Numeric mode, alphanumeric and symbol mode, Kanji mode<br />

Mode selection<br />

Data to be printed<br />

d Binary mode<br />

Mode selection<br />

No. of data strings<br />

(4 digits)<br />

Data to be printed<br />

e Mixed mode<br />

Data “,” (comma) Data “,” (comma) Data<br />

The QR code can handle all codes including alphanumerics, symbols, and Kanji.<br />

Since data compression rate varies according to codes, the code to be used is<br />

designated when the mode is selected.<br />

Mode Code Details<br />

N Numerals 0 to 9<br />

A Alphanumerics, symbols A to Z 0 to 9 space<br />

$ % * + - . / :<br />

B Binary (8-bit) 00H to FFH<br />

K Kanji Shift JIS, JIS hexadecimal<br />

If mixed mode is selected, up to 200 modes can be selected in a QR code.<br />

5-102


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(9) When the automatic mode is selected in the Format Command for a QR code.<br />

Data to be printed<br />

c How to send the control code data<br />

NUL (00H) = > @ (3EH, 40H)<br />

SOH (01H) = > A (3EH, 41H)<br />

STX (02H) = > B (3EH, 42H)<br />

GS (1DH) = > ] (3EH, 5DH)<br />

RS (1EH) = > ^ (3EH, 5EH)<br />

US (1FH) = > _ (3EH, 5FH)<br />

d How to send the special codes<br />

> (3EH) = > 0 (3EH, 30H)<br />

5-103


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(10) Transfer code for QR code<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 NUL DLE SP 0 @ P ` p<br />

1 SOH DC1 ! 1 A Q a q<br />

2 STX DC2 ” 2 B R b r<br />

3 ETX DC3 # 3 C S c s<br />

4 EOT DC4 $ 4 D T d t<br />

5 ENQ NAK % 5 E U e u<br />

6 ACK SYN & 6 F V f v<br />

7 BEL ETB ’ 7 G W g w<br />

8 BS CAN ( 8 H X h x<br />

9 HT EM ) 9 I Y i y<br />

A LF SUB * : J Z j z<br />

B VT ESC + ; K [ k {<br />

C FF FS , < L \ l |<br />

D CR GS - = M ] m }<br />

E SO RS • > N ^ n ~<br />

F SI US / ? O _ o DEL<br />

* The shaded parts are Japanese.<br />

They are omitted here.<br />

FFH data cannot be used in the automatic mode, but can be used in the manual mode.<br />

(11) Examples of data designation for QR code<br />

c Alphanumeric mode: ABC123<br />

A A B C 1 2 3<br />

Data to be printed<br />

Designation of mode<br />

d Binary mode: 01H, 03H, 05H<br />

B 0 0 0 6 > A > C > E<br />

Data to be printed<br />

No. of data strings<br />

Designation of mode<br />

e Mixed mode<br />

Numeric mode : 123456<br />

Kanji mode : Kanji data<br />

Binary mode : a i u e o<br />

Alphanumeric mode : ABC<br />

N 1 2 3 4 5 6, K Kanji data, B 0 0 1 0 a i u e o , A A B C<br />

Data to be Data to be No. of Data to be printed Data to be<br />

printed<br />

printed data strings<br />

printed<br />

Designation of mode<br />

f Automatic mode<br />

When the data above (e) is designated in automatic mode:<br />

1 2 3 4 5 6 Kanji data a i u e o A B C<br />

Data to be printed<br />

5-104


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples<br />

(1)<br />

Origin (0, 0)<br />

Effective print area<br />

12.5 mm<br />

15.0 mm<br />

55.0 mm<br />

Paper feed direction<br />

20.0 mm<br />

30.0 mm<br />

15.0 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]XB01;0100,0125,3,1,02,02,06,06,02,0,0150[LF][NUL]<br />

[ESC]XB02;0300,0550,3,1,02,04,07,08,04,3,0150,+0000000000,1,00,N[LF][NUL]<br />

[ESC]RB01;12345[LF][NUL]<br />

[ESC]RB02;*ABC*[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

5-105


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2)<br />

Origin (0, 0)<br />

55.0<br />

mm<br />

30.0<br />

mm<br />

S 0 0 1<br />

Effective print area<br />

Paper feed direction<br />

20.0 mm<br />

45.0 mm<br />

[ESC] C [LF] [NUL]<br />

[ESC] PC001; 0200, 0300, 1, 1, C, 00, B=S001 [LF] [NUL]<br />

[ESC] PV01; 0450, 0550, 0200, 0150, B, 33, B=001 [LF] [NUL]<br />

[ESC] XB01; 0200, 0550, 3, 1, 02, 02, 06, 06, 02, 0, 0150=S001 [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-106


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(3)<br />

Origin (0, 0)<br />

12.5<br />

mm<br />

Effective print area<br />

55.0<br />

mm<br />

Paper feed direction<br />

20.0 mm<br />

30.0 mm<br />

[ESC]C[LF][NUL]<br />

[ESC]XB01;0100,0125,P,04,02,03,0,0010[LF][NUL]<br />

[ESC]XB02;0300,0550,Q,08,03,05,3[LF][NUL]<br />

[ESC]RB01;PDF417[LF][NUL]<br />

[ESC]RB02;Data Matrix[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

5-107


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.7.4 TWO-DIMENSIONAL CODE DATA COMMAND (Maxicode) [ESC] RB<br />

Function<br />

Provides data for the two-dimensional code.<br />

Format For mode 2 or 3:<br />

[ESC] RBaa; bbbbbbbbbcccdddeeeee --- eeeee [LF] [NUL]<br />

For mode 4 or 6:<br />

[ESC] RBaa; fffffffffggggg --- ggggg [LF] [NUL]<br />

Term aa: Two-dimensional code number<br />

bbbbbbbbb: Postal code Fixed as 9 digits<br />

• Mode 2:<br />

b1b2b3b4b5: Zip code Fixed as 5 digits (Numerics)<br />

b6b7b8b9: Zip code extension Fixed as 4 digits (Numerics)<br />

• Mode 3:<br />

b1b2b3b4b5b6: Zip code Fixed as 6 digits (Character “A” of code set)<br />

b7b8b9: Vacant Fixed as 3 digits (20H)<br />

ccc: Class of service Fixed as 3 digits (Numerics)<br />

ddd: Country code Fixed as 3 digits (Numerics)<br />

eee --- eee: Message data strings 84 digits<br />

fffffffff: Primary message data strings 9 digits<br />

ggg --- ggg: Secondary message data strings 84 digits<br />

Explanation<br />

(1) When any value other than numerics is included in the data string of zip code<br />

(mode 2), zip code extension, class of service, or country code, a Maxicode is not<br />

drawn.<br />

(2) If the message data is less than 84 digits when mode 2 or 3 is selected, the printer<br />

adds a CR (000000) at the end of the data, and the remaining digits will be padded<br />

with FSs (011100). When message data exceeding 84 digits is received, the<br />

excess data will be discarded before drawing a Maxicode.<br />

(3) If the message data is less than 93 digits (9 digits + 84 digits) when mode 4 or 6 is<br />

selected, the printer adds a CR (000000) at the end of the data, and the remaining<br />

digits will be padded with FSs (011100). When message data exceeding 93 digits<br />

is received, the excess data will be discarded before drawing a Maxicode.<br />

(4) Mode 6 should not be used for usual operation since it is used for scanner<br />

programming.<br />

(5) No. of digits of data<br />

The data exceeding the maximum number of digits, the excess data will be<br />

discarded.<br />

The maximum number of digits varies according to the mode. In mode 2 or 3 and<br />

mode 4 or 6, the maximum number of digits is 84 and 93, respectively.<br />

5-108


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.8 COMMANDS RELATED TO ISSUE AND FEED<br />

5.8.1 ISSUE COMMAND [ESC] XS<br />

Function<br />

Format<br />

Issues labels according to the print conditions programmed.<br />

[ESC] XS; I, aaaa, bbbcdefgh [LF] [NUL]<br />

Term aaaa: Number of labels to be issued<br />

0001 to 9999<br />

bbb:<br />

Reserved area<br />

000 to 100<br />

c: Type of sensor<br />

0: No sensor<br />

1: Reflective sensor<br />

2: Transmissive sensor (when using normal labels)<br />

3: Reserved (If specified, it is processed as “2”.)<br />

4: Reserved (If specified, it is processed as “1”.)<br />

d: Reserved area<br />

C, D, E<br />

e: Reserved area<br />

1 to 9, A<br />

f: Reserved area<br />

0 to 2<br />

g: Reserved area<br />

Fixed as 1<br />

h: Type of status response<br />

0: No status response<br />

1: Status response<br />

Explanation (1) Number of labels to be issued<br />

c If increment/decrement is not specified, the designated number of pieces with<br />

the same drawing data will be issued.<br />

d If increment/decrement is specified, the designated number of pieces will be<br />

issued while incrementing/decrementing the piece of the designated drawing<br />

area.<br />

e In strip mode, one label is forcefully printed, regardless of the specified<br />

number of labels to be issued.<br />

* The increment/decrement designation is valid until the Image Buffer Clear<br />

Command ([ESC] C) is transmitted.<br />

5-109


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(2) Type of sensor<br />

c No sensor: Printing takes place according to the parameter designated by the<br />

Label Size Set Command.<br />

d Reflective sensor:<br />

Printing takes place according to the parameter designated by the Label Size<br />

Set Command. However, the black mark provided on the back side of the tag<br />

paper is automatically sensed by the reflective sensor and the paper position is<br />

finely adjusted for every piece.<br />

e Transmissive sensor (when using normal labels):<br />

Printing takes place according to the parameter designated by the Label Size<br />

Set Command. However, the label-to-label gap is automatically sensed by the<br />

transmissive sensor and the paper position is finely adjusted for every piece.<br />

(3) Issue mode<br />

[C: Batch mode (Issue count: 3)]<br />

• “Automatic forward feed standby” is set to OFF in the system mode.<br />

Head position<br />

(1) Idling (at the home position)<br />

A<br />

(2) Prints the 1st label (A).<br />

A<br />

B<br />

(3) Prints the 2nd label (B).<br />

A B C<br />

(4) Prints the 3rd label (C).<br />

(4) Status response<br />

When the option with status response has been selected, a status response is<br />

made at the end of printing or if an error occurs.<br />

In the batch mode, the print end status response is made after printing on the<br />

designated number of labels.<br />

In the strip mode, the status response is made after printing one label.<br />

* Do not change the parameter for status response/no status response during<br />

printing. Otherwise the status response may not be performed properly.<br />

(5) Reserved area (Omissible)<br />

The reserved parameters are not checked.<br />

5-110


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) The settings for the type of sensor and the status response are protected in<br />

memory (even if the power is turned off).<br />

(2) When the sensor is specified, even if a gap or a black mark is detected within less<br />

than 90% of the effective print length specified by the Label Size Set Command, it<br />

is ignored.<br />

However, this is not applicable when the programmed media pitch is less than<br />

40mm. When this media is used and a gap or a black mark is detected within less<br />

than 90% of the effective print length, the detected gap or black mark will be<br />

effective. As a result, printing will stop even if it is halfway.<br />

(3) The printer supports the two issue modes: batch mode and strip mode. In the<br />

batch mode, the printer starts printing after performing a back feed regardless of<br />

the selected sensor type. In the strip mode, a back feed is not performed.<br />

* With the firmware V1.3 or greater, a back feed is not performed even in batch<br />

issue mode if there is no print data to be printed within 2.1 mm from the top of the<br />

print area.<br />

Paper feed direction<br />

2.1mm<br />

When there is no print data to be<br />

printed in this area, the printer starts<br />

printing without performing a back<br />

feed.<br />

Examples<br />

73.2<br />

mm<br />

41.0<br />

mm<br />

S a m p l e<br />

76.2<br />

mm<br />

• Issue count: 4 pieces<br />

• Paper: Tag paper (Reflective<br />

sensor used)<br />

• Status response: On<br />

15.0 mm<br />

48.0 mm<br />

[ESC] D0762, 0480, 0732 [LF] [NUL]<br />

[ESC] T11C30 [LF] [NUL]<br />

[ESC] C [LF] [NUL]<br />

[ESC] PC001; 0150, 0410, 1, 1, A, 00, B [LF] [NUL]<br />

[ESC] RC001; Sample [LF] [NUL]<br />

[ESC] XS; I, 0004, 0011C8001 [LF] [NUL]<br />

5-111<br />

Paper feed direction


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.8.2 FEED COMMAND [ESC] T<br />

Function<br />

Format<br />

Feeds the paper.<br />

[ESC] Tabcde [LF] [NUL]<br />

Term a: Type of sensor<br />

0: No sensor<br />

1: Reflective sensor<br />

2: Transmissive sensor (when using normal labels)<br />

3: Reserved (If specified, it is processed as “2”.)<br />

4: Reserved (If specified, it is processed as “1”.)<br />

b: Reserved area<br />

0 to 1<br />

c: Reserved area<br />

C, D, E<br />

d: Reserved area<br />

1 to 9, A<br />

e: Reserved area<br />

0 to 2<br />

Explanation<br />

(1) Type of sensor<br />

c No sensor:<br />

Feeding takes place according to the parameter designated by the Label Size<br />

Set Command.<br />

d Reflective sensor:<br />

Feeding takes place according to the parameter designated by the Label Size<br />

Set Command. However, the black mark provided on the back side of the tag<br />

paper is automatically sensed by the reflective sensor and the stop position is<br />

finely adjusted.<br />

e Transmissive sensor (when using normal labels):<br />

Feeding takes place according to the parameter designated by the Label Size<br />

Set Command. However, the label-to-label gap is automatically sensed by the<br />

transmissive sensor and the stop position is finely adjusted.<br />

(2) Feed mode<br />

Head position<br />

(1) Place paper.<br />

(2) Completes a feed.<br />

(Completes feeding to the top of paper and stops.)<br />

(3) Reserved area (Omissible)<br />

The reserved parameters are not checked.<br />

5-112


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes (1) If a change of label size or type of sensor, or the position fine adjustment is made,<br />

one label must be fed to align the paper with the first print position prior to printing.<br />

Examples<br />

(2) The setting for the “type of sensor” is protected in memory (even if the power is<br />

turned off).<br />

(3) When “status response” is specified by the Issue Command, a status response is<br />

made after the end of feed or when an error occurs.<br />

73.2<br />

mm<br />

41.0<br />

mm<br />

S a m p l e<br />

76.2 mm<br />

Paper feed direction<br />

15.0 mm<br />

48.0 mm<br />

[ESC] D0762, 0480, 0732 [LF] [NUL]<br />

[ESC] AX; +010, +000, +10 [LF] [NUL]<br />

[ESC] T11C30 [LF] [NUL]<br />

[ESC] C [LF] [NUL]<br />

[ESC] PC001; 0150, 0410, 1, 1, A, 00, B [LF] [NUL]<br />

[ESC] RC001; Sample [LF] [NUL]<br />

[ESC] XS; I, 0004, 0011C3001 [LF] [NUL]<br />

5-113


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.9 COMMANDS RELATED TO FORMAT<br />

5.9.1 FLASH MEMORY FORMAT COMMAND [ESC] J1<br />

Function<br />

Format<br />

Formats (initializes) the flash memory for storage.<br />

[ESC] J1; a (, b) [LF] [NUL]<br />

Term a: Formatting (initializing) range<br />

A: All area of flash memory<br />

B: PC save area of flash memory<br />

C: Writable character storage area of flash memory<br />

b: Reserved area (Omissible)<br />

0 to 2<br />

Explanation<br />

(1) The storage area of flash memory can be roughly divided into the PC save area<br />

and the writable character storage area. They can be formatted (initialized) either<br />

separately or at the same time.<br />

(2) When using flash memory for the first time, the area to be used must be formatted<br />

(initialized) before the PC interface command is saved or writable characters are<br />

stored.<br />

(3) After flash memory is formatted, the remaining memory is the PC save area (192<br />

Kbytes) and the writable character storage area (64 Kbytes).<br />

(4) When the already stored data (PC interface commands or writable characters) is<br />

stored again, memory is consumed with every storing unless the Flash Memory<br />

Format Command ([ESC] J1) is transmitted.<br />

(5) When the label issue operation is performed after the Flash Memory Format<br />

Command is sent, the image buffer is automatically cleared.<br />

(6) Reserved area (Omissible)<br />

The reserved parameters are not checked.<br />

Notes<br />

(1) The storage area is automatically optimized.<br />

(2) The writable character storage area is shared between the TPCL-LE mode and the<br />

LABEL mode. Therefore, if flash memory is initialized, writable characters stored in<br />

the LABEL mode are also erased.<br />

Refer to<br />

Example<br />

• Bit Map Writable Character Command ([ESC] XD)<br />

• Save Start Command ([ESC] XO)<br />

• Save Terminate Command ([ESC] XP)<br />

[ESC] J1; A, 1 [LF] [NUL]<br />

5-114


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.10 COMMANDS RELATED TO WRITABLE CHARACTERS<br />

5.10.1 BIT MAP WRITABLE CHARACTER COMMAND [ESC] XD<br />

Function<br />

Format<br />

Stores writable characters and logos into flash memory.<br />

[ESC] XD; (Sj, ) aa, b, ccc, ddd, eee, fff, ggg, h, iii ------ iii [LF] [NUL]<br />

Term Sj: Reserved area (Omissible)<br />

j: 0 to 2<br />

aa:<br />

Writable character set<br />

01<br />

41 16 × 16 dots<br />

42 24 × 24 dots<br />

b: Writable character code<br />

20H to FFH (Set in hex.)<br />

40H to 7EH, 80H to FCH (When the writable character set is 41 or 42)<br />

ccc:<br />

ddd:<br />

eee:<br />

fff:<br />

ggg:<br />

Left offset<br />

000 to 719 (in dots)<br />

Top offset<br />

000 to 719 (in dots)<br />

Character width<br />

001 to 720 (in dots)<br />

Character height<br />

001 to 720 (in dots)<br />

Horizontal spacing/proportional spacing<br />

000 to 999 (in dots)<br />

h: Type of writable character data<br />

0: Nibble mode (4 bits/byte)<br />

1: Hex. mode (8 bits/byte)<br />

iii --- iii:<br />

Writable character data to be stored<br />

* If each parameter for left offset, top offset, character width, character height, and<br />

horizontal spacing/proportional spacing is fixed as “000”, the setting is ignored when<br />

the writable character set is 41 or 42.<br />

5-115


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) Type of writable character<br />

The maximum number of characters varies depending on the writable character<br />

size and number of characters because of the limited memory capacity. For<br />

writable character sets 41 or 42, each writable character size is fixed.<br />

(2) Character code<br />

Up to 224 characters can be stored per character set. The maximum number of<br />

characters are 1 set × 224 characters = 224 characters. It varies depending on<br />

the writable character size and the number of characters because of the limited<br />

memory capacity. For character sets 41 and 42, a character code consisting of 1<br />

byte is stored. However, when the character code is called up, F0H is added to<br />

the upper digit of it, and consists of 2 bytes. In this case, up to 188 characters can<br />

be stored per character set.<br />

(3) Reserved area<br />

Even if any value is set regardless of the value range, it is accepted.<br />

(4) Each parameter<br />

Top<br />

offset<br />

Char.<br />

height<br />

Base line<br />

Reference<br />

point<br />

Reference point<br />

of next char.<br />

Left<br />

offset<br />

Char. width<br />

Horizontal spacing/proportional spacing<br />

5-116


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(5) Writable character set: 01<br />

Char. width 26 dots<br />

Nibble mode<br />

1 30H 2 30H 3 30H 4 3FH 5 3CH 6 30H 7 30H 8 30H<br />

Char.<br />

height<br />

31 dots<br />

9 3FH 10 3CH 11 37H •<br />

•<br />

•<br />

•<br />

•<br />

•<br />

• 240 30H<br />

241 3FH 242 3FH 243 3FH 244 3CH 245 30H 246 30H 247 30H 248 30H<br />

Hex. mode<br />

1 00H 2 0FH 3 C0H 4 00H<br />

4 4 4 4 4 4 4 4<br />

8<br />

8 8 8<br />

5 FCH 6 7FH<br />

•<br />

•<br />

•<br />

•<br />

•<br />

•<br />

•<br />

• 120 00H<br />

121 FFH 122 FCH 123 00H 124 00H<br />

[Nibble mode]<br />

(1) The writable character data to be stored is separated into four dot units and sent in the<br />

following order (1 → 248). (High order digit: “3”)<br />

(2) The data of writable characters to be stored is 30H to 3FH.<br />

(3) The minimum unit of character width is 8 dots. Dots with no data are transmitted as<br />

data 0.<br />

(4) The number of bytes of the writable character to be stored must be as follows:<br />

The number of bytes of the writable character to be stored =<br />

{(No. of char. width dots + 7)/8} × No. of char. height dots × 2<br />

* The value in the brackets is rounded down to the nearest whole number.<br />

[Hex. mode]<br />

(1) The writable character data to be stored is separated into eight dot units and sent in<br />

the following order (1 → 124).<br />

(2) The data of writable characters to be stored is 00H to FFH.<br />

(3) The minimum unit of character width is 8 dots. Dots with no data are transmitted as<br />

data 0.<br />

(4) The number of bytes of the writable character to be stored must be as follows:<br />

The number of bytes of the writable character to be stored =<br />

{(No. of char. width dots + 7)/8} × No. of char. height dots<br />

* The value in the brackets is rounded down to the nearest whole number.<br />

5-117


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(6) Writable character set: 41 (16×16 dots )<br />

Character width 16 dots<br />

Nibble mode<br />

1 30H 2 30H 3 30H 4 30H<br />

Character<br />

height<br />

16 dots<br />

5 30H 6 31H 7 38H<br />

•<br />

•<br />

•<br />

58 31H 59 38H 60 30H<br />

61 30H 62 30H 63 30H 64 30H<br />

4<br />

4<br />

4<br />

4<br />

Hex. mode<br />

8<br />

8<br />

1 00H 2 00H 3 01H 4 80H<br />

5 01H 6 80H 7 01H<br />

•<br />

•<br />

•<br />

26 80H 27 01H 28 80H<br />

29 01H 30 80H 31 00H 32 00H<br />

[Nibble mode]<br />

(1) The writable character data to be stored is separated into four dot units and sent in the<br />

following order (1 → 64). (High order digit: “3”)<br />

(2) The data of writable characters to be stored is 30H to 3FH.<br />

(3) The number of bytes of the writable character to be stored should be 64 bytes.<br />

[Hex. mode]<br />

(1) The writable character data to be stored is separated into eight dot units and sent in<br />

the following order (1 → 32).<br />

(2) The data of writable characters to be stored is 00H to FFH.<br />

(3) The number of bytes of the writable character to be stored should be 32 bytes.<br />

* When writable character 41 is designated, the width and height of the character are both 16<br />

dots.<br />

5-118


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

(7) Writable character set: 42 (24×24 dots )<br />

Character width 24 dots<br />

Nibble mode<br />

1 30H 2 30H 3 30H 4 30H 5 30H 6 30H<br />

Character<br />

height<br />

24 dots<br />

7 30H 8 30H 9 33H<br />

•<br />

•<br />

•<br />

•<br />

• 137 30H 138 30H<br />

139 30H 140 30H 141 30H 142 30H 143 30H 144 30H<br />

Hex. mode<br />

4<br />

4<br />

4<br />

4<br />

4<br />

4<br />

1 00H 2 00H 3 00H<br />

4 00H 5 3CH 6 00H<br />

8<br />

8<br />

8<br />

•<br />

•<br />

•<br />

•<br />

67 00H 68 3CH 69 00H<br />

70 00H 71 00H 72 00H<br />

[Nibble mode]<br />

(1) The writable character data to be stored is separated into four dot units and sent in the<br />

following order (1 → 144). (High order digit: “3”)<br />

(2) The data of writable the writable character to be stored should be 144 bytes.<br />

[Hex. mode]<br />

(1) The writable character data to be stored is separated into eight dot units and sent in<br />

the following order (1 → 72).<br />

(2) The data of writable characters to be stored is 00H to FFH.<br />

(3) The number of bytes of the writable character to be stored should be 72 bytes.<br />

* When writable character 42 is designated, the width and height of the character are both<br />

24 dots.<br />

(8) No matter what character set or character code is selected, no memory will be wasted.<br />

(9) A character code already stored can be stored in flash memory again, if the Bit Map Writable<br />

Character Store Command ([ESC] XD) is transmitted. However, memory will be consumed<br />

with every storage. Memory can be efficiently used by sending the Flash Memory Format<br />

Command ([ESC] J1) before storing.<br />

5-119


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) With the same writable character set designated, character width and character height can be<br />

designated for each writable character code. In other words, character size can be changed<br />

for each character, thus saving memory.<br />

(2) Proportional spacing and descending characters are possible by the parameters of horizontal<br />

spacing/proportional spacing, left offset, and top offset.<br />

(3) When top offset is 000, the reference coordinates are at the above left when drawing because<br />

the base line is at the top. (Coordinate setting is facilitated for logos.)<br />

(4) The resolution of the width and height is 8 dots/mm respectively. Writable character 01can be<br />

printed in a size of up to 48 mm x 90 mm. (This is because the effective print width is 384 dots<br />

though the character width is settable up to 720 dots.)<br />

Refer to Flash Memory Format Command ([ESC] J1)<br />

5-120


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Examples Writable character set: 01<br />

Writable character code: 70H<br />

Top<br />

offset<br />

22 dots<br />

Char.<br />

height<br />

31 dots<br />

Base line<br />

Reference<br />

point<br />

Reference<br />

point of next<br />

char.<br />

Left offset<br />

2 dots<br />

Char. width 26 dots<br />

Horizontal spacing/proportional spacing<br />

30 dots<br />

[ESC] J1; C [LF] [NUL]<br />

[ESC] XD; 03, p, 002, 022, 026, 031, 030, 0, 000?


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.11 COMMANDS RELATED TO GRAPHICS<br />

5.11.1 GRAPHIC COMMAND [ESC] SG<br />

Function<br />

Format<br />

Term<br />

Draws graphic data.<br />

[ESC] SG; aaaa(D), bbbb(D), cccc, dddd, e, fff --- fff [LF] [NUL]<br />

aaaa(D): Print origin of X-coordinate for drawing graphic data<br />

Fixed as 4 digits (in 0.1 mm units)<br />

* If “D” is attached after a 4-digit value, the coordinate is specified in dots.<br />

0000D ~<br />

bbbb(D): Print origin of Y-coordinate for drawing graphic data<br />

4 or 5 digits (in 0.1 mm units)<br />

* If “D” is attached after a 4- or 5-digit value, the coordinate is specified in<br />

dots.<br />

0000D ~<br />

cccc:<br />

dddd:<br />

No. of graphic width dots<br />

Fixed as 4 digits (in dots)<br />

However, when the graphic data “2: BMP file” or “6: PCX file” is selected, this<br />

designation is ignored. (The information of the graphic width is contained in<br />

the graphic data.)<br />

No. of graphic height dots<br />

4 or 5 digits (in dots)<br />

However, when the graphic data “2: BMP file” or “6: PCX file” is selected, this<br />

designation is ignored. (The information of the graphic width is contained in<br />

the graphic data.)<br />

When “3: TOPIX compression mode” is selected for the type of graphic data:<br />

Resolution of graphic data: *only two types<br />

0150: 150 DPI (The data is drawn in double resolution.)<br />

0300: 300 DPI (The data is drawn in single resolution.)<br />

e: Type of graphic data<br />

0: Nibble mode (4 dots/byte) Overwrite drawing<br />

1: Hex. mode (8 dots/byte) Overwrite drawing<br />

2: BMP file mode Overwrite drawing<br />

3: TOPIX compression mode Overwrite drawing<br />

4: Nibble mode (4 dots/byte) OR drawing<br />

5: Hex. mode (8 dots/byte) OR drawing<br />

6: PCX file mode Overwrite drawing<br />

7: TOPIX compression mode XOR drawing<br />

fff --- fff: Graphic data<br />

5-122


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Explanation (1) When the graphic data “0”, “1”, “2”, “3”, or “6” is selected, the graphic data is drawn<br />

by overwriting the image buffer.<br />

(2) When the graphic data “4” or “5” is selected, the graphic data is drawn by carrying<br />

out OR between the graphic data and the data in the image buffer.<br />

(3) When the graphic data “7” is selected, the graphic data is drawn by carrying out<br />

OR between the graphic data and the data in the image buffer.<br />

Backing paper<br />

Label<br />

Effective<br />

print length<br />

Graphic<br />

height dots<br />

Print origin of<br />

coordinates<br />

Graphic width<br />

dots<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Y<br />

Effective<br />

print width<br />

Paper feed direction<br />

X<br />

0<br />

5-123


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Print origin of<br />

coordinates<br />

Graphic<br />

height<br />

22 dots<br />

Graphic width 19 dots<br />

Nibble mode<br />

1 30H 2 30H 3 33H 4 30H 5 30H 6 30H<br />

7 30H 8 30H •<br />

•<br />

•<br />

•<br />

•<br />

•<br />

•<br />

• 126 30H<br />

127 33H 128 3FH 129 30H 130 30H 131 30H 132 30H<br />

4 4 4 4 4 4<br />

8 8<br />

8<br />

Hex. mode<br />

1 00H 2 30H 3 00H<br />

4 00H 5 38H<br />

•<br />

•<br />

•<br />

•<br />

•<br />

63 00H<br />

64 3FH 65 00H 66 00H<br />

[Nibble mode]<br />

(1) The graphic data is separated into four dot units and sent in the following<br />

order (1 → 132). (High order digit: “3”)<br />

(2) The graphic data is 30H to 3FH.<br />

(3) The minimum unit of graphic width is 8 dots. Dots with no data are<br />

transmitted as data 0.<br />

(4) The number of bytes of the graphic to be transmitted must be as follows:<br />

The number of bytes of the graphic to be transmitted = {(No. of graphic<br />

width dots + 7)/8} × No. of graphic height dots × 2<br />

* The value in the brackets is rounded down to the nearest whole number.<br />

[Hex. mode]<br />

(1) The graphic data is separated into eight dot units and sent in the following<br />

order (1 → 66).<br />

(2) The graphic data is 00H to FFH.<br />

(3) The minimum unit of graphic width is 8 dots. Dots with no data are<br />

transmitted as data 0.<br />

(4) The number of bytes of the graphic to be transmitted must be as follows:<br />

The number of bytes of the graphic to be transmitted = {(No. of graphic<br />

width dots + 7)/8} × No. of graphic height dots<br />

* The value in the brackets is rounded down to the nearest whole number.<br />

5-124


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

[When TOPIX compression mode is selected]<br />

First line<br />

Range for length<br />

Second line<br />

Graphic data<br />

Length<br />

L1<br />

L1<br />

L2<br />

L3<br />

(1) Length: Total number of bytes of the graphic data (0001H ~ )<br />

Ex. Length = 20 bytes: 0 0 1 4<br />

(2) L1 parameter: Shows in which large block (512 dots/block) the changed data is contained.<br />

7<br />

6<br />

5<br />

4 3 2 1 0<br />

L1<br />

0: Not present<br />

1: Present<br />

512 dots<br />

512 dots<br />

512 dots<br />

(3) L2 parameter: Shows in which medium block (64 dots/block) the changed data is contained<br />

(of the L1 large block).<br />

7<br />

6<br />

5<br />

4 3 2 1 0<br />

L2<br />

0: Not present<br />

1: Present<br />

64 dots<br />

64 dots<br />

64 dots<br />

(4) L3 parameter: Shows in which small block (8 dots/block) the changed data is contained (of<br />

the L2 medium block).<br />

7<br />

6<br />

5<br />

4 3 2 1 0<br />

L3<br />

0: Not present<br />

1: Present<br />

8 dots<br />

8 dots<br />

8 dots<br />

Exclusive-OR is carried out between the current image data and the<br />

image data one line previous. Only the changed bit is set to ON (1). The<br />

alignment of dots is MSB (left dots) and LSB (right dots).<br />

* The graphic width for only the smaller value of either the designated value or the max. buffer<br />

size (512 KB) is drawn. The minimum unit of the data drawing is 8 dots (1 byte). If the graphic<br />

width is set to 3 dots, it will be reset to 8 dots (1 byte).<br />

5-125


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

Notes (1) The print origin of coordinates must be set so that the result of drawing the graphic<br />

data will be within the effective print area set by the Label Size Set Command<br />

([ESC] D).<br />

(2) The number of graphic width dots and the number of graphic height dots must also<br />

be set so that the result of drawing the graphic data will be within the effective print<br />

area set by the Label Size Set Command ([ESC] D) in the same manner as the<br />

above.<br />

(3) Both width and height are 8 dots/mm. The maximum graphic size is 48 mm x 90<br />

mm.<br />

(4) The actual result of drawing may deviate within ±0.5 in the X direction with respect<br />

to the designated print origin of the X-coordinate.<br />

To draw the received graphic data at high speed, the data is directly<br />

developed in the image buffer without applying correction to each bit with<br />

respect to the designated X-coordinate. Consequently, a variation of up to 4<br />

bits occurs.<br />

Examples<br />

10.0 mm<br />

24.0 mm<br />

Origin<br />

(0, 0)<br />

Graphic width 19 dots<br />

Graphic<br />

height<br />

22 dots<br />

[ESC] C [LF] [NUL]<br />

[ESC] SG; 0100, 0240, 0019, 0022, 0, 003000003800003000037000033800031<br />

000300007?


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

[TOPIX compression mode]<br />

10.0 mm<br />

24.0 mm<br />

Origin<br />

(0, 0)<br />

Graphic width 19 dots<br />

Graphic<br />

height<br />

22 dots<br />

[ESC] SG; 0100, 0240, 0019, 0300, 3, 00 5C 80 80 40 30<br />

Length L1 L2 L3 Data (1st line)<br />

80 80 40 08 80 80 40 04 80 80 40 02 80 80 40 09<br />

(2nd line) (3rd line) (4th line) (5th line)<br />

80 80 60 04 80 80 80 60 02 40 80 80 40 01 80 80 20 20<br />

(6th line) (7th line) (8th line) (9th line)<br />

80 80 20 80 80 80 20 80 80 80 20 20 80 80 40 01<br />

(10th line) (11th line) (12th line) (13th line)<br />

80 80 60 02 40 80 80 A0 0F 80 80 80 C0 30 C3 80 80 80 40<br />

(14th line) (15th line) (16th line) (17th line)<br />

80 80 80 80 80 80 40 10 00 80 80 C0 80 20 80 80 C0 40 C0 [LF] [NUL]<br />

(18th line) (19th line)(20th line) (21st line) (22nd line)<br />

5-127


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.12 COMMANDS RELATED TO PC COMMAND SAVING<br />

5.12.1 SAVE START COMMAND [ESC] XO<br />

Function<br />

Format<br />

Declares the start of saving PC interface commands.<br />

(Places the printer in the mode where PC interface commands can be written in flash<br />

memory.)<br />

[ESC] XO; aa, (Sb, ) c [LF] [NUL]<br />

Term aa: Identification number to be used for saving in flash memory or calling<br />

01 to 99<br />

Sb:<br />

Reserved area (Omissible)<br />

b: 0 to 2<br />

c: Status response at save time<br />

0: No status response made<br />

1: Status response made<br />

Explanation (1) Reserved area (Omissible)<br />

The reserved parameters are not checked.<br />

Notes (1) After sending the Save Start Command ([ESC] XO), any command other than the<br />

following will be saved into flash memory without being analyzed.<br />

• Save Start Command ([ESC] XO)<br />

• Save Terminate Command ([ESC] XP)<br />

• Saved Data Call Command ([ESC] XQ)<br />

• Bit Map Writable Character Command ([ESC] XD)<br />

• Reset Command ([ESC] WR)<br />

• Status Request Command ([ESC] WS, [ESC] FM, [ESC] v)<br />

• Flash Memory Format Command ([ESC] J1)<br />

• Mode Information Acquire Command ([ESC] WX)<br />

• Version Information Acquire Command ([ESC] WV)<br />

• Device Address Acquire Command ([ESC] IT)<br />

• Strip Sensor Threshold Value Set Command ([ESC] AH)<br />

• Printer ID Set Command ([ESC] ID)<br />

• Mode Select Command ([ESC] M)<br />

(2) No error check is made for the commands at save time.<br />

(3) Up to 64 KB can be saved per a save.<br />

Refer to<br />

Examples<br />

• Save Terminate Command ([ESC] XP)<br />

• Flash Memory Format Command ([ESC] J1)<br />

[ESC]J1;B[LF][NUL]<br />

[ESC]XO;01,0[LF][NUL]<br />

[ESC]D0508,0480,0468[LF][NUL]<br />

[ESC]T20C30[LF][NUL]<br />

[ESC]C[LF][NUL]<br />

[ESC]PC001;0200,0125,1,1,A,00,B[LF][NUL]<br />

[ESC]PC002;0650,0350,2,2,G,33,B,+0000000001[LF][NUL]<br />

[ESC]XP[LF][NUL]<br />

5-128


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.12.2 SAVE TERMINATE COMMAND [ESC] XP<br />

Function<br />

Format<br />

Note<br />

Refer to<br />

Declares the termination of saving PC interface commands.<br />

[ESC] XP [LF] [NUL]<br />

After the PC interface command is stored, the image buffer will be automatically cleared.<br />

Save Start Command ([ESC] XO)<br />

5-129


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.12.3 SAVED DATA CALL COMMAND [ESC] XQ<br />

Function<br />

Format<br />

Calls PC interface commands saved in flash memory.<br />

[ESC] XQ; aa, (Sb,) c, d [LF] [NUL]<br />

Term aa: Identification number of the file to be called from flash memory.<br />

01 to 99<br />

Sb:<br />

Reserved area (Omissible)<br />

b: 0 to 2<br />

c: Status response when the data is called up<br />

0: No status response made<br />

1: Status response made<br />

d: Reserved area<br />

L, M<br />

Explanation (1) Reserved area (Omissible)<br />

The reserved parameters are not checked.<br />

Notes (1) If the relevant save identification number is not found, an error will result.<br />

(2) The printer enters the online mode (label issue operation) when the Save Data Call<br />

Command is sent after the Save Terminate Command.<br />

Refer to<br />

Examples<br />

• Save Start Command ([ESC] XO)<br />

• Save Terminate Command ([ESC] XP)<br />

[ESC] XQ; 01, 0, L [LF] [NUL]<br />

[ESC] RC001; Sample [LF] [NUL]<br />

[ESC] RC002; 100 [LF] [NUL]<br />

[ESC] XS; I, 0002, 0002C3000 [LF] [NUL]<br />

5-130


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.13 COMMANDS RELATED TO CHECK<br />

5.13.1 HEAD BROKEN DOTS CHECK COMMAND [ESC] HD<br />

Function<br />

Format<br />

Checks the thermal head for broken dots.<br />

[ESC] HD001 (, a) [LF] [NUL].................All broken dots check<br />

Term a: Check result status response (Omissible)<br />

A: Status response made<br />

(If omitted, the check result status response is not made.)<br />

Explanation<br />

(1) The Head Broken Dots Check Command is subject to batch processing. If the<br />

Label Issue Command for 100 labels is transmitted, followed by the Head Broken<br />

Dots Check Command, the head broken dots check will be executed after issuing<br />

100 labels.<br />

(2) The head broken dots check will be made on all the heating elements of the<br />

thermal head.<br />

(3) When the check result status response is not specified, if the check result is found<br />

to be normal, the next command is processed. If the check result is found to be<br />

abnormal, an error occurs. Whether or not the status is sent when an error occurs<br />

is determined according to the setting for the status response specified by the Issue<br />

Command.<br />

When the check result status response is specified, if the check result is found to<br />

be normal, a head broken dots check normal end status is sent, and then the next<br />

command is processed. If the check result is found to be abnormal, the head<br />

broken dots error status is sent, and then the printer stops.<br />

Status for normal end (for IrDA: IrCOMM, RS-232C, Bluetooth, wireless LAN)<br />

[SOH] [STX] “0020000” [EXT] [EOT] [CR] [LF]<br />

Status for head broken dots error (for IrDA: IrCOMM, RS-232C, Bluetooth, wireless<br />

LAN)<br />

[SOH] [STX] “1720000” [EXT] [EOT] [CR] [LF]<br />

(4) All broken dots check takes approx. 1 second.<br />

Examples<br />

[ESC]C[LF][NUL]<br />

[ESC]PC001;0200,0125,1,1,C,00,B[LF][NUL]<br />

[ESC]PC002;0450,0550,2,2,G,33,B[LF][NUL]<br />

[ESC]RC001;Sample[LF][NUL]<br />

[ESC]RC002;001[LF][NUL]<br />

[ESC]XS;I,0002,0002C3000[LF][NUL]<br />

[ESC]HD001[LF][NUL]<br />

5-131


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.14 COMMANDS RELATED TO CONTROL<br />

5.14.1 RESET COMMAND [ESC] WR<br />

Function<br />

Format<br />

Explanation<br />

Returns the printer to its initial state.<br />

[ESC] WR [LF] [NUL]<br />

(1) The printer is returned to the same state as when the power is turned on.<br />

(2) If the printer receives this command during printing, the printer prints the label<br />

which is being printed, then performs initialization.<br />

(3) After the Reset Command is sent (or after printing is completed, if printing is<br />

performed when the Reset Command is sent), the next command must not be sent<br />

within 5 seconds. In IrDA: TEC Protocol, if ACK/status transmission is specified by<br />

the Issue Command, the printer returns an ACK, which indicates the command<br />

process end, to the EOT after the printer is initialized. In RS-232C, when the status<br />

response is specified, the printer returns the status (34H 30H). After this status is<br />

received, the next command may be sent. In IrDA: IrCOMM, Bluetooh, or Wireless<br />

LAN, the printer does not return the status.<br />

(4) When this command is sent through the IrDA interface, only this command should<br />

be sent. After the command is sent, the link should be terminated. Even if the host<br />

does not terminate the link, the printer performs the termination process.<br />

Therefore, after initialization is completed, the host should establish the link again.<br />

(5) When receiving this command during data transmission, the printer is initialized<br />

after transmission is completed.<br />

Notes<br />

Example<br />

(1) After the code of the Bit Map Writable Character Command ([ESC] XD) or the<br />

Graphic Command ([ESC] SG) is received, the Reset Command is not processed<br />

until the printer receives the data specified for the type of data.<br />

[ESC] WR [LF] [NUL]<br />

5-132


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.15 COMMANDS RELATED TO STATUS<br />

5.15.1 STATUS REQUEST COMMAND [ESC] WS, [ESC] FM, [ESC] v<br />

Function<br />

Format<br />

Sends the printer status to the host computer.<br />

[ESC] WS [LF] [NUL]<br />

[ESC] FM (aa) [LF] [NUL]<br />

[ESC] v<br />

Term aa: Reserved area (Omissible)<br />

00 to 99<br />

Explanation<br />

(1) This command makes the printer send its status regardless of the setting of “status<br />

response/no status response.” The status to be transmitted is the current printer<br />

status, and indicates the latest status only. The remaining count indicates the<br />

remaining count of the batch currently being printed. No count remaining of the<br />

batch waiting to be printed is transmitted.<br />

[IrDA: TEC Protocol]<br />

STX Printer ID Status Remaining No. of labels CRC<br />

02H xxH xxH 3xH 3xH 3xH 3xH 3xH 3xH 3xH xxH xxH<br />

Printer status<br />

Remaining No. of labels<br />

• 0000 to 9999<br />

Status type<br />

“1” (31H): Status Request Command<br />

“2” (32H): Automatic status transmission<br />

5-133


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

SOH STX Status Remaining No. of labels ETX EOT CR LF<br />

01H 02H 3xH 3xH 3xH 3xH 3xH 3xH 3xH 03H 04H 0DH 0AH<br />

Remaining No. of labels (“0000” to “9999”)<br />

Status type<br />

“1” (31H): Status Request Command<br />

“2” (32H): Automatic status transmission<br />

Printer status<br />

“00”: Normal state<br />

“01”: Cover open state<br />

“02”: Operating<br />

“06”: Command syntax error<br />

“09”: Normal issue end + Label end<br />

“11”: Paper jam<br />

“13”: Label end<br />

“15”: Cover open error<br />

“17”: Broken head dots error<br />

“18”: Thermal head excessive temperature<br />

“36”: Low battery<br />

(“40”: Normal issue end) For automatic status response<br />

(“41”: Normal feed end) For automatic status response<br />

“50”: Flash ROM write error<br />

“51”: Flash ROM erase error<br />

“54”: Flash ROM storage area full state<br />

Notes (1) The status is returned only to the interface which sent this command.<br />

(2) After the code of the Bit Map Writable Character Command ([ESC] XD) or Graphic<br />

Command ([ESC] SG) is received, the Status Request Command is not processed<br />

until the printer receives the data specified for the type of data.<br />

(3) In IrDA: TEC Protocol or RS-232c, a max. delay of 20 msec may occur until the<br />

printer sends the status after receiving the Status Request Command.<br />

(4) The interval from when the Status Request Command is sent to when the next<br />

Status Request Command is sent should be 20 msec or more. If the interval is<br />

less than 20 msec, the printer may fail to receive the Status Request Command.<br />

Example<br />

[ESC] WS [LF] [NUL]<br />

5-134


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.15.2 MODE INFORMATION ACQUIRE COMMAND [ESC] WX<br />

Function<br />

Format<br />

Explanation<br />

Sends the printer mode information to the host.<br />

[ESC] WX [LF] [NUL]<br />

(1) The mode information format to be sent to the host, is as follows:<br />

[IrDA: TEC Protocol]<br />

STX Mode information (16 bytes) CRC CRC<br />

T P C L - L E SP SP SP SP SP SP SP SP SP<br />

02H 54H 50H 43H 4CH 2DH 4CH 45H 20H 20H 20H 20H 20H 20H 20H 20H 20H xxH xxH<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

SOH STX Mode information (16 bytes) ETX EOT CR LF<br />

T P C L - L E SP SP SP SP SP SP SP SP SP<br />

01H 02H 54H 50H 43H 4CH 2DH 4CH 45H 20H 20H 20H 20H 20H 20H 20H 20H 20H 03H 04H 0DH 0AH<br />

The above is an example where the message is received in the TPCL-LE mode. In addition, the<br />

message of “LABEL”, “RECEIPT”, or “RECEIPT1” is returned. In case of the TPCL-LE1 mode, the<br />

message will be “TPCL-LE1”.<br />

• TPCL-LE mode (Mode = A): “TPCL-LE”<br />

• TPCL-LE1 mode (Mode = B): “TPCL-LE1”<br />

Example<br />

[ESC] WX [LF] [NUL]<br />

5-135


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.15.3 VERSION INFORMATION ACQUIRE COMMAND [ESC] WV<br />

Function<br />

Format<br />

Explanation<br />

Sends information such as the program version of the printer.<br />

[ESC] WV [LF] [NUL]<br />

(1) The format of the program version data to be returned to the host, is as follows.<br />

[IrDA: TEC Protocol]<br />

STX<br />

02H<br />

“1” 31H<br />

“0” 30H<br />

“M” 4DH<br />

“A” 41H<br />

Creation date “R” 52H<br />

“2” 32H<br />

“0” 30H<br />

“0” 30H<br />

“3” 33H<br />

“B” 42H<br />

“-“ 2DH<br />

“S” 53H<br />

Model “P” 50H<br />

“2” 32H<br />

“D” 44H<br />

SP 20H<br />

“V” 56H<br />

“1” 31H<br />

Version “.” 2EH<br />

“0” 30H<br />

“A” 41H<br />

CRC<br />

xxH<br />

CRC<br />

xxH<br />

Creation date of program:<br />

9 bytes of data indicated in order of Day-<br />

Month-Year<br />

Model:<br />

7 bytes of ASCII code indicating the<br />

model<br />

Program version:<br />

5 bytes of data: Vx.xx<br />

Revision<br />

Version<br />

5-136


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

SOH<br />

01H<br />

STX<br />

02H<br />

“1” 31H<br />

“0” 30H<br />

“M” 4DH<br />

“A” 41H<br />

Creation date “R” 52H<br />

“2” 32H<br />

“0” 30H<br />

“0” 30H<br />

“3” 33H<br />

“B” 42H<br />

“-“ 2DH<br />

“S” 53H<br />

Model “P” 50H<br />

“2” 32H<br />

“D” 44H<br />

SP 20H<br />

“V” 56H<br />

“1” 31H<br />

Version “.” 2EH<br />

“0” 30H<br />

“A” 41H<br />

ETX<br />

03H<br />

EOT<br />

04H<br />

CR<br />

0DH<br />

LF<br />

0AH<br />

Creation date of program:<br />

9 bytes of data indicated in order of Day-<br />

Month-Year<br />

Model:<br />

7 bytes of ASCII code indicating the<br />

model<br />

Program version:<br />

5 bytes of data: Vx.xx<br />

Revision<br />

Version<br />

Example<br />

[ESC] WV [LF] [NUL]<br />

5-137


5. TPCL-LE MODE (INTERFACE COMMANDS)<br />

5.16 COMMANDS RELATED TO Bluetooth AND WIRELESS LAN<br />

5.16.1 DEVICE ADDRESS ACQUIRE COMMAND [ESC] IT<br />

Function<br />

Format<br />

Explanation<br />

Calls up the device address of the Bluetooth module or MAC address of the wireless<br />

LAN module connected to the printer.<br />

[ESC] IT [LF] [NUL]<br />

(1) This command calls up the device address of the Bluetooth or MAC address of the<br />

wireless LAN module. On receiving this command, the printer returns the Bluetooth<br />

device address or MAC address with the complenents of the following information<br />

field. When using the IrDA: TEC Protocol, the following information field is placed<br />

in the information frame and sent in packets.<br />

[Information field to be sent when IrDA: TEC Protocol is used]<br />

STX Bluetooth device address CRC<br />

02H 12 bytes xxH xxH<br />

[Information field to be sent when IrDA: IrCOMM, RS-232C, Bluetooth, or wireless<br />

LAN is used]<br />

SOH STX Bluetooth device address ETX EOT CR LF<br />

01H 02H 12 bytes 03H 04H 0DH 0AH<br />

Example<br />

[ESC] IT [LF] [NUL]<br />

When Bluetooth device address is 0001ccf0042b, the printer sends the following<br />

information.<br />

Bluetooth device address:<br />

[30H] [30H] [30H] [31H] [63H] [63H] [66H] [30H] [30H] [34H] [32H] [62H]<br />

0 0 0 1 c c f 0 0 4 2 b<br />

5-138


6. LABEL MODE (INTERFACE COMMANDS)<br />

6. LABEL MODE (INTERFACE COMMANDS)<br />

6.1 GENERAL DESCRIPTION<br />

This chapter describes details regarding the interface commands for the LABEL mode of the print<br />

mode. There are two issue types, “Batch issue” and “Strip issue”. In batch issues, a back feed is<br />

basically not performed before printing, regardless of the selected sensor type. However, when the<br />

parameter of the back feed is selected by the Position Fine Adjust Command, a back feed is<br />

performed before printing. (Firmware V1.4 or greater)<br />

In strip issues, a back feed is not performed regardless of the parameter setting.<br />

[Command List]<br />

Format<br />

Command<br />

Automatic ACK/Status Response<br />

(conditionally)<br />

[ESC]D Label Size Set Command No<br />

[ESC]ID Printer ID Set Command Yes<br />

[ESC]M<br />

Mode Select Command<br />

No, when the mode is changed to<br />

TPCL-LE.<br />

[ESC]AX<br />

Position Fine Adjust Command<br />

No, when it is included in storage of<br />

forms.<br />

[ESC]AY<br />

Print Density Fine Adjust Command<br />

No, when it is included in storage of<br />

forms.<br />

[ESC]AZ Strip Sensor Adjust Command Yes<br />

[ESC]LC Line Format Command No<br />

[ESC]PC Bit Map Font Format Command No<br />

[ESC]PV Outline Font Format Command No<br />

[ESC]XB Bar Code Format Command No<br />

X ([ESC]X) Data Print Command Yes<br />

[ESC]T Feed Command Yes<br />

[ESC]J1 Flash Memory Format Command Yes<br />

[ESC]XD Bit Map Writable Character Command Yes<br />

[ESC]SG Graphic Command No<br />

[ESC]N Graphic Field Command No<br />

[ESC]XO Save Start Command No<br />

[ESC]XP Save Terminate Command Yes<br />

[ESC]XQ Saved Data Call Command No<br />

[ESC]HD Head Broken Dots Check Command Yes<br />

[ESC]WR<br />

[ESC]@<br />

Initialize Command<br />

Yes, only when the interface is IrDA<br />

(TEC Protocol) or RS-232C.<br />

ESC]WS Status Request Command ---<br />

[ESC]FM<br />

[ESC]v<br />

[ESC]WX Mode Information Acquire Command ---<br />

[ESC]IT Device Address Acquire Command ---<br />

6-1


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.2 OUTLINE OF COMMANDS<br />

6.2.1 FORMAT OF INTERFACE COMMAND<br />

ESC Command & Data LF NUL<br />

z The length from [ESC] to [LF] [NUL] must be as specified by each command.<br />

z There is the following control code:<br />

ESC (1BH), LF (0AH), NUL (00H)<br />

6.2.2 HOW TO USE REFERENCE<br />

Function<br />

Format<br />

Describes the outline of the function of the command.<br />

Shows the format of the command.<br />

The format designation method should conform to the following rules:<br />

z Each set of small letters (such as aa, bbbb) indicates a parameter item.<br />

z An item enclosed in parentheses may be omitted.<br />

z “---” indicates the repetition of an item.<br />

z Brackets and parentheses are used only in coding, and must not be transmitted<br />

in practice.<br />

z Other symbols must always be inserted at designated positions before being<br />

transmitted.<br />

Term<br />

Explains the term(s) used in the format.<br />

* “0 to 999” described in the entry range indicates that up to 3-digit variable-length<br />

entry is allowed. (Entry of “001” or “009” is also possible.) “000 to 999” indicates<br />

that the entry must be fixed as 3 digits.<br />

Explanation<br />

Note<br />

Refer to<br />

Examples<br />

Explains the command in detail.<br />

Supplementary explanation of the command.<br />

Related commands<br />

Explains the command examples.<br />

[ESC] FM [LF] [NUL]<br />

The above corresponds to the transfer of the following:<br />

1B 46 4D 0A 00<br />

[ESC] F M [LF] [NUL]<br />

6.2.3 PRECAUTIONS<br />

The commands and parameters described in this specification must always be used. If any<br />

command or parameter other than those covered in this specification are used, the printer’s<br />

operation will not be guaranteed.<br />

6-2


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.3 COMMANDS RELATED TO SETTING<br />

6.3.1 LABEL SIZE SET COMMAND [ESC] D<br />

Function<br />

Format<br />

Sets the size of a label or tag.<br />

[ESC] Daaaa, bbbb, cccc [LF] [NUL]<br />

Term aaaa: Pitch length of the label or tag<br />

0100 to 5070 (in 0.1 mm units)<br />

bbbb:<br />

cccc:<br />

Effective print width<br />

Fixed as 0480<br />

Effective print length<br />

0070 to 5000 (in 0.1 mm units)<br />

Explanation<br />

(1) After the Form Store Start Command is sent, the Label Size Set Command must be<br />

sent before each field command, the Print Density Fine Adjust Command, or the<br />

Position Fine Adjust Command is sent.<br />

(2) To print data in non-print area at 5 mm from the leading edge of the label, the print<br />

start position can be changed by using the Position Fine Adjust Command.<br />

However, it is necessary to enlarge the gap between the labels.<br />

(3) The print origin of coordinates in the Y direction is at 6.5 mm from the center of the<br />

gap (black mark). When the gap (black mark) is 3 mm, the print origin of<br />

coordinates in the Y direction is at 5 mm from the leading edge of the label. (Refer<br />

to the figure below.)<br />

0 X<br />

Paper feed direction<br />

0 X<br />

Paper feed direction<br />

Y<br />

Y<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Effective print width<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Effective print width<br />

6.5 mm 5 mm<br />

6.5 mm 5 mm<br />

Effective<br />

print length<br />

Label<br />

pitch<br />

Effective<br />

print length<br />

Label<br />

pitch<br />

Backing paper<br />

Label<br />

Black mark<br />

(Printed on the<br />

back of receipt)<br />

[Label]<br />

[Receipt with black marks]<br />

6-3


6. LABEL MODE (INTERFACE COMMANDS)<br />

Notes (1) The label pitch length is protected in memory (even if the power is turned off).<br />

Example<br />

[ESC] D0430, 0480, 0330 [LF] [NUL]<br />

48.0 mm<br />

48.0 mm<br />

5.0 mm<br />

5.0 mm<br />

33.0 mm<br />

33.0 mm<br />

43.0 mm 43.0 mm<br />

2.0 mm<br />

2 mm<br />

Programmable value range by the software<br />

[mm]<br />

Item Paper Label Receipt<br />

Issue Batch Strip with black marks<br />

Label pitch Min. 10.0 13.0 10.0<br />

Max. 167.0 67.0 507.0<br />

Label length Min. 7.0 10.0 7.0<br />

Max. 160.0 60.0 500.0<br />

Backing paper width Min. 28.0, 31.0, 34.0, 37.0, 40.0, 43.0, –<br />

Max. 46.0, 49.0, 52.0, 55.0, 58.0 ± 0.5<br />

Label width Min. 25.0 –<br />

Max. 55.0<br />

Paper width Min. – 28.0, 31.0, 34.0, 37.0, 40.0, 43.0,<br />

Max. – 46.0, 49.0, 52.0, 55.0, 58.0 ± 0.5<br />

Gap length Min. 3.0<br />

Max. 7.0<br />

Black mark length Min. – 3.0<br />

Max. – 7.0<br />

Margins of backing Min. 1.5 –<br />

paper Max. 7.0 –<br />

Effective print width Min. 48.0<br />

Max. –<br />

Effective print length Min. 7.0<br />

Max. 160.0 60.0 500.0<br />

Slow up interval 2.25<br />

Non-printable area Min. 1.0 (when the gap or black mark length is 7.0 mm)<br />

Max.<br />

5.0 (when the gap or black mark length is 3.0 mm)<br />

6-4


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.3.2 ID SET COMMAND [ESC] ID<br />

Function<br />

Format<br />

Sets the ID for the printer.<br />

[ESC] ID ; aa(,b) [LF] [NUL]<br />

Term aa: Printer ID (2-byte hex data)<br />

0000H to FFFFH<br />

b: Reserved area (Omissible) (* Firmware V1.3 or greater)<br />

Fixed to 0<br />

Explanation<br />

Notes<br />

(1) The printer ID is necessary information to identify each printer in RF<br />

communications<br />

(1) The set printer ID is backed up in memory (even if the power is turned off).<br />

(2) The last 5 digits of the printer’s serial number have been set as the printer ID, at the<br />

time of shipment from the factory.<br />

(3) In IrDA: TEC Protocol, the printer checks the set ID against the ID in the received<br />

command packet. If they do not match, the printer discards the command packet.<br />

However, when the ID in the command packet is “0”, the printer accepts the<br />

command packet without checking the set IDs.<br />

Example<br />

To set “03H 51H” as the ID of the printer:<br />

[ESC] ID ; [03H] [51H] [LF] [NUL]<br />

In this case, the printer ID in status printing is “00849”.<br />

6-5


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.3.3 MODE SELECT COMMAND [ESC] M<br />

Function<br />

Format<br />

Changes the print mode.<br />

[ESC] M; a(,b) [LF] [NUL]<br />

Term a: Print mode designation<br />

7 6 5 4 3 2 1 0<br />

Print mode (Bit 0 to Bit 6 * See Table 1.)<br />

* Table 1 Print mode<br />

Automatic status response in IrDA: IrCOMM<br />

0: Not performed<br />

1: Performed<br />

HEX Mode How to deal with the received data after an error is cleared<br />

30H LABEL Discards<br />

31H RECEIPT Discards<br />

32H RECEIPT1 Continues printing<br />

33H RECEIPT Discards<br />

41H TPCL-LE Continues printing<br />

42H TPCL-LE1 Continues printing (Firmware V1.5 or greater)<br />

b: Print position detection feed (Omissible. If omitted, the print position detection feed<br />

is not performed.) (Firmware V1.1 or greater)<br />

0: When the mode change from RECEIPT or RECEIPT1 to LABEL is requested,<br />

a print position detection feed is not performed after the mode is changed.<br />

1: When the mode change from RECEIPT or RECEIPT1 to LABEL is requested,<br />

a print position detection feed is performed after the mode is changed.<br />

Explanation<br />

(1) There are 3 types of the print mode: “LABEL”, “RECEIPT”, and “TPCL-LE”.<br />

(2) Both 31H and 33H are used for the “RECEIPT” mode. 33H is provided to maintain<br />

the compatibility with RECEIPT2 used for the conventional models. On the B-<br />

<strong>SP2D</strong>, the RECEIPT mode operation of 33H is the same as the 31H. Therefore,<br />

both 31H and 33H are defined as “RECEIPT”.<br />

(3) “Automatic status response in IrDA: IrCOMM” is the function for the specifications<br />

which do not allow the printer to spontaneously send the status thorough IrDA;<br />

IrCOMM. This function enables the printer to forcefully send the status to the host,<br />

if the link between the printer and the host is established. However, if the link<br />

between the printer and the host is not established upon the status transmission,<br />

the printer cannot send the status. Therefore, the status is discarded. (In the next<br />

connection to the host, the printer does not send the status to the host.)<br />

(4) “Print position detection feed” is a function that automatically feeds the label to the<br />

print start position after the print mode is changed from RECEIPT or RECEIPT1 to<br />

LABEL. The sensor is not used when issuing in RECEIPT or RECEIPT 1 mode,<br />

therefore, after mode is changed to LABEL, the print start position cannot be<br />

detected. This is useful when using sensor detectable paper in both RECEIPT and<br />

LABEL modes.<br />

(5) In the TPCL-LE1 mode, it is possible to re-print the last print data by pressing the<br />

FEED button.<br />

6-6


6. LABEL MODE (INTERFACE COMMANDS)<br />

Notes<br />

(1) The print mode designation (the specified print mode and the automatic status<br />

response in IrDA: IrCOMM) is backed up in memory (even if the power is turned<br />

off).<br />

(2) The factory default is “30H: LABEL mode” and “Automatic status response in IrDA:<br />

IrCOMM is not performed”. (The IrDA protocol is “TEC Protocol”.)<br />

(3) When the print mode is changed, the type of sensor is automatically changed.<br />

LABEL mode (0):<br />

TPCL-LE mode (A):<br />

TPCL-LE1 mode (B):<br />

RECEIPT mode (1 or 3):<br />

RECEIPT1 mode (2):<br />

The previously backed up sensor is designated.<br />

The previously backed up sensor is designated.<br />

The previously backed up sensor is designated.<br />

No sensor is designated.<br />

No sensor is designated.<br />

(4) If the RECEIPT mode is selected or no sensor is designated in the LABEL or<br />

TPCL-LE mode, an initial feed is not performed when the cover is closed.<br />

(5) When the mode change is finished, the printer sends the normal end status or an<br />

ACK to the host. However, when the mode is changed to the TPCL-LE mode, the<br />

printer does not send the status. In IrDA: IrCOMM, only when bit 7 of the print<br />

mode designation is set to “1”, the printer sends the status.<br />

(6) The print mode can be changed by the printer itself. However, since the setting for<br />

the automatic status response in IrDA: IrCOMM cannot be changed, the setting<br />

remains as the same.<br />

(7) The print position detection feed is performed according to the conditions, such as,<br />

label pitch, fine adjustment, and sensor selection, which were set in the LABEL or<br />

TPCL-LE mode before the printer is operated in RECEIPT or RECEIPT1 mode. If<br />

no sensor is selected, the print position detection feed will not be performed.<br />

(8) After performing a print position detection feed, the printer does not send a process<br />

end status. If an error occurs during the print position detection feed, the printer<br />

does not feed after the error is cleared. However, when the error is cleared by<br />

opening/closing the cover, the print position detection feed is performed.<br />

(9) When changing the print mode by the printer itself, the print position detection feed<br />

parameter cannot be set.<br />

(10) When the mode select command is designated with the print position detection<br />

feed at the end of a print data issued in RECEIPT1 mode, and if an error occurs<br />

while printing, the printing will restart after the error is cleared and then, the print<br />

mode will be changed to the LABEL mode and a print position detection feed is<br />

performed.<br />

(11) When the LABEL mode is selected in the mode select command and the print<br />

position detection feed parameter is set 0 (not performed), and if an error occurs<br />

while the printer issues in RECEIPT1 mode, the print mode is changed to the<br />

LABEL mode after the error is cleared. (The mode select command is executed.)<br />

6-7


6. LABEL MODE (INTERFACE COMMANDS)<br />

Normal mode<br />

(LED lights up in green or orange)<br />

Open the cover<br />

Press the [FEED] switch for 3 seconds<br />

Press the [FEED] switch<br />

Mode selection mode<br />

(LED lights up in red)<br />

Press the [POWER] switch<br />

Start from where the setting is currently made<br />

Press the [FEED] switch<br />

TPCL-LE mode<br />

(LED blinks in red once)<br />

Close the cover<br />

Mode selection mode<br />

is canceled.<br />

Press the [POWER] switch<br />

LABEL mode<br />

(LED blinks in red twice)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

RECEIPT mode<br />

(LED blinks in red 3 times)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

RECEIPT1 mode<br />

(LED blinks in red 4 times)<br />

Press the [POWER] switch<br />

TPCL-LE1 mode<br />

(LED blinks in red 5 times)<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Save (update) the setting<br />

6-8


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.4 COMMANDS RELATED TO FINE ADJUSTMENT<br />

6.4.1 POSITION FINE ADJUST COMMAND [ESC] AX<br />

Function<br />

Format<br />

Adjusts the feed value so that the label will be shifted forward or backward from the<br />

standard print start position.<br />

[ESC] AX; abbb (,cddd, eff) [LF] [NUL]<br />

Term a: Indicates the direction, forward or backward, in which a fine adjustment is to<br />

be made.<br />

+: Backward<br />

-: Forward<br />

bbb:<br />

cddd:<br />

eff:<br />

Feed value to be finely adjusted.<br />

000 to 150 (in 0.1 mm units)<br />

Reserved area (Omissible) (* Firmware V1.4 or greater)<br />

+000 (Fixed.)<br />

* This parameter must be set when the back feed is performed.<br />

Back feed amount fine adjustment value (Omissible) (* Firmware V1.4 or<br />

greater)<br />

+20 (Fixed.)<br />

* If omitted, the back feed is not performed.<br />

Explanation<br />

(1) The print start position is adjusted to stop backward or forward from the standard<br />

print start position.<br />

(2) When the back feed amount fine adjustment value is set, the print start position<br />

moves backward by 2mm from the standard position, which enlarges the effective<br />

print area.<br />

(3) When any value other than the above is set, a command error will occur.<br />

(4) If this command is stored in a form, the print position is automatically adjusted<br />

when the form is invoked.<br />

(5) If this command is not stored in a form, the print position is adjusted when the<br />

command is received.<br />

(6) When the power is turned on again, the backed up fine adjustment value is set.<br />

(7) When the print position is changed, or when the gap between the labels is not 3<br />

mm, the Position Fine Adjust Command should be used as required. (When the<br />

gap between the labels is 3 mm, the standard print start position is 5 mm from the<br />

leading edge of the label.)<br />

6-9


6. LABEL MODE (INTERFACE COMMANDS)<br />

Paper feed direction<br />

± 0 mm<br />

Print start position<br />

(Standard: 5 mm from the leading edge of the label)<br />

+5 mm<br />

Print start position<br />

-5 mm<br />

Print start position<br />

Notes<br />

(1) The set print position fine adjustment value is protected in memory (even if the<br />

power is turned off).<br />

(2) The factory default value is 0.0 mm.<br />

(3) The fine adjustment values changed by the Position Fine Adjust Command in the<br />

TPCL-LE mode, are also effective for the LABEL mode.<br />

(4) When the back feed amount fine adjustment value is set, the printing starts at 3<br />

mm from the leading edge of the label.<br />

(5) The back feed amount fine adjustment value will be effective only when it is<br />

transmitted between the Form Store Start Command and the Form Store Terminate<br />

Command. Otherwise, the value will be ignored.<br />

6-10


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.4.2 PRINT DENSITY FINE ADJUST COMMAND [ESC] AY<br />

Function<br />

Format<br />

Adjusts the automatically set print density.<br />

[ESC] AY ; abb, c (, d) [LF] [NUL]<br />

Term a: Indicates whether to increase or decrease the density<br />

+: Increase (Darker)<br />

-: Decrease (Lighter)<br />

bb:<br />

Print density fine adjustment value<br />

00 to 10 (in units of 1 step)<br />

c: Print mode<br />

1 (Fixed): Direct thermal<br />

d: Head output division designation (Omissible)<br />

0: Auto (Divided by 2 or 3)<br />

1: Divided by 2 (Default)<br />

2: Divided by 3<br />

3: Auto1 (Not divided/Divided by 2 or 3)<br />

Explanation (1) The default value for the head output division designation is “1”.<br />

(2) The standard density is finely adjusted to increase or decrease.<br />

(3) When any print density fine adjustment value out of the above range is set, a<br />

command error will occur.<br />

(4) If this command is stored in a form, the print density is automatically adjusted when<br />

the form is invoked.<br />

(5) If this command is not stored in a form, the print density is adjusted when this<br />

command is received.<br />

(6) The print density may become lower if the print ratio per line is high. When<br />

“Divided by 3” is designated in the head output division designation, the print<br />

density may be improved. However, the issue speed when “Divided by 3” is set,<br />

may be slower than when “Divided by 2” is set.<br />

(7) When “0: Auto” is designated, “Divided by 3” or “Divided by 2” is automatically<br />

selected for every line according to the print ratio. The width of half a dot may not<br />

be printed on the line when switching between “Divided by 2” and “Divided by 3”.<br />

Therefore, do not designate “0: Auto” when a serial bar code is printed.<br />

(8) When “3: Auto1” is designated, it will be automatically changed to “Divided by 3” if<br />

the battery level becomes 2, in order to stable the print quality. As a result, the print<br />

speed will be reduced.<br />

Notes<br />

(1) The set print density fine adjustment value and the head output division<br />

designation, are protected in memory (even if the power is turned off).<br />

(2) The fine adjustment values changed by the Print Density Fine Adjust Command in<br />

the TPCL-LE mode, are also effective for the LABEL mode.<br />

(3) When the head output division designation is omitted, the backed up value in<br />

memory is used.<br />

6-11


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.4.3 STRIP SENSOR ADJUST COMMAND [ESC] AZ<br />

Function<br />

Format<br />

Sets the sensor threshold value to switch the mode between strip and batch.<br />

[ESC] AZ; a [LF] [NUL]<br />

Term a: Setting<br />

0: Default value (3.2 V)<br />

1: Threshold value<br />

2: Fixed as the batch mode<br />

3: Fixed as the strip mode<br />

4: Reserved<br />

Explanation (1) If the issue mode is not properly switched when using thin backing paper, “1:<br />

Threshold value” should be set, as required.<br />

(2) This command is sent after the backing paper of the label to be used, is positioned<br />

on the strip issue path and the cover is closed. The printer reads the sensor<br />

adjustment value for the backing paper, and then sets the threshold value to switch<br />

the mode between strip and batch. (When this command is sent, the backing<br />

paper must be loaded on the strip issue path. If the backing paper is loaded on the<br />

batch issue path, or the label is loaded, and the command is sent, the mode will not<br />

be switched properly.)<br />

Notes<br />

(1) The set threshold value is backed up and kept until a new value is set using this<br />

command. When the power is turned on, the backed up value is retrieved and set<br />

(2) “0: Default value” has been set as the default at the time of shipment from the<br />

factory.<br />

(3) This command is used for sensor adjustment. Therefore, it must not be included in<br />

issue operations.<br />

(4) When either “2: Fixed as the batch mode” or “3: Fixed as the strip mode” for<br />

parameter “a”, is selected, the printer operates in the specified mode, without<br />

automatically switching between the batch and strip modes.<br />

Particularly when the printer is used without the strip roller module, the strip sensor<br />

value becomes unstable. Additionally, the stop position for the label becomes<br />

misaligned, and the issue count is corrected to “1”. Therefore, “2: Fixed as the<br />

batch mode” or “3: Fixed as the strip mode” for parameter “a” must be specified in<br />

this command.<br />

6-12


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5 COMMANDS RELATED TO DRAWING FORMAT<br />

6.5.1 LINE FORMAT COMMAND [ESC] LC<br />

Function<br />

Format<br />

Sets the line format and draws the line.<br />

[ESC] LC; aaaa, bbbb, cccc, dddd, e, f [LF] [NUL]<br />

Term aaaa: Start point X-coordinate<br />

Fixed as 4 digits (in 0.1 mm units)<br />

bbbb:<br />

cccc:<br />

dddd:<br />

Start point Y-coordinate<br />

4 or 5 digits (in 0.1 mm units)<br />

End point X-coordinate<br />

Fixed as 4 digits (in 0.1 mm units)<br />

End point Y-coordinate<br />

4 or 5 digits (in 0.1 mm units)<br />

e: Type of line<br />

0: Line (horizontal, vertical)<br />

1: Rectangle<br />

f: No. of line width dots<br />

1 to 9 (in 0.1 mm units)<br />

Explanation<br />

(1) The relation between the coordinates of the start and end points and the width of<br />

the line, is as follows:<br />

c Horizontal line (In the case of |Y 2 - Y 1 | = 0)<br />

(X 1,Y 1) (X 2,Y 2)<br />

Line width<br />

d Vertical line (In the case of |X 2 - X 1| = 0)<br />

(X 1,Y 1)<br />

(X 2,Y 2)<br />

Line width<br />

6-13


6. LABEL MODE (INTERFACE COMMANDS)<br />

e Rectangle<br />

(X 1,Y 1)<br />

(X 2,Y 2)<br />

Line width<br />

(X 2,Y 2) (X 1,Y 1)<br />

Line width<br />

Line width<br />

Line width<br />

(2) When the start and end point coordinates which make a slant line are specified, a rectangle<br />

is drawn, even if “Line” is selected for the line type.<br />

(3) If the print ratio of one line (the print head width) is higher than defined, printing may<br />

become poor, or the printer may be reset. When a horizontal line is to be drawn, note the<br />

print ratio.<br />

(4) When the coordinates, which make data over the head width, is specified, printing is not<br />

guaranteed.<br />

6-14


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.2 BIT MAP FONT FIELD COMMAND [ESC] PC<br />

Function<br />

Format<br />

Sets the format indicating the position on the label at which the bit map font is to be<br />

printed and how it is to be printed.<br />

[ESC] PCaa ; bbbb, cccc, d, e, f, gg, h, ii, j, k (, Pl) [LF] [NUL]<br />

Term aa: Character string No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the bar code/two-dimensional field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of character string<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of character string<br />

Fixed as 4 digits (in 0.1 mm units)<br />

d: Character horizontal magnification<br />

1: 0.5 magnification 5: 2.5 magnification<br />

2: 1 magnification 6: 3 magnification<br />

3: 1.5 magnification 7: 3.5 magnification<br />

4: 2 magnification 8: 4 magnification<br />

e: Character vertical magnification<br />

1: 0.5 magnification 5: 2.5 magnification<br />

2: 1 magnification 6: 3 magnification<br />

3: 1.5 magnification 7: 3.5 magnification<br />

4: 2 magnification 8: 4 magnification<br />

f: Type of font<br />

A: Standard (12×24 dots)<br />

B: Bold Character (48×96 dots)<br />

C: Writable Character (24×24 dots)<br />

D: Price Font 1 (16×40 dots)<br />

E: Price Font 2 (32×48 dots)<br />

F: Times Roman (Bold) (21 point)<br />

G: Helvetica (Bold) (18 point)<br />

H: Letter Gothic (Medium) (14.3 point)<br />

I: Courier (Medium) (15 point)<br />

J: Presentation (Bold) (27 point)<br />

O: GOTHIC725 Black (6 point)<br />

gg:<br />

Rotational angles of a character or character string<br />

00: 0° (chara.) 0° (chara.-string)<br />

01: 90° (chara.) 90° (chara.-string)<br />

02: 180° (chara.) 180° (chara.-string)<br />

03: 270° (chara.) 270° (chara.-string)<br />

h: Selects black character or reverse character<br />

B (Fixed value): Black character<br />

6-15


6. LABEL MODE (INTERFACE COMMANDS)<br />

ii:<br />

Data length<br />

00 to 99 NOTE: When “00” is designated, the length is equivalent to the<br />

data sent by the Data Print Command.<br />

JIS 8 code: Data which is separated by [LF]<br />

Packed BCD code: Data which is delimited by “F”<br />

j: Data code<br />

1: JIS 8 code (Fixed as 1 when the type of font is “C” (Writable character).)<br />

2: Packed BCD code (only for IrDA: TEC Protocol)<br />

k: Fixed data No.<br />

0 (Fixed value)<br />

Pl:<br />

Print position (Omissible. If omitted, the print position is left-aligned.)<br />

0: Left<br />

1: Center<br />

2: Right<br />

Explanation<br />

(1) Character string No.<br />

The data in the Data Print Command (X) is selected and linked in the order of this<br />

character string No. (The format of character string Nos. 00 and 01 is linked to<br />

the first and second data, respectively. In the same order, the format is linked to<br />

the data.) Therefore, the Nos. of the bit map font character string, the outline font<br />

character string, and the bar code/two-dimensional code, should be consecutive,<br />

starting from 00 (in ascending order). The same No. must not be used in one<br />

form for the bit map font character string field, the outline font character string<br />

field, and the bar code/two-dimensional code field.<br />

(2) Print origin of coordinates<br />

Paper feed direction<br />

0 X<br />

Y<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Label<br />

Backing paper<br />

Effective<br />

print length<br />

Sample<br />

Print origin of<br />

coordinates<br />

Effective print width<br />

6-16


6. LABEL MODE (INTERFACE COMMANDS)<br />

(3) Horizontal magnification and vertical magnification<br />

Horizontal mag.: 1<br />

Vertical mag.: 1<br />

Horizontal mag.: 2<br />

Vertical mag.: 1<br />

Vertical<br />

magnification<br />

Horizontal<br />

magnification<br />

Horizontal mag.: 1<br />

Vertical mag.: 2<br />

Horizontal mag.: 2<br />

Vertical mag.: 2<br />

NOTE: When a large character or many characters is/are printed, the print<br />

density may become lower. (When the print ratio per line is high, the print<br />

density may become lower.)<br />

(4) Space between characters is described below.<br />

[Standard character]<br />

24 dots<br />

Horizontal<br />

mag.: 2<br />

12 dots 12 dots 12 dots<br />

24 dots<br />

24 dots<br />

24 dots<br />

[Bold character]<br />

96 dots<br />

48 dots 48 dots 48 dots 48 dots 48 dots<br />

6-17


6. LABEL MODE (INTERFACE COMMANDS)<br />

[Price font 1 (Horizontal mag.: 1)]<br />

40 dots<br />

16 dots 16 dots 16 dots 16 dots<br />

[Price font 1 (Horizontal mag.: 2)]<br />

40 dots<br />

32 dots 32 dots 32 dots<br />

(5) Rotational angles of a character and character string<br />

Sample<br />

Origin<br />

0° 90° 180°<br />

270°<br />

(6) Data length, Data code<br />

JIS 8 code .................... The length that one-byte data is counted as one digit<br />

Packed BCD................. The length before packed<br />

Data code Data Data to be sent Data length<br />

JIS 8 1 2 3 4 5 31H 32H 33H 34H 35H 5<br />

Packed BCD 1 2 3 4 5 12H 34H 50H 5<br />

* When the same data is sent, the data length to be set is the same value in both<br />

data codes, JIS 8 and Packed BCD.<br />

6-18


6. LABEL MODE (INTERFACE COMMANDS)<br />

(7) Print position<br />

• Left (Default)<br />

Origin<br />

• Center<br />

• Right<br />

Origin<br />

Origin<br />

Example<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Effective print width<br />

Effective<br />

print length<br />

Sample<br />

(3 mm, 12 mm)<br />

Bit map font character<br />

string No. 00<br />

Standard character (2×2)<br />

Label<br />

Backing paper<br />

[ESC]XO;01,1[LF][NUL]<br />

[ESC]D0430,0480,0400[LF][NUL]<br />

[ESC]PC00;0030,0120,4,4,A,00,B,00,1,0,P0[LF][NUL]<br />

[ESC]XP[LF][NUL]<br />

Data Print Command (only for IrDA: TEC Protocol)<br />

X[01H][01H][01H]SAMPLE[LF]<br />

6-19


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.3 OUTLINE FONT FIELD COMMAND [ESC] PV<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the outline font is to be<br />

printed and how it is to be printed.<br />

[ESC] PVaa ; bbbb, cccc, dddd, eeee, f, (,ghh), ii, j, kk, l, m, (,Pn) (,Qoooo,Rppp) [LF]<br />

[NUL]<br />

Term aa: Character string No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the bar code/two-dimensional code field.)<br />

bbbb:<br />

cccc:<br />

dddd:<br />

eeee<br />

Print origin of X-coordinate of character string<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of character string<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Character width<br />

0020 to 0300 (in units of 0.1 mm)<br />

Character height<br />

0020 to 0300 (in units of 0.1 mm)<br />

f: Type of font<br />

A: TEC Font 1 (Helvetica: Bold)<br />

B: TEC Font 1 (Helvetica: Bold, Proportional)<br />

C: Reserved<br />

D: Reserved<br />

E: Reserved<br />

F: Price Font 2 (* Firmware V1.2 or greater)<br />

ghh:<br />

ii:<br />

Character-to-character space width (Omissible. If omitted, the character-tocharacter<br />

space width depends on the<br />

designated font.)<br />

g: +, -<br />

hh: 00 to 99 (dot)<br />

Rotational angles of a character and character string<br />

00: 0° (chara.) 0° (chara.-string)<br />

01: 90° (chara.) 90° (chara.-string)<br />

02: 180° (chara.) 180° (chara.-string)<br />

03: 270° (chara.) 270° (chara.-string)<br />

j: Selects black character or reverse character<br />

B (Fixed value): Black character<br />

kk:<br />

Data length<br />

00 to 99 NOTE: When “00” is designated, the length is equivalent to the<br />

data sent by the Data Print Command.<br />

JIS 8 code: Data which is delimited by [LF]<br />

Packed BCD code: Data which is delimited by “F”<br />

l: Data code<br />

1: JIS 8 code (Fixed as 1 when the type of font is “C”.)<br />

2: Packed BCD code (only for IrDA: TEC Protocol)<br />

6-20


6. LABEL MODE (INTERFACE COMMANDS)<br />

m: Fixed data No.<br />

0 (Fixed value)<br />

Pn: Print position (Omissible. If omitted, the print position is left-aligned.)<br />

P0: Left<br />

P1: Center<br />

P2: Right<br />

Qoooo: Character string width (Omissible. If omitted, the width is set to 0000.)<br />

0000 to 1600 (in units of 0.1mm)<br />

Rpp: No. of character string digits (Omissible. If omitted, the number of digits is 00.)<br />

00 to 99<br />

Explanation<br />

(1) Character string No.<br />

The data in the Data Print Command (X) is selected and linked in the order of this<br />

character string No. (The format of character string Nos. 00 and 01 is linked to<br />

the first and second data, respectively. In the same order, the format is linked to<br />

the data.) Therefore, the Nos. of the bit map font character string, the outline font<br />

character string, and the bar code/two-dimensional code, should be consecutive,<br />

starting from 00 (in ascending order). The same No. must not be used in one<br />

form for the bit map font character string field, the outline font character string<br />

field, and the bar code/two-dimensional code field.<br />

(2) Print origin of coordinates<br />

Paper feed direction<br />

0 X<br />

Y<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Label<br />

Backing paper<br />

Effective<br />

print length<br />

Sample<br />

Print origin of<br />

coordinates<br />

Effective print width<br />

(3) Character width and character height<br />

Char.<br />

width<br />

Char.<br />

height<br />

Char.<br />

height<br />

Char.<br />

height<br />

Char.<br />

height<br />

Char.<br />

width<br />

Char. width<br />

Standard size<br />

(256 × 256 dots)<br />

6-21<br />

Char. width


6. LABEL MODE (INTERFACE COMMANDS)<br />

NOTE: When a large character or many characters is/are printed, the print density<br />

may become lower. (When the print ratio per line is high, the print density may<br />

become lower.)<br />

(4) Rotational angles of a character and character string<br />

Sample<br />

Origin<br />

0° 90° 180°<br />

270°<br />

(5) Print position<br />

• Left (Default)<br />

Origin<br />

• Center<br />

• Right<br />

Origin<br />

Origin<br />

(6) Character string width and number of character string digits<br />

Usually, one character size is determined by the character width and height. When<br />

the character string width and number of character string digits are specified, the<br />

character width will be automatically changed when printed. If the following<br />

conditions are satisfied, however, these parameter settings become ineffective, and<br />

the characters are printed in normal size.<br />

• Conditions of ineffectiveness<br />

(1) These parameters are omitted.<br />

(2) The character string width is set to “0”.<br />

(3) No. of print data ≥ No. of specified character string digits<br />

Conditions that these parameters become effective are described on the following<br />

pages.<br />

6-22


6. LABEL MODE (INTERFACE COMMANDS)<br />

c When one field width < specified character string width<br />

(Space between characters = 0, Specified character string digits = 6)<br />

„ Print image when the parameter setting is omitted.<br />

1 field width (140 dots) A<br />

A B C D<br />

One character width (35 dots)<br />

Specified character string width (200 dots)<br />

A=Specified character string width – 1 field width=200 dots – 140 dots=60 dots<br />

B=A/Data length=60 dots/4=15 dots<br />

One character width=1 character width+B=35 dots+15 dots=50 dots<br />

„ Print image when the parameter setting is specified.<br />

One character width (50 dots)<br />

A B C D<br />

Specified character string width (200 dots)<br />

* When the number of print data is 6 digits or more, the condition of<br />

ineffectiveness (3) is satisfied. In this case, the characters are printed in<br />

normal width.<br />

d When one field width < specified character string width<br />

(Space between characters ≥ 0, Specified character string digits = 5)<br />

„ Print image when the parameter setting is omitted.<br />

1 field width (155 dots) A<br />

A B C D<br />

Space between characters (5 dots)<br />

One character width (35 dots)<br />

Specified character string width (200 dots)<br />

A=Specified character string width – 1 field width=200 dots – 155 dots=45 dots<br />

B=A/Data length=45 dots/4§11 dots<br />

One character width=1 character width+B=35 dots+11 dots=46 dots<br />

„ Print image when the parameter setting is specified.<br />

One character width (46 dots)<br />

Space between characters (5 dots)<br />

A B C D<br />

Specified character string width (199 dots)<br />

* When the number of print data is 5 digits or more, the condition of<br />

ineffectiveness (3) is satisfied. In this case, the characters are printed in<br />

normal width.<br />

6-23


6. LABEL MODE (INTERFACE COMMANDS)<br />

e When one field width < specified character string width<br />

(Space between characters < 0, Specified character string digits = 8)<br />

„ Print image when the parameter setting is omitted.<br />

1 field width (125 dots) A<br />

A B C D<br />

One character width (35 dots)<br />

Space between characters (-5 dots)<br />

Specified character string width (200 dots)<br />

Corrected space between characters=((Specified character string digits – data<br />

length(x0.5+1) x Space between characters=-15 dots<br />

A=Specified character string width – (1 character width x Data length+(corrected<br />

space between characters x (Data length – 1))=200 dots – 95 dots = 105 dots<br />

B=A/Data length=105 dots/4§26 dots (rounded down)<br />

One character width=1 character width+B=35 dots+26 dots=61 dots<br />

„ Print image when the parameter setting is specified.<br />

Space between characters (-15 dots)<br />

One character width (61 dots)<br />

A B C D<br />

Specified character string width (199 dots)<br />

* When the number of print data is 8 digits or more, the condition of<br />

ineffectiveness (3) is satisfied. In this case, the characters are printed in<br />

normal width.<br />

6-24


6. LABEL MODE (INTERFACE COMMANDS)<br />

f When one field width ≥ specified character string width<br />

(Space between characters ≥ 0, Specified character string digits = 6)<br />

„ Print image when the parameter setting is omitted.<br />

1 field width (215 dots)<br />

One character width (50dots)<br />

Space between characters (5 dots)<br />

A B C D<br />

Specified character string width (120 dots)<br />

A<br />

A=1 field width – Specified character string width=215 dots – 120 dots=95 dots<br />

B=A/Data length=95 dots/4§24 dots (rounded up)<br />

One character width=1 character width – B=50 dots – 24 dots=26 dots<br />

„ Print image when the parameter setting is specified.<br />

Space between characters (5 dots)<br />

A B C D<br />

One character width (26 dots)<br />

Specified character string width (120 dots)<br />

* When the number of print data is 6 digits or more, the condition of<br />

ineffectiveness (3) is satisfied. In this case, the characters are printed in<br />

normal width.<br />

6-25


6. LABEL MODE (INTERFACE COMMANDS)<br />

g When one field width ≥ specified character string width<br />

(Space between characters < 0, Specified character string digits = 5)<br />

„ Print image when the parameter setting is omitted.<br />

1 field width (185 dots)<br />

Space between characters (-15 dots)<br />

One character width (50dots)<br />

A B C D<br />

Specified character string width (120 dots)<br />

A<br />

A=1 field width – Specified character string width=185 dots – 120 dots=65 dots<br />

B=A/Data length=65 dots/4=17 dots (rounded up)<br />

One character width=1 character width – B=50 dots – 17 dots=33 dots<br />

„ Print image when the parameter setting is specified.<br />

A B C D<br />

One character width (33 dots)<br />

Space between characters (-5 dots)<br />

Specified character string width (117 dots)<br />

* When the number of print data is 5 digits or more, the condition of<br />

ineffectiveness (3) is satisfied. In this case, the characters are printed in<br />

normal width.<br />

Example<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Effective print width<br />

Effective<br />

print length<br />

Sample<br />

(3 mm, 12 mm)<br />

Outline font character<br />

string No. 00<br />

TEC Font 1 (80×80 mm)<br />

Label<br />

Backing paper<br />

[ESC]XO;01,1[LF][NUL]<br />

[ESC]D0430,0480,0400[LF][NUL]<br />

[ESC]PV00;0030,0120,0050,0050,A,00,B,00,1,0,P0[LF][NUL]<br />

[ESC]XP[LF][NUL]<br />

Data print command (Only for IrDA: <strong>Tec</strong> Protocol)<br />

X[01H][01H][01H]SAMPLE[LF]<br />

6-26


6. LABEL MODE (INTERFACE COMMANDS)<br />

Commands to be registered<br />

[ESC]XO;05,1[LF][NUL]<br />

[ESC]D0780,0480,0750[LF][NUL]<br />

[ESC]AY;+00,1,0[LF][NUL]<br />

[ESC]AX;+000[LF][NUL]<br />

[ESC]PV01;0325,0350,0080,0100,F,-08,03,B,00,1,0,P2,Q0300,R07[LF][NUL]<br />

[ESC]PV02;0165,0000,0030,0060,F,02,B,00,1,0[LF][NUL]<br />

[ESC]XB03;0270,0290,5,3,02,2,0100,000,0,00,1,0[LF][NUL]<br />

[ESC]XB04;0270,0170,5,3,02,2,0100,000,0,00,1,0[LF][NUL]<br />

[ESC]XP[LF][NUL]<br />

Issue command (in case of IrDA)<br />

i)<br />

X[05H][01H][01H]<br />

$12.00[LF]<br />

$12.00[LF]<br />

214901881186[LF]<br />

291890001200[LF]<br />

ii)<br />

X[05H][01H][01H]<br />

$80[LF]<br />

$80[LF]<br />

214901881186[LF]<br />

291890001200[LF]<br />

6-27


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.4 BAR CODE FORMAT COMMAND (MSI, ITF, CODE39, NW7) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the bar code is to be<br />

printed and how it is to be printed.<br />

[ESC] XBaa ; bbbb, cccc, d, e, ff, gg, hh, ii, jj, k, llll, m, nn, o, p [LF] [NUL]<br />

Term aa: Bar code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the bar code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

d: Type of bar code<br />

1: MSI<br />

2: Interleaved 2 of 5 (ITF)<br />

3: CODE39 (Standard)<br />

4: NW7<br />

e: Type of check digit<br />

1 (Fixed value): Without attaching check digit<br />

ff:<br />

gg:<br />

hh:<br />

ii:<br />

jj:<br />

Narrow bar width<br />

02 to 03: 2 to 3 dots<br />

Narrow space width<br />

02 to 03: 2 to 3 dots<br />

Wide bar width<br />

05 to 09: 5 to 9 dots<br />

Wide space width<br />

05 to 09: 5 to 9 dots<br />

Character-to-character space width<br />

02 to 03: 2 to 3 dots<br />

* Only for MSI and ITF, “00” can be set. If any value is set, the printer<br />

automatically changes it to “00”.<br />

k: Rotational angle of bar code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

llll:<br />

Height of bar code<br />

0001 to 0350 (in 0.1 mm units)<br />

m: Selection to print numerals under bars<br />

0: Non-print<br />

1: Print<br />

6-28


6. LABEL MODE (INTERFACE COMMANDS)<br />

nn:<br />

Data length (including start/stop codes)<br />

00 to 32 NOTE: When “00” is designated, the length is equivalent to<br />

the data sent by the Data Print Command.<br />

JIS 8 code: Data which is delimited by [LF]<br />

Packed BCD code: Data which is delimited by “F”<br />

o: Data code<br />

1: JIS 8 code<br />

2: Packed BCD code (only for IrDA: TEC Protocol)<br />

p: Fixed data No.<br />

0 (Fixed value)<br />

6-29


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.5 BAR CODE FORMAT COMMAND (JAN8/EAN8, JAN13/EAN13) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the bar code is to be<br />

printed and how it is to be printed.<br />

[ESC] XBaa ; bbbb, cccc, d, e, ff, g, hhhh, iii, j, kk, l, m [LF] [NUL]<br />

Term aa: Bar code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the bar code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

d: Type of bar code<br />

0: JAN/8EAN8<br />

5: JAN13/EAN13<br />

e: Type of check digit<br />

3 (Fixed value): Check digit auto attachment<br />

ff:<br />

1-module width<br />

02 to 03 (in units of dots)<br />

g: Rotational angle of bar code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

hhhh:<br />

iii:<br />

Height of bar code<br />

0001 to 0350 (in 0.1 mm units)<br />

Length of guard bar<br />

000 to 050 (in 0.1 mm units)<br />

j: Selection to print numerals under bars<br />

0: Non-print<br />

1: Print<br />

kk:<br />

Data length<br />

07: JAN8/EAN8<br />

12: JAN13/EAN13<br />

00: NOTE: When “00” is designated, the length is equivalent to the<br />

data sent by the Data Print Command.<br />

JIS 8 code: Data which is delimited by [LF]<br />

Packed BCD code: Data which is delimited by “F”<br />

l: Data code<br />

1: JIS 8 code<br />

2: Packed BCD code (only for IrDA: TEC Protocol)<br />

m: Fixed data No.<br />

0 (Fixed value)<br />

6-30


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.6 BAR CODE FORMAT COMMAND (EAN128) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the bar code is to be<br />

printed and how it is to be printed.<br />

[ESC] XBaa ; bbbb, cccc, d, e, ff, g, hhhh, iii, j, kk, l, m [LF] [NUL]<br />

Term aa: Bar code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the bar code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

d: Type of bar code<br />

N: EAN128<br />

e: Type of check digit<br />

3 (Fixed value): Check digit auto attachment<br />

ff:<br />

1-module width<br />

02 to 03 (in units of dots)<br />

g: Rotational angle of bar code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

hhhh:<br />

iii:<br />

Height of bar code<br />

0001 to 0350 (in 0.1 mm units)<br />

Length of guard bar<br />

000 (Fixed value)<br />

j: Selection to print numerals under bars<br />

0: Non-print<br />

1: Print<br />

kk:<br />

Data length<br />

00 to 32 (only even numbers)<br />

NOTE:<br />

When “00” is designated, the length is equivalent to the<br />

data sent by the Data Print Command.<br />

JIS 8 code: Data which is delimited by [LF]<br />

Packed BCD code: Data which is delimited by “F”<br />

l: Data code<br />

1: JIS 8 code<br />

2: Packed BCD code (only for IrDA: TEC Protocol)<br />

m: Fixed data No.<br />

0 (Fixed value)<br />

6-31


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.7 BAR CODE FORMAT COMMAND (CODE128) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the bar code is to be<br />

printed and how it is to be printed.<br />

[ESC] XBaa ; bbbb, cccc, d, e, ff, g, hhhh, iii, j, kkk, l, m [LF] [NUL]<br />

Term aa: Bar code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the bar code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

d: Type of bar code<br />

9: CODE128<br />

e: Type of check digit<br />

3 (Fixed value): Check digit auto attachment<br />

ff:<br />

1-module width<br />

02 to 03 (in units of dots)<br />

g: Rotational angle of bar code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

hhhh:<br />

iii:<br />

Height of bar code<br />

0001 to 0350 (in 0.1 mm units)<br />

Length of guard bar<br />

000 (Fixed value)<br />

j: Selection to print numerals under bars<br />

0: Non-print<br />

1: Print<br />

kkk:<br />

Data length<br />

00 to 100 (Both odd and even numbers)<br />

NOTES: 1. A two-digit value can be entered.<br />

2. When “00” or “000” is designated, the length is equivalent to<br />

the data sent by the Data Print Command.<br />

JIS 8 code: Data which is delimited by [LF]<br />

Packed BCD code: Data which is delimited by “F”<br />

l: Data code<br />

1: JIS 8 code<br />

2: Packed BCD code (only for IrDA: TEC Protocol)<br />

m: Fixed data No.<br />

0 (Fixed value)<br />

6-32


6. LABEL MODE (INTERFACE COMMANDS)<br />

Examples of using commands in EAN128/CODE128<br />

~ Form storage<br />

[ESC] ID; 01H23H [LF] [NUL]<br />

: ID setting<br />

[ESC] XO; 01, 1 [LF] [NUL]<br />

: Declaration of the start of form storage<br />

[ESC] D0360, 0480, 0330 [LF] [NUL]<br />

: Label size setting<br />

[ESC] XB00; 0000, 0080, N, 3, 2, 0, 0090, 000, 0, 24, 2, 0 [LF] [NUL] : Format of bar coce No. 00<br />

EAN128: 00 ~ 32<br />

CODE128: 00 ~ 100<br />

9: CODE128<br />

N: EAN128<br />

[ESC] XP [LF] [NUL]<br />

: Declaration of the termination of form storage<br />

~ Drawing and issue (for IrDA: TEC Protocol)<br />

[STX] 01H 23H 10H X 01H 00H 03H 97H 15H 01H 83H 06H 32H 13H 11H 50H 00H 50H 01H [CRC] [CRC]<br />

Bar code data (971501830632131150005001)<br />

(*1) Check digit of Modulus 10 is not<br />

attached by the printer. Therefore, the<br />

check digit should be calculated in<br />

advance, then be sent as data.<br />

No. of labels to be issued: 3<br />

Transmissive sensor designated, No status response made<br />

Form No.: 1<br />

Packet length (10H = 16 bytes)<br />

Printer ID (0123H)<br />

(*1) How to calculate the Modulus 10 check digit (When bar code data is 971501830632131150005001.)<br />

9 7 1 5 0 1 8 3 0 6 3 2 1 3 1 1 5 0 0 0 5 0 0 1<br />

- û - û - û - û - û - û - û - û - û - û - û - û<br />

Sum up the numbers in the column of ’-‘: 33<br />

33 x 3 (fixed number) = 99<br />

Sum up the numbers in the column of ‘û’: 29<br />

29 x 1 (fixed number) = 29<br />

Add the above two numbers: 99 + 29 = 128<br />

Subtract the lowest digit of 128 from 10 (fixed number): 10 – 8 = 2<br />

The obtained number ‘2’ is attached to the end of the bar code data.<br />

9 7 1 5 0 1 8 3 0 6 3 2 1 3 1 1 5 0 0 0 5 0 0 1 2<br />

Bar code data Check digit of Modulus 10<br />

6-33


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.8 BAR CODE FORMAT COMMAND (Customer Bar Code) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the bar code is to be<br />

printed and how it is to be printed.<br />

[ESC] XBaa ; bbbb, cccc, d, e, ff, g, hhhh, iii, j, kk, l, m [LF] [NUL]<br />

Term aa: Bar code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the bar code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of bar code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

d: Type of bar code<br />

R: Customer bar code (Postal code for Japan)<br />

S: Highest priority customer bar code (Postal code for Japan)<br />

e: Type of check digit<br />

3 (Fixed value): Check digit auto attachment<br />

ff:<br />

1-module width<br />

01 to 15 (in units of dots)<br />

g: Rotational angle of bar code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

hhhh:<br />

iii:<br />

Height of long bars<br />

0001 to 0350 (in 0.1 mm units)<br />

Reserved area<br />

000 (Fixed value)<br />

j: Reserved area<br />

0 (Fixed value)<br />

kk:<br />

Data length<br />

00 to 20: Customer bar code<br />

00 to 19: Highest priority customer bar code<br />

NOTE: When “00” is designated, the length is equivalent to the data sent<br />

by the Data Print Command Data which is delimited by [LF])<br />

l: Data code<br />

1: JIS 8 code<br />

m: Fixed data No.<br />

0 (Fixed value)<br />

6-34


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.9 TWO-DIMENSIONAL CODE FORMAT COMMAND (PDF417) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa ; bbbb, cccc, d, ee, ff, gg, h, iiii, kk, l, m [LF] [NUL]<br />

Term aa: Two-dimensional code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the two-dimensional code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of two-dimensional code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of two-dimensional code<br />

Fixed as 4 digits (in 0.1 mm units)<br />

d: Type of two-dimensional code<br />

P: PDF417<br />

ee:<br />

ff:<br />

gg:<br />

Security level<br />

00: Level 0<br />

01: Level 1<br />

02: Level 2<br />

03: Level 3<br />

04: Level 4<br />

05: Level 5<br />

06: Level 6<br />

07: Level 7<br />

08: Level 8<br />

1-module width<br />

02 to 03 (in units of dots)<br />

No. of columns (strings)<br />

01 to 30<br />

h: Rotational angle of two-dimensional code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

iiii:<br />

Bar height<br />

0001 to 0100 (in 0.1 mm units)<br />

6-35


6. LABEL MODE (INTERFACE COMMANDS)<br />

kk:<br />

Data length<br />

00 to 99<br />

NOTES: 1. The value should consist of 2 digits<br />

2. When “00” is designated, the length is equivalent to the data<br />

sent by the Data Print Command.<br />

(JIS 8 code: Data which is delimited by [LF])<br />

Data having a max. of 2000 digits is acceptable.<br />

3. In IrDA: TEC Protocol, when the data length value is set to 250<br />

or more, it can be sent by using the multiple packet format for<br />

the Data Print Command in several packets.<br />

l: Data code<br />

1 (Fixed value): JIS 8 code<br />

m: Fixed data No.<br />

0 (Fixed value)<br />

6-36


6. LABEL MODE (INTERFACE COMMANDS)<br />

Examples of using commands in PDF417<br />

~ Form storage<br />

[ESC] ID; 01H23H [LF] [NUL]<br />

: ID setting<br />

[ESC] XO; 01, 1 [LF] [NUL]<br />

: Declaration of the start of form storage<br />

[ESC] D0360, 0480, 0330 [LF] [NUL]<br />

: Label size setting<br />

[ESC] XB00; 0000, 0000, P, 00, 02, 06, 0, 0010, 00, 1, 0 [LF] [NUL] : Format of two-dimensional code No. 00<br />

[ESC] XP [LF] [NUL]<br />

: Declaration of the termination of form storage<br />

~ Drawing and issue (for IrDA: TEC Protocol)<br />

Command packet in the case that 300-byte issue data is designated in PDF417<br />

(Since the data length is 250 bytes or more, the data is sent by using the command packet in the<br />

RECEIPT mode.)<br />

[Example]<br />

[STX] 01H 23H deH Y 10H X 01H 00H 03H ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<br />

No. of labels to be issued: 3<br />

Transmissive sensor designated,<br />

No status response made<br />

Form No.: 1<br />

Flag (Middle block)<br />

Mode (Fixed as “Y”: Indicates the RECEIPT mode.)<br />

Packet length (deH = 222 bytes)<br />

Printer ID (0123H)<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 [CRC] [CRC]<br />

[STX] 01H 23H 57H Y 01H<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<br />

ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<br />

ABCDEFGHIJKL [CRC] [CRC]<br />

Flag (Middle block)<br />

Packet length (57H = 87 bytes)<br />

6-37


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.10 TWO-DIMENSIONAL CODE FORMAT COMMAND (QR Code) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, e, ff, g, h (, Mi) (, Kj) (, Jkkllmm), nn, o, p [LF] [NUL]<br />

Term aa: Two-dimensional code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the two-dimensional code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in units of 0.1 mm)<br />

Print origin of Y-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in units of 0.1 mm)<br />

d: Type of two-dimensional code<br />

T: QR code<br />

e: Designation of error correction level<br />

L: High density level<br />

M: Standard level<br />

Q: Reliability level<br />

H: High reliability level<br />

ff:<br />

1-cell width<br />

01 to 09 (in units of dots)<br />

g: Selection of mode<br />

M: Manual mode<br />

A: Automatic mode<br />

h: Rotational angle of two-dimensional code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

Mi:<br />

Kj:<br />

Selection of model<br />

(If this parameter is omitted, Model 1 is automatically selected.)<br />

i = 1: Model 1<br />

2: Model 2<br />

Mask number<br />

(If this parameter is omitted, the number is automatically set.)<br />

i = 0 to 7: Mask number 0 to 7<br />

8: No mask<br />

Jkkllmm: Connection setting (No connection if this parameter is omitted.)<br />

kk = 01 to 16: Value indicating which divided code is connected.<br />

ll = 01 to 16: Number of divided codes<br />

mm = 00 to FF: A value for all data to be printed, to which XOR is applied in<br />

units of bytes (Not divided)<br />

6-38


6. LABEL MODE (INTERFACE COMMANDS)<br />

nn:<br />

Data length<br />

00 to 99<br />

NOTES:<br />

1. A two-digit value can be entered.<br />

2. When “00” is designated, the length is equivalent to the data<br />

sent by the Data Print Command. It corresponds for up to 2000<br />

digits.<br />

o: Data code<br />

1 (Fixed value): JIS 8 code<br />

p: Data code<br />

0 (Fixed value)<br />

6-39


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.11 TWO-DIMENSIONAL CODE FORMAT COMMAND (Data Matrix) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h (, Ciiijjj) (, Jkkllmmmnnn), ooo, p, q [LF] [NUL]<br />

Term aa: Two-dimensional code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the two-dimensional code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in units of 0.1 mm)<br />

Print origin of Y-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in units of 0.1 mm)<br />

d: Type of two-dimensional code<br />

Q: Data Matrix<br />

ee:<br />

ff:<br />

gg:<br />

ECC type<br />

00: ECC000<br />

05: ECC050<br />

08: ECC080<br />

10: ECC100<br />

14: ECC140<br />

20: ECC200<br />

1-cell width<br />

01 to 09 (in units of dots)<br />

Format ID<br />

01: Format ID 1<br />

02: Format ID 2<br />

03: Format ID 3<br />

04: Format ID 4<br />

05: Format ID 5<br />

06: Format ID 6<br />

h: Rotational angle of two-dimensional code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

6-40


6. LABEL MODE (INTERFACE COMMANDS)<br />

Ciiijjj:<br />

No. of cells (If this parameter is omitted, it is automatically set.)<br />

iii: No. of cells in the X direction 000 to 144<br />

jjj: No. of cells in the Y direction 000 to 144<br />

NOTE: Cell setting varies according to the ECC type.<br />

No. of cells to be<br />

designated<br />

ECC000 to ECC140<br />

Odd numbers only<br />

ECC200<br />

Even numbers only<br />

Min./Max. No. of cells 9 × 9 to 49 × 49 10 × 10 to 144 × 144<br />

Rectangular code None 18 × 8<br />

32 × 8<br />

26 × 12<br />

36 × 12<br />

36 × 16<br />

48 × 16<br />

• When this parameter is omitted, the number of cells is automatically set. Also,<br />

when data except for the above values is designated for Nos. of cells in the X<br />

and Y directions, the number of cells is automatically set.<br />

Jkkllmmmnnn: Connection setting<br />

(Omissible: No connection if this parameter is omitted)<br />

kk: Code number 01 to 16<br />

ll: No. of divided codes 01 to 16<br />

mmm: ID number 1 001 to 254<br />

nnn: ID number 2 001 to 254<br />

NOTE: It is effective only when ECC200 is selected.<br />

ooo:<br />

Data length<br />

000 to 100<br />

NOTES:<br />

1. “00 to 99” indicated in 2 digits, is also available.<br />

2. When “00” is designated, the length is equivalent to the data<br />

sent by the Data Print Command (data which is delimited by<br />

[LF].)<br />

3. When “00” is designated, the length is equivalent to the data<br />

sent by the Data Print Command. It corresponds for up to 2000<br />

digits.<br />

p: Data code<br />

1 (Fixed value): JIS 8 code<br />

q: Reserved area<br />

0: Fixed value<br />

6-41


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.12 TWO-DIMENSIONAL CODE FORMAT COMMAND (MircoPDF417) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h, iiii, jjj, k, l [LF] [NUL]<br />

Term aa: Two-dimensional code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the two-dimensional code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in units of 0.1 mm)<br />

Print origin of Y-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in units of 0.1 mm)<br />

d: Type of two-dimensional code<br />

X: MicroPDF417 (Two-dimensional code)<br />

ee:<br />

ff:<br />

gg:<br />

Security level<br />

00: Fixed value<br />

1-module width<br />

01 to 09 (in units of dots)<br />

No. of columns (strings)<br />

01 to 38<br />

h: Rotational angle of two-dimensional code<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

iiii:<br />

jjj:<br />

Bar height<br />

0001 to 0100 (in units of 0.1 mm)<br />

Data length<br />

000 to 100<br />

NOTES:<br />

1. “00 to 99” indicated in 2 digits, is also available.<br />

2. When “00” is designated, the length is equivalent to the data sent<br />

by the Data Print Command (data which is delimited by [LF].)<br />

3. When “00” is designated, the length is equivalent to the data sent<br />

by the Data Print Command. It corresponds for up to 366 digits.<br />

k: Data code<br />

1 (Fixed value): JIS 8 code<br />

l: Reserved area<br />

0: Fixed value<br />

6-42


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.5.13 TWO-DIMENSIONAL CODE FORMAT COMMAND (Maxicode) [ESC] XB<br />

Function<br />

Format<br />

Sets the format to indicate the position on the label, at which the two-dimensional code<br />

is to be printed and how it is to be printed.<br />

[ESC] XBaa; bbbb, cccc, d, e (, Jffgg) (, Zh), iii, j, k [LF] [NUL]<br />

Term aa: Two-dimensional code No.<br />

00 to 99<br />

(The same No. must not be used in one form for the bit map font field, the<br />

outline font field, and the two-dimensional code field.)<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in units of 0.1 mm)<br />

Print origin of Y-coordinate of the two-dimensional code<br />

Fixed as 4 digits (in units of 0.1 mm)<br />

d: Type of two-dimensional code<br />

Z: Maxicode<br />

e: Mode selection<br />

2: Mode 2<br />

3: Mode 3<br />

4: Mode 4<br />

6: Mode 6<br />

Jffgg:<br />

iii:<br />

Zh:<br />

Connection setting (Omissible. If omitted, no connection is made.)<br />

ff: Code number 01 to 08<br />

gg: No. of divided codes 01 to 08<br />

Attachment of Zipper block and Contrast block (Omissible. If omitted, the<br />

Zipper block and Contrast block<br />

are not attached.)<br />

h: 0: No attachment of Zipper block and Contrast block<br />

1: Attachment of Zipper block and Contrast block<br />

2: Attachment of Zipper block<br />

3: Attachment of Contrast block<br />

Data length<br />

000 to 100<br />

NOTES: 1. “00 to 99” indicated in 2 digits, is also available.<br />

2. When “00” is designated, the length is equivalent to the data sent<br />

by the Data Print Command (data which is delimited by [LF].)<br />

j: Data code<br />

1 (Fixed value): JIS 8 code<br />

k: Reserved area<br />

0: Fixed value<br />

6-43


6. LABEL MODE (INTERFACE COMMANDS)<br />

Explanation<br />

(1) Bar code/two-dimensional code No.<br />

The data in the Data Print Command (X) is selected and linked in the order of this<br />

bar code/two-dimensional code No. (The format of bar code/two-dimensional<br />

code Nos. 00 and 01 is linked to the first and second data, respectively. In the<br />

same order, the format is linked to the data.) Therefore, the Nos. of the bit map<br />

font character string, the outline font character string, and the bar code/twodimensional<br />

code, should be consecutive, starting from 00 (in ascending order).<br />

The same No. must not be used in one form for the bit map font character string<br />

field, the outline font character string field, and the bar code/two-dimensional code<br />

field.<br />

(2) Print origin of coordinates<br />

Paper feed direction<br />

0 X<br />

Y<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Label<br />

Backing paper<br />

Effective<br />

print length<br />

Print origin of<br />

coordinates<br />

Effective print width<br />

(3) Type of check digit<br />

The check digit is automatically attached according to the type designation as<br />

shown below.<br />

Bar code<br />

type<br />

C/D type<br />

NW7, CODE39,<br />

Interleaved 2 of 5<br />

1 Without attaching check<br />

digit<br />

JAN8/EAN8,<br />

JAN13/EAN13<br />

No designation<br />

3 No designation Auto attachment of<br />

Modulus 10<br />

EAN128,<br />

CODE128<br />

No designation<br />

Auto<br />

attachment of<br />

PSEUDO103<br />

6-44


6. LABEL MODE (INTERFACE COMMANDS)<br />

(4) Rotational angles of a bar code<br />

Origin<br />

Origin<br />

Origin<br />

Origin<br />

0° 90° 180° 270°<br />

NOTE:<br />

If a bar code is rotated at 90° or 270°, the print density may become lower<br />

in relation to the bar height. A bar code with a height of 14 mm or less<br />

should be used. When a bar code with a height of over 14 mm is used,<br />

the print quality is not guaranteed.<br />

Point of origin<br />

Rotational angle of a two-dimensional code<br />

0° 90° 180° 270°<br />

(5) Bar code height<br />

Height of<br />

bar code<br />

4 9 4 0<br />

0 4 5 8<br />

Height of<br />

guard bar<br />

(6) Numerals under bars<br />

Numerals are provided under bars depending on the parameter for numerals<br />

under bars. Standard fonts are used.<br />

(7) Since the start/stop codes are not automatically attached, it should be included in<br />

the data to be sent. If the start/stop codes are not attached to data for CODE39 or<br />

NW7, the bar code is not drawn.<br />

(8) When Interleaved 2 of 5 is selected and the number of data length digits is odd, 0 is<br />

automatically added to the beginning of the data, to change the number of data<br />

length digits to even.<br />

6-45


6. LABEL MODE (INTERFACE COMMANDS)<br />

(9) Explanation for QR code<br />

c Error correction level<br />

The QR code contains functions to detect and correct an error. If one of the data<br />

characters is damaged, the information can be restored when this code is read.<br />

There are 4 levels that can be designated. The level should be specified according to<br />

usage. The general correction ability is as follows.<br />

Level<br />

Error correction ability<br />

Overhead by correcting<br />

an error<br />

High density level Low 7%<br />

Standard level 15%<br />

Reliability level 25%<br />

High reliability level High 30%<br />

d 1-cell width<br />

1-cell width<br />

1-cell width<br />

e Selection of mode<br />

All codes including alphanumerics, symbols, and Kanji can be used in one QR code.<br />

Manual mode or automatic mode can be selected to perform the operation.<br />

f Selection of model<br />

Model 1:<br />

Model 2:<br />

Original specification<br />

Extended specification which enhances the function of position correction<br />

and can contain a large amount of data.<br />

g Mask number<br />

To be sure the QR code is read, it is preferable that white and black modules are<br />

arranged in this symbol in a balanced manner. This prevents the bit pattern<br />

“1011101”, which is characteristically seen in the position detecting pattern, from<br />

appearing in the symbol as much as possible.<br />

The mask number is 0 to 7. The pattern is determined by placing each masking<br />

pattern for the mask number upon the module pattern. When the mask number is set<br />

to 8, masking is not performed. When the parameter is omitted, the most appropriate<br />

mask number is automatically selected to perform masking.<br />

6-46


6. LABEL MODE (INTERFACE COMMANDS)<br />

h Connection setting<br />

For QR code, data can be divided into several codes. Even though there is only a<br />

narrow print space, the code can be entered in the space by dividing the code. The<br />

data can be divided into a max. of 16 codes. Parity data is obtained by XORing all<br />

input data in units of bytes before dividing. The input data is calculated based on shift<br />

JIS for Kanji, or on JIS 8 for others. Examples are shown below:<br />

“0123456789 ” is divided into “0123”, “4567”, and “89 ”.<br />

Code No. 1 No. of divided codes: 3 Parity data: 84 Data “0123”<br />

Code No. 2 No. of divided codes: 3 Parity data: 84 Data “4567”<br />

Code No. 3 No. of divided codes: 3 Parity data: 84 Data “89 ”<br />

* The parity data is the XORed value for “0123456789 ”.<br />

30 31 32 33 34 35 36 37 38 39 93 FA 96 7B = 85<br />

Note<br />

When the QR code is printed, note the setting for the coordinates positions. If the<br />

specified coordinates are close to the maximum effective print length, the QR code may<br />

not be included within the maximum effective print length, depending on the 1-cell width<br />

or the data count. If the QR code is not included within the maximum effective print<br />

width, one part of the printed QR code may be missing. Be sure to check to see if the<br />

QR code is included within the effective print length.<br />

(For example, when the maximum effective print length is 97 mm, if the Y-coordinate of<br />

the QR code is set to 90 mm, one part of the printed QR code may be missing,<br />

depending on the QR code size.<br />

6-47


6. LABEL MODE (INTERFACE COMMANDS)<br />

(10) Security level<br />

The PDF417 contains a function to correct a code reading error using an error<br />

correcting code word and restore normal data. The security level should be<br />

designated according to usage to perform the error correction function.<br />

Security level Error Correction Ability<br />

No. of error correction<br />

code words<br />

Level 0 0<br />

Level 1 Low<br />

2<br />

Level 2 6<br />

Level 3 14<br />

Level 4 30<br />

Level 5 62<br />

Level 6 126<br />

Level 7 High<br />

254<br />

Level 8 510<br />

(11) No. of columns (strings)<br />

The number of lines is variable in the PDF417. The line length (No. of data<br />

strings) is also variable. Therefore, a symbol can be created in a form that can be<br />

easily printed, by changing the proportion of the height and width.<br />

The number of columns (data strings) is variable between 1 and 30.<br />

If a small value for the number of columns is set when the data is large and the<br />

security level is high, drawing may not be performed. This is because the number<br />

of lines exceeds 90 when the number of columns becomes small. If the number<br />

of lines exceeds 90, a label is issued without being printed.<br />

(When the PDF417 is used, the number of lines of symbols is limited from 3 to<br />

90.)<br />

Example<br />

Origin of<br />

coordinates<br />

(0, 0)<br />

Effective print width<br />

Effective<br />

print length<br />

(5 mm, 18 mm)<br />

Bar code No. 00<br />

NW7<br />

10 mm<br />

Label<br />

Backing paper<br />

[ESC] XB00 ; 0050, 0180, 4, 1, 02, 02, 05, 05, 02, 0, 0100, 0, 07, 1, 0 [LF] [NUL]<br />

6-48


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.6 COMMANDS RELATED TO ISSUE AND FEED<br />

6.6.1 DATA PRINT COMMAND [ESC] X<br />

Function<br />

Format<br />

Draws or prints the data.<br />

[IrDA: TEC Protocol]<br />

Xabcddd --- eee --- nnn ---<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

[ESC] Xabcddd --- eee --- nnn --- [NUL]<br />

Term a: Form No.<br />

01H to 14H (1 to 20)<br />

7 6 5 4 3 2 1 0<br />

Form No. (Bit 0 to Bit 6) 01H to 14H (1 to 20)<br />

Reprint key enabled or disabled (Bit 7)<br />

Selection of the reprint key function<br />

0: Enabled<br />

1: Disabled<br />

When the form No. is 81H to 8AH (1 to 10) and if an error occurs during<br />

printing, the reprint key will be enabled until a label is successfully issued.<br />

When the form No. is 8BH to 94H (11 to 20), the reprint key will be disabled if<br />

an error occurs during printing.<br />

b: Sensor designation and ACK (IrDA: TEC Protocol) /status transmission (IrDA:<br />

IrCOMM, RS-232C, Bluetooth) to notify the issue end<br />

00H: Transmissive sensor, No ACK/status transmission<br />

01H: Transmissive sensor, ACK/status transmission<br />

10H: Reflective sensor, No ACK/status transmission<br />

11H: Reflective sensor, ACK/status transmission<br />

20H: No sensor designation, No ACK/status transmission<br />

21H: No sensor designation, ACK/status transmission<br />

c: No. of labels to be issued<br />

01H to FFH (1 to 255)<br />

In the strip issue mode, one label is issued. If the number of labels is<br />

designated, it will be ignored.<br />

ddd ---: Data of character/bar code/2-D code No. 00<br />

eee ---: Data of character/bar code/2-D code No. 01<br />

nnn ---: Data of character/bar code/2-D code No. nn<br />

When a delimiter is required, it<br />

should be added to the end of<br />

data. (Refer to “Explanation”.)<br />

6-49


6. LABEL MODE (INTERFACE COMMANDS)<br />

Explanation<br />

(1) When the printer receives this command, the following operations will be<br />

performed.<br />

c The printer clears the drawing buffer.<br />

d The printer links the form to the data.<br />

e The printer draws the data in the drawing buffer.<br />

f The printer draws the data if invocation of graphics is set in the form.<br />

g The printer sets the print density/position fine adjustment values stored in the<br />

form.<br />

h The printer starts printing<br />

(2) Data is indicated in JIS 8 code or packed BCD code. The type of data code is set<br />

by the Bit Map Font Field Command, the Outline Font Field Command, or the Bar<br />

Code/Two-dimensional Code Format Command.<br />

(3) When the length and the data code set by the Bit Map Font Field Command, the<br />

Outline Font Field Command, or the Bar Code/Two-dimensional Code Format<br />

Command is “00” and JIS 8 code, respectively, the delimiter [LF] (0AH) should be<br />

entered at the end of the field data. When the packed BCD is used as the data<br />

code, the delimiter “F” (4 bits) should be entered at the end of the field data. When<br />

the data length stored in the form is anything other than “00”, a delimiter such as<br />

[LF] or “F” should not be attached, since the length of the data is linked.<br />

(4) If the length of the data corresponding to one field (including a delimiter) is an odd<br />

number of digits when the packed BCD code is used, the last 4 bits of the final data<br />

in the field should be “0”.<br />

(5) When there is data which does not match the type of bar code/two-dimensional<br />

code in the data string for the bar code/two-dimensional code, the bar code/twodimensional<br />

code is not drawn. When the bar code/two-dimensional code digit is<br />

fixed, and the type of bar code/two-dimensional code does not match the number of<br />

the data digit, the bar code/two-dimensional code is not drawn.<br />

(6) If an error occurs while printing two or more labels, the printer stops printing, lights<br />

up the LED, discards the remaining data, and reverts to a wait state for a<br />

command.<br />

(7) If the form which corresponds to the form No. designated is not stored, a syntax<br />

error will occur.<br />

(8) When the form No. is other than 01H to 14H, the Data Print Command is<br />

discarded.<br />

(9) When the number of labels to be printed is other than 01H to FFH, a syntax error<br />

will occur.<br />

(10) If the battery capacity becomes low while printing two or more labels, the printer<br />

may stop after issuing every label (for Max. 3 seconds).<br />

6-50


6. LABEL MODE (INTERFACE COMMANDS)<br />

(11) Automatic status transmission (IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN)<br />

When the status response is designated, the printer automatically sends the printer<br />

status and the battery status after issuing labels.<br />

Data to be sent (Fixed as 5 bytes)<br />

STX Printer ID Printer status Battery status<br />

02H xxH xxH xxH xxH<br />

Printer ID ............2-byte hex data (in order from High to Low)<br />

Printer status ......Printer status is indicated in 1-byte data.<br />

02H: Command syntax error<br />

03H: Paper jam<br />

04H: Label end<br />

05H: Cover open error<br />

06H: Broken thermal head dots error<br />

07H: Thermal head excessive temperature<br />

08H: Flash ROM write error<br />

09H: Flash ROM erase error<br />

0AH: Low battery (Print failure)<br />

0DH: Normal end + Label end (See NOTE.)<br />

0EH: Flash ROM storage area full state<br />

10H: Normal issue end<br />

0DH: Normal issue end + Label end<br />

This is a state when the printer runs out of labels, after<br />

the effective print length is printed.<br />

Battery status...........The battery charge status is indicated in 5 levels.<br />

01H: 7.2 V or less (Print failure)<br />

02H: 7.3 V to 7.4 V<br />

(Remaining No. of printable labels: Approx. 20 or less)<br />

03H: 7.5 V to 7.7 V<br />

(Remaining No. of printable labels: Approx. 20 to 100)<br />

04H: 7.8 V to 7.9 V<br />

(Remaining No. of printable labels: Approx. 100 to 200)<br />

05H: 8.0 V or more<br />

(Remaining No. of printable labels: Approx. 200 or more)<br />

* The remaining number of printable labels may vary according to<br />

the contents to be printed and the ambient environment.<br />

(12) If an error occurs when 99% of print data has been printed, pressing the FEED key<br />

after clearing the error causes the printer to reprint, even when the restart key is set<br />

to disabled and the form number is selected from 1 to 10.<br />

(13) If an error occurs before printing, the printer will not reprint by pressing the FEED<br />

key after clearing the error, when the restart key is set to disabled and the form<br />

number is selected from 11 to 20.<br />

(14) In case of “normal issue end + label end”, pressing the FEED key after clearing the<br />

error causes the printer to reprint even when the restart key is set to disabled and<br />

the form number is selected from 1 to 10.<br />

6-51


6. LABEL MODE (INTERFACE COMMANDS)<br />

(15) When the sensor is specified, even if a gap or a black mark is detected within less<br />

than 90% of the effective print length specified by the Label Size Set Command, it<br />

is ignored.<br />

However, this is not applicable when the programmed media pitch is less than<br />

40mm. When this media is used and a gap or a black mark is detected within less<br />

than 90% of the effective print length, the detected gap or black mark will be<br />

effective. As a result, printing will stop even if it is halfway.<br />

• The definition of packed BCD code<br />

Code Character string Bar code<br />

Standard/<br />

EAN8/13<br />

Bold Price Others<br />

Presentation<br />

ITF<br />

EAN128 MIS<br />

NW7 CODE39 CODE128<br />

0000 (0)<br />

~ 1001 (9)<br />

“0” ~ “9”<br />

1010 (A) Reserved “-“ “$” “£” Reserved “a” “*” “ ”<br />

1011 (B) Reserved Reserved Reserved “p” Reserved “b” “-” “ ”<br />

1100 (C) “.” Reserved “.” “.” Reserved “c” “.” “ ”<br />

1101 (D) “ ” “ ” “ ” “ ” Reserved “d” “ ” “ ”<br />

1110 (E) Reserved<br />

1111 (F) Delimiter<br />

* E (H) is reserved for expansion. F (H) is used as the delimiter for each field in the<br />

Data Print Command (only when the data length and the data code are “00” and<br />

“Packed BCD code”, respectively).<br />

[Example] Bar code data = “a 1 2 3 4 5 6 7 8 9 0 d”<br />

[A1H] [23H] [45H] [67H] [89H] [0DH]<br />

a1 23 45 67 89 0d<br />

6-52


6. LABEL MODE (INTERFACE COMMANDS)<br />

z When the manual mode is selected in the Format Command for a QR code<br />

• Numeric mode, alphanumeric and symbol mode, Kanji mode<br />

Mode selection<br />

Data to be printed<br />

• Binary mode<br />

Mode selection<br />

No. of data strings<br />

(4 digits)<br />

Data to be printed<br />

• Mixed mode<br />

Data “,” (comma) Data “,” (comma) Data<br />

The QR code can handle all codes including alphanumerics, symbols and Kanji.<br />

Since data compression rate varies according to codes, the code to be used is<br />

designated when the mode is selected.<br />

Mode Code Details<br />

N Numerals 0 to 9<br />

A Alphanumerics, symbols A to Z 0 to 9 space<br />

$ % * + - . / :<br />

B Binary (8-bit) 00H to FFH<br />

K Kanji Shift JIS<br />

If mixed mode is selected, up to 200 modes can be selected in a QR code.<br />

z When the automatic mode is selected in the Format Command for a QR code.<br />

Data to be printed<br />

c How to send the control code data<br />

NUL (00H) = > @ (3EH, 40H)<br />

SOH (01H) = > A (3EH, 41H)<br />

STX (02H) = > B (3EH, 42H)<br />

GS (1DH) = > ] (3EH, 5DH)<br />

RS (1EH) = > ^ (3EH, 5EH)<br />

US (1FH) = > _ (3EH, 5FH)<br />

d How to send the special codes<br />

> (3EH) = > 0 (3EH, 30H)<br />

6-53


6. LABEL MODE (INTERFACE COMMANDS)<br />

[Transfer code]<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 NUL DLE SP 0 @ P ` p<br />

1 SOH DC1 ! 1 A Q a q<br />

2 STX DC2 ” 2 B R b r<br />

3 ETX DC3 # 3 C S c s<br />

4 EOT DC4 $ 4 D T d t<br />

5 ENQ NAK % 5 E U e u<br />

6 ACK SYN & 6 F V f v<br />

7 BEL ETB ’ 7 G W g w<br />

8 BS CAN ( 8 H X h x<br />

9 HT EM ) 9 I Y i y<br />

A LF SUB * : J Z j z<br />

B VT ESC + ; K [ k {<br />

C FF FS , < L \ l |<br />

D CR GS - = M ] m }<br />

E SO RS • > N ^ n ~<br />

F SI US / ? O _ o DEL<br />

* The shaded parts are Japanese.<br />

They are omitted here.<br />

When the automatic mode is selected in the Format Command, FFH data cannot be<br />

used. It is available when the manual mode is selected.<br />

Examples of data designation for QR code<br />

c Alphanumeric mode: ABC123<br />

A A B C 1 2 3<br />

Data to be printed<br />

Designation of mode<br />

d Binary mode: 01H, 03H, 05H<br />

B 0 0 0 6 > A > C > E<br />

Data to be printed<br />

No. of data strings<br />

Designation of mode<br />

e Mixed mode<br />

Numeric mode : 123456<br />

Kanji mode : Kanji data<br />

Binary mode : a i u e o<br />

Alphanumeric mode : ABC<br />

N 1 2 3 4 5 6, K Kanji data, B 0 0 1 0 a i u e o , A A B C<br />

Data to be Data to be No. of Data to be printed Data to be<br />

printed<br />

printed data strings<br />

printed<br />

Designation of mode<br />

f Automatic mode<br />

When the data above (e) is designated in automatic mode:<br />

1 2 3 4 5 6 Kanji data a i u e o A B C<br />

Data to be printed<br />

6-54


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.7 COMMANDS RELATED TO FORMAT<br />

6.7.1 FLASH MEMORY STORAGE AREA FORMAT COMMAND [ESC] J1<br />

Function<br />

Format<br />

Formats (Initializes) the form storage area in flash memory.<br />

[ESC] J1; a [LF] [NUL]<br />

Term a: Format (Initialization) designation<br />

A: Form storage area<br />

B: Writable character storage area<br />

C: Graphic storage area<br />

D: All storage areas (Form, Writable character, Graphic)<br />

Explanation<br />

Refer to<br />

(1) When the storage area in flash ROM becomes full, the old data is automatically<br />

deleted and only the newest data is left.<br />

Only the form storage area in flash ROM can be forcefully cleared by this<br />

command. However, if this command is sent, all data of the stored forms, including<br />

the newest data, is deleted (initialized).<br />

Form Store Start Command ([ESC] XO)<br />

6-55


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.8 COMMANDS RELATED TO WRITABLE CHARACTERS<br />

6.8.1 WRITABLE CHARACTER DATA STORE COMMAND [ESC] XD<br />

Function<br />

Format<br />

Stores writable characters and logos into flash memory.<br />

[ESC] XD ; aa, bbb --- bbb [LF] [NUL]<br />

Term aa: Writable character code<br />

FF40H to FF71H<br />

bbb---bbb:<br />

Writable character data (Fixed as 72 bytes)<br />

Explanation<br />

Graphic width 24 dots<br />

1 00H 2 60H 3 00H<br />

Graphic<br />

height<br />

24 dots<br />

4 00H 5 70H 6 00H<br />

•<br />

•<br />

•<br />

•<br />

•<br />

•<br />

67 EFH 68 80H 69 00H<br />

70 3EH 71 00H 72 00H<br />

8 dots 8 dots 8 dots<br />

(1) The writable character data should be separated into units of 8 dots and sent in the<br />

above order (1 to 72).<br />

(2) The writable character data is 00H to FFH.<br />

(3) The number of dots of a writable character width and a writable character height<br />

are fixed as 24 dots. Dots with no data are transmitted as data 0. 72-byte data<br />

should be sent.<br />

(4) Max. 50 types of writable character data can be stored. The writable character data<br />

is backed up in memory (even if the power is turned off).<br />

(5) Writable character data is assigned from FF40H to FF71H. Therefore, to read the<br />

code, the code (2 bytes) which was stored by this command should be designated.<br />

(6) A new writable character can be stored in codes which have been stored in an<br />

already existing code.<br />

6-56


6. LABEL MODE (INTERFACE COMMANDS)<br />

Example<br />

Graphic width 24 dots<br />

Graphic<br />

height<br />

24 dots<br />

8 dots 8 dots 8 dots<br />

[ESC]XD;,<br />

[00H][60H][00H][00H][70H][00H][00H][78H][00H]<br />

[00H][7CH][00H][00H][6EH][00H][00H][67H][00H]<br />

[00H][63H][80H][00H][61H][80H][00H][61H][C0H]<br />

[00H][60H][C0H][00H][61H][C0H][00H][61H][80H]<br />

[00H][63H][80H][00H][67H][C0H][00H][66H][00H]<br />

[0FH][60H][00H][0EH][60H][00H][3FH][E0H][00H]<br />

[7FH][FEH][00H][FFH][E0H][00H][FFH][C0H][00H]<br />

[FFH][C0H][00H][EFH][80H][00H][3EH][00H][00H]<br />

[LF][NUL]<br />

6-57


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.9 COMMANDS RELATED TO GRAPHICS<br />

6.9.1 GRAPHIC DATA STORE COMMAND [ESC] SG<br />

Function<br />

Format<br />

Stores the graphic data on the printer.<br />

[ESC] SG ; a, bbbb, cccc, ddd --- ddd [LF] [NUL]<br />

Term a: Graphic No.<br />

1 to 2<br />

bbbb:<br />

cccc:<br />

ddd --- ddd:<br />

No. of graphic width dots to be stored<br />

0001 to 0384 (in units of dots)<br />

No. of graphic height dots to be stored<br />

0001 to 0720 (in units of dots)<br />

Graphic data<br />

Explanation<br />

Graphic width 19 dots<br />

1 00H 2 60H 3 00H<br />

Graphic<br />

height<br />

22 dots<br />

4 00H 5 70H 6 00H<br />

•<br />

•<br />

•<br />

•<br />

67 EFH 68 80H 69 00H<br />

70 3EH 71 00H 72 00H<br />

8 8<br />

8<br />

(1) The graphic data should be separated into units of 8 dots and sent in the above<br />

order (1 to 72).<br />

(2) The graphic data is 00H to FFH.<br />

(3) The minimum unit of a graphic width is 8 dots. Dots with no data are transmitted as<br />

data 0.<br />

(4) The number of bytes of the graphic to be transmitted must be as follows;<br />

The number of bytes of the graphic to be transmitted = {(No. of graphic width dots +<br />

7)/8} × No. of graphic height dots<br />

* The value in the brackets is rounded down to the nearest whole number.<br />

6-58


6. LABEL MODE (INTERFACE COMMANDS)<br />

Example<br />

Graphic width 19 dots<br />

Graphic<br />

height<br />

22 dots<br />

[ESC]SG;1,0019,0024,<br />

[00H][60H][00H][00H][70H][00H][00H][78H][00H]<br />

[00H][7CH][00H][00H][6EH][00H][00H][67H][00H]<br />

[00H][63H][80H][00H][61H][80H][00H][61H][C0H]<br />

[00H][60H][C0H][00H][61H][C0H][00H][61H][80H]<br />

[00H][63H][80H][00H][67H][C0H][00H][66H][00H]<br />

[0FH][60H][00H][0EH][60H][00H][3FH][E0H][00H]<br />

[7FH][FEH][00H][FFH][E0H][00H][FFH][C0H][00H]<br />

[FFH][C0H][00H][EFH][80H][00H][3EH][00H][00H]<br />

[LF][NUL]<br />

6-59


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.9.2 GRAPHIC FIELD COMMAND [ESC] N<br />

Function<br />

Format<br />

Sets how the graphic data is to be printed on the label.<br />

[ESC] N ; a, bbbb, cccc [LF] [NUL]<br />

Term a: Graphic No. to be invoked and drawn<br />

1 to 2<br />

bbbb:<br />

cccc:<br />

Print origin of X-coordinate of graphic data<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Print origin of Y-coordinate of graphic data<br />

Fixed as 4 digits (in 0.1 mm units)<br />

Explanation<br />

(1) If the Graphic Field Command is stored in a form, like the Bit Map Font Field<br />

Command, the Outline Font Field Command, or the Bar Code/Two-dimensional<br />

Code Format Command, the graphic data is automatically drawn, when the stored<br />

form is invoked by the Data Print Command.<br />

(2) When no graphic data has been stored, the printer does not print any graphics even<br />

if a graphic data number is specified by the Graphic Field Command.<br />

0 X<br />

Y<br />

Paper feed direction<br />

Origin of coordinates<br />

(0, 0)<br />

Print origin of<br />

coordinates<br />

Width of the graphic<br />

Effective<br />

print length<br />

Height of<br />

the graphic<br />

Effective print width<br />

6-60


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.10 COMMANDS RELATED TO PC COMMAND SAVING<br />

6.10.1 FORM STORE START COMMAND [ESC] XO<br />

Function<br />

Format<br />

Declares the start of form storage.<br />

[ESC] XO ; aa, b [LF] [NUL]<br />

Term aa: Form No.<br />

01 to 20<br />

b: Form version No.<br />

0 to 9 (It is not stored when “0” is designated)<br />

Notes<br />

(1) Max. 20 types can be stored. However, since the memory capacity is limited, the<br />

maximum number may vary depending on the form size to be stored.<br />

(2) The data which is stored most recently is the newest in spite of the version No.<br />

(3) When the form number which has been stored is stored again, the new form can be<br />

stored if the Form Store Start Command ([ESC] XO) is sent. However, memory is<br />

used every time a form is stored again.<br />

(4) Until the Form Store Terminate Command ([ESC] XP) is received after the Form<br />

Store Start Command ([ESC] XO) is received, any command other than below is<br />

not stored and is ignored.<br />

• Label Size Set Command ([ESC] D)<br />

• Print Density Fine Adjust Command ([ESC] AY)<br />

• Position Fine Adjust Command ([ESC] AX)<br />

• Bit Map Font Field Command ([ESC] PC)<br />

• Outline Font Field Command ([ESC] PV)<br />

• Bar Code/Two-dimensional Code Format Command ([ESC] XB)<br />

• Graphic Field Command ([ESC] N)<br />

• Line Format Command ([ESC] LC)<br />

(5) If the Form Store Start Command is not sent, the Label Size Set Command ([ESC]<br />

D), the Bit Map Font Field Command ([ESC] PC), the Outline Font Field Command<br />

([ESC] PV), the Bar Code/Two-dimensional Code Format Command ([ESC] XB),<br />

and the Graphic Field Command ([ESC] N) are ignored and discarded.<br />

After the Form Store Start Command is sent, the Label Size Set Command should<br />

be sent before each field command, the Print Density Fine Adjust Command, or the<br />

Position Fine Adjust Command is sent.<br />

(6) When there is no free space in the form storage area in flash ROM because of<br />

storing a form, this area is automatically initialized. However, the latest version of<br />

each form is held.<br />

Refer to<br />

Form Store Terminate Command ([ESC] XP)<br />

Example To start storing version 3 of form No. 2.<br />

[ESC] XO ; 02, 3 [LF] [NUL]<br />

6-61


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.10.2 FORM STORE TERMINATE COMMAND [ESC] XP<br />

Function<br />

Format<br />

Note<br />

Refer to<br />

Declares the termination of form storage.<br />

[ESC] XP [LF] [NUL]<br />

(1) If the Form Store Start Command ([ESC] XO) is not previously received when this<br />

command is received, this command is ignored.<br />

Form Store Start Command ([ESC] XO)<br />

6-62


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.11 COMMANDS RELATED TO CONTROL<br />

6.11.1 INITIALIZE COMMAND [ESC] WR, [ESC] @<br />

Function<br />

Format<br />

Explanation<br />

Returns the printer to its initial state.<br />

[ESC] WR [LF] [NUL]<br />

[ESC] @<br />

(1) The printer is returned to the same state as when the power is turned on.<br />

(2) If the printer receives this command during printing, the printer prints the label<br />

which is being printed, then performs initialization.<br />

(3) The host should not send the next command within 5 second after sending the<br />

Initialize Command (or after the printer completes printing if receiving the Initialize<br />

Command during printing). In IrDA: TEC Protocol, if ACK/status transmission is<br />

specified by the Issue Command, the printer returns an ACK, which indicates the<br />

command process end, to the EOT after the printer is initialized. In RS-232C, when<br />

the status response is specified, the printer returns the status (10H). After this<br />

status is received, the next command may be sent. In IrDA: IrCOMM, Bluetooh, or<br />

Wireless LAN, the printer does not return the status.<br />

(4) To use IrDA interface for sending this command to the printer, only this command<br />

should be sent. After the command is sent, the link should be terminated. Even if<br />

the host does not terminate the link, the printer performs the termination process.<br />

Therefore, after initialization is completed, the host should establish the link again.<br />

(5) When receiving this command during data transmission, the printer is initialized<br />

after transmission is completed.<br />

6-63


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.12 COMMANDS RELATED TO STATUS<br />

6.12.1 STATUS REQUEST COMMAND [ESC] FM, [ESC] WS, [ESC] v<br />

Function<br />

Format<br />

Explanation<br />

Sends the printer status to the host computer.<br />

[ESC] FM [LF] [NUL]<br />

[ESC] WS [LF] [NUL]<br />

[ESC] v<br />

When receiving this command, the printer sends the printer status and battery status to<br />

the host.<br />

• For IrDA: TEC Protocol: Data to be sent (Fixed as 27 bytes)<br />

STX Printer ID Version No. of each form Printer status Battery status CRC<br />

02H xxH xxH V01 V02 ········· V20 xxH xxH xxH xxH<br />

• For IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN: Data to be sent (Fixed as 5<br />

bytes)<br />

STX Printer ID Printer status Battery status<br />

02H xxH xxH xxH xxH<br />

Printer ID...............2-byte hex data (in order from High to Low)<br />

Printer status.........Printer status is indicated in 1-byte data.<br />

00H: Normal status (Idling)<br />

01H: Cover open status<br />

02H: Command syntax error<br />

03H: Paper jam<br />

04H: Label end<br />

05H: Cover open error<br />

06H: Broken thermal head dots error<br />

07H: Thermal head excessive temperature<br />

08H: Flash ROM write error<br />

09H: Flash ROM erase error<br />

0AH: Low battery (Print failure)<br />

0BH: Operating<br />

0DH: Normal end + Label end (See NOTE.)<br />

0EH: Flash ROM storage area full state<br />

(10H: Normal termination): A response sent from the printer only<br />

when the automatic status transmission<br />

is designated.<br />

NOTE: This is a state when the printer runs out of labels, after<br />

the effective print length is printed.<br />

6-64


6. LABEL MODE (INTERFACE COMMANDS)<br />

Battery status...........The battery charge status is indicated in 5 levels.<br />

01H: 7.2 V or less (Print failure)<br />

02H: 7.3 V to 7.4 V<br />

(Remaining No. of printable labels: Approx. 1 to 20)<br />

03H: 7.5 V to 7.7 V<br />

(Remaining No. of printable labels: Approx. 20 to 100)<br />

04H: 7.8 V to 7.9 V<br />

(Remaining No. of printable labels: Approx. 100 to 200)<br />

05H: 8.0 V or more<br />

(Remaining No. of printable labels: Approx. 200 or more)<br />

* The remaining number of printable labels may vary according to<br />

the contents to be printed and the ambient environment.<br />

CRC.........................2-byte hex data (in order from Low to High)<br />

6-65


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.12.2 MODE INFORMATION ACQUIRE COMMAND [ESC] WX<br />

Function<br />

Format<br />

Explanation<br />

Sends the printer mode information to the host.<br />

[ESC] WX [LF] [NUL]<br />

(1) The mode information format to be sent to the host, is as follows:<br />

[IrDA: TEC Protocol]<br />

STX Mode information (16 bytes) CRC CRC<br />

L A B E L SP SP SP SP SP SP SP SP SP SP SP<br />

02H 4CH 41H 42H 45H 4CH 20H 20H 20H 20H 20H 20H 20H 20H 20H 20H 20H xxH xxH<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

STX<br />

Mode information (16 bytes)<br />

L A B E L SP SP SP SP SP SP SP SP SP SP SP<br />

02H 4CH 41H 42H 45H 4CH 20H 20H 20H 20H 20H 20H 20H 20H 20H 20H 20H<br />

The above is an example where the message is received in the LABEL mode. In addition, the message<br />

of “TPCL-LE”, “TPCL-LE1”, “RECEIPT”, or “RECEIPT1” is returned.<br />

6-66


6. LABEL MODE (INTERFACE COMMANDS)<br />

6.13 COMMANDS RELATED TO Bluetooth AND WIRELESS LAN<br />

6.13.1 DEVICE ADDRESS ACQUIRE COMMAND [ESC] IT<br />

Function<br />

Format<br />

Explanation<br />

Calls up the device address of the Bluetooth interface or MAC address of the wireless<br />

LAN interface connected to the printer.<br />

[ESC] IT [LF] [NUL]<br />

(1) This command calls up the device address of the Bluetooth or MAC address of the<br />

wireless LAN. On receiving this command, the printer returns the Bluetooth device<br />

address or MAC address with the complenents of the following information field.<br />

When using the IrDA: TEC Protocol, the following information field is placed in the<br />

information frame and sent in packets.<br />

[Information field to be sent when IrDA: TEC Protocol is used]<br />

STX Bluetooth device address CRC<br />

02H 12 bytes xxH xxH<br />

[Information field to be sent when IrDA: IrCOMM, RS-232C, Bluetooth, wireless LAN<br />

is used]<br />

STX<br />

02H<br />

Bluetooth device address<br />

12 bytes<br />

Example<br />

[ESC] IT [LF] [NUL]<br />

When Bluetooth device address is 0001ccf0042b, the printer sends the following<br />

information.<br />

Bluetooth device address:<br />

[30H] [30H] [30H] [31H] [63H] [63H] [66H] [30H] [30H] [34H] [32H] [62H]<br />

0 0 0 1 c c f 0 0 4 2 b<br />

6-67


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.1 GENERAL DESCRIPTION<br />

This chapter describes details on the interface commands for the RECEIPT and RECEIPT1 modes of<br />

the print mode. If operations are the same between the RECEIPT mode and the RECEIPT1 mode,<br />

only “RECEIPT mode” is described in explanations, and the RECEIPT1 mode is included. If<br />

operations are different between them, the RECEIPT mode (Mode = 1 or 3) or the RECEIPT1 mode<br />

(Mode = 2) is specified. In the RECEIPT mode, only batch issues are supported.<br />

[Command List]<br />

Format<br />

Command<br />

Automatic ACK/Status Response<br />

(conditionally)<br />

[ESC]M<br />

Mode Select Command<br />

No, when the mode is changed to<br />

TPCL-LE.<br />

[ESC]3 Line Feed Length Set Command No<br />

[ESC]a Print Position Align Command No<br />

[ESC]L Line Format Command No<br />

[ESC]K Font Type Command No<br />

[ESC]KV Outline Font Format Command No<br />

[GS]k Bar Code/Two-Dimensional Code Print Command No<br />

[ESC]! Character Magnification Command No<br />

[GS]W Bar Code Horizontal Size Command No<br />

[GS]h Bar Code Height Command No<br />

[GS]Hn Numerals Under Bars Command No<br />

[GS]s Security Level Command No<br />

[GS]c No. of Columns (Strings) Command No<br />

[ESC]W Print Width Command No<br />

[ESC]H Horizontal Print Position Command No<br />

[ESC]O Horizontal Offset Position Command No<br />

[ESC]R Character Rotate Command No<br />

[GS]q Error Correction Level Set Command No<br />

[GS]r QR Code Model Set Command No<br />

[LF] Print Line Feed Command No<br />

[ESC]B Back Feed Omission Command No<br />

[ESC]SG Graphic Data Store Command Yes<br />

[GS]/ Graphic Print Command No<br />

[ESC]WR<br />

[ESC]@<br />

Initialize Command<br />

Yes, only when the interface is IrDA<br />

(TEC Protocol) or RS-232C<br />

[ESC]WS Status Request Command ---<br />

[ESC]FM<br />

[ESC]v<br />

[ESC]WX Mode Information Acquire Command ---<br />

[ESC]WV Version Information Acquire Command ---<br />

[ESC]IT Device Address Acquire Command ---<br />

[GS]: Macro Definition Command No<br />

[GS]^ Macro Execute Command No<br />

7-1


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.2 OUTLINE OF COMMANDS<br />

7.2.1 FORMAT OF INTERFACE COMMAND<br />

ESC<br />

Command<br />

GS<br />

Command<br />

ESC Command LF NUL<br />

7.2.2 HOW TO USE REFERENCE<br />

Function<br />

Format<br />

Term<br />

Initial value<br />

Explanation<br />

Refer to<br />

Describes the outline of the function of the command.<br />

Shows the format of the command<br />

The format designation method should conform to the following rules:<br />

• “n” indicates a parameter item.<br />

• Brackets and parentheses are used only in coding, and must not be<br />

transmitted in practice.<br />

• Other symbols must always be inserted at the designated positions before<br />

being transmitted.<br />

Explains the term(s) used in the format.<br />

Indicates the initial value of the parameter (when turning the power on, or<br />

changing the print mode to the RECEIPT mode.)<br />

Explains the command in detail.<br />

Related commands<br />

7-2


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.2.3 PRECAUTIONS<br />

(1) The host should send the print data and the Print Line Feed Command for printing. Commands<br />

other than these should be sent as required.<br />

(2) Character type<br />

Only standard characters are used when printing the data.<br />

[Ex] 1 2 3 4 5 A B C D E<br />

[31H] [32H] [33H] [34H] [35H] [41H] [42H] [43H] [44H] [45H]<br />

1 2 3 4 5 A B C D E<br />

(3) While the RECEIPT mode is selected, the print density fine adjustment cannot be performed,<br />

and the writable character data cannot be stored. To perform the print density fine adjustment,<br />

or to store the writable character data, change the print mode from the RECEIPT mode to the<br />

LABEL or the TPCL-LE mode.<br />

(4) [FEED] switch<br />

In the RECEIPT mode, if the [FEED] switch is pressed, the receipt is not printed again. A 20-<br />

mm feed is performed. To cut a receipt using the tear bar after issuing it, a receipt can be fed to<br />

the position at which the receipt can be easily cut by pressing the [FEED] switch.<br />

(5) Error processing<br />

[RECEIPT mode]<br />

When an error occurs while the printer is issuing a receipt, the LED blinks. The printer<br />

discards all data and commands which have been received, and enters a wait state for a<br />

command. Therefore, if an error occurs, the print data or a command should be sent again<br />

after clearing the error.<br />

[RECEIPT1 mode]<br />

After the label end error or the cover open error is cleared, the printer automatically continues<br />

printing the data which has been received before the error occurred.<br />

(6) Status response<br />

In the RECEIPT mode, the printer does not automatically send a status indicating the normal<br />

end. Therefore, the host should send the Status Request Command to check the printer status.<br />

However, when the Mode Select Command or the Graphic Command is sent, or if an error<br />

occurs, the printer sends the status. In IrDA: IrCOMM communications, only when the status<br />

transmission is specified, the printer sends the status.<br />

(7) Initial values<br />

When the power is turned on or when RECEIPT mode or RECEIPT1 mode is selected, the initial<br />

values will be set. The initial values are also set when the mode is switched between RECEIPT<br />

mode and RECEIPT1 mode, or when the mode is switched from RECEIPT mode to RECEIPT<br />

mode, or from RECEIPT1 mode to RECEIPT1 mode.<br />

7-3


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.3 COMMANDS RELATED TO SETTING<br />

7.3.1 MODE SELECT COMMAND [ESC] M<br />

Function<br />

Format<br />

Changes the print mode.<br />

[ESC] M; a(,b) [LF] [NUL]<br />

Term a: Print mode designation<br />

7 6 5 4 3 2 1 0<br />

Print mode (Bit 0 to Bit 6 * See Table 1.)<br />

Automatic status response in IrDA: IrCOMM<br />

0: Not performed<br />

1: Performed<br />

* Table 1 Print mode<br />

HEX Mode How to deal with the received data after an error is cleared<br />

30H LABEL Discards<br />

31H RECEIPT Discards<br />

32H RECEIPT1 Continues printing<br />

33H RECEIPT Discards<br />

41H TPCL-LE Continues printing<br />

42H TPCL-LE1 Continues printing (* Firmware V1.5 or greater)<br />

b: Print position detection feed (Omissible. If omitted, the print position detection feed<br />

is not performed.) (Firmware V1.1 or greater)<br />

0: When the mode change from RECEIPT or RECEIPT1 to LABEL is requested,<br />

a print position detection feed is not performed after the mode is changed.<br />

1: When the mode change from RECEIPT or RECEIPT1 to LABEL is requested,<br />

a print position detection feed is performed after the mode is changed.<br />

Explanation<br />

(1) There are 3 types of the print mode: “LABEL”, “RECEIPT”, and “TPCL-LE”.<br />

(2) Both 31H and 33H are used for the “RECEIPT” mode. 33H is provided to maintain<br />

the compatibility with RECEIPT2 used for the conventional models. On the B-<br />

<strong>SP2D</strong>, the RECEIPT mode operation of 33H is the same as the 31H. Therefore,<br />

both 31H and 33H are defined as “RECEIPT”.<br />

(3) “Automatic status response in IrDA: IrCOMM” is the function for the specifications<br />

which do not allow the printer to spontaneously send the status thorough IrDA;<br />

IrCOMM. This function enables the printer to forcefully send the status to the host,<br />

if the link between the printer and the host is established. However, if the link<br />

between the printer and the host is not established upon the status transmission,<br />

the printer cannot send the status. Therefore, the status is discarded. (In the next<br />

connection to the host, the printer does not send the status to the host.)<br />

(4) “Print position detection feed” is a function that automatically feeds the label to the<br />

print start position after the print mode is changed from RECEIPT or RECEIPT1 to<br />

LABEL. The sensor is not used when issuing in RECEIPT or RECEIPT 1 mode,<br />

therefore, after mode is changed to LABEL, the print start position cannot be<br />

detected. This is useful when using sensor detectable paper in both RECEIPT and<br />

LABEL modes.<br />

7-4


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

(5) In the TPCL-LE1 mode, it is possible to re-print the last print data by pressing the<br />

FEED button.<br />

Notes<br />

(1) The print mode designation (the specified print mode and the automatic status<br />

response in IrDA: IrCOMM) is backed up in memory (even if the power is turned<br />

off).<br />

(2) The factory default is “30H: LABEL mode” and “Automatic status response in IrDA:<br />

IrCOMM is not performed”. (The IrDA protocol is “TEC Protocol”.)<br />

(3) When the print mode is changed, the type of sensor is automatically changed.<br />

LABEL mode (0): The previously backed up sensor is designated.<br />

TPCL-LE mode (A): The previously backed up sensor is designated.<br />

TPCL-LE1 mode (B): The previously backed up sensor is designated.<br />

RECEIPT mode (1 or 3): No sensor is designated.<br />

RECEIPT1 mode (2): No sensor is designated.<br />

(4) If the RECEIPT mode is selected or no sensor is designated in the LABEL or<br />

TPCL-LE mode, an initial feed is not performed when the cover is closed.<br />

(5) When the mode change is finished, the printer sends the normal end status or an<br />

ACK to the host. However, when the mode is changed to the TPCL-LE mode, the<br />

printer does not send the status. In IrDA: IrCOMM, only when bit 7 of the print<br />

mode designation is set to “1”, the printer sends the status.<br />

(6) The print mode can be changed by the printer itself. However, since the setting for<br />

the automatic status response in IrDA: IrCOMM cannot be changed, the setting<br />

remains as the same.<br />

(7) As the print position detection feed parameter is effective only when changing the<br />

print mode to LABEL, this parameter status will be ignored when changing the<br />

mode to TPCL-LE.<br />

(8) The print position detection feed is performed according to the conditions, such as,<br />

label pitch, fine adjustment, and sensor selection, which were set in the LABEL or<br />

TPCL-LE mode before the printer is operated in RECEIPT or RECEIPT1 mode. If<br />

no sensor is selected, the print position detection feed will not be performed.<br />

(9) After performing a print position detection feed, the printer does not send a process<br />

end status. If an error occurs during the print position detection feed, the printer<br />

does not feed after the error is cleared. However, when the error is cleared by<br />

opening/closing the cover, the print position detection feed is performed.<br />

(10) When changing the print mode by the printer itself, the print position detection feed<br />

parameter cannot be set.<br />

(11) When the mode select command is designated with the print position detection<br />

feed at the end of a print data issued in RECEIPT1 mode, and if an error occurs<br />

while printing, the printing will restart after the error is cleared and then, the print<br />

mode will be changed to the LABEL mode and a print position detection feed is<br />

performed.<br />

(12) When the LABEL mode is selected in the mode select command and the print<br />

position detection feed parameter is set 0 (not performed), and if an error occurs<br />

while the printer issues in RECEIPT1 mode, the print mode is changed to the<br />

LABEL mode after the error is cleared. (The mode select command is executed.)<br />

7-5


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

Normal mode<br />

(LED lights up in green or orange)<br />

Open the cover<br />

Press the [FEED] switch for 3 seconds<br />

Press the [FEED] switch<br />

Mode selection mode<br />

(LED lights up in red)<br />

Press the [POWER] switch<br />

Start from where the setting is currently made<br />

Press the [FEED] switch<br />

TPCL-LE mode<br />

(LED blinks in red once)<br />

Close the cover<br />

Mode selection mode<br />

is canceled.<br />

Press the [POWER] switch<br />

LABEL mode<br />

(LED blinks in red twice)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

RECEIPT mode<br />

(LED blinks in red 3 times)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

RECEIPT1 mode<br />

(LED blinks in red 4 times)<br />

Press the [POWER] switch<br />

TCP-LE1 mode<br />

(LED blinks in red 5 times)<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Save (update) the setting<br />

7-6


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.4 COMMANDS RELATED TO FINE ADJUSTMENT<br />

7.4.1 LINE FEED LENGTH SET COMMAND [ESC] 3<br />

Function<br />

Format<br />

Sets the length of the line feed (the number of dots) which is performed by the Print Line<br />

Feed Command ([LF]).<br />

[ESC] 3n<br />

Term n: Length of line feed (1 byte)<br />

00H to FFH (0 to 255 dots)<br />

Initial value n: 1EH (30 dots)<br />

Explanation<br />

(1) When the power is turned on or the printer enters the RECEIPT mode, the initial<br />

value is 30 dots<br />

(2) When the specified length of the line feed is larger than the character on the next<br />

line or the height of the bar code plus 6 dots, a line feed with the specified length is<br />

performed.<br />

(3) When the specified length of the line feed is smaller than the character on the next<br />

line or the height of the bar code plus 6 dots, the specified length of the line feed is<br />

ignored, and a line feed with the height of the character or the bar code to be<br />

printed is performed.<br />

Paper feed direction<br />

Initial value:<br />

30 dots<br />

When the print height<br />

is larger than the set<br />

value, a line feed with<br />

the print height is<br />

performed.<br />

A B C<br />

D E F<br />

* 8 7 6 5 4 3 2 1 *<br />

ABC [LF]<br />

DEF [LF]<br />

[GS] k3 *87654321* [NUL] [LF]<br />

1 2 3 4 5 6 7 8 9 0<br />

1234567890 [LF]<br />

1 2 3 A B C<br />

123 [ESC] ! ABC [LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

Refer to<br />

Print Line Feed Command ([LF])<br />

7-7


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.4.2 PRINT POSITION ALIGN COMMAND [ESC] a<br />

Function<br />

Format<br />

Aligns the print position on the left, the right, or at the center.<br />

[ESC] an<br />

Term n: Alignment<br />

0: Left<br />

1: Center<br />

2: Right<br />

Initial value n: 0 (Left)<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) This command is effective for all lines which are printed after the command is<br />

received.<br />

(3) For CODE128 and EAN128, the print position should be aligned on the left.<br />

Paper feed direction<br />

Alignment : Left<br />

(Initial value)<br />

ABC<br />

DEF<br />

ABC [LF]<br />

DEF [LF]<br />

Alignment : Center<br />

ABC<br />

[ESC] a1 ABC [LF]<br />

4 9 4 0 0 4 5 8<br />

[GS] k04940045 [NUL] [LF]<br />

Alignment : Right<br />

ABC<br />

[ESC] a2 ABC [LF]<br />

1 2 3 4 5 6 7 8 9 0<br />

1234567890 [LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

7-8


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5 COMMANDS RELATED TO DRAWING FORMAT<br />

7.5.1 LINE FORMAT COMMAND [ESC] L<br />

Function<br />

Format<br />

Specifies the line format and draws it.<br />

[ESC] Labbb<br />

Term a: Line width<br />

1 to 9 (in units of dots)<br />

bbb:<br />

Line length<br />

001 to 384 (in units of dots)<br />

Explanation<br />

(1) The print position of the line is shown below:<br />

Paper feed direction<br />

[Enlarged view]<br />

100 dots<br />

3 dots<br />

Initial value: 000 dot<br />

ABC<br />

ABC [LF]<br />

Line<br />

DEF<br />

DEF [ESC] L3100 [LF]<br />

Left margin: 100 dots<br />

100<br />

ABC<br />

[ESC] H100 ABC [LF]<br />

[GS] k04940045 [NUL] [LF]<br />

4 9 4 0 0 4 5 8<br />

Offset: 100 dots,<br />

Alignment: Center<br />

100<br />

ABC<br />

[ESC] C +100 [ESC] a1 ABC [LF]<br />

Alignment: Right<br />

Left margin: 0 dot,<br />

Alignment: Left<br />

456<br />

123 [ESC] a2 123 [LF]<br />

[ESC] H000 [ESC] a0 456 [LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

Note<br />

(1) If the print ratio of one line (the print head width) is higher than defined, printing may<br />

become poor, or the printer may be reset. When a horizontal line is to be drawn,<br />

note the print ratio.<br />

7-9


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.2 FONT TYPE COMMAND [ESC] K<br />

Function<br />

Format<br />

Specifies the font used for printing.<br />

[ESC] Kn<br />

Initial value n: A: Standard character<br />

Term n: Font type<br />

A: Standard Character (12×24 dots)<br />

B: Bold Character (48×96 dots)<br />

C: Writable Character (24×24 dots)<br />

D: Price Font 1 (16×40 dots)<br />

E: Price Font 2 (32×48 dots)<br />

F: Time Roman (Bold) (21 point)<br />

G: Helvetica (Bold) (18 point)<br />

H: Letter Gothic (Medium) (14.3 point)<br />

I: Courier (Medium) (15 point)<br />

J: Presentation (Bold) (27 point)<br />

O: GOTHIC 725 Black (6 point)<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

7-10


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.3 OUTLINE FONT FORMAT COMMAND [ESC] KV<br />

Function<br />

Format<br />

Initial value<br />

Sets the outline font.<br />

[ESC] KVabbbccc<br />

None<br />

Term a: Font type<br />

A: TEC Font 1 (Helvetica: Bold)<br />

B: TEC Font 1 (Helvetica: Bold, Proportional)<br />

bbb:<br />

ccc:<br />

Character width<br />

016 to 240 (in units of dots)<br />

Character height<br />

016 to 240 (in units of dots)<br />

Explanation<br />

(1) When “a”, “bbb”, and “ccc” are set to any value other than the above, a command<br />

error will occur.<br />

7-11


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.4 BAR CODE/TWO-DIMENSIONAL CODE PRINT COMMAND [GS] k<br />

Function<br />

Format<br />

Prints the specified bar code/two-dimensional code.<br />

[GS] kn [NUL]<br />

Term n: Type of bar code/two-dimensional code<br />

0: JAN8/EAN8 9: CODE128<br />

2: Interleaved 2 of 5 N: EAN128<br />

3: CODE39 P: PDF417<br />

4: NW7 T: QR code<br />

5: JAN13/EAN13<br />

: Bar code/two-dimensional code data<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) When the type of bar code is JAN8, EAN8, JAN13, EAN13, EAN128, or CODE128,<br />

a check digit is automatically attached.<br />

(3) When the type of bar code is CODE39, NW7 or Interleaved 2 of 5, a check digit is<br />

not attached. When a CODE39 or NW7 is used, the start/stop codes are not<br />

attached. Therefore, the host should attach them to the data.<br />

(4) Characters or another bar code/two-dimensional code should not be printed on the<br />

same line including a PDF417.<br />

(5) For CODE128 and EAN128, only bar codes aligned on the left can be printed.<br />

(6) For QR code, the mode, the mask number, and the connection settings are as<br />

follows: Automatic mode, automatically-set mask number, no connection.<br />

(7) Characters or another bar code/two-dimensional code should not be printed on the<br />

same line as a QR code.<br />

7-12


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

Paper feed direction<br />

A B C<br />

ABC [LF]<br />

* 8 7 6 5 4 3 2 1 *<br />

[GS] k3 *87654321* [NUL] [LF]<br />

4 9 4 0 0 4 5 8<br />

[GS] k04940045 [NUL] [LF]<br />

Effective print width (width of head)<br />

Width of receipt<br />

Refer to Bar Code Horizontal Size Command ([GS] w)<br />

Bar Code Height Command ([GS] h)<br />

Numerals Under Bars Command ([GS] H)<br />

Security Level Command ([GS] s)<br />

No. of Columns (Strings) Command ([GS] c)<br />

Error Correction Level Set Command (for QR code) ([GS] q)<br />

QR Code Model Set Command ([GS] r)<br />

7-13


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.5 CHARACTER MAGNIFICATION COMMAND [ESC] !<br />

Function<br />

Designates the magnification of the character to be printed.<br />

Format [ESC] !n<br />

Term n: Character magnification (1 byte)<br />

00H: 1 magnification (horizontal) × 1 magnification (vertical)<br />

10H: 1 magnification (horizontal) × 2 magnification (vertical)<br />

20H: 2 magnification (horizontal) × 1 magnification (vertical)<br />

30H: 2 magnification (horizontal) × 2 magnification (vertical)<br />

40H: 2 magnification (horizontal) × 3 magnification (vertical)<br />

50H: 3 magnification (horizontal) × 2 magnification (vertical)<br />

60H: 3 magnification (horizontal) × 3 magnification (vertical)<br />

70H: 3 magnification (horizontal) × 4 magnification (vertical)<br />

80H: 4 magnification (horizontal) × 3 magnification (vertical)<br />

90H: 4 magnification (horizontal) × 4 magnification (vertical)<br />

Initial value n: 00H (1 magnification (horizontal) × 1 magnification (vertical))<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) After this command is received, it is effective until the setting is changed again by<br />

the Character Magnification Command in spite of a line feed or printing.<br />

Paper feed direction<br />

AB<br />

AB<br />

2×2 mag.<br />

2×1 mag.<br />

AB [ESC] ! AB [ESC] ! <br />

AB [ESC] ! AB [LF]<br />

1×2 mag.<br />

1×1 mag. (initial value)<br />

Effective print width (Width of head)<br />

Width of receipt<br />

7-14


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.6 BAR CODE HORIZONTAL SIZE COMMAND [GS] w<br />

Function<br />

Format<br />

Sets the horizontal size of the bar code. For QR code, the 1-cell width is set.<br />

[GS] wn<br />

Term n: Horizontal size of the bar code (1 byte)<br />

02H to 05H<br />

Initial value n: 02H<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) The horizontal size designated by this command is as follows. (1 dot = 1/8 mm)<br />

[JAN8, EAN8, JAN13, EAN13, EAN128, CODE128]<br />

n 1 module 2 modules 3 modules 4 modules<br />

Bar Space Bar Space Bar Space Bar Space<br />

02H 2 4 6 8<br />

03H 3 6 9 12<br />

(Unit: dots)<br />

[PDF417]<br />

n 1 module 2 modules 3 modules 4 modules 5 modules 6 modules<br />

Bar Space Bar Space Bar Space Bar Space Bar Space Bar Space<br />

02H 2 4 6 8 10 12<br />

03H 3 6 9 12 15 18<br />

(Unit: dots)<br />

[NW7, CODE39, Interleaved 2 of 5]<br />

n Narrow Wide Character-to-<br />

Bar Space Bar Space character space<br />

02H 2 2 5 5 2<br />

03H 2 2 6 6 2<br />

04H 3 3 8 8 3<br />

05H 3 3 9 9 3<br />

(Unit: dots)<br />

* The character-to-character space does not exist in the Interleaved 2 of 5.<br />

[QR code]<br />

n 1-cell size<br />

02H 2<br />

03H 3<br />

04H 4<br />

05H 5<br />

(Unit: dots)<br />

Refer to: Bar Code/Two-Dimensional Code Print Command ([GS] k)<br />

7-15


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.7 BAR CODE HEIGHT COMMAND [GS] h<br />

Function<br />

Format<br />

Sets the bar code height.<br />

[GS] hn<br />

Term n: Bar code height (1 byte)<br />

01H to FFH (1 to 255 dots)<br />

Initial value n: 68H (104 dots)<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

* For the PDF417, the bar height for one row is set by this command. Note that the<br />

height of the whole bar code cannot be set by this command. The PDF417 can have<br />

the maximum of 90 rows. Therefore, if 16 or more dots are specified, the PDF417<br />

may not be able to be stored in the image buffer, since the PDF417 is too large. When<br />

the PDF417 cannot be stored in the image buffer, the printer’s operation is not<br />

guaranteed.<br />

Paper feed direction<br />

32 dots<br />

* 8 7 6 5 4 3 2 1 *<br />

[GS] h [GS] k3*87654321*<br />

[NUL] [LF]<br />

64 dots<br />

* 8 7 6 5 4 3 2 1 *<br />

[GS] h [GS] k3*87654321*<br />

[NUL] [LF]<br />

96 dots<br />

* 8 7 6 5 4 3 2 1 *<br />

[GS] h [GS] k3*87654321*<br />

[NUL] [LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

Refer to Bar Code/Two-Dimensional Code Print Command ([GS] k)<br />

7-16


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.8 NUMERALS UNDER BARS COMMAND [GS] Hn<br />

Function<br />

Format<br />

Sets numerals under bars.<br />

[GS] Hn<br />

Term n: Selection to print numerals under bars<br />

0: Non-print<br />

1: Print (with EAN guard bar)<br />

2: Print (without EAN guard bar)<br />

Initial value n: 1: Print (with EAN guard bar)<br />

Explanation (1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) For NW7, CODE39, and Interleaved 2 of 5, if “n” is set to “1” or “2”, printing is the<br />

same.<br />

(3) The length of the guard bar is fixed as 16 dots (2 mm).<br />

Paper feed direction<br />

[GS] H0 [GS] k04940045 [NUL] [LF]<br />

4 9 4 0 0 4 5 8<br />

[GS] H1 [GS] k04940045 [NUL] [LF]<br />

4 9 4 0 0 4 5 8<br />

[GS] H2 [GS] k04940045 [NUL] [LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

Refer to Bar Code/Two-Dimensional Code Print Command ([GS] k)<br />

7-17


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.9 SECURITY LEVEL COMMAND [GS] s<br />

Function<br />

Format<br />

Sets the security level.<br />

[GS] sn<br />

Initial value n: 00H<br />

Term n: Security level to be set<br />

00: Level 0<br />

01: Level 1<br />

02: Level 2<br />

03: Level 3<br />

04: Level 4<br />

05: Level 5<br />

06: Level 6<br />

07: Level 7<br />

08: Level 8<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) This command is effective for the PDF417 only. If this command is send for<br />

printing other bar code/two-dimensional codes, the command will be ignored.<br />

Refer to Bar Code/Two-Dimensional Code Print Command ([GS] k)<br />

7-18


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.10 NO. OF COLUMNS (STRINGS) COMMAND [GS] c<br />

Function<br />

Format<br />

Sets the number of columns (strings).<br />

[GS] cn<br />

Initial value n: 06H<br />

Term n: No. of columns (strings)<br />

01 to 30<br />

Explanation<br />

(1) When “n” is set to any value other than the above range, a command error will<br />

occur.<br />

(2) This command is effective for the PDF417 only. If this command is sent for printing<br />

other bar code/two-dimensional codes, the command will be ignored.<br />

Refer to: Bar Code/Two-Dimensional Code Print Command ([GS] k)<br />

7-19


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.11 PRINT WIDTH COMMAND [ESC] W<br />

Function<br />

Format<br />

Sets the print width.<br />

[ESC] Wnnn<br />

Initial value nnn: 384<br />

Term<br />

Explanation<br />

nnn: No. of dots for the print width matching the receipt width.<br />

216 ≤ nnn ≤ 384 (dots)<br />

(1) When “nnn” is set to any value other than the above range, a command error will<br />

occur.<br />

(2) The print width can be set, matching the receipt width. Using this command, the<br />

data can be printed properly at the position where the alignment (right or center) is<br />

specified.<br />

(3) If the printer receives this command while receiving one part of 1-line data, the<br />

printer prints the data which has been received before receiving this command,<br />

then sets the print width. However, printing of the line is not guaranteed.<br />

(4) If the data is not included in the specified print width, the excess data is not printed.<br />

7-20


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.12 HORIZONTAL PRINT POSITION COMMAND [ESC] H<br />

Function<br />

Format<br />

Initial value<br />

Term<br />

Explanation<br />

Sets the left margin of the line (space from the left edge).<br />

[ESC] Hnnn<br />

nnn: 000 dot<br />

nnn: No. of dots for the margin (space) from the left edge of the paper to the print start<br />

position (3 bytes)<br />

000 to 383 (dots)<br />

(1) When “nnn” is set to any value other than the above range, a command error will<br />

occur.<br />

(2) This command is effective for all lines to be printed after it is received, until this<br />

command is received again, the setting is initialized by the Mode Select Command,<br />

or the power is turned off.<br />

(3) When the alignment (left, right, center) is specified by the Position Align Command,<br />

the alignment is performed within the effective range excluding the left margin set<br />

by this command.<br />

(4) In the case that the left margin is set for printing character strings and bar codes, if<br />

the data is not included within one line excluding the left margin, the excess data<br />

may be printed in the left margin on the next line. Do not send the data which is not<br />

included within one line.<br />

(5) When this command is received while one part of 1-line data is being received, it<br />

becomes effective from the next line.<br />

(6) If the print start position specified by this command is on the right of the right end of<br />

the print width specified by the Print Width Command ([ESC] W), a command error<br />

will occur.<br />

7-21


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

Paper feed direction<br />

Initial value: 000 dot ABC ABC [LF]<br />

DEF<br />

DEF [LF]<br />

Left margin: 100 dots<br />

100<br />

ABC<br />

[ESC] H100 ABC [LF]<br />

[GS] k04940045 [NUL] [LF]<br />

4 9 4 0 0 4 5 8<br />

Alignment: Center<br />

ABC<br />

[ESC] a1 ABC [LF]<br />

Alignment: Right<br />

123 [ESC] a2 123 [LF]<br />

Left margin: 0 dot,<br />

Alignment: Left<br />

456<br />

[ESC] H000 [ESC] a0 456 [LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

7-22


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.13 HORIZONTAL OFFSET POSITION COMMAND [ESC] O<br />

Function<br />

Format<br />

Sets the left margin (space from the left edge) of only the line.<br />

[ESC] Oabbb<br />

Initial value abbb: +000<br />

Term a: Indicates whether the number of offset dots is increased or decreased<br />

+: Increased<br />

-: Decreased<br />

bbb:<br />

No. of offset dots from the position specified by [ESC] H<br />

-383 to +383 dots<br />

Explanation<br />

(1) When “a” or “bbb” is set to any value other than the above range, a command error<br />

will occur.<br />

(2) If other data is received after the horizontal offset position is specified again by this<br />

command even though the data has already been drawn on the line, it is printed at<br />

the position specified by this command. Therefore, it is printed over the already<br />

drawn data.<br />

(3) This command is effective until a line feed is performed. After a line feed is<br />

performed, printing is performed at the print start position specified by the<br />

Horizontal Print Position Command ([ESC] H).<br />

(4) If the print start position specified by this command is on the right of the right end of<br />

the print width specified by the Print Width Command ([ESC] W), a command error<br />

will occur.<br />

(5) If the print start position specified by this command is on the left of the print start<br />

position specified by the Horizontal Print Position Command ([ESC] H), or the left<br />

edge of the paper, a command error will occur.<br />

7-23


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

Paper feed direction<br />

Initial value: 000 dot ABC ABC [LF]<br />

DEF<br />

DEF [LF]<br />

Left margin: 100 dots<br />

100<br />

ABC<br />

[ESC] H100 ABC [LF]<br />

[GS] k04940045 [NUL] [LF]<br />

4 9 4 0 0 4 5 8<br />

Offset: 100 dots,<br />

Alignment: Center<br />

100<br />

ABC<br />

[ESC] C +100 [ESC] a1 ABC [LF]<br />

Alignment: Right<br />

Left margin: 0 dot,<br />

Alignment: Left<br />

456<br />

123 [ESC] a2 123 [LF]<br />

[ESC] H000 [ESC] a0 456 [LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

7-24


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.14 CHARACTER ROTATE COMMAND [ESC] R<br />

Function<br />

Format<br />

Specifies the rotational angle of characters.<br />

[ESC] Rn<br />

Initial value n: 0<br />

Term n: Rotational angle of characters<br />

0: 0°<br />

1: 90°<br />

2: 180°<br />

3: 270°<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) The characters are rotated as shown below:<br />

0°<br />

90°<br />

180°<br />

270°<br />

Origin<br />

* When characters are rotated, they are not aligned to the reference line, because<br />

each font has a different parameter for the print position. If the character<br />

magnification is changed, they are not aligned to the reference line either.<br />

7-25


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.15 ERROR CORRECTION LEVEL SET COMMAND (For QR Code) [GS] q<br />

Function<br />

Format<br />

Sets the error correction level.<br />

[GS] qn<br />

Term n: Error correction level to be set<br />

L: High density level<br />

M: Standard level<br />

Q: Reliability level<br />

H: High reliability level<br />

Initial value n: M (Standard level)<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) This command is effective for the QR code only. If this command is set when<br />

printing other bar code/two-dimensional codes, the command will be ignored.<br />

Refer to Bar Code/Two-Dimensional Code Print Command ([GS] k)<br />

7-26


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.5.16 QR CODE MODEL SET COMMAND [GS] r<br />

Function<br />

Format<br />

Sets the model of the QR code.<br />

[GS] rn<br />

Term n: Model to be set<br />

1: Model 1<br />

2: Model 2<br />

Initial value n: 1 (Model 1)<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) This command is effective for the QR code only. If this command is set when<br />

printing other bar code/two-dimensional codes, the command will be ignored.<br />

Refer to Bar Code/Two-Dimensional Code Print Command ([GS] k)<br />

7-27


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.6 COMMANDS RELATED TO ISSUE AND FEED<br />

7.6.1 PRINT LINE FEED COMMAND [LF]<br />

Function<br />

Format<br />

Explanation<br />

Prints the received data and performs a line feed.<br />

[LF]<br />

(1) When the Print Line Feed Command is received without data to be printed, only the<br />

length of the line feed which has been set is performed.<br />

(2) In the RECEIPT mode, the printer is operated without designating the sensor.<br />

(3) Since the printer does not perform a line feed automatically, be sure to send the<br />

Print Line Feed Command for each data which can be included within one line. If<br />

data which is not included within one line is received, characters cannot be printed<br />

in the proper position.<br />

Paper feed direction<br />

ABC<br />

ABC [LF]<br />

[LF]<br />

ABC<br />

[ESC] ! ABC [LF]<br />

[LF]<br />

[LF]<br />

* 8 7 6 5 4 3 2 1 *<br />

[GS] k3*87654321* [NUL] [LF]<br />

[LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

Refer to Line Feed Length Set Command ([ESC] 3)<br />

7-28


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.6.2 BACK FEED OMISSION COMMAND [ESC]B<br />

(Firmware V1.3 or greater)<br />

Function<br />

Format<br />

Explanation<br />

Omits a back feed before printing.<br />

[ESC]B<br />

(1) Usually, in the RECEIPT mode, the printer feeds for about 3-mm backward before<br />

starting to print or before printing after a pause. This is intended to adjust the print<br />

start position (line feed), however, the first back feed may be unnecessary<br />

depending on the print layout. Also, a back feed can reduce the throughput. So,<br />

the first back feed can be omitted by this command, if unnecessary.<br />

(2) This command can be sent only once for one receipt prior to other receipt<br />

commands or print data. If this command is sent in the middle of other commands,<br />

the printer operation is not guaranteed (Necessary back feeds are not performed,<br />

and, as a result, the print may be overlapped or the print position is misaligned.)<br />

This command is effective in the first receipt to be printed after the command is<br />

received. That is, this command needs to be issued for every receipt before<br />

printing because the command is effective only one receipt.<br />

NOTE: When printing more than one receipt continuously, the printer does not stop<br />

at the top of each receipt because the printer does not recognize the receipt one by<br />

one. In this case, the Back Feed Omission Command should be issued only for the<br />

first receipt, not for every receipt. (The printer recognizes the Back Feed Omission<br />

Command is sent in the middle of other commands, and it may print improperly.)<br />

(3) If a cover open error or a paper end error occurred before printing, a back feed is<br />

performed after the error is cleared, even if this command has been issued. Also,<br />

the printer performs a back feed when printing is restarted after clearing an error<br />

which occurred during printing.<br />

7-29


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.7 COMMANDS RELATED TO GRAPHICS<br />

7.7.1 GRAPHIC DATA STORE COMMAND [ESC] SG<br />

Function<br />

Format<br />

Stores the graphic data on the printer.<br />

[ESC] SG ; a, bbbb, cccc, ddd --- ddd [LF] [NUL]<br />

Term a: Graphic No.<br />

1 or 2<br />

bbbb:<br />

cccc:<br />

ddd --- ddd:<br />

No. of graphic width dots to be stored<br />

0001 to 0384 (in units of dots)<br />

No. of graphic height dots to be stored<br />

0001 to 0720 (in units of dots)<br />

Graphic data<br />

Explanation<br />

Graphic width 19 dots<br />

1 00H 2 60H 3 00H<br />

Graphic<br />

height<br />

24 dots<br />

4 00H 5 70H 6 00H<br />

•<br />

•<br />

•<br />

•<br />

67 EFH 68 80H 69 00H<br />

70 3EH 71 00H 72 00H<br />

8 dots 8 dots 8 dots<br />

(1) The graphic data should be separated into units of 8 dots and sent in the above<br />

order (1 to 72).<br />

(2) The graphic data is 00H to FFH.<br />

(3) The minimum unit of a graphic width is 8 dots. Dots with no data are transmitted as<br />

data 0.<br />

(4) The number of bytes of the graphic to be transmitted must be as follows;<br />

The number of bytes of the graphic to be transmitted = {(No. of graphic width dots<br />

+ 7)/8} × No. of graphic height dots<br />

* The value in the brackets is rounded down to the nearest whole number.<br />

7-30


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

Example<br />

Graphic width 19 dots<br />

Graphic<br />

height<br />

24 dots<br />

8 dots 8 dots 8 dots<br />

[ESC]SG;1,0019,0024,<br />

[00H][60H][00H][00H][70H][00H][00H][78H][00H]<br />

[00H][7CH][00H][00H][6EH][00H][00H][67H][00H]<br />

[00H][63H][80H][00H][61H][80H][00H][61H][C0H]<br />

[00H][60H][C0H][00H][61H][C0H][00H][61H][80H]<br />

[00H][63H][80H][00H][67H][C0H][00H][66H][00H]<br />

[0FH][60H][00H][0EH][60H][00H][3FH][E0H][00H]<br />

[7FH][FEH][00H][FFH][E0H][00H][FFH][C0H][00H]<br />

[FFH][C0H][00H][EFH][80H][00H][3EH][00H][00H]<br />

[LF][NUL]<br />

7-31


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.7.2 GRAPHIC PRINT COMMAND [GS] /<br />

Function<br />

Prints the graphic data which is stored on the printer.<br />

Format [GS] /n<br />

Term n: Graphic No.<br />

1 or 2<br />

Explanation<br />

(1) When “n” is set to any value other than the above, a command error will occur.<br />

(2) When the graphic data is not stored, this command is ignored.<br />

Paper feed direction<br />

Graphic<br />

ABC DEF ABC [GS] / 1 DEF [LF]<br />

Graphic<br />

GHIJK<br />

ABC [GS] / 1 GHIJK [LF]<br />

Effective print width (Width of head)<br />

Width of receipt<br />

Refer to<br />

Graphic Data Store Command ([ESC] SG)<br />

Mode Select Command ([ESC] M)<br />

7-32


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.8 COMMANDS RELATED TO CONTROL<br />

7.8.1 INITIALIZE COMMAND [ESC] @, [ESC] WR<br />

Function<br />

Format<br />

Explanation<br />

Returns the printer to its initial state.<br />

[ESC] WR [LF] [NUL]<br />

[ESC] @<br />

(1) The printer is returned to the same state as when the power is turned on.<br />

(2) If the printer receives this command during printing, the printer prints the label<br />

which is being printed, then performs initialization.<br />

(3) The host should not send the next command within 5 second after sending the<br />

Initialize Command (or after the printer completes printing if receiving the Initialize<br />

Command during printing). In IrDA: TEC Protocol, if ACK/status transmission is<br />

specified by the Issue Command in the LABEL mode, the printer returns an ACK,<br />

which indicates the command process end, to the EOT after the printer is initialized.<br />

In IrDA: IrCOMM, RS-232C, Bluetooh, or wireless LAN, the printer does not return<br />

the status.<br />

(4) To use IrDA interface for sending this command to the printer, only this command<br />

should be sent. After the command is sent, the link should be terminated. Even if<br />

the host does not terminate the link, the printer performs the termination process.<br />

Therefore, after initialization is completed, the host should establish the link again.<br />

(5) When receiving this command during data transmission, the printer is initialized<br />

after transmission is completed.<br />

7-33


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.9 COMMANDS RELATED TO STATUS<br />

7.9.1 STATUS REQUEST COMMAND [ESC] v, [ [ESC] FM, [ESC] WS<br />

Function<br />

Format<br />

Explanation<br />

Requests that the printer sends back the printer status and the battery status to the host.<br />

[ESC] v, [ESC] FM [LF] [NUL], or [ESC] WS [LF] [NUL]<br />

When this command is received, the printer sends the printer status and battery status<br />

to the host.<br />

• For IrDA: TEC Protocol: Data to be sent (Fixed as 27 bytes)<br />

STX Printer ID Version No. of each form Printer status Battery status CRC<br />

02H xxH xxH V01 V02 ········· V20 xxH xxH xxH xxH<br />

• For IrDA; IrCOMM, RS-232C, Bluetooth, or Wireless LAN:<br />

Data to be sent (Fixed as 5 bytes)<br />

STX Printer ID Printer status Battery status<br />

02H xxH xxH xxH xxH<br />

Printer ID...............2-byte hex data (in order from High to Low)<br />

Printer status.........Printer status is indicated in 1-byte data.<br />

00H: Normal status (while idling)<br />

01H: Cover open status<br />

02H: Command syntax error<br />

03H: Paper jam<br />

04H: Label end<br />

05H: Cover open error<br />

06H: Broken thermal head dots error<br />

07H: Thermal head excessive temperature<br />

08H: Flash ROM write error<br />

09H: Flash ROM erase error<br />

0AH: Low battery (Print failure)<br />

0BH: Operating<br />

For RS-232C only<br />

0CH: Communication error (Parity, overrun, framing error)<br />

0DH: Normal end + Label end (See NOTE.)<br />

0EH: Flash ROM storage area full state<br />

(10H: Normal termination): A response sent from the printer only<br />

when the automatic status transmission<br />

mode is designated.<br />

NOTE:<br />

This is a state when the printer runs out of labels, after<br />

the effective print length is printed.<br />

7-34


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

Battery status...........The battery charge status is indicated in 5 levels.<br />

01H: 7.2 V or less (Print failure)<br />

02H: 7.3 V to 7.4 V<br />

(Remaining No. of printable labels: Approx. 1 to 20)<br />

03H: 7.5 V to 7.7 V<br />

(Remaining No. of printable labels: Approx. 20 to 100)<br />

04H: 7.8 V to 7.9 V<br />

(Remaining No. of printable labels: Approx. 100 to 200)<br />

05H: 8.0 V or more<br />

(Remaining No. of printable labels: Approx. 200 or more)<br />

* The remaining number of printable labels may vary according to<br />

the contents to be printed and the ambient environment.<br />

CRC.........................2-byte hex data (in order from Low to High)<br />

7-35


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.9.2 MODE INFORMATION ACQUIRE COMMAND [ESC] WX<br />

Function<br />

Format<br />

Explanation<br />

Sends the printer mode information to the host.<br />

[ESC] WX [LF] [NUL]<br />

(1) The mode information format to be sent to the host, is as follows:<br />

[IrDA: TEC Protocol]<br />

STX Mode information (16 bytes) CRC CRC<br />

R E C E I P T SP SP SP SP SP SP SP SP SP<br />

02H 52H 45H 43H 45H 49H 50H 54H 20H 20H 20H 20H 20H 20H 20H 20H 20H xxH xxH<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

STX<br />

Mode information (16 bytes)<br />

R E C E I P T SP SP SP SP SP SP SP SP SP<br />

02H 52H 45H 43H 45H 49H 50H 54H 20H 20H 20H 20H 20H 20H 20H 20H 20H<br />

The above is an example where the message is received in the RECEIPT mode (Mode = 1 or 3). When<br />

the RECEIPT1 mode is selected, the message is “RECEIPT1”. In addition, the message of “LABEL”,<br />

“TPCL-LE”, or “TPCL-LE1” is returned.<br />

RECEIPT mode (Mode = 1, 3):<br />

RECEIPT mode (Mode = 2):<br />

“RECEIPT”<br />

“RECEIPT1”<br />

(2) This command is one of the command types which are processed as they are<br />

received. Processing takes place starting from the ones received first. Until the<br />

process of the command previously sent is completed, the next command is not<br />

processed. Therefore, if the printer is not in the idle state when this command is<br />

sent, the mode information data may not be returned immediately.<br />

7-36


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.10 COMMANDS RELATED TO Bluetooth AND WIRELESS LAN<br />

7.10.1 DEVICE ADDRESS ACQUIRE COMMAND [ESC] IT<br />

Function<br />

Format<br />

Explanation<br />

Calls up the device address of the Bluetooth module or MAC address of the Wireless<br />

LAN module connected to the printer.<br />

[ESC] IT [LF] [NUL]<br />

(1) This command calls up the device address of the Bluetooth module or MAC<br />

addressof the Wireless LAN module. On receiving this command, the printer<br />

returns the Bluetooth device address or MAC address of the Wireless LAN module<br />

with the complenents of the following information field. When using the IrDA: TEC<br />

Protocol, the following information field is placed in the information frame and sent<br />

in packets.<br />

[Information field to be sent when IrDA: TEC Protocol is used]<br />

STX Bluetooth device address CRC<br />

02H 12 bytes xxH xxH<br />

[Information field to be sent when IrDA: IrCOMM, RS-232C, Bluetooth, or Wireless<br />

LAN is used]<br />

STX<br />

02H<br />

Bluetooth device address<br />

12 bytes<br />

Example<br />

[ESC] IT [LF] [NUL]<br />

When Bluetooth device address is 0001ccf0042b, the printer sends the following<br />

information.<br />

Bluetooth device address:<br />

[30H] [30H] [30H] [31H] [63H] [63H] [66H] [30H] [30H] [34H] [32H] [62H]<br />

0 0 0 1 c c f 0 0 4 2 b<br />

7-37


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.11 COMMANDS RELATED TO MACRO SETTING<br />

7.11.1 MACRO DEFINITION COMMAND [GS] :<br />

Function<br />

Defines the print position and the items to be printed at the fixed position.<br />

Format [GS] : aaaaa###bbbbbbbbbb#####ccccccc [GS] :<br />

Term<br />

Explanation<br />

aaaaa, bbbbbbbbbb, ccccccc: Fixed data<br />

#####: Variable data (The character codes are specified by the Macro Execute<br />

Command.)<br />

(1) The macro definition can be made by entering the character code or [LF] (Print Line<br />

Feed Command) between “[GS] :” and “[GS] :”.<br />

(2) From the start to end of the macro definition, must be a maximum of 253 bytes.<br />

(3) The macro definition data is kept until the power is turned off.<br />

(4) The number of digits indicated using “#” must match that for the macro to be<br />

actually executed.<br />

(5) Character code designated by the Macro Definition Command is sent to the printer<br />

for printing it on the receipt. Use of the macro function reduces the number of data<br />

transmissions by the standard format and transmission time, and increases the<br />

number of printable lines at one transmission.<br />

7-38


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.11.2 MACRO EXECUTE COMMAND [GS] ^ [NUL]<br />

Function<br />

Format<br />

Stores data for items for which the macro definitions are made.<br />

[GS]^ aaaaabbbbbccccc [NUL]<br />

Term aaaaa: 1st data to be printed<br />

bbbbb: 2nd data to be printed<br />

ccccc: 3rd data to be printed<br />

Explanation<br />

(1) If this command is sent without making a macro definition by the Macro Definition<br />

Command, a syntax error will occur.<br />

(2) The receipt is printed by transferring the character code specified by the Macro<br />

Definition Command. The No. of times of data transfer and transfer time for<br />

printing in a fixed format, can be saved. Also, the printable No. of lines per batch<br />

transfer can be increased by using the macro function.<br />

[Ex.] [GS] ^0023071T1 A Label 1 ¥9,000 [NUL]<br />

[GS]: NO.### (####)[LF]<br />

####################[LF]<br />

Quantity #####[LF]<br />

Price ##########[LF]<br />

––––––––––––––––––––––[LF][GS]:<br />

The print position and items to<br />

be printed at the fixed position<br />

are defined by making a macro<br />

definition.<br />

NO.### (####)<br />

####################<br />

Quantity #####<br />

Price ##########<br />

––––––––––––––––––––––––<br />

To print data on two or more<br />

lines, only the variable data<br />

specified by “#”, is sent using<br />

the Macro Execute Command.<br />

[GS]^0023071T1 A Label 1 ¥9,000 [NUL]<br />

NO.002 (3071)<br />

T1 A Label<br />

Quantity 1<br />

Price ¥9,000<br />

––––––––––––––––––––––––<br />

7-39


7. RECEIPT MODE (INTERFACE COMMANDS)<br />

7.12 EXAMPLES OF USING COMMANDS<br />

Paper feed direction<br />

A B C<br />

1) Setting the length of a line feed and printing<br />

characters<br />

A B C<br />

2) Aligning characters at the center<br />

A B C<br />

D E F<br />

3) Aligning characters on the left and the right<br />

4) Line feed only<br />

AB<br />

AB<br />

5) Including characters which have different<br />

magnifications together.<br />

* 5 4 3 2 1 *<br />

6) Printing a bar code<br />

Graphic<br />

G H I J K<br />

7) Including graphics and characters together.<br />

4 9 4 0 0 4 5 8<br />

8) Printing a bar code (Aligning at the center)<br />

Effective print width (Width of head)<br />

Width of receipt<br />

[Examples of transmitted data]<br />

Command/Print data<br />

Result<br />

1) [ESC]3[20H] Setting the length of a line feed (32 dots)<br />

ABC [LF]<br />

Printing characters and a line feed<br />

2) [ESC]a1ABC[LF] Alignment of the print position (Center) + Printing and a line feed<br />

3) [ESC]a0ABC Alignment of the print position (Left)<br />

[ESC]a2DEF[LF]<br />

Alignment of the print position (Right) + Printing and a line feed<br />

4) [LF] Line feed<br />

5) [ESC]a0 Alignment of the print position (Left)<br />

AB<br />

Printing characters (1x1 magnification) * Default (00H)<br />

[ESC]![10H]AB<br />

Printing characters (1x2 magnification)<br />

[ESC]![20H]AB<br />

Printing characters (2x1 magnification)<br />

[ESC]![30H]AB[LF] Printing characters (2x2 magnification) + printing and a line feed<br />

6) [GS]k3*54321*[NUL][LF] Printing CODE39 + printing and a line feed<br />

7) [GS]/1 Printing a graphic<br />

[ESC]![00H]GHIJK[LF] Printing characters (1x1 magnification) + printing and a line feed<br />

8) [ESC]a1 Alignment of the print position (Center)<br />

[GS]h[50H]<br />

Setting the height of the bar code (80 dots)<br />

[GS]k04940045[NUL][LF] Printing EAN8 + printing and a line feed<br />

7-40


8. ERROR PROCESSING<br />

8. ERROR PROCESSING<br />

8.1 GENERAL DESCRIPTION<br />

This chapter describes details of the printer errors.<br />

8-1


8. ERROR PROCESSING<br />

8.2 OPERATIONS WHEN AN ERROR OCCURS<br />

If the printer detects an error, the LED will blink (at intervals of 0.1 seconds), the printer stops the<br />

operation, and reverts to a wait state for a command.<br />

8.3 OPERATIONS AFTER AN ERROR IS CLEARED<br />

8.3.1 LABEL MODE<br />

If the [FEED] switch is pressed, the remaining number of labels is not issued. Since the printer<br />

issues only the same label as one which is being printed when the error occurs, issue the required<br />

number of labels by pressing the [FEED] switch.<br />

8.3.2 RECEIPT MODE (Mode = 1 or 3)<br />

If the [FEED] switch is pressed, the printer performs a 20-mm feed.<br />

8.3.3 RECEIPT1 MODE (Mode = 2)<br />

After the label end error or the cover open error is cleared, the printer automatically continues<br />

printing the data which has been received before the error occurred. After paper is replaced, the<br />

error is cleared when the cover is closed. Then, the printer automatically continues printing. If the<br />

sensor is designated, the printer feeds the paper to the print start position, then continues printing.<br />

When the cover is closed, if the printer has run out of the paper, the printer neither clears the error<br />

nor continues printing. It remains in the error state. In any state other than the above, the printer<br />

performs a 20-mm feed by pressing the [FEED] switch.<br />

8.3.4 TPCL-LE MODE<br />

After the label end error or the cover open error is cleared, the printer automatically continues<br />

printing the data which has been received before the error occurred. After paper is replaced, the<br />

error is cleared when the cover is closed. Then, the printer automatically continues printing. If the<br />

sensor is designated, the printer feeds the paper to the print start position, then continues printing.<br />

When the cover is closed, if the printer has run out of the paper, the printer neither clears the error<br />

nor continues printing. It remains in the error state. In any state other than the above, if the<br />

sensor is designated, when the cover is closed and the [FEED] switch is pressed, the printer<br />

performs the specified label pitch length of the feed. If no sensor is designated, the printer<br />

performs a 20-mm feed.<br />

8.4 SYNTAX ERRORS OF COMMANDS<br />

c An error results if a command length error or parameter designation error is found in analyzing the<br />

command. When the form for the form number designated by the Data Print Command is not<br />

stored, and the form length designated by the Data Print Command is different from the stored form<br />

length, an error will occur.<br />

d If the block number is not consecutive, starting from “0” in the ascending order, an error occurs.<br />

8.5 PAPER JAM<br />

If the gap is not detected in spite of feeding 1.5 times the length of the label pitch which is designated<br />

by the command, an error will occur. (Only in the LABEL and TPCL-LE modes)<br />

8-2


8. ERROR PROCESSING<br />

8.6 LABEL END<br />

8.6.1 LABEL MODE, RECEIPT MODE (Mode = 1 or 3), TPCL-LE MODE<br />

c If no label is loaded when an issue or a feed is attempted, an error will occur.<br />

d If the backing paper is detected for 14 mm continuously, an error will occur.<br />

e If the label end state is detected for 1 mm continuously, an error will occur.<br />

8.6.2 RECEIPT1 MODE (Mode = 2)<br />

c If no label is loaded when an issue or a feed is attempted, an error will occur.<br />

d If non-printing area is detected for 1.5 mm continuously and the label end state is detected, an<br />

error will occur.<br />

e If the label end state is detected for 14 mm continuously, an error will occur.<br />

8.7 NORMAL END + LABEL END<br />

8.7.1 LABEL MODE, TPCL-LE MODE<br />

c If the label end is detected after printing the effective print length of the current label, an error<br />

will occur.<br />

8.7.2 RECEIPT MODE<br />

c If the label end is detected after printing the effective print length of the current receipt, an error<br />

will occur. (e.g. When the 170-mm long print data is printed after printing 170 mm, if the label<br />

end state is detected, an error will occur.)<br />

8.8 COVER OPEN ERROR<br />

c If the cover open state is detected for 5 mm continuously while printing or feeding, an error will<br />

occur.<br />

d When printing is attempted even though the cover is opened, an error will occur.<br />

8.9 BROKEN THERMAL HEAD DOTS ERROR<br />

c If broken head dots are detected by the broken head dots check when turning the power on or<br />

closing the cover, an error will occur.<br />

d If the thermal head driver fails, an error will occur.<br />

8.10 THERMAL HEAD EXCESSIVE TEMPERATURE<br />

c If the thermistor detects a high temperature, an error will occur.<br />

8.11 FLASH ROM WRITE ERROR<br />

c The printer recognizes an error when writing data in flash ROM fails.<br />

8-3


8. ERROR PROCESSING<br />

8.12 FLASH ROM ERASE ERROR<br />

d The printer recognizes an error when erasing data in flash ROM (initialization) fails.<br />

8.13 FLASH ROM STORAGE AREA FULL<br />

c The printer recognizes an error when the form storage areas, (for form, PC saving, writable<br />

character, and graphic) in flash ROM become full.<br />

8.14 LOW BATTERY<br />

c The LED lights up in red, if printing is disabled because the battery is low.<br />

8.15 OTHER ERRORS<br />

c If an undefined command execution error occurs, the printer is automatically reset.<br />

8-4


8. ERROR PROCESSING<br />

8.16 STATUS VALUES<br />

* Values in the upper cell are provided for the LABEL/RECEIPT mode (1 byte)<br />

Values in the lower cell are provided for the TPCL-LE mode (3 bytes)<br />

State<br />

LED<br />

indication<br />

Status by the<br />

Status Request<br />

Command<br />

IrDA: TEC Protocol<br />

IrDA: IrCOMM<br />

RS-232C<br />

Bluetooth<br />

Wireless LAN<br />

Power is turned on. Blink in red<br />

for several<br />

seconds →<br />

Blink in green<br />

(or orange) for<br />

several<br />

seconds →<br />

ON in green<br />

(or orange)<br />

Normal state ON in green 00H<br />

(Idling)<br />

(or orange) 30H, 30H, 31H<br />

Cover open<br />

ON in green 01H<br />

(or orange) 30H, 31H, 31H<br />

Syntax errors of Blink in red<br />

02H<br />

commands<br />

(at intervals of 30H, 36H, 31H<br />

Paper jam 0.1 seconds) 03H<br />

31H, 31H, 31H<br />

Label end<br />

04H<br />

31H, 33H, 31H<br />

Cover open error<br />

05H<br />

31H, 35H, 31H<br />

Broken thermal head<br />

dots error<br />

Thermal head<br />

excessive<br />

temperature<br />

Flash ROM write error<br />

Auto status<br />

transmission<br />

IrDA: IrCOMM<br />

RS-232C<br />

Bluetooth<br />

Wireless LAN<br />

Status when the<br />

command is<br />

received during an<br />

error state<br />

IrDA: TEC Protocol<br />

IrDA: IrCOMM<br />

RS-232C<br />

Bluetooth<br />

Wireless LAN<br />

To turn LED off<br />

RS-232C<br />

IrDA<br />

Bluetooth<br />

Wireless LAN<br />

Condition of<br />

clearing error<br />

RS-232C<br />

IrDA<br />

Bluetooth<br />

Wireless LAN<br />

— — — — —<br />

06H<br />

31H, 37H, 31H<br />

07H<br />

31H, 38H, 31H<br />

— — — —<br />

— 01H<br />

30H, 31H, 32H<br />

02H<br />

02H<br />

30H, 36H, 32H 30H, 36H, 32H<br />

03H<br />

03H<br />

31H, 31H, 32H 31H, 31H, 32H<br />

04H<br />

04H<br />

31H, 33H, 32H 31H, 33H, 32H<br />

05H<br />

05H<br />

31H, 35H, 32H 31H, 35H, 32H<br />

06H<br />

06H<br />

31H, 37H, 32H 31H, 37H, 32H<br />

07H<br />

31H, 38H, 32H<br />

07H<br />

31H, 38H, 32H<br />

— —<br />

Close the cover.<br />

In power save<br />

mode<br />

In power save<br />

mode<br />

Close the cover.<br />

Close the cover.<br />

Turn the power<br />

off.<br />

Replace the<br />

thermal head.<br />

Close the cover.<br />

08H<br />

35H, 30H, 31H<br />

08H<br />

35H, 30H, 32H<br />

08H<br />

35H, 30H, 32H<br />

In power save<br />

mode<br />

Flash ROM erase<br />

error<br />

09H<br />

35H, 31H, 31H<br />

09H<br />

35H, 31H, 32H<br />

09H<br />

35H, 31H, 32H<br />

Low battery ON in red 0AH<br />

33H, 36H, 31H<br />

0AH<br />

33H, 36H, 32H<br />

0AH<br />

33H, 36H, 32H<br />

In power save<br />

mode<br />

Charge the<br />

battery.<br />

Operating Blink in green 0BH<br />

— — — —<br />

30H, 32H, 31H<br />

Communication error Blink in red 0CH<br />

0CH<br />

0CH Close the cover. Close the cover.<br />

(at intervals of 30H, 37H, 31H 30H, 37H, 32H 30H, 37H, 32H<br />

Normal end +<br />

Label end<br />

0.1 seconds) 0DH<br />

30H, 39H, 31H<br />

0DH<br />

30H, 39H, 32H<br />

0DH<br />

30H, 39H, 32H<br />

In power save<br />

mode<br />

Sleep<br />

ON in green<br />

— — — — —<br />

(orange)<br />

Flash ROM storage<br />

area full<br />

0EH<br />

35H, 34H, 31H<br />

OEH<br />

35H, 34H, 32H<br />

OEH<br />

35H, 34H, 32H<br />

Blink in red<br />

(at intervals of<br />

0.5 seconds)<br />

Close the cover.<br />

In power save<br />

mode<br />

Format the<br />

relevant storage<br />

area.<br />

* The LED goes OFF when:<br />

• The auto power-off function is performed. (This is the same state when the printer is turned OFF.)<br />

• The auto power-off time is set to any value other than 1 minute. The LED goes OFF in 5 minutes.<br />

(This is the same state when the printer is turned OFF.)<br />

* When the low battery state occurs, the LED remains ON until the printer is turned OFF.<br />

* If the state changes, the status will be the latest state which has occurred.<br />

8-5


9. SYSTEM MODE<br />

9. SYSTEM MODE<br />

9.1 GENERAL DESCRIPTION<br />

This chapter describes details regarding the interface commands for the SYSTEM mode and the<br />

specifications for the key operations to change the setting.<br />

9.2 STARTING THE PRINTER IN SYSTEM MODE<br />

Unlike the TPCL-LE mode, LABEL mode, RECEIPT mode, and RECEIPT1 mode, the SYSTEM mode<br />

cannot be accessed by the Mode Change Command. The System mode can be accessed by turning<br />

on the printer while holding down the FEED switch. The FEED switch must be held down until the self<br />

diagnosis test label is printed. The self diagnosis test label will be printed when the paper has been<br />

loaded on the printer. When the paper has not been loaded or the cover is opened, however, the LED<br />

will blink in red. This status can be cleared by closing the cover.<br />

9-1


9. SYSTEM MODE<br />

9.3 COMMUNICATIONS CONDITIONS<br />

The fixed communications protocol is used for the SYSTEM mode.<br />

9.3.1 IrDA<br />

IrCOMM: 9600 bps or faster, NONE Parity<br />

TEC Protocol: 19200 bps, NONE parity<br />

* The IrDA window (upper or front) to be used is according to the setting.<br />

9.3.2 RS-232C<br />

9600 bps, EVEN parity<br />

9.3.3 Bluetooth<br />

115200 bps, NONE Parity<br />

9.3.4 WIRELESS LAN<br />

115200 bps, NONE Parity<br />

9.4 LIMITATIONS IN SYSTEM MODE<br />

When the SYSTEM mode is selected, the printer does not enter into the power save mode.<br />

When the SYSTEM mode is selected, the auto power-off function is not performed.<br />

The settings specified by any Set Commands are stored into flash ROM, when the printer is turned<br />

OFF or is initialized by the Initialize Command. They take effect when the printer is turned ON, or after<br />

initialization is completed. Do not remove the battery during storing the settings, or the data cannot be<br />

written into flash ROM.<br />

9-2


9. SYSTEM MODE<br />

9.5 OUTLINE OF COMMANDS<br />

9.5.1 FORMAT OF INTERFACE COMMAND<br />

ESC Command & Data LF NUL<br />

z The length from [ESC] to [LF] [NUL] must be as specified by each command.<br />

z There is the following control code:<br />

ESC (1BH), LF (0AH), NUL (00H)<br />

9.5.2 HOW TO USE REFERENCE<br />

Function<br />

Format<br />

Describes the outline of the function of the command.<br />

Shows the format of the command.<br />

The format designation method should conform to the following rules:<br />

z Each set of small letters (such as aa, bbbb) indicates a parameter item.<br />

z An item enclosed in parentheses may be omitted.<br />

z “---” indicates the repetition of an item.<br />

z Brackets and parentheses are used only in coding, and must not be transmitted<br />

in practice.<br />

z Other symbols must always be inserted at designated positions before being<br />

transmitted.<br />

Term<br />

Explains the term(s) used in the format.<br />

* “0 to 999” described in the entry range indicates that up to 3-digit variable-length<br />

entry is allowed. (Entry of “001” or “009” is also possible.) “000 to 999” indicates<br />

that the entry must be fixed as 3 digits.<br />

Explanation<br />

Note<br />

Refer to<br />

Examples<br />

Explains the command in detail.<br />

Supplementary explanation of the command.<br />

Related commands<br />

Explains the command examples.<br />

[ESC] FM [LF] [NUL]<br />

The above corresponds to the transfer of the following:<br />

1B 46 4D 0A 00<br />

[ESC] F M [LF] [NUL]<br />

9.5.3 PRECAUTIONS<br />

The commands and parameters described in this specification must always be used. If any<br />

command or parameter other than those covered in this specification are used, the printer’s<br />

operation will not be guaranteed.<br />

9-3


9. SYSTEM MODE<br />

9.6 COMMANDS RELATED TO SETTING<br />

9.6.1 ID SET COMMAND [ESC] ID<br />

Function<br />

Format<br />

Sets the ID for the printer.<br />

[ESC] ID ; aa(,b) [LF] [NUL]<br />

Term aa: Printer ID (2-byte hex data)<br />

0000H to FFFFH<br />

b: Wireless LAN IP Address Invalid Setting (Omissible. If omitted, IP address<br />

setting is effective.)<br />

0: IP Address setting is invalid.<br />

Explanation<br />

Notes<br />

(1) The printer ID is necessary information to identify each printer in RF<br />

communications<br />

(1) The set printer ID is backed up in memory (even if the power is turned off).<br />

(2) The last 5 digits of the printer’s serial number have been set as the printer ID, at the<br />

time of shipment from the factory.<br />

(3) In IrDA: TEC Protocol, the printer checks the set ID against the ID in the received<br />

command packet. If they do not match, the printer discards the command packet.<br />

However, when the ID in the command packet is “0”, the printer accepts the<br />

command packet without checking the set IDs.<br />

(4) In case of the wireless LAN model, the printer’s ID will be set as the lower 2-byte<br />

number of the IP address unless “0” is set to the Wireless LAN IP Address Invalid<br />

Setting parameter. The upper 2 bytes are fixed to “172.16”. At this time, the<br />

subnet mask will be set to “255.255.0.0”.<br />

Example<br />

To set “03H 51H” as the ID of the printer:<br />

[ESC] ID ; [03H] [51H] [LF] [NUL]<br />

In this case, the printer ID in status printing is “00849”.<br />

In case of the wireless LAN model, the IP address is “172.16.3.81”.<br />

9-4


9. SYSTEM MODE<br />

9.6.2 MODE SELECT COMMAND [ESC] M<br />

Function<br />

Format<br />

Changes the print mode.<br />

[ESC] M; a(,b) [LF] [NUL]<br />

Term a: Print mode designation<br />

7 6 5 4 3 2 1 0<br />

Print mode (Bit 0 to Bit 6 * See Table 1.)<br />

Automatic status response in IrDA: IrCOMM<br />

0: Not performed<br />

1: Performed<br />

* Table 1 Print mode<br />

HEX Mode How to deal with the received data after an error is cleared<br />

30H LABEL Discards<br />

31H RECEIPT Discards<br />

32H RECEIPT1 Continues printing<br />

33H RECEIPT Discards<br />

41H TPCL-LE Continues printing<br />

42H TPCL-LE1 Continues printing (*Firmware V1.5 or greater)<br />

b: Print position detection feed (Omissible. If omitted, the print position detection feed<br />

is not performed.) (Firmware V1.1 or greater)<br />

0: When the mode change from RECEIPT or RECEIPT1 to LABEL is requested,<br />

a print position detection feed is not performed after the mode is changed.<br />

1: When the mode change from RECEIPT or RECEIPT1 to LABEL is requested,<br />

a print position detection feed is performed after the mode is changed.<br />

Explanation<br />

(1) There are 3 types of the print mode: “LABEL”, “RECEIPT”, and “TPCL-LE”.<br />

(2) Both 31H and 33H are used for the “RECEIPT” mode. 33H is provided to maintain<br />

the compatibility with RECEIPT2 used for the conventional models. On the B-<br />

<strong>SP2D</strong>, the RECEIPT mode operation of 33H is the same as the 31H. Therefore,<br />

both 31H and 33H are defined as “RECEIPT”.<br />

(3) “Automatic status response in IrDA: IrCOMM” is the function for the specifications<br />

which do not allow the printer to spontaneously send the status thorough IrDA;<br />

IrCOMM. This function enables the printer to forcefully send the status to the host,<br />

if the link between the printer and the host is established. However, if the link<br />

between the printer and the host is not established upon the status transmission,<br />

the printer cannot send the status. Therefore, the status is discarded. (In the next<br />

connection to the host, the printer does not send the status to the host.)<br />

(4) “Print position detection feed” is a function that automatically feeds the label to the<br />

print start position after the print mode is changed from RECEIPT or RECEIPT1 to<br />

LABEL. The sensor is not used when issuing in RECEIPT or RECEIPT 1 mode,<br />

therefore, after mode is changed to LABEL, the print start position cannot be<br />

detected. This is useful when using sensor detectable paper in both RECEIPT and<br />

LABEL modes. However, the feed is not performed even if this parameter is set to<br />

1 in the system mode.<br />

9-5


9. SYSTEM MODE<br />

(5) In the TPCL-LE1 mode, it is possible to re-print the last print data by pressing the<br />

FEED button.<br />

Notes<br />

(1) The print mode designation (the specified print mode and the automatic status<br />

response in IrDA: IrCOMM) is backed up in memory (even if the power is turned<br />

off).<br />

(2) The factory default is “30H: LABEL mode” and “Automatic status response in IrDA:<br />

IrCOMM is not performed”. (The IrDA protocol is “TEC Protocol”.)<br />

(3) When the print mode is changed, the type of sensor is automatically changed.<br />

LABEL mode (0):<br />

TPCL-LE mode (A):<br />

TPCL-LE1 mode (B):<br />

RECEIPT mode (1 or 3):<br />

RECEIPT1 mode (2):<br />

The previously backed up sensor is designated.<br />

The previously backed up sensor is designated.<br />

The previously backed up sensor is designated.<br />

No sensor is designated.<br />

No sensor is designated.<br />

(4) If the RECEIPT mode is selected or no sensor is designated in the LABEL or<br />

TPCL-LE mode, an initial feed is not performed when the cover is closed.<br />

(5) When the mode change is finished, the printer sends the normal end status or an<br />

ACK to the host. However, when the mode is changed to the TPCL-LE mode, the<br />

printer does not send the status. In IrDA: IrCOMM, only when bit 7 of the print<br />

mode designation is set to “1”, the printer sends the status.<br />

(6) The print position detection feed is ignored when it is specified in the System mode.<br />

9-6


9. SYSTEM MODE<br />

9.7 COMMANDS RELATED TO FINE ADJUSTMENT<br />

9.7.1 PRINT DENSITY FINE ADJUST COMMAND [ESC] AY<br />

Function<br />

Format<br />

Adjusts the automatically set print density.<br />

[ESC] AY ; abb, c (, d) [LF] [NUL]<br />

Term a: Indicates whether to increase or decrease the density<br />

+: Increase (Darker)<br />

-: Decrease (Lighter)<br />

bb:<br />

Print density fine adjustment value<br />

00 to 10 (in units of 1 step)<br />

c: Print mode<br />

0: Reserved<br />

1: Direct thermal<br />

d: Head output division designation (Omissible)<br />

0: Auto (Divided by 2 or 3)<br />

1: Divided by 2 (Default)<br />

2: Divided by 3<br />

3: Auto1 (Not divided/Divided by 2 or 3)<br />

Explanation (1) If the print mode is set to any value other than “1”, it should be changed to “1"<br />

(2) The default value for the head output division designation is “1”.<br />

(3) The standard density is finely adjusted to increase or decrease.<br />

(4) When any print density fine adjustment value out of the above range is set, a<br />

command error will occur.<br />

(5) The print density may become lower if the print ratio per line is high. When<br />

“Divided by 3” is designated in the head output division designation, the print<br />

density may be improved. However, the issue speed when “Divided by 3” is set,<br />

may be slower than when “Divided by 2” is set.<br />

(6) When “0: Auto” is designated, “Divided by 3” or “Divided by 2” is automatically<br />

selected for every line according to the print ratio. The width of half a dot may not<br />

be printed on the line when switching between “Divided by 2” and “Divided by 3”.<br />

Therefore, do not designate “0: Auto” when a serial bar code is printed.<br />

(7) If the battery level becomes Level 2 when “3: Auto1” is designated for the head<br />

output division designation, the printer will automatically operate with “divided by 3”<br />

to keep the print quality. As a result, the issue speed becomes slower.<br />

9-7


9. SYSTEM MODE<br />

9.7.2 STRIP SENSOR THRESHOLD VALUE SET COMMAND [ESC] AH, [ESC] AZ<br />

Function<br />

Format<br />

Sets the sensor threshold value to switch the mode between strip and batch.<br />

[ESC] AH; a [LF] [NUL]<br />

[ESC] AZ; a [LF] [NUL]<br />

Term a: Setting<br />

0: Default value (3.2 V)<br />

1: Threshold value<br />

2: Fixed as the batch mode<br />

3: Fixed as the strip mode<br />

4: Reserved<br />

Explanation (1) If the issue mode is not properly switched when using thin backing paper, “1:<br />

Threshold value” should be set, as required.<br />

(2) When “1: Threshold value” is set, this command is sent after the backing paper of<br />

the label to be used, is positioned on the strip issue path and the cover is closed.<br />

The printer reads the sensor adjustment value for the backing paper, and then sets<br />

the threshold value to switch the mode between strip and batch. (When this<br />

command is sent, the backing paper must be loaded on the strip issue path. If the<br />

backing paper is loaded on the batch issue path, or the label is loaded, and the<br />

command is sent, the mode will not be switched properly.)<br />

Notes<br />

(1) The set threshold value is backed up and kept until a new value is set using this<br />

command. When the power is turned on, the backed up value is retrieved and set<br />

(2) “0: Default value” has been set as the default at the time of shipment from the<br />

factory.<br />

(3) This command is used for sensor adjustment. Therefore, it must not be included in<br />

issue operations.<br />

(4) When either “2: Fixed as the batch mode” or “3: Fixed as the strip mode” for<br />

parameter “a”, is selected, the printer operates in the specified mode, without<br />

automatically switching between the batch and strip modes.<br />

Particularly when the printer is used without the strip roller module, the strip sensor<br />

value becomes unstable. Additionally, the stop position for the label becomes<br />

misaligned, and the issue count is corrected to “1”. Therefore, “2: Fixed as the<br />

batch mode” or “3: Fixed as the strip mode” for parameter “a” must be specified in<br />

this command.<br />

9-8


9. SYSTEM MODE<br />

9.8 COMMANDS RELATED TO CONTROL<br />

9.8.1 INITIALIZE COMMAND [ESC] WR, [ESC] @<br />

Function<br />

Format<br />

Explanation<br />

Returns the printer to its initial state.<br />

[ESC] WR [LF] [NUL]<br />

[ESC] @<br />

(1) The printer is returned to the same state as when the power is turned on.<br />

(2) If the printer receives this command during printing, the printer prints the label<br />

which is being printed, then performs initialization.<br />

(3) The host should not send the next command within 5 second after sending the<br />

Initialize Command (or after the printer completes printing if receiving the Initialize<br />

Command during printing). Even if ACK/status transmission is specified by the<br />

Issue Command, the printer does not return the status to the host.<br />

(4) To use IrDA interface for sending this command to the printer, only this command<br />

should be sent. After the command is sent, the link should be terminated. Even if<br />

the host does not terminate the link, the printer performs the termination process.<br />

Therefore, after initialization is completed, the host should establish the link again.<br />

(5) When receiving this command during data transmission, the printer is initialized<br />

after transmission is completed.<br />

Examples<br />

[ESC] WR [LF] [NUL]<br />

9-9


9. SYSTEM MODE<br />

9.9 COMMANDS RELATED TO STATUS<br />

9.9.1 STATUS REQUEST COMMAND [ESC] FM, [ESC] WS, [ESC] v<br />

Function<br />

Format<br />

Sends the printer status to the host computer.<br />

[ESC] FM [LF] [NUL]<br />

[ESC] WS [LF] [NUL]<br />

[ESC] v<br />

Explanation<br />

[LABEL/RECEIPT modes]<br />

When receiving this command, the printer sends the printer status and battery status to<br />

the host.<br />

• For IrDA: TEC Protocol: Data to be sent (Fixed as 27 bytes)<br />

STX Printer ID Version No. of each form Printer status Battery status CRC<br />

02H xxH xxH V01 V02 ········· V20 xxH xxH xxH xxH<br />

• For IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN: Data to be sent (Fixed as 5<br />

bytes)<br />

STX Printer ID Printer status Battery status<br />

02H xxH xxH xxH xxH<br />

Printer ID...............2-byte hex data (in order from High to Low)<br />

Printer status.........Printer status is indicated in 1-byte data.<br />

00H: Normal status (Idling)<br />

01H: Cover open status<br />

02H: Command syntax error<br />

03H: Paper jam<br />

04H: Label end<br />

05H: Cover open error<br />

06H: Broken thermal head dots error<br />

07H: Thermal head excessive temperature<br />

08H: Flash ROM write error<br />

09H: Flash ROM erase error<br />

0AH: Low battery (Print failure)<br />

0BH: Operating<br />

0DH: Normal end + Label end (See NOTE.)<br />

0EH: Flash ROM storage area full state<br />

(10H: normal termination) A response sent from the printer only<br />

when the automatic status transmission<br />

mode is designated.<br />

NOTE:<br />

In the LABEL mode, this is a state when the printer runs<br />

out of labels, after the effective print length is printed. In<br />

the RECEIPT mode, this status is returned to the host<br />

when the printer runs out of labels after a receipt is<br />

issued.<br />

9-10


9. SYSTEM MODE<br />

Battery status...........The battery charge status is indicated in 5 levels.<br />

01H: 7.2 V or less (Print failure)<br />

02H: 7.3 V to 7.4 V<br />

(Remaining No. of printable labels: Approx. 1 to 20)<br />

03H: 7.5 V to 7.7 V<br />

(Remaining No. of printable labels: Approx. 20 to 100)<br />

04H: 7.8 V to 7.9 V<br />

(Remaining No. of printable labels: Approx. 100 to 200)<br />

05H: 8.0 V or more<br />

(Remaining No. of printable labels: Approx. 200 or more)<br />

* The remaining number of printable labels may vary according to<br />

the contents to be printed and the ambient environment.<br />

CRC.........................2-byte hex data (in order from Low to High)<br />

[TPCL-LE mode]<br />

This command makes the printer send its status regardless of the status response setting.<br />

The status to be transmitted is the current printer status, and indicates the latest status<br />

only. The remaining count indicates the remaining count of the batch currently being<br />

printed. No remaining count of the batch waiting to be printed is transmitted.<br />

[IrDA: TEC Protocol]<br />

STX Printer ID Status Remaining No. of labels CRC<br />

02H xxH xxH 3xH 3xH 3xH 3xH 3xH 3xH 3xH xxH XXH<br />

Printer status<br />

Remaining No. of labels<br />

• 0000 to 9999<br />

Status type<br />

“1” (31H): Status Request Command<br />

“2” (32H): Automatic status transmission<br />

9-11


9. SYSTEM MODE<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

SOH STX Status Remaining No. of labels ETX EOT CR LF<br />

01H 02H 3xH 3xH 3xH 3xH 3xH 3xH 3xH 03H 04H 0DH 0AH<br />

Remaining No. of labels (“0000” to “9999”)<br />

Status type<br />

“1” (31H): Status Request Command<br />

“2” (32H): Automatic status transmission<br />

Printer status<br />

“00”: Normal state<br />

“01”: Cover open state<br />

“02”: Operating<br />

“06”: Command syntax error<br />

“09”: Normal issue end + Label end<br />

“11”: Paper jam<br />

“13”: Label end<br />

“15”: Cover open error<br />

“17”: Broken head dots error<br />

“18”: Thermal head excessive temperature<br />

“36”: Low battery<br />

(“40”: Normal issue end) For automatic status response<br />

(“41”: Normal feed end) For automatic status response<br />

“50”: Flash ROM write error<br />

“51”: Flash ROM erase error<br />

“54”: Flash ROM storage area full state<br />

Notes (1) The status is returned only to the interface which sent this command.<br />

(2) A max. delay of 20 msec may occur until the printer sends the status after<br />

receiving the Status Request Command.<br />

(3) The interval from when the Status Request Command is sent to when the next<br />

Status Request Command is sent should be 20 msec or more. If the interval is<br />

less than 20 msec, the printer may fail to receive the Status Request Command.<br />

Example<br />

[ESC] WS [LF] [NUL]<br />

9-12


9. SYSTEM MODE<br />

9.9.2 MODE INFORMATION ACQUIRE COMMAND [ESC] WX<br />

Function<br />

Format<br />

Explanation<br />

Sends the printer mode information to the host.<br />

[ESC] WX [LF] [NUL]<br />

(1) The mode information format to be sent to the host, is as follows:<br />

[TPCL-LE mode]<br />

[IrDA: TEC Protocol]<br />

STX Mode information (16 bytes) CRC CRC<br />

S Y S T E M SP SP SP SP SP SP SP SP SP SP<br />

02H 53H 59H 53H 54H 45H 4DH 20H 20H 20H 20H 20H 20H 20H 20H 20H 20H xxH xxH<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

SOH STX Mode information (16 bytes) ETX EOT CR LF<br />

S Y S T E M SP SP SP SP SP SP SP SP SP SP<br />

01H 02H 53H 59H 53H 54H 45H 4DH 20H 20H 20H 20H 20H 20H 20H 20H 20H 20H 03H 04H 0DH 0AH<br />

The above is an example where the message is received in the SYSTEM mode. In addition, the<br />

message of “LABEL”, “RECEIPT”, or “TPCL-LE” is returned.<br />

[LABEL/RECEIPT modes]<br />

[IrDA: TEC Protocol]<br />

STX Mode information (16 bytes) CRC CRC<br />

S Y S T E M SP SP SP SP SP SP SP SP SP SP<br />

02H 53H 59H 53H 54H 45H 4DH 20H 20H 20H 20H 20H 20H 20H 20H 20H 20H xxH xxH<br />

[IrDA: IrCOMM, RS-232C, Bluetooth, Wireless LAN]<br />

STX<br />

Mode information (16 bytes)<br />

S Y S T E M SP SP SP SP SP SP SP SP SP SP<br />

02H 53H 59H 53H 54H 45H 4DH 20H 20H 20H 20H 20H 20H 20H 20H 20H 20H<br />

The above is an example where the message is received in the SYSTEM mode. In addition, the<br />

message of “LABEL”, “RECEIPT”, or “TPCL-LE” is returned.<br />

9-13


9. SYSTEM MODE<br />

9.10 COMMANDS RELATED TO PARAMETER SETTING<br />

9.10.1 PARAMETER SET COMMAND [ESC] ZZ<br />

Function<br />

Format<br />

Sets each parameter on the printer.<br />

[ESC] ZZ; a, b, c, d, e, f, g, h, I [LF] [NUL]<br />

Term a: Time to the power save mode (* Firmware V1.5 or greater)<br />

0: 3 sec.<br />

1: 5 sec.<br />

2: 10 sec.<br />

3: 20 sec.<br />

4: 30 sec.<br />

b: Model type (Destination)<br />

1: Fixed<br />

c: Character code<br />

0: PC-850<br />

d: Font of “0”<br />

0: 0 (without slash)<br />

e: Baud rate<br />

0: 9600 bps (for RS-232C)<br />

19200 bps (for IrDA: TEC Protocol)<br />

1: 9600 bps (for RS-232C and IrDA: TEC Protocol)<br />

2: 19200 bps (for RS-232C and IrDA: TEC Protocol)<br />

3: 38400 bps (for RS-232C and IrDA: TEC Protocol)<br />

4: 115200 bps (for RS-232C and IrDA: TEC Protocol)<br />

f: Parity (only for RS-232C)<br />

0: EVEN<br />

1: NONE<br />

g: IrDA protocol type<br />

0: TEC Protocol<br />

1: IrCOMM<br />

h: IrDA window<br />

0: Upper<br />

1: Front<br />

I: Auto power-off time<br />

0: 1 min.<br />

1: 5 min.<br />

2: 30 min.<br />

3: 120 min.<br />

4: No function (The auto power off function is inactivated.)<br />

(* Firmware V1.5 or greater)<br />

9-14


9. SYSTEM MODE<br />

Explanation<br />

(1) This command is used for making various settings for printer’s operations. After<br />

this command is sent, the printer must be restarted by pressing the [POWER]<br />

switch. If the printer is not restarted, the operations are not guaranteed.<br />

(2) Communications conditions<br />

The IrDA window to be used for communications is according to the setting.<br />

Communication<br />

Specifications<br />

type Baud rate Stop bit Data length Parity<br />

1 bit 8 bits None<br />

IrDA: IrCOMM 9600, 19200, 38400,<br />

115200 bps *1<br />

IrDA: TEC Protocol 19200 bps *2<br />

RS-232C 9600 bps *2<br />

Wireless LAN 115200 bps *2<br />

Bluetooth 115200 bps *2<br />

*1: The value is according to the communications protocol setting<br />

*2: The communications conditions are fixed. Therefore, they cannot be changed.<br />

(3) Update of the settings<br />

The settings are updated when the printer is turned OFF then ON.<br />

(4) Factory default settings<br />

Each factory default setting is described below:<br />

Item<br />

Character code<br />

Font of “0”<br />

Baud rate<br />

Parity<br />

IrDA protocol<br />

IrDA window<br />

Auto power-off time<br />

Time to the power save<br />

mode<br />

Factory default value<br />

0: PC-850<br />

0: 0 without a slash<br />

0: 9600 bps (for RS-232C)<br />

19200 bps (for IrDA: TEC Protocol)<br />

0: EVEN<br />

1: IrCOMM<br />

1: Front<br />

3: 120 min.<br />

0: 3 sec.<br />

9-15


9. SYSTEM MODE<br />

9.11 COMMANDS RELATED TO Bluetooth AND WIRELESS LAN<br />

9.11.1 DEVICE ADDRESS ACQUIRE COMMAND [ESC] IT<br />

Function<br />

Format<br />

Explanation<br />

Calls up the device address of the Bluetooth interface or MAC address of the wireless<br />

LAN module connected to the printer.<br />

[ESC] IT [LF] [NUL]<br />

(1) This command calls up the device address of the Bluetooth or MAC address of the<br />

wireless LAN module. On receiving this command, the printer returns the Bluetooth<br />

device address or MAC address with the complenents of the following information<br />

field. When using the IrDA: TEC Protocol, the following information field is placed<br />

in the information frame and sent in packets.<br />

[TPCL-LE mode]<br />

[Information field to be sent when IrDA: TEC Protocol is used]<br />

STX Bluetooth device address CRC<br />

02H 12 bytes xxH xxH<br />

[Information field to be sent when IrDA: IrCOMM, RS-232C, Bluetooth, or wireless<br />

LAN is used]<br />

SOH STX Bluetooth device address ETX EOT CR LF<br />

01H 02H 12 bytes 03H 04H 0DH 0AH<br />

[LABEL/RECEIPT modes]<br />

[Information field to be sent when IrDA: TEC Protocol is used]<br />

STX Bluetooth device address CRC<br />

02H 12 bytes xxH xxH<br />

[Information field to be sent when IrDA: IrCOMM, RS-232C, Bluetooth or wireless<br />

LAN is used]<br />

STX<br />

02H<br />

Bluetooth device address<br />

12 bytes<br />

Example<br />

[ESC] IT [LF] [NUL]<br />

When Bluetooth device address is 0001ccf0042b, the printer sends the following<br />

information.<br />

Bluetooth device address:<br />

[30H] [30H] [30H] [31H] [63H] [63H] [66H] [30H] [30H] [34H] [32H] [62H]<br />

0 0 0 1 c c f 0 0 4 2 b<br />

9-16


9. SYSTEM MODE<br />

9.12 STATUS PRINTING<br />

9.12.1 GENERAL DESCRIPTION<br />

When the printer is turned on while the [FEED] switch is being held down, status printing is<br />

performed. The [FEED] switch must be held down until the status printing starts. After status<br />

printing is performed, every time the [FEED] switch is pressed, the slanted line pattern is printed.<br />

9.12.2 CONTENTS TO BE PRINTED<br />

• Product name<br />

• Part number of the printer software (MAIN, BOOT)<br />

• Version (MAIN, BOOT)<br />

• Creation date (MAIN, BOOT)<br />

• Checksum of Kanji<br />

• Checksum of FONT<br />

• Printer ID<br />

• Version No. of each form for the LABEL mode<br />

• Sensor status<br />

• Battery charge state<br />

• Print density fine adjustment value<br />

• Print position fine adjustment value<br />

• Strip sensor threshold value<br />

• Result for the broken head dots check<br />

• Print mode<br />

• Head output division<br />

• Model type (Destination)<br />

• IrDA protocol<br />

• Optional device<br />

• IrDA window<br />

• Auto power-off time<br />

• Time to the power save mode<br />

• Each parameter<br />

• PCB loop back check<br />

• Slanted line pattern<br />

9-17


9. SYSTEM MODE<br />

9.12.3 PRINT SAMPLE<br />

c Self-test printing (B-<strong>SP2D</strong>-GH20-QM)<br />

(0)<br />

d Self-test printing (B-<strong>SP2D</strong>-GH30-QM)<br />

(0)<br />

e Self-test printing (B-<strong>SP2D</strong>-GH40-QM)<br />

(0)<br />

9-18


9. SYSTEM MODE<br />

B-<strong>SP2D</strong><br />

Product name<br />

7FM00434000<br />

Part number of the printer software<br />

MAIN<br />

10MAR2003 V1.0 :xx00<br />

Version<br />

Creation date<br />

Checksum<br />

BOOT<br />

10MAR2003 V1.0 :xx00<br />

Version<br />

Creation date<br />

Checksum<br />

FONT 9100<br />

Checksum of C/G area<br />

KANJI 1100<br />

FORM 8315427090<br />

2554300000<br />

Checksum of Kanji area<br />

Version of form No. (Upper line: No. 10, Lower line: No. 20)<br />

Version of form No. (Upper line: No. 9, Lower line: No. 19)<br />

Version of form No. (Upper line: No. 8, Lower line: No. 18)<br />

Version of form No. (Upper line: No. 7, Lower line: No. 17)<br />

Version of form No. (Upper line: No. 6, Lower line: No. 16)<br />

Version of form No. (Upper line: No. 5, Lower line: No. 15)<br />

Version of form No. (Upper line: No. 4, Lower line: No. 14)<br />

Version of form No. (Upper line: No. 3, Lower line: No. 13)<br />

Version of form No. (Upper line: No. 2, Lower line: No. 12)<br />

Version of form No. (Upper line: No. 1, Lower line: No. 11)<br />

SENS R:4.3V Reflective sensor<br />

T:1.2V Transmissive sensor<br />

P:1.0V Sensor for switching between the strip and batch sensors<br />

H:+30°c Thermal head temperature sensor<br />

A:+24°c Ambient temperature sensor<br />

HEAD OK (2)<br />

Head output division (Auto, 2, 3, Auto1)<br />

Broken head dot check result:<br />

(OK: No broken head dots, NG: Broken head dots)<br />

9-19


9. SYSTEM MODE<br />

BATT 8.2V (5)<br />

Battery charge status in 5 levels<br />

Remaining battery capacity<br />

ADJ. +03<br />

Print density fine adjustment value<br />

FEED<br />

+10.0mm<br />

Print position fine adjustment value<br />

Set value Actual print Set value Actual print<br />

x.0 mm x.0 mm x.5 mm x.5 mm<br />

x.1 mm x.1 mm x.6 mm x.6 mm<br />

x.2 mm x.2 mm x.7 mm x.7 mm<br />

x.3 mm x.2 mm *1 x.8 mm x.7 mm *1<br />

x.4 mm x.4 mm x.9 mm x.9 mm<br />

*1: The reason why “x.3 mm” and “x.8 mm” are actually printed as “x.2 mm” and “x.7 mm”,<br />

respectively is that the dot density of the print head is 8 dots/mm. The value “x.3 mm” will<br />

be automatically changed to “x.2 mm”, and “x.8 mm” will be changed to “x.7 mm”.<br />

PEEL<br />

+3.0V<br />

Strip sensor threshold value (BATCH MODE, STRIP MODE)<br />

MODE<br />

LABEL<br />

Print mode (LABEL, RECEIPT, RECEIPT1, TPCL-LE)<br />

TYPE<br />

QM<br />

Model type (Destination) (QM)<br />

IrDA TEC 115,200<br />

Baud rate (only for TEC Protocol) (9,600, 19,200, 38,400, 115,200)<br />

Protocol designation (TEC, IrCOMM)<br />

UPPER<br />

IrDA window (UPPER, FRONT)<br />

OP.<br />

RS-232C<br />

Optional device (RS-232C, Bluetooth, Wireless LAN)<br />

9,600 EVEN (only for RS-232C)<br />

Parity (EVEN, NON)<br />

Baud rate (9,600, 19,200, 38,400, 115,200)<br />

0001cc400eb6<br />

P/W 120min (0)<br />

BD address (for Bluetooth) or MAC address (for Wireless LAN)<br />

Time to the power save mode<br />

(3 sec. ⇒ 0, 5 sec. ⇒ 1, 10 sec. ⇒ 2, 20 sec. ⇒ 3, 30 sec. ⇒ 4)<br />

Auto power-off time (1min, 5min, 30min, 120min, OFF)<br />

9-20


9. SYSTEM MODE<br />

LOOP<br />

IR:OK RS:OK<br />

Option check (RS-232C ⇒ RS, Bluetooth ⇒ BT, Wireless<br />

LAN ⇒ LN) (OK, NG)<br />

IrDA check (OK, NG)<br />

* The special jig is needed to check the RS-232C. Therefore, the result of RS-232C<br />

check will usually be NG.<br />

PARA [PC850] [0]<br />

“0” without a slash (/)<br />

Character code<br />

9-21


9. SYSTEM MODE<br />

9.13 SETUP MODE<br />

9.13.1 GENERAL DESCRIPTION<br />

The settings can be changed not only by commands but also by the key operations from the<br />

printer. This section describes how to change the settings by the key operations from the printer.<br />

9.13.2 PRINTER CONDITIONS TO CHANGE SETTINGS<br />

SYSTEM mode<br />

Blank position of the receive buffer (There are no commands to be processed in the receive<br />

buffer)<br />

3 or more of the battery levels (When the battery level is 2, the settings cannot be changed.)<br />

9.13.3 HOW TO ENTER INTO SETUP MODE<br />

Hold down the [FEED] switch for 3 seconds, with the cover open.<br />

* Since the switch is held down with the cover open, the cover open error occurs. However,<br />

ignore it and keep holding down the [FEED] switch. When the printer enters into the setup<br />

mode, the LED, which is lit in red, will go off.<br />

* Care must be taken not to keep holding down the [FEED] switch for more 7 seconds after the<br />

printer enters into the setup mode, as this changes the IrDA interface mode to the forced<br />

IrCOMM mode. (*Firmware V1.2 or greater)<br />

9.13.4 HOW TO RETURN TO SYSTEM MODE DURING SETTING<br />

During the setup mode, when the LED is ON in orange, press the [FEED] switch.<br />

9.13.5 AUTO POWER-OFF FUNCTION DURING SETTING<br />

Not performed<br />

9.13.6 HOW TO CANCEL EACH SETUP MODE<br />

Close the cover. If the cover is closed while the LED is blinking in green, the printer determines<br />

the setting to be incomplete. Therefore, the setting is not updated (saved).<br />

9.13.7 HOW TO CHECK EACH MODE SETTING<br />

Perform self-test printing and check the result printout.<br />

9.13.8 OTHER<br />

The printer does not enter into the power save mode during the setup mode.<br />

In the setup mode, the [POWER] switch works as the operation key. It does not work to turn the<br />

printer ON or OFF. After the cover is closed, the [POWER] switch enables to turn the printer ON<br />

or OFF.<br />

If the setting is the same as before, it is not written into flash ROM.<br />

During the setup mode, transmission and reception interrupts through the IrDA, the RS-232C, the<br />

Bluetooth, or wireless LAN driver are masked. Therefore, communications are disabled.<br />

The setting made takes effect, after the printer is turned OFF then ON by pressing the [POWER]<br />

switch in the SYSTEM mode, or when the printer is restarted by the Reset Command.<br />

9-22


9. SYSTEM MODE<br />

9.13.9 FORCED IrCOMM MODE (*Firmware V1.2 or greater)<br />

When changing the printer settings by using the setup tool, the TEC Protocol, which is supposed<br />

to be used in normal operation, is temporarily changed to the IrCOMM until the printer is turned<br />

off.<br />

After printing the self test label, hold down the [FEED] switch for 10 seconds with the cover open.<br />

Though the printer enters into the setup mode in 3 seconds, keep holding down the [FEED] switch<br />

for more 7 seconds. When the printer enters into the IrCOMM mode, the LED will be ON in<br />

green.<br />

9.13.10 SETUP MENU<br />

The detailed operations of each setup menu are described below.<br />

SYSTEM mode<br />

(LED lights up in green)<br />

Press the<br />

[FEED] switch<br />

Open the cover<br />

Press the [FEED] switch for 3 seconds<br />

Setup mode<br />

is canceled.<br />

Setup mode<br />

(LED lights up in orange)<br />

Press the [POWER] switch<br />

IrDA communication setup menu<br />

(LED blinks in orange once)<br />

Press the<br />

[FEED] switch<br />

IrDA communication setup mode<br />

(LED lights up in red)<br />

Close the<br />

cover<br />

Press the [POWER] switch<br />

Baud rate setup menu<br />

(LED blinks in orange twice)<br />

Press the<br />

[FEED] switch<br />

Baud rate setup mode<br />

(LED lights up in red)<br />

Press the [POWER] switch<br />

Parity setup menu<br />

(LED blinks in orange 3 times)<br />

Press the<br />

[FEED] switch<br />

Parity setup mode<br />

(LED lights up in red)<br />

Press the [POWER] switch<br />

Auto power-off time setup menu<br />

(LED blinks in orange 4 times)<br />

Press the<br />

[FEED] switch<br />

Auto power-off time setup mode<br />

(LED lights up in red)<br />

Press the [POWER] switch<br />

Press the<br />

[POWER] switch<br />

Model type (Destination) setup menu<br />

(LED blinks in orange 5 times)<br />

Press the<br />

[FEED] switch<br />

Model type (Destination) setup mode<br />

(LED lights up in red)<br />

9-23


9. SYSTEM MODE<br />

9.13.11 IrDA COMMUNICATION SETUP MENU<br />

Setup mode<br />

(LED lights up in orange)<br />

Press the [POWER] switch<br />

IrDA communication setup menu<br />

(LED blinks in orange once)<br />

Press the [POWER] switch<br />

Baud rate setup menu<br />

(LED blinks in orange twice)<br />

Press the [FEED] switch<br />

IrDA communication setup mode<br />

(LED lights up in red)<br />

IrCOMM (9-Wire) (Upper)<br />

(LED blinks in red once)<br />

Press the [POWER] switch<br />

Start from where the setting is currently made<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Close the cover<br />

Setup mode<br />

is canceled.<br />

IrCOMM (9-Wire) (Front)<br />

(LED blinks in red twice)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

TEC Protocol (Upper)<br />

(LED blinks in red 3 times)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

SYSTEM mode<br />

(LED lights up in green)<br />

TEC Protocol (Front)<br />

(LED blinks in red 4 times)<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Save (update) the setting<br />

9-24


9. SYSTEM MODE<br />

9.13.12 BAUD RATE SETUP MENU<br />

IrDA communication setup menu<br />

(LED blinks in orange once)<br />

Press the [POWER] switch<br />

Baud rate setup menu<br />

(LED blinks in orange twice)<br />

Press the [POWER] switch<br />

Parity setup menu<br />

(LED blinks in orange 3 times)<br />

Press the [FEED] switch<br />

Baud rate setup mode<br />

(LED lights up in red)<br />

19200 (IrDA), 9600 (RS-232C)<br />

(LED blinks in red once)<br />

Press the [POWER] switch<br />

Start from where the setting is currently made<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Close the cover<br />

Setup mode<br />

is canceled.<br />

9600 bps<br />

(LED blinks in red twice)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

19200 bps<br />

(LED blinks in red 3 times)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

SYSTEM mode<br />

(LED lights up in green)<br />

38400 bps<br />

(LED blinks in red 4 times)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

115200 bps<br />

(LED blinks in red 5 times)<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Save (update) the setting<br />

9-25


9. SYSTEM MODE<br />

9.13.13 PARITY SETUP MENU<br />

Baud rate setup menu<br />

(LED blinks in orange twice)<br />

Press the [POWER] switch<br />

Parity setup menu<br />

(LED blinks in orange 3 times)<br />

Press the [POWER] switch<br />

Auto power-off time setup menu<br />

(LED blinks in orange 4 times)<br />

Press the [FEED] switch<br />

Parity setup mode<br />

(LED lights up in red)<br />

EVEN<br />

(LED blinks in red once)<br />

Press the [POWER] switch<br />

Start from where the setting is currently made<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Close the cover<br />

Setup mode<br />

is canceled.<br />

NONE<br />

(LED blinks in red twice)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

SYSTEM mode<br />

(LED lights up in green)<br />

Save (update) the setting<br />

9-26


9. SYSTEM MODE<br />

9.13.14 AUTO POWER-OFF TIME SETUP MENU<br />

Parity setup menu<br />

(LED blinks in orange 3 times)<br />

Press the [POWER] switch<br />

Auto power-off time setup menu<br />

(LED blinks in orange 4 times)<br />

Press the [POWER] switch<br />

Model type (Destination) setup menu<br />

(LED blinks in orange 5 times)<br />

Press the [FEED] switch<br />

Auto power-off time setup mode<br />

(LED lights up in red)<br />

1 min<br />

(LED blinks in red once)<br />

Press the [POWER] switch<br />

Start from where the setting is currently made<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Close the cover<br />

Setup mode<br />

is canceled.<br />

5 min<br />

(LED blinks in red twice)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

30 min<br />

(LED blinks in red 3 times)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

SYSTEM mode<br />

(LED lights up in green)<br />

120 min<br />

(LED blinks in red 4 times)<br />

Press the [POWER] switch<br />

No function (OFF)<br />

(LED blinks in red 5 times)<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Save (update) the setting<br />

9-27


9. SYSTEM MODE<br />

9.13.15 MODEL TYPE (DESTINATION) SETUP MENU<br />

Auto power-off time setup menu<br />

(LED blinks in orange 4 times)<br />

Press the [POWER] switch<br />

Model type (Destination) setup menu<br />

(LED blinks in orange 5 times)<br />

Press the [POWER] switch<br />

Setup mode menu<br />

(LED lights up in orange)<br />

Press the [FEED] switch<br />

Model type (Destination) setup mode<br />

(LED lights up in red)<br />

JP (Not supported)<br />

(LED blinks in red once)<br />

Press the [POWER] switch<br />

Start from where the setting is currently made<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

Close the cover<br />

Setup mode<br />

is canceled.<br />

QM<br />

(LED blinks in red twice)<br />

Press the [FEED] switch<br />

Press the [POWER] switch<br />

Press the [FEED] switch<br />

SYSTEM mode<br />

(LED lights up in green)<br />

Save (update) the setting<br />

NOTE:<br />

There are two options for the model type (destination).<br />

However, “JP” is not supported.<br />

9-28


10. .OTHER FUNCTIONS<br />

10. OTHER FUNCTIONS<br />

10.1 GENERAL DESCRIPTION<br />

This chapter describes the functions of the printer in detail.<br />

10-1


10. .OTHER FUNCTIONS<br />

10.2 REPRINT FUNCTION<br />

10.2.1 LABEL MODE, TPCL-LE1 MODE<br />

When the batch issue mode is selected, the same label as the last one issued is printed out by<br />

pressing the [FEED] switch. When this switch is pressed if no label has been printed, the<br />

specified label pitch length of one label is fed. (If no sensor is designated, a 20-mm feed is<br />

performed.)<br />

In the strip issue mode, since the designation for the number of labels to be issued is ignored, one<br />

label is issued. Therefore, the required number of labels should be issued by repeatedly pressing<br />

the [FEED] switch.<br />

If an error occurs, key entries are ignored. However, the drawing buffer data is kept until the next<br />

Data Print Command is received. After the error is cleared, one label can be issued, every time<br />

the [FEED] switch is pressed.<br />

10.2.2 RECEIPT MODE<br />

A label is not issued again, even if the [FEED] switch is pressed. A 20-mm feed is performed,<br />

every time the [FEED] switch is pressed.<br />

10.2.3 TPCL-LE MODE<br />

A label is not issued again, even if the [FEED] switch is pressed. The specified label pitch length<br />

of a feed is performed, every time the [FEED] switch is pressed. (If no sensor is designated, a 20-<br />

mm feed is performed.)<br />

10.3 POWER SAVE MODE<br />

This printer will enter the power save mode after the printer has been in an idle state for the specified<br />

‘time to the power save mode’ (factory setting: 3 sec.) to save the power consumption. When the<br />

printer enters the power save mode, all data in the receive buffer is cleared. During an error state<br />

(including a low battery state), the printer does not enter the power save mode, but turns off<br />

according to the auto power off time setting. If the time setting is 5 minutes or longer, however, the<br />

printer will turn off in 5 minutes.<br />

The power save mode is cleared when:<br />

• The IrDA link is established. (TEC Protocol, IrCOMM)<br />

• RS-232C communications are started.<br />

• Bluetooth communications are started.<br />

• Wireless LAN communications are started.<br />

• The cover is opened or closed.<br />

• The [FEED] switch is pressed.<br />

• The [POWER] switch is pressed.<br />

10-2


10. .OTHER FUNCTIONS<br />

10.4 AUTOMATIC LABEL PRINT POSITIONING<br />

10.4.1 LABEL MODE, TPCL-LE MODE<br />

When the cover is closed, the label is automatically fed to the first print position. However, if no<br />

sensor is designated, a feed is not performed.<br />

10.4.2 RECEIPT MODE<br />

Even if the cover is closed, the label is not automatically fed to the first print position.<br />

10.5 CONTINUOUS PRINTING FUNCTION<br />

10.5.1 LABEL MODE, RECEIPT MODE (Mode = 1 or 3)<br />

The continuous printing function is not supported. When an error occurs, the receive buffer is<br />

entirely cleared.<br />

10.5.2 RECEIPT1 MODE (Mode = 2), TPCL-LE MODE<br />

After the label end error or the cover open error is cleared, the printer automatically continues<br />

printing the data which has been received before the error occurred. After paper is replaced, the<br />

error is cleared when the cover is closed. Then, the printer automatically continues printing. If the<br />

sensor is designated, the printer performs a feed to position the label at the first print position,<br />

then continues printing. When the cover is closed, if the printer has run out of the paper, the<br />

printer neither clears the error nor continues printing. It remains in the error state.<br />

10.6 AUTOMATIC LABEL PRINT POSITIONING AT POWER ON TIME<br />

If the sensor is designated, the printer performs a feed to position the label at the first print position.<br />

10.7 BD ADDRESS PRINTING FUNCTION<br />

When the printer which supports Bluetooth interface is turned ON by holding down the [POWER]<br />

switch for approximately 5 seconds, the bar code below is printed, regardless of the print mode.<br />

However, if the bar code is not properly printed due to an error caused by the label end or paper jam,<br />

the printer does not reprint it. Clear the error, and then try to reprint it by performing the procedure<br />

from the beginning (the power off state).<br />

[Bar code sample of Bluetooth device address]<br />

10-3


10. .OTHER FUNCTIONS<br />

10.8 WIRELESS LAN PARAMETER SETTINGS PRINTING FUNCTION<br />

When the printer on which the wireless LAN module is installed is turned ON by holding down the<br />

[POWER] switch while the power is off, the printer turns on and prints a wireless LAN parameter<br />

settings label regardless of the issue mode. If the label is not printed successfully due to an error like<br />

no paper or feed jam, it is required to load the media correctly, turn off the power, and then retry from<br />

the beginning. This is because the printer will not print the label even if the error is cleared.<br />

[Sample of the wireless LAN parameter setting printout]<br />

RF-LAN PARAMS [100] |TYPE[EU ]<br />

IP [172.016.000.010] |LPR [ON ]<br />

GW [000.000.000.000] |DHCP[ON ]<br />

SUB [255.255.000.000] |CON [INF]<br />

SOCK[ON ][65535] |AUTH[SKEY]<br />

WEP [128]|SECU[MD5] |CHAN[07]<br />

WINS [ON ][000.000.000.000]<br />

HOST [TTEC ]<br />

[ ]<br />

ESSID[TEC ]<br />

[ ]<br />

MAC:0010C61CCDA9<br />

10-4


11. CHARACTER CODE TABLE<br />

11. CHARACTER CODE TABLE<br />

11.1 GENERAL DESCRIPTION<br />

In this chapter, the character code tables are provided.<br />

11-1


11. CHARACTER CODE TABLE<br />

11.2 TIMES ROMAN<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 SP 0 @ P ` p Ç É á C ð Ó -<br />

1 ! 1 A Q a q ü æ í Ð ß ±<br />

2 ” 2 B R b r é Æ ó Ê Ô =<br />

3 # 3 C S c s â ô ú Ë Ò ¾<br />

4 $ 4 D T d t ä ö ñ È õ <br />

5 % 5 E U e u à ò Ñ Á 1 Õ §<br />

6 & 6 F V f v å û ª Â ã Í µ ÷<br />

7 ’ 7 G W g w ç ù º À Ã Î þ ¸<br />

8 ( 8 H X h x ê ÿ ¿ © Ï Þ °<br />

9 ) 9 I Y i y ë Ö ® Ú ¨<br />

A * : J Z j z è Ü ¬ Û •<br />

B + ; K [ k { ï ø ½ Ù ¹<br />

C , < L \ l | î £ ¼ ý ³<br />

D – = M ] m } ì Ø ¡ ¢ ¦ Ý ²<br />

E . > N ^ n ~ Ä × « ¥ Ì<br />

F / ? O _ o Å ƒ » ¤ ´<br />

¯<br />

<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

11.3 HELVETICA<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 SP 0 @ P ` p Ç É á C ð Ó -<br />

1 ! 1 A Q a q ü æ í Ð ß ±<br />

2 ” 2 B R b r é Æ ó Ê Ô =<br />

3 # 3 C S c s â ô ú Ë Ò ¾<br />

4 $ 4 D T d t ä ö ñ È õ <br />

5 % 5 E U e u à ò Ñ Á 1 Õ §<br />

6 & 6 F V f v å û ª Â ã Í µ ÷<br />

7 ’ 7 G W g w ç ù º À Ã Î þ ¸<br />

8 ( 8 H X h x ê ÿ ¿ © Ï Þ °<br />

9 ) 9 I Y i y ë Ö ® Ú ¨<br />

A * : J Z j z è Ü ¬ Û •<br />

B + ; K [ k { ï ø ½ Ù ¹<br />

C , < L \ l | î £ ¼ ý ³<br />

D – = M ] m } ì Ø ¡ ¢ ¦ Ý ²<br />

E . > N ^ n ~ Ä × « ¥ Ì<br />

F / ? O _ o Å ƒ » ¤ ´<br />

¯<br />

<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

Some characters may<br />

not be printed,<br />

depending on point<br />

sizes.<br />

11-2


11. CHARACTER CODE TABLE<br />

11.4 LETTER GOTHIC<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 SP 0 @ P ` p Ç É á C ð Ó -<br />

1 ! 1 A Q a q ü æ í Ð ß ±<br />

2 ” 2 B R b r é Æ ó Ê Ô =<br />

3 # 3 C S c s â ô ú Ë Ò<br />

4 $ 4 D T d t ä ö ñ È õ<br />

5 % 5 E U e u à ò Ñ Á 1 Õ §<br />

6 & 6 F V f v å û ª Â ã Í<br />

7 ’ 7 G W g w ç ù º À Ã Î þ ¸<br />

8 ( 8 H X h x ê ÿ ¿ Ï Þ °<br />

9 ) 9 I Y i y ë Ö Ú ¨<br />

A * : J Z j z è Ü Û •<br />

B + ; K [ k { ï ø ½ Ù<br />

C , < L \ l | î £ ¼ ý<br />

D – = M ] m } ì Ø ¡ ¢ Ý<br />

E . > N ^ n ~ Ä × « ¥ Ì<br />

F / ? O _ o Å ƒ » ¤ ´<br />

¯<br />

<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

11.5 PRESTIGE ELITE<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 SP 0 @ P ` p Ç É á C ð Ó -<br />

1 ! 1 A Q a q ü æ í Ð ß ±<br />

2 ” 2 B R b r é Æ ó Ê Ô =<br />

3 # 3 C S c s â ô ú Ë Ò<br />

4 $ 4 D T d t ä ö ñ È õ<br />

5 % 5 E U e u à ò Ñ Á 1 Õ §<br />

6 & 6 F V f v å û ª Â ã Í<br />

7 ’ 7 G W g w ç ù º À Ã Î þ ¸<br />

8 ( 8 H X h x ê ÿ ¿ Ï Þ °<br />

9 ) 9 I Y i y ë Ö Ú ¨<br />

A * : J Z j z è Ü Û •<br />

B + ; K [ k { ï ø ½ Ù<br />

C , < L \ l | î £ ¼ ý<br />

D – = M ] m } ì Ø ¡ ¢ Ý<br />

E . > N ^ n ~ Ä × « ¥ Ì<br />

F / ? O _ o Å ƒ » ¤ ´<br />

¯<br />

<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

Some characters may<br />

not be printed,<br />

depending on point<br />

sizes.<br />

11-3


11. CHARACTER CODE TABLE<br />

11.6 COURIER<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 SP 0 @ P ` p Ç É á C ð Ó -<br />

1 ! 1 A Q a q ü æ í Ð ß ±<br />

2 ” 2 B R b r é Æ ó Ê Ô =<br />

3 # 3 C S c s â ô ú Ë Ò ¾<br />

4 $ 4 D T d t ä ö ñ È õ <br />

5 % 5 E U e u à ò Ñ Á 1 Õ §<br />

6 & 6 F V f v å û ª Â ã Í µ ÷<br />

7 ’ 7 G W g w ç ù º À Ã Î þ ¸<br />

8 ( 8 H X h x ê ÿ ¿ © Ï Þ °<br />

9 ) 9 I Y i y ë Ö ® Ú ¨<br />

A * : J Z j z è Ü ¬ Û •<br />

B + ; K [ k { ï ø ½ Ù ¹<br />

C , < L \ l | î £ ¼ ý ³<br />

D – = M ] m } ì Ø ¡ ¢ ¦ Ý ²<br />

E . > N ^ n ~ Ä × « ¥ Ì<br />

F / ? O _ o Å ƒ » ¤ ´<br />

¯<br />

<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

11.7 GOTHIC725 BLACK<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 SP 0 @ P ` p Ç É á C ð Ó -<br />

1 ! 1 A Q a q ü æ í Ð ß ±<br />

2 ” 2 B R b r é Æ ó Ê Ô =<br />

3 # 3 C S c s â ô ú Ë Ò ¾<br />

4 $ 4 D T d t ä ö ñ È õ <br />

5 % 5 E U e u à ò Ñ Á 1 Õ §<br />

6 & 6 F V f v å û ª Â ã Í µ ÷<br />

7 ’ 7 G W g w ç ù º À Ã Î þ ¸<br />

8 ( 8 H X h x ê ÿ ¿ © Ï Þ °<br />

9 ) 9 I Y i y ë Ö ® Ú ¨<br />

A * : J Z j z è Ü ¬ Û •<br />

B + ; K [ k { ï ø ½ Ù ¹<br />

C , < L \ l | î £ ¼ ý ³<br />

D – = M ] m } ì Ø ¡ ¢ ¦ Ý ²<br />

E . > N ^ n ~ Ä × « ¥ Ì<br />

F / ? O _ o Å ƒ » ¤ ´<br />

¯<br />

<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

11-4


11. CHARACTER CODE TABLE<br />

11.8 PRESENTATION<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 0 @ P ` P C -<br />

1 ! 1 A Q A Q<br />

2 " 2 B R B R<br />

3 # 3 C S C S<br />

4 $ 4 D T D T<br />

5 % 5 E U E U<br />

6 & 6 F V F V<br />

7 ' 7 G W G W<br />

8 ( 8 H X H X<br />

9 ) 9 I Y I Y<br />

A * : J Z J Z<br />

B + ; K [ K {<br />

C , < L \ L |<br />

D – = M ] M } ¢<br />

E . > N ^ N ~ ¥<br />

F / ? O _ O<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

Some characters may<br />

not be printed,<br />

depending on point<br />

sizes.<br />

11.9 STANDARD (12×24)<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 0 @ P ` p C<br />

1 ! 1 A Q a q<br />

2 ” 2 B R b r<br />

3 # 3 C S c s<br />

4 $ 4 D T d t<br />

5 % 5 E U e u<br />

6 & 6 F V f v<br />

7 ’ 7 G W g w<br />

8 ( 8 H X h x<br />

9 ) 9 I Y i y<br />

A * : J Z j z<br />

B + ; K [ k {<br />

C , < L \ l |<br />

D - = M ] m }<br />

E . > N ^ n ~<br />

F / ? O _ o ¥<br />

* The shaded parts are Japanese. They are omitted here.<br />

11-5


11. CHARACTER CODE TABLE<br />

11.10 OCR-A<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 0 P -<br />

1 1 A Q<br />

2 " 2 B R<br />

3 3 C S<br />

4 $ 4 D T<br />

5 5 E U<br />

6 6 F V<br />

7 7 G W<br />

8 8 H X<br />

9 9 I Y<br />

A J Z<br />

B + K<br />

C < L<br />

D - M<br />

E . > N ¥<br />

F / O ¥<br />

On the JP model, code<br />

5CH indicates “¥”, and<br />

code 7FH is “ ”.<br />

11.11 OCR-B<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 0 P 0 -<br />

1 1 A Q 1<br />

2 " 2 B R 2<br />

3 3 C S 3<br />

4 $ 4 D T 4<br />

5 5 E U 5<br />

6 6 F V 6<br />

7 7 G W 7<br />

8 8 H X 8<br />

9 9 I Y 9<br />

A J Z<br />

B + K<br />

C < L<br />

D - M<br />

E . > N ¥<br />

F / O ¥<br />

On the JP model, code<br />

5CH indicates “¥”, and<br />

code 7FH is “ ”.<br />

The size of the numerals of codes 80h ~ 89h are reduced to 80%.<br />

11-6


11. CHARACTER CODE TABLE<br />

11.12 PRICE FONT 1/PRICE FONT 2<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 0 -<br />

1 1<br />

2 2<br />

3 3<br />

4 $ 4<br />

5 5<br />

6 6<br />

7 7<br />

8 8<br />

9 9<br />

A<br />

B<br />

C ,<br />

D –<br />

E . ¥<br />

F<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

11.13 BOLD CHARACTER<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 0 -<br />

1 1<br />

2 2<br />

3 3<br />

4 4<br />

5 5<br />

6 6<br />

7 7<br />

8 8<br />

9 9<br />

A<br />

B<br />

C<br />

D -<br />

E<br />

F<br />

11-7


11. CHARACTER CODE TABLE<br />

11.14 OUTLINE FONT TEC FONT 1<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 SP 0 @ P ` p Ç É á C -<br />

1 ! 1 A Q a q ü æ í C ß ±<br />

2 ” 2 B R b r é Æ ó<br />

3 # 3 C S c s â ô ú<br />

4 $ 4 D T d t ä ö ñ õ<br />

5 % 5 E U e u à ò Ñ §<br />

6 & 6 F V f v å û ª ã µ ÷<br />

7 ’ 7 G W g w ç ù º<br />

8 ( 8 H X h x ê ÿ ¿ °<br />

9 ) 9 I Y i y ë Ö<br />

A * : J Z j z è Ü ¬ •<br />

B + ; K [ k { ï ø ½<br />

C , < L \ l | î £ ¼<br />

D – = M ] m } ì Ø ¡ ¢ ²<br />

E . > N ^ n ~ Ä « ¥ <br />

F / ? O _ o Å ƒ » ¤<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

Some characters may<br />

not be printed,<br />

depending on point<br />

sizes.<br />

11.15 OUTLINE FONT PRICE FONT 2<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 SP 0<br />

1 1<br />

2 2<br />

3 3<br />

4 $ 4<br />

5 % 5<br />

6 6<br />

7 7<br />

8 8<br />

9 9<br />

A<br />

B<br />

C , ¥<br />

D -<br />

E . ~<br />

F /<br />

On the JP model, code<br />

5CH indicates “¥”.<br />

Some characters may<br />

not be printed,<br />

depending on point<br />

sizes.<br />

11-8


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.1 GENERAL DESCRIPTION<br />

In this chapter, the bar code/two-dimensional code tables are provided. Note that there are some bar<br />

codes/two-dimensional codes which are not supported, depending on the print mode.<br />

12-1


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.2 JAN8/EAN8, JAN13/EAN13, UPC-A, UPC-E, ITF, EAN128, MSI, RSS-14, RSS-14<br />

STACKED, RSS-14 STACKED OMNIDIRECTIONAL, RSS-LIMITED<br />

2 3 4 5 6 7<br />

0 0<br />

1 1<br />

2 2<br />

3 3<br />

4 4<br />

5 5<br />

6 6<br />

7 7<br />

8 8<br />

9 9<br />

A<br />

B<br />

C<br />

D<br />

E<br />

F<br />

12.3 CODE39 (STANDARD)<br />

2 3 4 5 6 7<br />

0 SP 0 P<br />

1 1 A Q<br />

2 2 B R<br />

3 3 C S<br />

4 $ 4 D T<br />

5 % 5 E U<br />

6 6 F V<br />

7 7 G W<br />

8 8 H X<br />

9 9 I Y<br />

A * J Z<br />

B + K<br />

C<br />

L<br />

D – M<br />

E • N<br />

F / O<br />

NOTE:<br />

“*” in the above table is used only as the start/stop codes.<br />

12-2


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.4 NW-7<br />

2 3 4 5 6 7<br />

0 SP 0<br />

1 1 A a<br />

2 2 B b<br />

3 3 C c<br />

4 $ 4 D d t<br />

5 5 e<br />

6 6<br />

7 7<br />

8 8<br />

9 9<br />

A * :<br />

B +<br />

C<br />

D –<br />

E • n<br />

F /<br />

12.5 CUSTOMER BAR CODE, HIGHEST PRIORITY CUSTOMER BAR CODE<br />

2 3 4 5 6 7<br />

0 0 P<br />

1 1 A Q<br />

2 2 B R<br />

3 3 C S<br />

4 4 D T<br />

5 5 E U<br />

6 6 F V<br />

7 7 G W<br />

8 8 H X<br />

9 9 I Y<br />

A J Z<br />

B<br />

K<br />

C<br />

L<br />

D – M<br />

E<br />

N<br />

F<br />

O<br />

12-3


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.6 CODE128<br />

12.6.1 TRANSFER CODE<br />

– – 2 3 4 5 6 7<br />

0 NUL DLE SP 0 @ P ` p<br />

1 SOH DC1 ! 1 A Q a q<br />

2 STX DC2 " 2 B R b r<br />

3 ETX DC3 # 3 C S c s<br />

4 EOT DC4 $ 4 D T d t<br />

5 ENQ NAK % 5 E U e u<br />

6 ACK SYN & 6 F V f v<br />

7 BEL ETB ' 7 G W g w<br />

8 BS CAN ( 8 H X h x<br />

9 HT EM ) 9 I Y i y<br />

A LF SUB * : J Z j z<br />

B VT ESC + ; K [ k {<br />

C FF FS , < L \ l |<br />

D CR GS – = M ] m }<br />

E SO RS . > N ^ n ~<br />

F SI US / ? O _ o<br />

[Drawing code]<br />

Value Code Table<br />

12.6.2 HOW TO SEND CONTROL CODE DATA<br />

NUL (00H) → >@ (3EH, 40H)<br />

SOH (01H) → >A (3EH, 41H)<br />

STX (02H) → >B (3EH, 42H)<br />

to<br />

GS (1DH) → >] (3EH, 5DH)<br />

RS (1EH) → > ^ (3EH, 5EH)<br />

US (1FH) → >_ (3EH, 5FH)<br />

12.6.3 HOW TO SEND SPECIAL CODES<br />

Value<br />

30 (Character >) → >0<br />

95 → >1<br />

96 → >2<br />

97 → >3<br />

98 → >4<br />

99 → >5<br />

100 → >6<br />

101 → >7<br />

102 → >8<br />

12.6.4 DESIGNATION OF START CODE<br />

START (CODE A) → >7<br />

START (CODE B) → >6<br />

START (CODE C) → >5<br />

12-4


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.6.5 VALUE CODE TABLE<br />

VALUE CODE<br />

A<br />

CODE<br />

B<br />

CODE<br />

C<br />

VALUE CODE<br />

A<br />

CODE<br />

B<br />

CODE<br />

C<br />

VALUE CODE<br />

A<br />

CODE<br />

B<br />

CODE<br />

C<br />

0 SP SP 00 36 D D 36 72 BS h 72<br />

1 ! ! 01 37 E E 37 73 HT i 73<br />

2 " " 02 38 F F 38 74 LF j 74<br />

3 # # 03 39 G G 39 75 VT k 75<br />

4 $ $ 04 40 H H 40 76 FF l 76<br />

5 % % 05 41 I I 41 77 CR m 77<br />

6 & & 06 42 J J 42 78 SO n 78<br />

7 ' ' 07 43 K K 43 79 SI o 79<br />

8 ( ( 08 44 L L 44 80 DLE p 80<br />

9 ) ) 09 45 M M 45 81 DC1 q 81<br />

10 * * 10 46 N N 46 82 DC2 r 82<br />

11 + + 11 47 O O 47 83 DC3 s 83<br />

12 , , 12 48 P P 48 84 DC4 t 84<br />

13 – – 13 49 Q Q 49 85 NAK u 85<br />

14 . . 14 50 R R 50 86 SYN v 86<br />

15 / / 15 51 S S 51 87 ETB w 87<br />

16 0 0 16 52 T T 52 88 CAN x 88<br />

17 1 1 17 53 U U 53 89 EM y 89<br />

18 2 2 18 54 V V 54 90 SUB z 90<br />

19 3 3 19 55 W W 55 91 ESC { 91<br />

20 4 4 20 56 X X 56 92 FS ¦ 92<br />

21 5 5 21 57 Y Y 57 93 GS } 93<br />

22 6 6 22 58 Z Z 58 94 RS ~ 94<br />

23 7 7 23 59 [ [ 59 95 US DEL 95<br />

24 8 8 24 60 \ \ 60 96 FNC3 FNC3 96<br />

25 9 9 25 61 ] ] 61 97 FNC2 FNC2 97<br />

26 : : 26 62 ^ ^ 62 98 SHIFT SHIFT 98<br />

27 ; ; 27 63 _ _ 63 99 CODE C CODE C 99<br />

28 < < 28 64 NUL ` 64 100 CODE B FNC4 CODE B<br />

29 = = 29 65 SOH a 65 101 FNC4 CODE A CODE A<br />

30 > > 30 66 STX b 66 102 FNC1 FNC1 FNC1<br />

31 ? ? 31 67 ETX c 67<br />

32 @ @ 32 68 EOT d 68 103 START CODE A<br />

33 A A 33 69 ENQ e 69 104 START CODE B<br />

34 B B 34 70 ACK f 70 105 START CODE C<br />

35 C C 35 71 BEL g 71<br />

12-5


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.7 RSS EXPANDED<br />

2 3 4 5 6 7<br />

0 SP 0 P p<br />

1 ! 1 A Q a q<br />

2 “ 2 B R b r<br />

3 FNC1 3 C S c s<br />

4 4 D T d t<br />

5 % 5 E U e u<br />

6 & 6 F V f v<br />

7 ‘ 7 G W g w<br />

8 ( 8 H X h x<br />

9 ) 9 I Y i y<br />

A * : J Z j z<br />

B + ; K k<br />

C , < L l<br />

D – = M m<br />

E • > N n<br />

F / ? O _ O<br />

12-6


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.8 DATA MATRIX<br />

12.8.1 FORMAT ID<br />

The code to be used is designated using the format ID.<br />

Format ID Code Details<br />

1 Numerics 0 to 9 space<br />

2 Letters A to Z space<br />

3 Alphanumerics, symbols 0 to 9 A to Z space . , - /<br />

4 Alphanumerics 0 to 9 A to Z space<br />

5 ASCII (7-bit) 00H to 7FH<br />

6 ISO (8-bit) 00H to FFH (Kanji)<br />

12.8.2 TRANSFER CODE<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 NUL DLE SP 0 @ P ` p<br />

1 SOH DC1 ! 1 A Q a q<br />

2 STX DC2 ” 2 B R b r<br />

3 ETX DC3 # 3 C S c s<br />

4 EOT DC4 $ 4 D T d t<br />

5 ENQ NAK % 5 E U e u<br />

6 ACK SYN & 6 F V f v<br />

7 BEL ETB ’ 7 G W g w<br />

8 BS CAN ( 8 H X h x<br />

9 HT EM ) 9 I Y i y<br />

A LF SUB * : J Z j z<br />

B VT ESC + ; K [ k {<br />

C FF FS , < L \ l |<br />

D CR GS – = M ] m }<br />

E SO RS . > N ^ n ~<br />

F SI US / ? O _ o<br />

12.8.3 HOW TO SEND CONTROL CODE DATA<br />

NUL (00H) → >@ (3EH, 40H)<br />

SOH (01H) → >A (3EH, 41H)<br />

STX (02H) → >B (3EH, 42H)<br />

to<br />

GS (1DH) → >] (3EH, 5DH)<br />

RS (1EH) → >^ (3EH, 5EH)<br />

US (1FH) → >_ (3EH, 5FH)<br />

12.8.4 HOW TO SEND SPECIAL CODES<br />

> (3EH) → >0 (3EH, 30H)<br />

12-7


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.9 PDF417, MicroPDF417<br />

12.9.1 MODE/CODE<br />

The following modes are automatically selected according to the code used.<br />

[PDF417]<br />

Mode Code Details<br />

EXC mode<br />

Alphanumerics,<br />

symbols<br />

0 to 9 A to Z a to z space ! ”<br />

# $ % & ’ ( ) * + , - .<br />

/ : ; < = > ? @ [ \ ] ^<br />

_ ` { | } ~ CR HT<br />

Binary/ASCII Plus<br />

mode<br />

Numeric Compaction<br />

mode<br />

[MicroPDF417]<br />

Binary International<br />

Character Set<br />

Numerics 0 to 9<br />

00H to FFH<br />

Mode<br />

Details<br />

Upper case letters, space<br />

A to Z, space<br />

Binary international character set 00H to FFH (Kanji)<br />

Numerics 0 to 9<br />

12.9.2 TRANSFER CODE<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 NUL DLE SP 0 @ P ` p<br />

1 SOH DC1 ! 1 A Q a q<br />

2 STX DC2 ” 2 B R b r<br />

3 ETX DC3 # 3 C S c s<br />

4 EOT DC4 $ 4 D T d t<br />

5 ENQ NAK % 5 E U e u<br />

6 ACK SYN & 6 F V f v<br />

7 BEL ETB ’ 7 G W g w<br />

8 BS CAN ( 8 H X h x<br />

9 HT EM ) 9 I Y i y<br />

A LF SUB * : J Z j z<br />

B VT ESC + ; K [ k {<br />

C FF FS , < L \ l |<br />

D CR GS – = M ] m }<br />

E SO RS . > N ^ n ~<br />

F SI US / ? O _ o<br />

12-8


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.9.3 HOW TO SEND CONTROL CODE DATA<br />

NUL (00H) → >@ (3EH, 40H)<br />

SOH (01H) → >A (3EH, 41H)<br />

STX (02H) → >B (3EH, 42H)<br />

to<br />

GS (1DH) → >] (3EH, 5DH)<br />

RS (1EH) → >^ (3EH, 5EH)<br />

US (1FH) → >_ (3EH, 5FH)<br />

12.9.4 HOW TO SEND SPECIAL CODES<br />

> (3EH) → >0 (3EH, 30H)<br />

12-9


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.10 Maxicode<br />

Symbol Character<br />

Value<br />

Code Set A Code Set B Code Set C Code Set D Code Set E<br />

Decimal Binary Character Decimal Character Decimal Character Decimal Character Decimal Character Decimal<br />

0 000000 CR 13 ‘ 96 À 192 à 224 NUL 0<br />

1 000001 A 65 a 97 Á 193 á 225 SOH 1<br />

2 000010 B 66 b 98 Â 194 â 226 STX 2<br />

3 000011 C 67 c 99 Ã 195 ã 227 ETX 3<br />

4 000100 D 68 d 100 Ä 196 ä 228 EOT 4<br />

5 000101 E 69 e 101 Å 197 å 229 ENQ 5<br />

6 000110 F 70 f 102 Æ 198 æ 230 ACK 6<br />

7 000111 G 71 g 103 Ç 199 ç 231 BEL 7<br />

8 001000 H 72 h 104 È 200 è 232 BS 8<br />

9 001001 I 73 i 105 É 201 é 233 HT 9<br />

10 001010 J 74 j 106 Ê 202 ê 234 LF 10<br />

11 001011 K 75 k 107 Ë 203 ë 235 VT 11<br />

12 001100 L 76 l 108 Ì 204 ì 236 FF 12<br />

13 001101 M 77 m 109 Í 205 í 237 CR 13<br />

14 001110 N 78 n 110 Î 206 î 238 SO 14<br />

15 001111 O 79 o 111 Ï 207 ï 239 SI 15<br />

16 010000 P 80 p 112 Ð 208 ð 240 DLE 16<br />

17 010001 Q 81 q 113 Ñ 209 ñ 241 DC1 17<br />

18 010010 R 82 r 114 Ò 210 ò 242 DC2 18<br />

19 010011 S 83 s 115 Ó 211 ó 243 DC3 19<br />

20 010100 T 84 t 116 Ô 212 ô 244 DC4 20<br />

21 010101 U 85 u 117 Õ 213 õ 245 NAK 21<br />

22 010110 V 86 v 118 Ö 214 ö 246 SYN 22<br />

23 010111 W 87 w 119 × 215 ÷ 247 ETB 23<br />

24 011000 X 88 x 120 Ø 216 ø 248 CAN 24<br />

25 011001 Y 89 y 121 Ù 217 ù 249 EM 25<br />

26 011010 Z 90 z 122 Ú 218 ú 250 SUB 26<br />

27 011011 [EC] [EC] [EC] [EC] [EC]<br />

28 011100 FS 28 FS 28 FS 28 FS 28 [Pad]<br />

29 011101 GS 29 GS 29 GS 29 GS 29 [Pad]<br />

30 011110 RS 30 RS 30 RS 30 RS 30 ESC 27<br />

31 011111 [NS] [NS] [NS] [NS] [NS]<br />

32 100000 Space 32 ( 123 Û 219 û 251 FS 28<br />

33 100001 [Pad] [Pad] Ü 220 ü 252 GS 29<br />

34 100010 “ 34 ) 125 Ý 221 ý 253 RS 30<br />

35 100011 # 35 ~ 126 Þ 222 þ 254 US 31<br />

36 100100 $ 36 DEL 127 ß 223 ÿ 255 {C159} 159<br />

37 100101 % 37 ; 59 ª 170 ¡ 161 NBSP 160<br />

38 100110 & 38 < 60 ¬ 172 ¨ 168 ¢ 162<br />

39 100111 ‘ 39 = 61 ± 177 « 171 £ 163<br />

40 101000 ( 40 > 62 ² 178 ¯ 175 ¤ 164<br />

41 101001 ) 41 ? 63 ³ 179 ° 176 ¥ 165<br />

42 101010 ” 42 [ 91 181 ' 180 166<br />

43 101011 + 43 \ 92 ¹ 185 • 183 § 167<br />

44 101100 , 44 ] 93 º 186 184 © 169<br />

45 101101 - 45 ^ 94 ¼ 188 » 187 SHY 173<br />

46 101110 . 46 _ 95 ½ 189 ¿ 191 ® 174<br />

47 101111 / 47 Space 32 ¾ 190 {C138} 138 182<br />

48 110000 0 48 , 44 {C128} 128 {C139} 139 {C149} 149<br />

49 110001 1 49 . 46 {C129} 129 {C140} 140 {C150} 150<br />

50 110010 2 50 / 47 {C130} 130 {C141} 141 {C151} 151<br />

51 110011 3 51 : 58 {C131} 131 {C142} 142 {C152} 152<br />

52 110100 4 52 @ 64 {C132} 132 {C143} 143 {C153} 153<br />

53 110101 5 53 ! 33 {C133} 133 {C144} 144 {C154} 154<br />

54 110110 6 54 | 124 {C134} 134 {C145} 145 {C155} 155<br />

55 110111 7 55 [Pad] {C135} 135 {C146} 146 {C156} 156<br />

56 111000 8 56 [2 Shift A] {C136} 136 {C147} 147 {C157} 157<br />

57 111001 9 57 [3 Shift A] {C137} 137 {C148} 148 {C158} 158<br />

58 111010 : 58 [Pad] [Latch A] [Latch A] [Latch A]<br />

59 111011 [Shift B] [Shift A] Space 32 Space 32 Space 32<br />

60 111100 [Shift C] [Shift C] [Lock In C] [Shift C] [Shift C]<br />

61 111101 [Shift D] [Shift D] [Shift D] [Lock In D] [Shift D]<br />

62 111110 [Shift E] [Shift E] [Shift E] [Shift E] [Lock In E]<br />

63 111111 [Latch B] [Latch A] [Latch B] [Latch B] [Latch B]<br />

12-10


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.10.1 HOW TO SEND CONTROL CODE DATA<br />

SOH (01H) → >A (3EH, 41H)<br />

STX (02H) → >B (3EH, 42H)<br />

to<br />

GS (1DH) → >] (3EH, 5DH)<br />

RS (1EH) → >^ (3EH, 5EH)<br />

US (1FH) → >_ (3EH, 5FH)<br />

12.10.2 HOW TO SEND SPECIAL CODES<br />

> (3EH) → >0 (3EH, 30H)<br />

NOTE: “NUL” code in the table cannot be used.<br />

12-11


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.11 QR CODE<br />

12.11.1 MODE SELECTION<br />

The QR code can handle all codes including alphanumerics, symbols, and Kanji. However,<br />

since the data compression rate varies depending on the codes, the code to be used should be<br />

designated by selecting the mode.<br />

Mode Code Details<br />

N Numerals 0 to 9<br />

A Alphanumerics, symbols A to Z 0 to 9 space<br />

$ % * + - . / :<br />

B Binary (8-bit) 00H to FFH<br />

K Kanji Shift JIS<br />

12.11.2 TRANSFER CODE<br />

0 1 2 3 4 5 6 7 8 9 A B C D E F<br />

0 NUL DLE SP 0 @ P ` p<br />

1 SOH DC1 ! 1 A Q a q<br />

2 STX DC2 ” 2 B R b r<br />

3 ETX DC3 # 3 C S c s<br />

4 EOT DC4 $ 4 D T d t<br />

5 ENQ NAK % 5 E U e u<br />

6 ACK SYN & 6 F V f v<br />

7 BEL ETB ’ 7 G W g w<br />

8 BS CAN ( 8 H X h x<br />

9 HT EM ) 9 I Y i y<br />

A LF SUB * : J Z j z<br />

B VT ESC + ; K [ k {<br />

C FF FS , < L \ l |<br />

D CR GS - = M ] m }<br />

E SO RS • > N ^ n ~<br />

F SI US / ? O _ o DEL<br />

* The shaded parts are Japanese. They are omitted here.<br />

FFH data cannot be used when the automatic mode is selected for the mode selection. However,<br />

it is possible to use the FFH data when in the manual mode.<br />

12-12


12. BAR CODE/TWO-DIMENSIONAL CODE TABLE<br />

12.11.3 HOW TO SEND CONTROL CODE DATA<br />

NUL (00H) → >@ (3EH, 40H)<br />

SOH (01H) → >A (3EH, 41H)<br />

STX (02H) → >B (3EH, 42H)<br />

to<br />

GS (1DH) → >] (3EH, 5DH)<br />

RS (1EH) → >^ (3EH, 5EH)<br />

US (1FH) → >_ (3EH, 5FH)<br />

12.11.4 HOW TO SEND SPECIAL CODES<br />

> (3EH) → >0 (3EH, 30H)<br />

12.12 START/STOP CODE<br />

Bar code type Start/stop specification Input data Printout<br />

12345ABC No print<br />

* 12345ABC No print<br />

12345ABC * No print<br />

No Start/Stop Code is attached.<br />

* 12345ABC * * 12345ABC *<br />

(V1.0 to V1.1A)<br />

12345 * ABC No print<br />

* * 12345ABC No print<br />

* 12345ABC * * No print<br />

CODE39<br />

* 12345 * ABC * No print<br />

12345ABC * 12345ABC *<br />

* 12345ABC * 12345ABC *<br />

12345ABC * * 12345ABC *<br />

Automatically attached. (V1.2 or greater)<br />

* 12345ABC * * 12345ABC *<br />

12345 * ABC * 12345 * ABC *<br />

* * 12345ABC * * 12345ABC *<br />

* 12345ABC * * * 12345ABC * *<br />

* 12345 * ABC * * 12345 * ABC *<br />

12345678 No print<br />

a12345678 No print<br />

12345678c No print<br />

Omitted (not specified). (V1.0 to V1.1A)<br />

b12345678d B12345678d<br />

12345a678 No print<br />

ab12345678 No print<br />

a12345678bc a12345678bc<br />

NW7<br />

d12345b678c d12345b678c<br />

12345678 12345678<br />

a12345678 a12345678<br />

12345678c 12345678c<br />

No start/stop code is attached.<br />

b12345678d b12345678d<br />

(V1.2 or greater)<br />

12345a678 12345a678<br />

ab12345678 ab12345678<br />

a12345678bc a12345678bc<br />

d12345b678c d12345b678c<br />

12-13


13. PRINT SAMPLE<br />

13. PRINT SAMPLE<br />

13.1 BIT MAP FONT<br />

* Alphabet in the parentheses ( ) are font types in the TPCL-LE mode.<br />

(a) (v) Standard Character/1-byte Kanji (12 x 24 dots) (LABEL/RECEIPT Mode: A, C)<br />

(b) Bold Character (48 x 96 dots) (LABEL/RECEIPT Mode: B)<br />

(d) Price Font 1 (16 x 40 dots) (LABEL/RECEIPT Mode: D)<br />

(e) Price Font 2 (32 x 48 dots) (LABEL/RECEIPT Mode: E)<br />

(U) 1-byte Kanji (8 x 16 dots) (LABEL Mode: P)<br />

(o) (q) Gothic 725 Black (6 point) (LABEL/RECEIPT Mode: O)<br />

(A) Times Roman (Medium) 12 point<br />

(B) Times Roman (Medium) 15 point<br />

13-1


13. PRINT SAMPLE<br />

(C) Times Roman (Bold) 15 point<br />

(D) Times Roman (Bold) 18 point<br />

(E) Times Roman (Bold) 21 point (LABEL/RECEIPT Mode: F)<br />

(F) Times Roman (Italic) 18 point<br />

(G) Helvetica (Medium) 9 point<br />

13-2


13. PRINT SAMPLE<br />

(H) Helvetica (Medium) 15 point<br />

(I) Helvetica (Medium) 18 point<br />

(J) Helvetica (Bold) 18 point (LABEL/RECEIPT Mode: G)<br />

(K) Helvetica (Bold) 21 point<br />

(L) Helvetica (Italic) 18 point<br />

13-3


13. PRINT SAMPLE<br />

(M) Presentation (Bold) 27 point (LABEL/RECEIPT Mode: J)<br />

(N) Letter Gothic (Medium) 14.3 point (LABEL/RECEIPT Mode: H)<br />

(O) Prestige Elite (Medium) 10.5 point<br />

(P) Prestige Elite (Bold) 10.5 point<br />

(Q) Courier (Medium) 15 point (LABEL/RECEIPT Mode:<br />

(R) Courier (Bold) 18 point<br />

13-4


13. PRINT SAMPLE<br />

(S) OCR-A 12 point<br />

(T) OCR-B 12 point<br />

13.2 OUTLINE FONT<br />

(A) (B) TEC Font 1<br />

(F) Price Font 2<br />

13-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!