Page 1
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual First Edition: February 9, 2007 Copyright (C)2007 TOSHIBA TEC CORPORATION...
Page 2
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 This document describes the precautions for using the TEC OPOS Control and the application programming method. This document assumes that the reader is familiar with the following: General characteristics of POS peripheral devices ...
Page 3
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Revision Record No. EAA-02450 TRST-A10/TRST-A15 POS Control - Application User’s Manual Rev. No. Date Pages Description Feb. 9, 2007 Original issue...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Table 21 TRSTA1x POS Printer Control – Width of Bar Code Printed in TEC Mode (80 mm paper wide) ...41 Table 22 TRSTA1x POS Printer Control – Max. Size of Bitmap Which Can be Saved Using SetBitmap ..41 Table 23 TRSTA1x POS Printer Control –...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1. TRST-A10/TRST-A15 POS Printer 1.1 TRSTA1x POS Printer Control 1.1.1 Applicable Models and Operating Systems Model Interface Device Name (*1) TRST-A10 Serial POS Printer (Single) Serial “TRSTA1S” TRST-A15 Serial POS Printer (Dual) TRST-A10 USB POS Printer (Single) “TRSTA1U”...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1.1.3 Functions Printers supported Printers not supported Receipt printer Journal printer Slip printer Functions supported Functions not supported Synchronous/Asynchronous print Collection and submission of statistics Batch transaction Statistics reset...
Page 8
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 TRSTA1S properties (Items only defined by the device are listed.) Common property Value ControlObjectDescription “TEC OPOS POS Printer Control Object” ControlObjectVersion 1008XXX (*2) ServiceObjectDescription “TEC TRST-A1x Serial POS Printer Service Object.”...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 (*5) The minimum value of RecLineSpacing is 24 which is equal to the value of RecLineHeight. Even when the value of RecLineSpacing is set to less than 24, it changes to 24.
Page 11
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 TRSTA1U properties (Items only defined by the device are listed.) Common property Value ControlObjectDescription “TEC OPOS POS Printer Control Object” ControlObjectVersion 1008XXX (*2) ServiceObjectDescription “TEC TRST-A1x USB POS Printer Service Object.”...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 (*5) The minimum value of RecLineSpacing is 24 which is equal to the value of RecLineHeight. Even when the value of RecLineSpacing is set to less than 24, it changes to 24.
Page 14
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 TRSTA1P properties (Items only defined by the device are listed.) Common property Value ControlObjectDescription “TEC OPOS POS Printer Control Object” ControlObjectVersion 1008XXX (*2) ServiceObjectDescription “TEC TRST-A1x Parallel POS Printer Service Object.”...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 (*5) The minimum value of RecLineSpacing is 24 which is equal to the value of RecLineHeight. Even when the value of RecLineSpacing is set to less than 24, it changes to 24.
Page 17
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Escape sequence operable only when specified Name Data Description Paper cut ESC|#P Operable The character “#” signifies the percentage cut desired. : No cut 1-100 : Partial cut...
Page 18
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Escape sequence operable while printing characters Name Data Description Bold ESC|bC Operable Underline ESC|#uC Operable The character “#” signifies the underline thickness. 0: No underline 1: Thin underline...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Superscript ESC|tpC Not operable Ignored (*1) Blue character is selected depending on the paper used. Table 6 TRSTA1x POS Printer Control – Escape Sequence...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1.1.4 CheckHealth Method Specifications 1) Internal Level (OPOS_CH_INTERNAL) This only checks a connection status of the device. Value (ResultCode) CheckHealthText Meaning OPOS_SUCCESS “Internal Hcheck: Successful” Connected OPOS_E_FAILURE “Internal Hcheck: Error”...
Page 21
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Each of the two “Printer Status” boxes shows a printer status. The right box shows a printer status in idle mode (when the printer is not in operation), and the left box shows a printer status when a command process is completed.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1.1.5 Dual Side Print (Extended Function) The TRST-A15 printer provides the Dual Side print function. As the OPOS printer does not provide a dual side print function for receipt, this Control provide such function by defining it using the OPOS standard methods.
Page 23
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 LONG TransactionPrint (LONG Station, LONG Control); Parameter Description Station The POS printer to be used. PTR_S_JOURNAL, PTR_S_RECEIPT, or PTR_S_SLIP. Control Batch transaction. Vales are as follows: Value Meaning PTR_TP_TRANSACTION Starts Batch Transaction in Single Side Print mode.
Page 24
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 LONG ChangePrintSide (LONG Side); The Side parameter indicates the current print side. If a Side value is PTR_PS_SIDE1, it means that the default print side of paper is selected.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 During Dual Side Print, logos cannot be printed using the escape sequences defined by OPOS. Regarding font styles, the following font style characters, exclusively used for the dual side printers, are used (6 fixed font style characters). If an invalid value is set, an error will result.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1.1.6 DirectIO Method Specifications/DirectIOEvent Specifications This Control supports the following extended functions using the DirectIO method. Common for Single Side Printer / Dual Side Printer Command Function TPTR_CMD_DIRECT_OUTPUT...
Page 27
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1) Direct Output To Printer Device Function Directly sends a character string specified by pString to the printer device. The OPOS Control directly sends the character string without processing it. Some escape sequences, specific to the printer to which the character string is to be output, may affect the OPOS properties and performance of methods.
Page 28
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 5) Start of Bitmap Registration to Flash ROM Function Requests to start Bitmap Registration to Flash ROM of the printer device. This clears all bitmap data stored in the flash ROM. By using this method and SetBitmap method, bitmaps of Bitmap No.
Page 29
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 3: Transaction3 This mode automatically print a predefined back side print data on the back side of paper. In this mode, the print method does not immediately starts printing. Based on a Paper Cut command or a...
Page 30
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 10) Print Side Switch Setting Function Selects a print head for Dual Side Print. This function specifies the print head to be used for printing on the front/back side of paper. The default setting gives a 41-mm top margin on the back side of paper.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1.1.7 OPOS Registry TRSTA1S contains the following configuration information: HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail\ServiceOPOS\POSPrinter\TRSTA1S General “TEC.TRSTA1.S” Service “C:\OPOS\TEC\TRSTA1S.dll” Description “TEC TRSTA1 Serial POS Printer” Version “1.8” DeviceName “TRSTA1S” Port “COM1” – ”COM8”...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 TRSTA1P contains the following configuration information: HKEY_LOCAL_MACHINE\SOFTWARE\OLEforRetail\ServiceOPOS\POSPrinter\TRSTA1P General “TEC.TRSTA1.P” Service “C:\OPOS\TEC\TRSTA1P.dll” Description “TEC TRSTA1 Parallel POS Printer” Version “1.8” DeviceName “TRSTA1P” Port “LPT1” – ”LPT2” (*2) Override “Off” | “On”...
Page 34
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Common Registries for Single Side Printers / Dual Side Printers Service Filename of Service Object Description Brief explanation of Service Object Version Version number of Service Object DeviceName...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 UnKnownRetryCount. To identify UnKnown from device not connected (Power OFF) for retries, a time is set in milliseconds. This module resets the device hardware to recover from UnKnown and...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Registries Specific to Dual Side Printers 2STPrintingMode Print mode (*1) Single Side Print mode (Default) Transaction1 Transaction2 Transaction3 Can be set from the Control Panel. 2STUpsideDown Upside-down Print on the front/back side of paper for Dual Side...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1.1.8 Limitations and Precautions 1) Property that changes with the MapMode property setting MapMode can change the unit type for such as font size. Based on the value of MapMode, the default value of each property is as follows:...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 For some bar code types, care must be taken when setting bar code data to the Data parameter of the PrintBarcode method. Such bar code types and precautions are given in the table below:...
Page 39
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 7 x number of characters + 8 14 x number of characters + 16 21 x number of characters + 24 (Interleaved 2 of 5) 28 x number of characters + 32...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 11 x number of digits in Code Set C + 22 x number of characters in code sets other than Code Set C + 70 When counting the number of digits in Code Set C, one character equals to 2 digits.
Page 41
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 When a PrintBarCodeMode registry value is “TEC”, the module width of bar code data is determined based on the Width parameter value of the PrintBarCode method. The narrower the modlue width is, the more numbers of the bar code digits can be printed.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 5) Notes for escape sequence Operations, when an escape sequence is not specified at the head of line, but specified in the middle of character string, are as follows:...
Page 43
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 10) Notes for using the ClearOutput method When printing is terminated by the ClearOutput method, printing may stop before all data for the line being printed is printed. It is recommended to output a feed escape sequence or LineFeed(10) when there is a need to stop printing by ClearOutput.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Escape sequence whose operation is ot guaranteed • Feed and Paper cut • Feed and Paper cut and Stamp cut Available escape sequence • Bitmap print • Single width & height character print •...
Page 45
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 In PTR_TP_TRANSACTION2 mode (Transaction2 mode) of the TransactionPrint method, select only one Station parameter of the PrintNormal method to execute a Left90/Right90 Rotation Print using the RotatePrint method.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Available methods for the TransactionPrint method in Dual Side Print mode are as follows: Generally, all methods that can be used by the TransactionPrint method described in the OPOS’s APG are available.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1.1.9 Usage Example This section gives a sequence diagram for Dual Side Print of ths Control. Please note this sequence diagram assumes Open method, Claim or ClaimDevice method, and DeviceEnabled property=TRUE...
Page 48
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1) Example of TransactionPrint for Dual Side Print Application OPOS POS Printer TransactionPrint(PTR_TP_TRANSACTION1) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) TransactionPrint(PTR_TP_NORMAL) Starts dividing data in approx. half and printing TransactionPrint(PTR_TP_TRANSACTION2) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT)
Page 49
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Application OPOS POS Printer TransactionPrint(PTR_TP_PREDEFINE) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) TransactionPrint(PTR_TP_NORMAL) Predefines a data as back side data TransactionPrint(PTR_TP_TRANSACTION3) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) TransactionPrint(PTR_TP_NORMAL) Starts printing the PTR_S_RECEIPT data on the front side, and predefined...
Page 50
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 2) Example of TransactionPrint/RotatePrint for Dual Side Print Application OPOS POS Printer TransactionPrint(PTR_TP_TRANSACTION2) RotatePrint(PRT_S_RECEIPT,PTR_RP_RIGHT90) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) PrintNormal(PTR_S_RECEIPT) RotatePrint(PRT_S_RECEIPT,PTR_RP_NORMAL) RotatePrint(PRT_S_RECEIPT2,PTR_RP_LEFT90) PrintNormal(PTR_S_RECEIPT2) PrintNormal(PTR_S_RECEIPT2) PrintNormal(PTR_S_RECEIPT2) PrintNormal(PTR_S_RECEIPT2) RotatePrint(PRT_S_RECEIPT2,PTR_RP_NORMAL) TransactionPrint((PTR_TP_NORMAL) Starts printing the PTR_S_RECEIPT...
Page 51
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 3) Example of Dual Side Print if OPOS registry 2STPrintingMode=1 or when TPTR_2STCMD_SET_PRINTINGMODE=1 is specified by DirectIO Application OPOS POS Printer DirectIO(TPTR_2STCMD_SET_PRINTINGMODE=1) Transaction1 mode PrintNormal(PTR_S_RECEIPT) Sends Data1. PrintNormal(PTR_S_RECEIPT) Sends Data2.
Page 52
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 4) Example of Dual Side Print if OPOS registry 2STPrintingMode=2 or when TPTR_2STCMD_SET_PRINTINGMODE=2 is specified by DirectIO Application OPOS POS Printer DirectIO(TPTR_2STCMD_SET_PRINTINGMODE=2) Transaction2 mode PrintNormal(PTR_S_RECEIPT) Sends Front Side Data1.
Page 53
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 5) Example of Dual Side Print if OPOS registry 2STPrintingMode=1 or when TPTR_2STCMD_SET_PRINTINGMODE=1 is specified by DirectIO Application OPOS POS Printer DirectIO(TPTR_2STCMD_PREDEFINE=0) Clears predefined data. DirectIO(TPTR_2STCMD_PREDEFINE=1) Starts predefining data.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 3. Control Panel This chapter describes the Control Panel which is installed by the installer. For the setup details, please refer to the section, “1.1.7 OPOS Registry”. 3.1 Overview You can easily make the common registry settings for the TRSTA1x POS Printer OPOS Control by installing the OPOS in an execution environment.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 3.2 Startup and Operations In order to make settings from the “Control Panel”, open the “Control Panel” screen and double-click the ”TEC POS Drivers” icon. As shown below, the “Set Up TEC OPOS CONTROL AND DRIVERS” screen appears.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 For the TRSTA1x POS Printer Control, the following screen appears. Items which should not be set or unsupported items are grayed out. Table 27 TRSTA1S (Serial POS Printer) Setup Screen...
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Table 29 TRSTA1P(Parallel POS Printer) Setup Screen In order to make Dual Side Print settings to the TRSTA15 (Dual Side Printer), press the “Dual Side Print Setting” button, and the “Dual Side Print Setting” screen appears. Please make settings using this screen only when you want to fix the settings such as print mode.
4.1 Procedure 1) Installation of Toshiba TEC’s general-purpose USB driver (for the USB POS printer only) When you connect the TRST-A10/TRST-A15 USB POS Printer, Windows displays the screen asking you to install the USB driver. Install the USB driver by selecting the USBdriver folder and following the standard Windows procedures.
Page 64
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 2) Installation of OPOS Control Run the Setup.exe file in the OPOS folder, and the following screen appears. Read the description on the screen and press the Next button.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Setup type Description Installation File Full Installs the POS Printer OPOS Control Control Object development TRSTA1x USB POS Printer OPOS Service Object environment and all TRSTA1x Serial POS Printer OPOS Service Object...
Page 66
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 When the installation completes successfully, the following screen appears.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 5. Tool This chapter describes the tools which are installed by the installer. 5.1 Bitmap Registration to Flash ROM (SetBitmapTool) This tool saves a bitmap image file in the flash ROM of the printer device. The written bitmap image will not disappear even when the printer power is turned off and can be used without calling the SetBitmap method when the power is turned on again.
Page 68
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 5. When all selected bitmaps are saved, the SetBitmap button is disabled and the Flash Write End button is enabled. 6. Clicking the Flash Write End button disables bitmap registration to the flash ROM, and ends the process.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 5.2 Operation Check (CheckHealth Program) This program (OPOSCHK.exe) checks that each installation or each setting has been successfully completed, so that the device can operate properly after the installation or settings from the Control Panel.
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 6. Appendix A Error Code List The OPOS Control notifies the user of a result when the method is executed and a property setting is performed. The following pages give you error code lists, their meanings, and error handling method in case an error occurs.
Page 71
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 1) Open Method Notifies a result using a return value and OpenResult property. One of the values is placed in the ResultCode: OPOS_SUCCESS when the method completed successfully, the same value as the current if the device has been already opened, then OPOS_E_CLOSED for other cases.
Page 72
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 3) DirectIO Method The DirectIO method is described for each command. There are two types of commands: those that only operate synchronously and those that operate both synchronously and asynchronously. Regarding the latter commands, a notification method differs between when they operate synchronously and when they operate asynchronously.
Page 73
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_CMD_DIRECT_ OPOS_E_ILLEGAL Illegal value Check the parameter value. OUTPUT Failed to create system resource. Restart the POS system. (Failed to secure the memory area.) Need investigation if the same error repeats.
Page 74
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_CMD_FILE_ OPOS_E_DISABLED The device is disabled. Set the DeviceEnabled property to OUTPUT TRUE to enable the device. OPOS_E_NOEXIST The file does not exist.
Page 75
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_CMD_DRAWER_ OPOS_SUCCESS Completed successfully – OPEN OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 76
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_2STCMD_SET_ OPOS_SUCCESS Completed successfully – PRINTINGMODE OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 77
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_2STCMD_SET_PR OPOS_E_DISABLED The device is disabled. Set the DeviceEnabled property to INTINGSIDE TRUE to enable the device. OPOS_E_ILLEGAL Illegal value Check the parameter value.
Page 78
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_2STCMD_SET_ OPOS_E_FAILURE Failed due to the reason other than Check none of the following UPSIDEDOWN Cover Open and No Paper. abnormalities exist. Need investigation if any such abnormality exists.
Page 79
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_2STCMD_ OPOS_SUCCESS Completed successfully – PREDEFINE OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 80
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_CMD_ OPOS_SUCCESS Completed successfully – SETBITMAP_FLASH_ OPOS_E_CLOSED The device is closed. Open the device using the Open START method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 81
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 When the commands operate asynchronously: The table below describes the asynchronous operations of the commands that can operate both synchronously and asynchronously. Each command notifies a result of process reservation using a return value and ResultCode property, and ResultCodeExtended property and a result of the process using the following events: OutputCompleteEvent when the process completed successfully and ErrorEvent when the process failed.
Page 82
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_CMD_DIRECT_ OPOS_E_NOHARDWARE The printer power is not turned on or Check the printer power is turned OUTPUT printer is not connected.
Page 83
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_CMD_FILE_ OPOS_E_DISABLED The device is disabled. Set the DeviceEnabled property to OUTPUT TRUE to enable the device. OPOS_E_NOEXIST The file does not exist.
Page 84
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_CMD_DRAWER_ OPOS_SUCCESS Completed successfully – OPEN OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 85
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_2STCMD_SET_ OPOS_E_ILLEGAL Illegal value Check the parameter value. PRINTINGMODE OPOS_E_EXTENDED OPOS_EPTR_COVER_OPEN Cover Open (The printer cover is Execute this method again after open.)
Page 86
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_2STCMD_SET_ OPOS_E_DISABLED The device is disabled. Set the DeviceEnabled property to UPSIDEDOWN TRUE to enable the device. OPOS_E_ILLEGAL Illegal value Check the parameter value.
Page 87
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_2STCMD_ OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access PREDEFINE device. using the Claim (ClaimDevice) method. OPOS_E_DISABLED The device is disabled.
Page 88
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Command ResultCodeExtended Meaning Error Handling ResultCode TPTR_CMD_SETBITMAP OPOS_SUCCESS Completed successfully – _FLASH_END OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access device.
Page 89
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Other Common Methods Each method notifies a result using a return value, Result Code property, and ResultCodeExtended property. Value Method ResultCodeExtended Meaning Error Handling ResultCode Claim / OPOS_SUCCESS Completed successfully –...
Page 90
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 4) Special Methods There are two types of methods: those that only operate synchronously and those that operate both synchronously and asynchronously. Regarding the latter methods, a notification method differs between when they operate synchronously and when they operate asynchronously. This document describes for both cases.
Page 91
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode PrintNormal OPOS_E_DISABLED The device is disabled. Set the DeviceEnabled property to TRUE to enable the device. OPOS_E_ILLEGAL Illegal value Check the parameter value.
Page 92
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode PrintTwoNormal OPOS_E_ILLEGAL Not supported – PrintImmediate OPOS_SUCCESS Completed successfully – OPOS_E_CLOSED The device is closed. Open the device using the Open method.
Page 93
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode PrintImmediate OPOS_E_EXTENDED OPOS_EPTR_COVER_OPEN Cover Open (The printer cover is Execute this method again after open.) closing the printer cover. OPOS_EPTR_REC_EMPTY No Paper (The receipt paper has run Execute this method again after out.)
Page 94
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode CutPaper OPOS_E_NOHARDWARE The printer power is not turned on or Check the printer power is turned printer is not connected. on and the connection with the printer has been established.
Page 95
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode RotatePrint OPOS_E_ILLEGAL Illegal value Check the parameter value. Failed to create system resource. Restart the POS system. (Failed to secure the memory area.) Need investigation if the same error repeats.
Page 96
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode PrintBarCode OPOS_SUCCESS Completed successfully – OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 97
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode PrintBarCode OPOS_E_EXTENDED OPOS_EPTR_COVER_OPEN Cover Open (The printer cover is Execute this method again after open.) closing the printer cover. OPOS_EPTR_REC_EMPTY No Paper (The receipt paper has run Execute this method again after out.)
Page 98
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode PrintBitmap OPOS_E_BUSY An asynchronous printing is in Execute this method again after process. the asynchronous printing is completed. OPOS_E_EXTENDED OPOS_EPTR_COVER_OPEN Cover Open (The printer cover is Execute this method again after open.)
Page 99
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode TransactionPrint OPOS_E_FAILURE Failed due to the reason other than Check none of the following Cover Open and No Paper. abnormalities exist. Need investigation if any such abnormality exists.
Page 100
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode ValidateData OPOS_E_ILLEGAL Illegal value Check the Station parameter value. Failed to create system resource. Restart the POS system. (Failed to secure the memory area.) Need investigation if the same error repeats.
Page 101
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode SetBitmap OPOS_E_NOHARDWARE The printer power is not turned on or Check the printer power is turned printer is not connected. on and the connection with the printer has been established.
Page 102
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode SetLogo OPOS_E_DISABLED The device is disabled. Set the DeviceEnabled property to TRUE to enable the device. OPOS_E_ILLEGAL Illegal value Check the parameter value.
Page 103
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 When the methods operate asynchronously: The table below describes the asynchronous operations of the methods that can operate both synchronously and asynchronously. Each method notifies a result of process reservation using a return value and ResultCode property and ResultCodeExtended property and a result of the process using the following events: OutputCompleteEvent when the process completed successfully and ErrorEvent when the process failed.
Page 104
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 ResultCode ResultCodeExtended Method Meaning Error Handling Parameter Parameter PrintNormal OPOS_E_NOHARDWARE The printer power is not turned on or Check the printer power is turned (Result of process printer is not connected.
Page 105
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode CutPaper OPOS_SUCCESS Process reservation accepted – (Result of process OPOS_E_CLOSED The device is closed. Open the device using the Open reservation) method.
Page 106
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 ResultCode ResultCodeExtended Method Meaning Error Handling Parameter Parameter CutPaper OPOS_E_EXTENDED OPOS_EPTR_COVER_OPEN Cover Open (The printer cover is Execute this method again after (Result of process open.) closing the printer cover.
Page 107
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 ResultCode ResultCodeExtended Method Meaning Error Handling Parameter Parameter RotatePrint OPOS_E_NOHARDWARE The printer power is not turned on or Check the printer power is turned (Result of process printer is not connected.
Page 108
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode PrintBarCode OPOS_E_ILLEGAL Illegal value Check the parameter value. (Result of process Failed to create system resource. Restart the POS system. reservation) (Failed to secure the memory area.)
Page 109
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Value Method ResultCodeExtended Meaning Error Handling ResultCode PrintBitmap OPOS_SUCCESS Process reservation accepted – (Result of process OPOS_E_CLOSED The device is closed. Open the device using the Open reservation) method.
Page 110
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 ResultCode ResultCodeExtended Method Meaning Error Handling Parameter Parameter PrintBitmap OPOS_E_EXTENDED OPOS_EPTR_COVER_OPEN Cover Open (The printer cover is Execute this method again after (Result of process open.) closing the printer cover.
Page 111
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 ResultCode ResultCodeExtended Method Meaning Error Handling Parameter Parameter TransactionPrint OPOS_E_NOHARDWARE The printer power is not turned on or Check the printer power is (Result of process printer is not connected.
Page 112
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 5) Property Setting Each property notifies a result using a Result Code property and ResultCodeExtended property. Property ResultCode ResultCodeExtended Meaning Error Handling BinaryConversion OPOS_SUCCESS Completed successfully – OPOS_E_CLOSED The device is closed.
Page 113
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Property ResultCode ResultCodeExtended Meaning Error Handling DeviceEnabled OPOS_E_BUSY An enable request was made before Complete the asynchronous the asynchronous output has not output or terminate it, then been completed.
Page 114
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Property ResultCode ResultCodeExtended Meaning Error Handling CartridgeNotify OPOS_E_ILLEGAL The device is enabled. Set the DeviceEnable property to FALSE to disable the device. Invalid value Check the value. Not supported –...
Page 115
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Property ResultCode ResultCodeExtended Meaning Error Handling FlagWhenIdle OPOS_SUCCESS Completed successfully – OPOS_E_CLOSED The device is closed. Open the device using the Open method. MapCharacterSet OPOS_SUCCESS Completed successfully –...
Page 116
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 ResultCode ResultCodeExtended Meaning Error Handling Property JrnLineHeight OPOS_SUCCESS Not supported – OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 117
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Property ResultCode ResultCodeExtended Meaning Error Handling JrnCurrentCartridge OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 118
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Property ResultCode ResultCodeExtended Meaning Error Handling RecLineSpacing OPOS_SUCCESS Completed successfully – OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 119
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Property ResultCode ResultCodeExtended Meaning Error Handling SlpLineChars OPOS_SUCCESS Not supported – OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.
Page 120
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual TOSHIBA TEC CORPORATION EAA-02450 Property ResultCode ResultCodeExtended Meaning Error Handling SlpLetterQuality OPOS_E_CLOSED The device is closed. Open the device using the Open method. OPOS_E_NOTCLAIMED Does not have exclusive access to the Obtain the exclusive access using device.