Oki PT390 OPOS Application Programmer's Guide

PT390
POS Printer, Cash Drawer Application Programmer's Guide of OPOS-OCX Driver for Serial/ Parallel/ USB/ LAN Interface
Index
1. Outline............................................................................................................................1
1.1. Subject Scope of this document.......................................................................................1
1.2. OPOS Control Outline ..................................................................................................... 2
1) OPOS Control Configuration Drawing ..........................................................................................2
2) Terminology...................................................................................................................................4
1.3. Restrictions....................................................................................................................... 5
1) POS Printer.....................................................................................................................................5
2) Drawer............................................................................................................................................6
3) Common Restrictions on POS Printer and Drawer.........................................................................6
4) Restriction when Windows driver and OPOS driver are installed in the same system...................6
5) Setting of Apartment ="0" with connecting LAN interface cable ..................................................7
6) Setting of Apartment ="1" with connecting LAN interface cable ..................................................7
7) About the "Found New Hardware Wizard" in Windows................................................................8
1.4. Connection Way to POS Printer....................................................................................... 9
2. Installation....................................................................................................................10
2.1. Installation Condition..................................................................................................... 10
2.2. Installation Media............................................................................................................11
2.3. Installation Procedure..................................................................................................... 12
Installation using installer..........................................................................................................................12
Installation using batch file........................................................................................................................16
2.4. Uninstallation Procedure................................................................................................ 17
Uninstallation when installing it with installer (Setup32.exe or Setup64.exe)...........................................17
Uninstallation when OPOS is installed with batch file...............................................................................19
2.5. Installation File List....................................................................................................... 20
2.6. Setting Program Usage................................................................................................... 22
3. Using OPOS Control.................................................................................................... 37
3.1. Common......................................................................................................................... 37
3.2. POS Printer .................................................................................................................... 37
3.3. Drawer............................................................................................................................ 37
3.4. How to Implement the OPOS Control ........................................................................... 38
4. OPOS Interface Specifications (Printer)......................................................................45
4.1. List ................................................................................................................................. 45
4.2. Printing D
ata and Escape Sequence............................................................................... 55
4.3. Common Properties........................................................................................................ 63
BinaryConversion Property R/W ...............................................................................................................63
CapCompareFirmwareVersion Property.....................................................................................................66
CapPowerReporting Property.....................................................................................................................66
CapStatisticsReporting Property................................................................................................................66
CapUpdateFirmware Property....................................................................................................................67
CapUpdateStatistics Property.....................................................................................................................67
CheckHealthText Property.........................................................................................................................67
Claimed Property .......................................................................................................................................68
ControlObjectDescription Property............................................................................................................ 68
ControlObjectVersion Property..................................................................................................................69
DeviceDescription Property.......................................................................................................................69
DeviceEnabled Property R/W....................................................................................................................70
DeviceName Property................................................................................................................................72
FreezeEvents Property R/W.......................................................................................................................72
OpenResult Property..................................................................................................................................73
OutputID Property......................................................................................................................................73
PowerNotify Property R/W........................................................................................................................74
PowerState Property...................................................................................................................................75
ResultCode Property ..................................................................................................................................76
ResultCodeExtended Property ...................................................................................................................77
ServiceObjectDescription Property............................................................................................................79
ServiceObjectVersion Property..................................................................................................................79
State Property.............................................................................................................................................79
4.4. Common Methods.......................................................................................................... 80
CheckHealth Method .................................................................................................................................80
ClaimDevice Method.................................................................................................................................82
ClearOutput Method...................................................................................................................................83
Close Method.............................................................................................................................................83
CompareFirmwareVersion Method............................................................................................................84
DirectIO Method........................................................................................................................................86
Open Method .............................................................................................................................................93
ReleaseDevice Method...............................................................................................................................94
ResetStatistics Method...............................................................................................................................94
RetrieveStatistics Method ..........................................................................................................................94
UpdateFirmwareMethod ............................................................................................................................95
UpdateStatistics Method ............................................................................................................................96
4.5. Specific Property............................................................................................................ 97
AsyncMode Property R/W.........................................................................................................................97
CapCharacterSet Property..........................................................................................................................97
CapCoverSensor Property..........................................................................................................................97
CapMapCharacterSet Property...................................................................................................................98
CapRec2Color Property.............................................................................................................................98
CapRecBarCode Property..........................................................................................................................98
CapRecBitmap Property.............................................................................................................................98
CapRecBold Property.................................................................................................................................99
CapRecCartridgeSensor Property...............................................................................................................99
CapRecColor Property...............................................................................................................................99
CapRecDhigh Property ..............................................................................................................................99
CapRecDwide Property............................................................................................................................ 100
CapRecDwideDhigh Property..................................................................................................................100
CapRecEmptySensor Property.................................................................................................................100
CapRecItalic Property..............................................................................................................................100
CapRecLeft90 Property............................................................................................................................101
CapRecMarkFeed Property......................................................................................................................101
CapRecNearEndSensor Property .............................................................................................................101
CapRecPageMode Property .....................................................................................................................101
CapRecPapercut Property ........................................................................................................................102
CapRecPresent Property...........................................................................................................................102
CapRecRight90 Property .........................................................................................................................102
CapRecRotate180 Property......................................................................................................................102
CapRecStamp Property............................................................................................................................103
CapRecUnderline Property ......................................................................................................................103
CapTransaction Property..........................................................................................................................103
CartridgeNotify Property R/W.................................................................................................................104
CharacterSet Property R/W......................................................................................................................105
CharacterSetList Property........................................................................................................................106
CoverOpen Property.................................................................................................................................106
ErrorLevel Property .................................................................................................................................106
ErrorStation Property...............................................................................................................................107
ErrorString Property.................................................................................................................................107
FlagWhenIdle Property R/W....................................................................................................................108
FontTypefaceList Property.......................................................................................................................108
MapCharacterSet Property.......................................................................................................................108
MapMode Property R/W..........................................................................................................................109
PageModeArea Property..........................................................................................................................109
PageModeDescriptor Property.................................................................................................................109
PageModeHorizontalPosition Property....................................................................................................110
PageModePrintArea Property...................................................................................................................110
PageModeStation Property.......................................................................................................................110
PageModeVerticalPosition Property.........................................................................................................110
RecBarCodeRotationList Property...........................................................................................................111
RecBitmapRotationList Property.............................................................................................................111
RecCartridgeState Property......................................................................................................................112
RecCurrentCartridge Property R/W.........................................................................................................112
RecEmpty Property..................................................................................................................................112
RecLetterQuality Property R/W...............................................................................................................113
RecLineChars Property R/W....................................................................................................................114
RecLineCharsList Property......................................................................................................................115
RecLineHeight Property R/W..................................................................................................................116
RecLineSpacing Property R/W................................................................................................................118
RecLinesToPaperCut Property.................................................................................................................118
RecLineWidth Property............................................................................................................................119
RecNearEnd Property...............................................................................................................................119
RecSidewaysMaxChars Property............................................................................................................. 120
RecSidewaysMaxlLines Property ............................................................................................................121
RotateSpecial Property R/W....................................................................................................................121
4.6. Exclusive-Use Methods ............................................................................................... 123
BeginInsertion Method.............................................................................................................................123
BeginRemoval Method ............................................................................................................................123
ChangePrintSide Method.........................................................................................................................124
ClearPrintArea Method............................................................................................................................124
CutPaper Method .....................................................................................................................................124
EndInsertion Method................................................................................................................................126
EndRemoval Method ...............................................................................................................................126
MarkFeed Method....................................................................................................................................126
PageModePrint Method ...........................................................................................................................127
PrintBarCode Method ..............................................................................................................................127
PrintBitmap Method.................................................................................................................................146
PrintImmediate Method ...........................................................................................................................149
PrintMemoryBitmap Method...................................................................................................................151
PrintNormal Method ................................................................................................................................154
PrintTwoNormal Method .........................................................................................................................155
RotatePrint Method..................................................................................................................................156
SetBitmap Method ...................................................................................................................................159
SetLogo Method.......................................................................................................................................161
TransactionPrint Method..........................................................................................................................162
ValidateData Method................................................................................................................................164
DrawRuledLine Method...........................................................................................................................165
4.7. Event ............................................................................................................................ 166
DirectIOEvent Event................................................................................................................................166
ErrorEvent Event......................................................................................................................................167
OutputCompleteEvent Event....................................................................................................................167
StatusUpdateEvent Event.........................................................................................................................168
5. OPOS Interface Specifications (Drawer)...................................................................170
5.1. List ............................................................................................................................... 170
5.2. Comm
BinaryConversion Property R/W .............................................................................................................173
on Properties...................................................................................................... 173
CapCompareFirmwareVersion Property...................................................................................................174
CapPowerReporting Property...................................................................................................................174
CapStatisticsReporting Property..............................................................................................................174
CapUpdateFirmware Property..................................................................................................................174
CapUpdateStatistics Property...................................................................................................................175
CheckHealthText Property.......................................................................................................................175
Claimed Property .....................................................................................................................................175
ControlObjectDescription Property..........................................................................................................176
ControlObjectVersion Property................................................................................................................176
DeviceDescription Property.....................................................................................................................176
DeviceEnabled Property R/W..................................................................................................................177
DeviceName Property..............................................................................................................................178
FreezeEvents Property R/W.....................................................................................................................178
OpenResult Property................................................................................................................................179
PowerNotify Property R/W......................................................................................................................180
PowerState Property.................................................................................................................................180
ResultCode Property ................................................................................................................................181
ResultCodeExtended Property .................................................................................................................182
ServiceObjectDescription Property..........................................................................................................182
ServiceObjectVersion Property................................................................................................................182
State Property...........................................................................................................................................183
5.3. Common Methods........................................................................................................ 184
CheckHealth Method ...............................................................................................................................184
ClaimDevice Method...............................................................................................................................185
Close Method...........................................................................................................................................186
CompareFirmwareVersion Method..........................................................................................................186
DirectIO Method......................................................................................................................................186
Open Method ...........................................................................................................................................187
ReleaseDevice Method.............................................................................................................................188
ResetStatistics Method.............................................................................................................................188
RetrieveStatistics Method ........................................................................................................................188
UpdateFirmwareMethod ..........................................................................................................................189
UpdateStatistics Method ..........................................................................................................................189
5.4. Specific Property.......................................................................................................... 190
CapStatus Property...................................................................................................................................190
CapStatusMultiDrawerDetect Property....................................................................................................190
DrawerOpend Property ............................................................................................................................191
5.5. Specific Method........................................................................................................... 192
OpenDrawer Method................................................................................................................................192
WaitForDrawerClose Method ..................................................................................................................192
5.6. Event ............................................................................................................................ 193
DirectIOEvent Event................................................................................................................................193
StatusUpdateEvent Event.........................................................................................................................193
6. Registry Used by OCX ..............................................................................................194
6.1. POS Printer (Serial Interface) ...................................................................................... 195
6.2. POS Printer (Parallel Interface).................................................................................... 197
6.3. POS Printer (USB Interface)........................................................................................ 199
6.4. POS Printer (LAN Interface)........................................................................................ 201
6.5. The explanation of the registry item (POS Printer)...................................................... 202
6.6. Drawer.......................................................................................................................... 207
6.7. The explanation of the registry item (Drawer)..............................................................211
7. Log Files .................................................................................................................... 212
8. Using Multiple Printers..............................................................................................214
9. Replacement of printer............................................................................................... 215
Revision History........................................................................................................................ 217

1. Outline

POS Printer OPOS Control and Drawer OPOS Control that control POS Printer ("PT390") and Drawer connected to the printer are OPOS Controls conforming to OPOS 1.13 POS Printer Devise and Drawer Device. When using OPOS Control, refer to "OLE for Retail POS Application Programmer's Guide Instructions The 1.13 Version" (OPOS-APG V1.13), too. In this guide, "OPOS Control" means same as "OPOS OCX".

1.1. Subject Scope of this document

These instructions (Application Programmer's Guide) aim for the main reference of programmers who develop the application for the use of OPOS Control, and describe the following contents necessary for that.
- Installation way of OPOS Control
- Usage of OPOS Control
- Restrictions of OPOS Control
- Interface (Property/Method/Event) Remarks of OPOS Control
- Item Setting Remarks of OPOS Control
1
r

1.2. OPOS Control Outline

1) OPOS Control Configuration Drawing

OPOS Control conform
s to ActiveX specifications and provides Property, Method, and Event to application. Control cannot be seen on UI in application execution. Only application, which uses it, requests to process through Method and Property. Application receives processing result through Method return value, parameter, Property, and Event. This OPOS Control is implemented as in-process server.
<Serial, Parallel, USB Interface>
Application
POSPrinter Control Object
CashDrawer Control Object
POSPrinter Service Object
CashDrawer Service Object
OPSharedPort.exe
OS / Device Drive
Printer Drawer
Printer Drawer
Printer Drawer
Serial Interface
Par Interface
USB Interface
2
n
<LAN Interface>
POSPrinter Control Object
POSPrinter Service Object
SxJcp32.dll
Applicatio
OS / Device Driver
DLL used to communicate with printer in LAN
*This
OPOS D
*Multiple numbers of interface and printers can be set to the driver. For details, refer to
Chapter 8 "Using Multiple Printers." * In case of LAN Interface, OPOS Driver doesn’t support drawer connection. *This OCX works with Thread Model of STA(Single, Thread or Apartment). To work with
several processes, the setting value of "Apartment" in Registry should be set as "1".
*Regarding LAN interface, Network Connection corresponds to 10Base-T, 100Base-T.
river supports the control of Serial/Parallel/USB/LAN Interface Printer.
LAN Interface10Base-T, 100Base-T
Printer
3

2) Terminology a. Control Object

According to each device class, it provides application with the set of Property, Method, and Event. This Document explains these API.
b. Service Object (Service Object; SO) It executes the function which is called from Control Object and which is prescribed by OPOS for each device.
(Control Object; CO)
4

1.3. Restrictions

Followings are restrictions.

1) POS Printer

[Restrictions
All the interfaces of OPOS POS Printer Device are provided, but there are the following
restrictions.
a. It does not support property setting concerning journal printing and journal. b. It does not support property setting concerning slip printing and slip. c. It does not support functions of Italic, custom color, shading printing, and cartridge. d. It does not support change of receipt printing character font. (Printing font change) e. The following methods always return OPOS_E_ILLEGAL(106) after enabling.
on OPOS specifications]
PrintTwoNormal Method BeginInsertion Method EndInsertion Method BeginRemoval Method EndRemoval Method ChangePrintSide Method MarkFeed Method ResetStatistics Method RetrieveStatistics Method UpdateStatistics Method
(Limitation of Cable disconnection and connection) There are conditions for disconnection and connection of LAN cable under printer "enable" status:
1)When LAN cable is disconnected from PC, printer cannot support any actions. When the cable is disconnected during "enable" status, OCX may fail to be "enable" even though the application restarts.
2)When LAN cable is disconnected from Printer, and while OCX and printer is connecting, printer cannot support any actions even if "disable" is sent. If "disable" is sent in above situation, even though the application is restarted, OCX may fail to enable. When the LAN cable is disconnected, connect the LAN cable again, and switch off and on the power of Printer.
5

2) Drawer

[Restrictions of
OPOS specifications OPOS] All the interfaces of OPOS Drawer Device are provided, but there are the following restrictions. a. PowerNotify Property (Power source notifying function setting)
Setting is only for OPOS_PN_DISABLED(0) (Impossible to notify)and unchangeable.
b. PowerState Property (Power source state)
Only OPOS_PS_UNKNOWN(2000)(Unclear) is set.
c. DirectIO Method (Particular-to-Device function)
It is not supported. After enabling, it always returns OPOS_E_ILLEGAL(106).
d. WaitForDrawerClose Method (Waiting for the drawer to close)
It is not supported. After enabling, it always returns OPOS_E_ILLEGAL(106).
e. DirectIOEvent Event (Particular- to-Device event)
It is not supported.
f. DrawerOpened Property, StatusUpdateEvent Event
Status notification of the Drawer is available only when CapStatus is TRUE and Printer OCX is enabled (DeviceEnabled=TRUE) for the printer connected to the drawer. In case these conditions are not met, the status of the drawer is not notified.
[Restriction of Drawer Hardware Specifications]
It does not support notifying function of drawer power source condition.

3) Common Restrictions on POS Printer and Drawer

The OPOS Control
is not thread-safe. When the method or property is accessed from the different thread, unexpected result may occur. In the multithread environment, implementation of exclusive processing for the critical sections is required for accessing the property and executing the method in order to avoid the method and property are executed at the same time.

4) Restriction when Windows driver and OPOS driver are installed in the same system

Problems such as failure to print correctly from the OPOS driver may occur if the Windows driver and OPOS driver are both installed in the same system. In this case, it is recommended that you uninstall the driver that is not being used.
6

5) Setting of Apartment ="0" with connecting LAN interface cable

Apartment is set as "0" in Registry setting, one process can control several printers. But the several processes do "Open" OCX (LAN Interface) at the same time, unexpected results may happen.

6) Setting of Apartment ="1" with connecting LAN interface cable

Apartment is set as "0 In this case, the number of printers (LAN interface) should be guaranteed that one process should be less than one unit. If more than 2 printers per one process were used, unexpected results might occur. The following chart shows the examples of the case that Apartment ="1" can work, and the case that Apartment ="1" cannot work. (OCX uses LAN interface.)
examples of the case that Apartment ="1" can work
ProcessA---PrinterOCX ProcessB---PrinterOCX
examples of the case that Apartment ="1" cannot work---1
ProcessA---PrinterOCX, PrinterOCX ProcessB---PrinterOCX (Two PrinterOCX exist in ProcessA.)
" in Registry setting, several processes can control printers.
7

7) About the "Found New Hardware Wizard" in Windows

When the printer is connected to PC in USB or Parallel interface and "Found New Hardware Wizard" was displayed, set it in the following procedures.
For Windows 7 / Server 2008 R2
1. The message "Installing device driver software" is displayed in a balloon(lower right corner of the screen).
2. After a while, the message "Device driver software was not successfully installed" is displayed.
This is not a problem.
For Windows Vista / Server 2008
1. The "Found New Hardware" is displayed, select [Don't show this message again for this device]. * When "User Account Control" screen is displayed, select [Continue].
For Windows XP / Server 2003 / WEPOS / WEPOS2009
1. The "Found New Hardware Wizard" screen is displayed. Select [No, not this time] and then click [Next].
2. When "What do you want the wizard to do?" is displayed, select [Install from a list or specific location] and then click [Next].
3. Select [Search for the best driver in these locations], clear all checkboxes and then click [Next].
4. When "Cannot Install this Hardware" is displayed, click [Don't prompt me again to install this software] and then click [Finish].
For Windows 2000
1. The "Found New Hardware Wizard" screen is displayed, click [Next].
2. When "What do you want the wizard to do?" is displayed, select [Search for a suitable driver for my
device] and then click [Next].
3. When [Locate Driver Files] is displayed, clear all checkboxes and then click [Next].
4. When "Driver Files Search Results" is displayed, select [Disable the device] and then click [Finish].
8

1.4. Connection Way to POS Printer

Set the POS Printer to the following settings (in gray highlight). Rest of the values can be set in the registry or the setting program attached with installer. Memory Swith
No. Setting Item Setting Contents
1 POWER ON STATUS *Set form the registry 2 RECEIVE BUFFER 4 KB 3 BUSY CONDITION Bufferfull 4 RECEIVE ERROR Print ? 5 AUTO LINEFEED Not available at any time 6 DSR (#6) RESET Not available 7 INT (#25) RESET Not available 8 INT (#31) RESET Available 9 COVER OPEN ERROR Auto Recover 10 PROTOCOL XON/XOFF
Customize Value
No. Setting Item Setting Contents
1 USER NV MEMORY 192 KB 2 NV GRAPHIC MEMORY 384 KB 3 PAPER WIDTH *Set from the setting program 4 PRINT LEVEL *Set from the setting program 5 PRINTING COLOR *Set from the setting program 6 BACK LEVEL ON TWO COLOR
PRINT 7 PRINT SPEED *Set from the setting program 8 POWER SAVE *Set from the setting program
Others
No. Setting Item Setting Contents
1 ACK PULSE WIDTH 1 microsecond 2 ERROR RECOVERY Command 3 PROCESS ID Normal 4 PNE DETECTION *Set from the setting program 5 FONT B Mode 1 6 USB Printer 7 BATCH PRINT Disable 8 ERROR ALERT *Set from the setting program 9 BUZZER INTERVAL *Set from the setting program 10 BUZZER REPETITION *Set from the setting program
*Set from the setting program
9

2. Installation

OPOS Control can be installed just like in the following procedures.

2.1. Installation Condition

Operation Environment
OS: Microsoft Windows 2000, XP, 2003Server, Vista, WEPOS, POSReady2009 Windows7, Server 2008, Server 2008 R2
CPU: Pentium3 550MHz and more is recommended RAM: 128MB and more is recommended HDD: Space 2MB and more
*To install on WEPOS, "Local Management Support" must be installed in the minimum
configuration of WEPOS.
* To install on POS Ready 2009 using Batch Installer, "Command-line Application" component
must be installed on POS Ready 2009.
(Note) When OPOS control (POS PRINTER OPOS OCX) is already installed, please install this OPOS control aft er uninstallation of OPOS control. Please refer how to uninstall to 2.4. uninstallation procedures.
10

2.2. Installation Media

Installation media is provided as CD. Configuration of CD is just the following.
\(root) \Drivers\OPOS
\ Driver........................ The root folder of the Installer (x32)
- setup32.exe : Installer for 32bit OS
- setup64.exe : Installer for 64bit OS
\Driver_x32................. The folder of the driver (x32)
* Use this when you do not use the installer for 32bit.
\Driver_x64................. The folder of the driver (x64)
* Use this when you do not use the installer for 64bit
11

2.3. Installation Procedure

Installation using installer

1. Set the installation Media CD to the Drive. After that, start "My Computer" or "Explorer"
and refer to the Drive.
In case of CD: Open \Driver folder, and if OS is 32bit, double click Setup32.exe. If OS
is 64bit, double click Setup64.exe
2. After the dialogue below is shown, Setup Program starts.
click "Next"
12
3. Installation st
[System Drive]:\OPOS\Okidata\PT\
arts. Installation folder is:
click "Next"
13
click "Install"
click "Finish"
14
4. Start setting p
If the [User Account Control] dialog box is displayed,
[Windows 7 / Server 2008 R2]
[Windows Vista / Server 2008]
For Windows 7 / Windows Vista
1) Click the button indicated with the Windows logo desktop.
2) Go to [All programs]
For Windows XP / Windows Server 2008 R2 / Windows Server 2008 /
Windows Server 2003 / WEPOS/POS Ready 2009
Go to [Start][All programs]
rogram.
click [Yes].
click [Allow].
[Okidata][OPOS][Printer OPOS Setup].
[Okidata][OPOS][Printer OPOS Setup].
at the left bottom of the
For Windows 2000
Go to [Start]→[Program] →
[Okidata][OPOS][Printer OPOS Setup].
*As for how to use setting program, refer to 2.6. Setting Pr ogram Usage.
5. After setting, installation finishes.
15

Installation using batch file

* If OS is 32bit, use b
folder
Installation method for Windows Vista or Windows 7
1. Copy driver folder ("\Driver_x64" or "\Driver_x32") onto an arbitrary folder.
2. The button that attaches the Windows logo under the left of a desktop screen is clicked.
3. Select [All Programs]->[Accessories]->[Command Prompt], and right-click in the icon of
the [Command Prompt], click "Run as administrator (A)", and execute the command prompt by the administrator authority.
4. Change the current directory of the command prompt to the directory that copied by 1, and
execute the batch file "Install.bat".
5. The Registry Editor and additional confirmation message to the registry is displayed, and
click [yes]. The additional completion message to the registry is displayed when the addition to the registry is completed, and click [OK].
6. The driver is installed in the folder "C:\OPOS\Okidata\PT\".
7. Please execute "C:\OPOS\Okidata\PT\OPPrinterSetup.exe", and execute the setup.
*As for how to use setting program, refer to 2.6. Setting Program Usage.
atch file of \Driver_x32 folder. If OS is 64bit, use batch file of \Driver_x64
8. After setting, installation finishes.
Installation methods except Windows Vista and Windows 7
1. Driver folder ("\Driver_x64" or "\Driver_x32") onto an arbitrary folder.
2. The button that attaches the Windows logo under the left of a desktop screen is clicked.
3. Select [All Programs]->[Accessories]->[Command Prompt], and execute the command
prompt.
4. Change the current directory of the command prompt to the directory that copied by 1, and
execute the batch file "Install.bat". (Use "Install_Win2k.bat" for Windows 2000.)
5. The Registry Editor and additional confirmation message to the registry is displayed, and
click [yes]. The additional completion message to the registry is displayed when the addition to the registry is completed, and click [OK].
6. The driver is installed in the folder "C:\OPOS\Okidata\PT\".
7. Please execute "C:\OPOS\Okidata\PT\OPPrinterSetup.exe", and execute the setup.
*As for how to use setting program, refer to 2.6. Setting Program Usage.
8. After setting, installation finishes.
16

2.4. Uninstallation Procedure

Uninstallation when installing it with installer (Setup32.exe or Setup64.exe)

1. Follow the steps blow to display the uninstalling screen.
For Windows 7 / Windows Vista】
Click the button indicated with the Windows logo
desktop.
Go to [Control Panel][Uninstall program] or [Uninstall a program].
For Windows Server 2008 R2
Go to [Start][Control Panel][Uninstall a program]
For Windows Server 2008
Go to [Start][Control Panel][Programs and Functions].
For Windows XP / Server 2003 / WEPOS】
Go to [Start][Control Panel][Add or Remove Progra ms].
For Windows 2000
Go to [Start][Settings][Control Panel][Add or Remove Programs].
at the left bottom of the
17
2. Select "POSPrinter O
3. The dialogue to confirm Uninstallation is displayed. Click [Yes].
4. Uninstallation is executed.
POS OCX" and click "Uninstall" or "Remove".
5. Sometimes there are some files that could not be deleted by uninstaller in Installed folder
([System Drive]:\OPOS\Okidata\PT), so please delete manually.
That is all of uninstallation.
18

Uninstallation when OPOS is installed with batch file

Uninstallati
1. The button that attaches the Windows logo under the left of a desktop screen is clicked.
2. Select [All Programs]->[Accessories]->[Command Prompt], and right-click in the icon of
the [Command Prompt], click "Run as administrator (A)", and execute the command prompt by the administrator authority.
3. Execute batch file "uninstall.bat" with the folder of "C:\OPOS\Okidata\PT\".
4. Delete "C:\OPOS\Okidata\PT" folder manually.
5. It is an end.
Uninstallation methods except Win dows Vista and Windows 7
1. The button that attaches the Windows logo under the left of a desktop screen is clicked.
2. Execute batch file "uninstall.bat" with the folder of "C:\OPOS\Okidata\PT\".
3. Delete "C:\OPOS\Okidata\PT" folder manually.
4. It is an end.
on method for Winodws Vista or Windows 7
19

2.5. Installation File List

File groups of POS Printer OPOS-OCX Control are arranged just like the following.
[System Drive]:\OPOS\Okidata\PT\
OPPOSPrinterCO.ocx POS Printer Control Object OPPOSPrinterSO.dll POS Printer Service Object OPCashDrawerCO.ocx Drawer Control Object OPCashDrawerSO.dll Drawer Service Object OPPrinterSetup.exe Setting Program oposdef.ini OPOS display string definition file
[System Drive]:\OPOS\Okidata\PT\Log
Folder to output Log File
[System Drive]:\OPOS\Okidata\PT\include
Include-File-Group defined by OPOS-OCX Control.
Opos.h OPOS Shared-Definition-Constant Header
File
OposPtr.h OPOS POS Printer Definition-Constant
Header File
OposCash.h OPOS Drawer Definition-Constant Header
File
FitPtr.h Particular Definition-Constant Header File
for OPOS Printer.
OPOSPRN.BAS OPOS Definition-Constant Standard Module
(Shared-Definetion-Constant,
Printer and Drawer Definition-Constant)
(for V isual Basic)
OposFIT.BAS OPOS Printer Particular Definition Constant
Module (for Visual Basic)
[System Drive]:\WINDOWS\system32\ (64bit OS: [System Drive]:\Windows\SysWOW64\)
OPSharedPort.exe Shared Port Program SxJcp32.dll DLL used to communicate with printer in
LAN
20
The module to be instal
File Version
Remarks
Copyright "Copyright (C) 2011 Oki Data Corporation" Comment Special Built Information (Not written specially)
Private Built Information (Not written specially) Company "Oki Data Corporation" Language "English (U.S.)" Trademark (Not written specially) Formal File Name (Object File Name of the subject) Product Version Same as File Version Product Name "OPOS POSPrinter" or "OPOS Cash Drawer" Inside name (Formal File Name without extension)
led has set property according to the following standard.
Item Remarks
OPOS Version (for each release, the third and the forth characters are incremental numbers of version) In case of files except CO/SO, successive increment from 1.0.0.1
- In case of CO; "POSPrinter [or Cash Drawer]
OPOS Control Object Module".
- In case of SO; "POSPrinter [or Cash Drawer]
OPOS Service Object Module".
- The other cases; "[exe file name part without
extension] XXX (any wording)".
(Not written specially; If necessary, written specially)
21

2.6. Setting Program Usage

Operation Conditions
OPOS must be installed
Screen and function Setting Program is executed as the following procedure.
1. Execution
If the [User Account Control] dialog box is displayed,
[Windows 7 / Server 2008 R2]
click [Yes].
[Windows Vista / Server 2008]
click [Allow].
For Windows 7 / Windows Vista
1) Click the button indicated with the Windows logo desktop.
2) Go to [All programs]
[Okidata][OPOS][Printer OPOS Setup].
For Windows XP / Windows Server 2008 R2 / Windows Server 2008 /
Windows Server 2003 / WEPOS/ POS Ready 2009
Go to [Start][All programs]
[Okidata][OPOS][Printer OPOS Setup].
For Windows 2000
Go to [Start]→[Program] →
[Okidata][OPOS][Printer OPOS Setup].
at the left bottom of the
22
2. Selecting Pri
Select “POS Printer” and “Interface”. When LAN interface is selected, Searching printers screen is displayed. When other interface is selected, POS printer detail setting screen is displayed.
3. Searching printers
nter and Interface
23
Loading...
+ 197 hidden pages