Po Sprinter

download Po Sprinter

of 133

  • date post

    23-Oct-2014
  • Category

    Documents

  • view

    385
  • download

    19

Embed Size (px)

Transcript of Po Sprinter

EPSONEPSON OPOS ADK MANUAL

APPLICATION DEVELOPMENT GUIDE POSPrinter (TM Series)Version 2.60 Nov. 2007

Notes (1) Reproduction of any part of this documentation by any means is prohibited. (2) The contents of this documentation are subject to change without notice. (3) Comments and notification of any mistakes in this documentation are gratefully accepted. (4) This software cannot be used with other equipment that the specified. (5) EPSON will not be responsible for any consequences resulting from the use of any information in this documentation. Trademarks Microsoft, Windows, Windows Vista, Visual Basic and Visual C++ are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. QR Code is a registered trademark of Denso Wave Incorporated. EPSON and ESC/POS are registered trademarks of SEIKO EPSON CORPORATION. Other product and company names used herein are for identification purposes only and may be trademarks or registered trademarks of their respective companies. Copyright 2000-2007 SEIKO EPSON CORPORATION

Version 2.60 Nov. 2007

ContentsSECTION 1. INTRODUCTION .......................................................................................1 SECTION 2. DETAILS ON SETTINGS ..........................................................................4 2.1 Device Information......................................................................................................4 2.2 References of Firmware Versions ..............................................................................4 2.3 Settings of DIP Switches and Hardware...................................................................4 2.4 Setting of Devices ........................................................................................................4

2.4.1 Interfaces...............................................................................................................4 2.4.2 Device Specific Settings .......................................................................................52.5 Port Information........................................................................................................12 SECTION 3. FUNCTION DETAILS..............................................................................13 3.1 CheckHealth Method ................................................................................................13

3.1.1 Internal Test .......................................................................................................13 3.1.2 External Test ......................................................................................................13 3.1.3 Interactive Test...................................................................................................143.2 Property Set values and Default Values .................................................................15 3.3 Supporting Methods..................................................................................................15 3.4 Escape Sequences......................................................................................................15 3.5 Supplementary Explanation of Functions...............................................................15

3.5.1 Property Settings................................................................................................15 3.5.2 Bitmap .................................................................................................................19 3.5.3 A One-Dimensional Barcode..............................................................................26 3.5.4 90-degree Rotate Printing..................................................................................29 3.5.5 Maintenance Counters .......................................................................................29 3.5.6 Synchronous Processing.....................................................................................31 3.5.7 Asynchronous Processing...................................................................................31 3.5.8 Operation when the Power is turned ON/OFF.................................................32 3.5.9 Communication I/F.............................................................................................33 3.5.10 Ink Status..........................................................................................................35 3.5.11 A Two-Dimensional Barcode (PDF 417) .........................................................363.6 Device Statistics ........................................................................................................37 3.7 PageMode printing....................................................................................................37 3.8 Initialization processing ...........................................................................................37 SECTION 4. EXTENDED FUNCTIONS.......................................................................38 4.1 DirectIO Function .....................................................................................................38

4.1.1 PTR_DI_OUTPUT_NORMAL ...........................................................................40iii

APPLICATION DEVELOPMENT GUIDE POSPrinter (TM Series)

Version 2.60 Nov. 2007

4.1.2 PTR_DI_OUTPUT_REALTIME........................................................................41 4.1.3 PTR_DI_SET_BITMAP_MODE ........................................................................42 4.1.4 PTR_DI_PRINT_FLASH_BITMAP...................................................................43 4.1.5 PTR_DI_PRINT_FLASH_BITMAP2.................................................................44 4.1.6 PTR_DI_SELECT_SLIP.....................................................................................46 4.1.7 PTR_DI_SLIP_CHANGE_SIDE........................................................................47 4.1.8 PTR_DI_RESET_MAINTENANCE_COUNTER .............................................48 4.1.9 PTR_DI_GET_MAINTENANCE_COUNTER ..................................................49 4.1.10 PTR_DI_SET_INTERNATIONAL_CHAR......................................................50 4.1.11 PTR_DI_WAIT_FOR_OUTPUT ......................................................................52 4.1.12 PTR_DI_PANEL_SWITCH..............................................................................53 4.1.13 PTR_DI_LABEL_REMOVE.............................................................................54 4.1.14 PTR_DI_LABEL_SET_PRINT_MODE...........................................................55 4.1.15 PTR_DI_LABEL_SET_COUNT_MODE.........................................................57 4.1.16 PTR_DI_LABEL_PRINT_COUNT..................................................................59 4.1.17 PTR_DI_LABEL_SET_COUNT_VALUE .......................................................60 4.1.18 PTR_DI_RECOVER_ERROR ..........................................................................61 4.1.19 PTR_DI_DELAYED_CUT................................................................................62 4.1.20 PTR_DI_CUT_AND_FEED_TOF....................................................................63 4.1.21 PTR_DI_CODE128_TYPE ...............................................................................65 4.1.22 PTR_DI_DELETE_NVIMAGE ........................................................................65 4.1.23 PTR_DI_GET_SUPPORT_FUNCTION..........................................................66 4.1.24 PTR_DI_SLIP_EMPHASIS .............................................................................67 4.1.25 PTR_DI_RING_BUZZER .................................................................................68 4.1.26 PTR_DI_GET_BATTERY_STATUS................................................................69 4.1.27 PTR_DI_RING_BUZZER_WITH_TIME.........................................................70 4.1.28 PTR_DI_SELECT_PAGE_MODE ...................................................................72 4.1.29 PTR_DI_DRAWLINE.......................................................................................74 4.1.30 PTR_DI_DRAWRECTANGLE.........................................................................76 4.1.31 PTR_DI_SET_PAPERLAYOUT ......................................................................78 4.1.32 PTR_DI_GET_PAPERLAYOUT......................................................................82 4.1.33 PTR_DI_OPERATION_MODE........................................................................834.2 DirectIOEvent Event ................................................................................................84

4.2.1 Input Events from Printers ...............................................................................84 4.2.2 PTR_DIE_SET_BITMAP_MODE......................................................................85 4.2.3 PTR_DIE_LABEL_JAM.....................................................................................85 4.2.4 PTR_DIE_LABEL_REMOVAL..........................................................................86 4.2.5 PTR_DIE_LABEL_REMOVE_OK.....................................................................86 4.2.6 PTR_DIE_BUTTON_OPERATION ..................................................................86 4.2.7 PTR_DIE_BUTTON_OK....................................................................................87iv

APPLICATION DEVELOPMENT GUIDE POSPrinter (TM Series)

Version 2.60 Nov. 2007

4.3 StatusUpdateEvent regarding Battery Status .......................................................88 SECTION 5. SPECIFIC PROGRAMMING ...................................................................90 5.1 Printing Using the DirectIO Method .......................................................................90 5.2 Bitmap Printing Specified by the Bitmap Comm