The text of a manual · part 3 of 5
OEM USB, RS232 Standard, RS232 Single Cable OPOS Service Objects Quick Reference Guide: Datalogic™ OEM USB, RS232 Standard RS232 Single Cable OPOS Service Objects, pages 15 to 24
Pages 15 to 24 of 38, from OEM USB, RS232 Standard, RS232 Single Cable OPOS Service Objects Quick Reference Guide
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Datalogic 2300HS and Datalogic 2200VS
Page 15
Utilities
CO
2. Open Scale:
SCRS2325cale TableScale USBScale aL d Weight a Head Weight a
PT Status Notify Lom i
Ee i Update Firmware
3. Claim:
SCRS2325cale
TableScale Clair USBScale = Disable.
Ee . Update Firmware
Quick Reference Guide 11
Page 16
Utilities ee eee e errr rere errr reese esseeresreesessessessessesesssesesssessssessssessessessessessesseeseeseeseesessseseee
4. Enable:
SCRS2325cale TableScale USBScale
PT Status t lotity:
Ee . Update Firmware
5. Read a weight:
Upen Scanner SCRS2325cale TableScale USBScale
PT Status t lotity:
Ee . Update Firmware
12 Datalogic™ OPOS Service Object
Page 17
Utilities
Live Weight Display The Datalogic 1.12 OPOS Scale Service Object supports the ability to provide Live Weight Display functionality in accordance with the UPOS Specification (version 1.9 and above). The user’s application may be written to take advantage of this capability in the service (see the UPOS specification for details). In addition, the DualTest application bundled with Datalogic’s services supports this capability and may be used to demonstrate Live Weight Display function with a Datalogic scanner/scale. The following screen shots represent the steps used to activate Live Weight Display with a scale using DualTest. IMPORTANT NOTE to OPOS Programmers: PIDXScal_StatusNotify must be set TRUE while the scale is NOT Enabled. As per the UPOS specification, setting PIDXScal_StatusNotify TRUE after the scale has been Enabled will not activate the Live Weight Display function in the scale service object.
To demonstrate Live Weight Display, start DualTest and follow the steps to Open and Claim the scale, as described in the previous section. Then perform the following steps: 1. Set Status Notify True: Click the “Status Notify” check box.
Quick Reference Guide
13
Page 18
Utilities
2. Enable: (Live Weight Begins immediately / Zero Weight)
3. Underweight: An under zero condition has occurred.
14
Datalogic™ OPOS Service Object
Page 19
Utilities
4. In motion: The scale is in motion and has not stabilized.
5. Overweight: The scale’s weight capacity has been exceeded.
Quick Reference Guide
15
Page 20
Utilities
Pewee cere eres rere errr eresreeresresseesessesseseesesssesssesssessesessesseeseeseeseesessesseeseeseeseeseesene
6. Stable Large Weight:
ualTest
> SCALE SCANNER > Control Object Version Control Object Version Filename: C:\Program Files\DLSOPOS \Controls\OPOSScale.ocx Filename: C:\Program Files\DLSOPOS\Controls\oposscanner.ocx Description: OPOS Scale Control 1.12.000 [Public, by CRM/RCS-Dayton]) Description: OPOS Scanner Control 1.12.000 [Public, by Version: 1.12.0 Version: 1.12.0 File Version: 1,12, 000, 0 File Version: 1,12, 000,0 Copyright: Copyright (c) RCS-Dayton. Copyright: Copyright (c) RCS-Dayton. Scales: Scanners: Open Scale | Close Scale | HandScanner Open Scanner | Close Scanner | QSLScanner Claim | Release RS232Scanner Claim | Release | Enable ] Disable | acon eecanner Enable | Disable | USBHHScanner Read Weight Timeout USBScanner | Data Evert Enable | Read Weight | 1000 msec. + 7 Auto Date Event Enable I Status Notity Compare Firmware Version | Des Update Firmware | Fle Status: Stable scale weight Status: Weight: 28.170 Ib. Data: Error: Type: Scale Service Object Version Si Service Object Version Filename: C:\Program Files\OLSOPOS\Driver\DLOPOS. dll Filename: Description: DATALOGIC Scanning Inc. Service Object! Description: Version: 1.12.42 Version: File Version: 1.12.0042 File Version: Copyright: Datalogic Scanning. All rights reserved. Copyright:
{] DualTest (c) 2008 DATALOGIC ver 1.9.2.0
Exit |
7. Stable Small Weight:
DualTest
> SCALE SCANNER > Control Object Version Control Object Version Filename: C:\Program Files\DLSOPOS \Controls\OPOSScale.ocx Filename: C:\Program Files\DLSOPOS\Controls\oposscanner.ocx Description: OPOS Scale Control 1.12.000 [Public, by CRM/RCS-Dayton]) Description: OPOS Scanner Control 1.12.000 [Public, by Version: 1.12.0 Version: 1.12.0 File Version: 1,12, 000, 0 File Version: 1,12, 000,0 Copyright: Copyright (c) RCS-Dayton. Copyright: Copyright (c) RCS-Dayton. Scales: Scanners: Open Scale | Close Scale | HandScanner Open Scanner | Close Scanner | QSLScanner Claim | Release | RS232Scanner Claim | Release | Enable ] Disable | acon eecanner Enable | Disable | USBHHScanner Read Weight Timeout USBScanner | Data Evert Enable | Read Weight | 1000 msec. + [- Auto Data Event Enable I Status Notity Compare Firmware Version | Des Update Firmware | Fle Status: Stable scale weight Status: Weight: 0.040 Ib. Data: Error: Type: Scale Service Object Version Si Service Object Version Filename: C:\Program Files\OLSOPOS\Driver\DLOPOS. dll Filename: Description: DATALOGIC Scanning Inc. Service Object! Description: Version: 1.12.42 Version: File Version: 1.12.0042 File Version: Copyright: Datalogic Scanning. All rights reserved. Copyright:
{] DualTest (c) 2008 DATALOGIC ver 1.9.2.0
Exit |
Datalogic™ OPOS Service Object
Page 21
Developers Guide
Developers Guide OPOS service objects export a uniform interface; however there may be slight differences between the same types of devices from different vendors and models. Queries of OPOS properties reveal these differences. Below listed properties, methods, and events are DATALOGIC device specific return values. Other DATALOGIC service objects with different interfaces may produce slightly different results. Developers are advised to consider all error conditions in designing an application.
Scanner Properties: Common Properties: AutoDisable: Returns TRUE or FALSE depending on the previous SetProperty call. BinaryConversion: Returns TRUE or FALSE depending on the previous SetProperty call. CapCompareFirmwareVersion: Returns TRUE (also depends on the firmware and model of the scanner). CapPowerReporting: Returns OPOS_PR_NONE CapStatisticsReporting: Returns TRUE (also depends on the firmware and the model of the scanner). CapUpdateFirmware: Returns TRUE (also depends on the firmware and model of the scanner). CapUpdateStatistics: Returns FALSE. CheckHealthText: Internal HCheck: will return health string External HCheck: not supported Interactive HCheck: not supported
This property is empty before the first call to the CheckHealth method. Claimed: Returns TRUE after Claim method has been called. FALSE otherwise. DATALOGIC devices are exclusive. It is recommended that a program keep the device Claimed as long as the application is running.
Quick Reference Guide
17
Page 22
Developers Guide
DataCount: Returns the number of Data Events Queued. DataEventEnabled: Returns TRUE or FALSE depending on the previous SetProperty call. DeviceEnabled: Returns TRUE or FALSE depending on the previous SetProperty call. FreezeEvents: Returns TRUE or FALSE depending on the previous SetProperty call. OpenResult: Returns 0. PowerNotify: Returns OPOS_PN_DISABLED or OPOS_PN_ENABLED. PowerState: Returns OPOS_PS_ONLINE. If the communication channel if having difficulties, an OPOS_E_NOHARDWARE will be returned on calls that send and receive data from the scanner. ResultCode: Returns result of last operation. ResultCodeExtended: Returns 0 State: Returns OPOS_S_CLOSED OPOS_S_IDLE OPOS_S_ERROR
DeviceServiceDescription: Returns a descriptive string depending on the interface and device type. DeviceServiceVersion: Returns 101200XX. where XX is the minor version. PhysicalDeviceDescription: Returns a descriptive string depending on the interface and device type. PhysicalDeviceName: Returns a descriptive string depending on the interface and device type. 18
Datalogic™ OPOS Service Object
Page 23
Developers Guide
Device Specific Properties: DecodeData: Returns TRUE or FALSE depending on the previous SetProperty call. ScanData: Holds the raw scanned data received from the scanner. ScanData property always has bar code data when a DataEvent is fired. For Tabletop scanners, the bar code data may be sent across the USB interface as uncompressed Binary Coded Decimal (BCD), depending upon scanner configuration and bar code type. ScanDataLabel: Holds the scanned and decoded data from the scanner if DecodeData property is TRUE. Contains data if DecodeData is TRUE. ScanDataType: Returns scanned data type of the most recent label from the scanner. Returned value is one of SCAN_SDT_XXXX constants, where XXXX is the type of the label. Refer to OPOS Scanner header file for the numerical values. Contains label type if DecodeData is TRUE. Label type as reported on scanner interface, the scanner assigns a label type identifier and sends this with the label data across the interface. The Service Object translates this into one of the OPOS defined label types.
Quick Reference Guide
19
Page 24
Developers Guide
Scanner Methods: Common Methods: Open: Returns OPOS_SUCCESS OPOS_E_NOSERVICE OPOS_E_NOEXIST OPOS_E_ILLEGAL
Close: Returns OPOS_SUCCESS ClaimDevice: Returns OPOS_SUCCESS OPOS_E_NOSERVICE OPOS_E_ILLEGAL OPOS_E_CLAIMED This call will activate the communication with the device. DATALOGIC devices are exclusive. It is recommended that a program keep the device Claimed as long as the application is running. CheckHealth: OPOS_CH_INTERNAL is supported. OPOS_CH_EXTERNAL is not supported. OPOS_CH_INTERACTIVE is not supported.
Returns OPOS_SUCCESS CheckHealthText property will hold the text result of this method call. ClearInput: Returns OPOS_SUCCESS OPOS_E_DISABLED OPOS_E_NOTCLAIMED DirectIO: Returns OPOS_SUCCESS OPOS_E_NOTCLAIMED 20
Datalogic™ OPOS Service Object