Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 4 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 25 to 32

Pages 25 to 32 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 25

Developers Guide

OPOS_E_OFFLINE OPOS_E_ILLEGAL Please refer to Appendix A for supported DirectIO functions.

ReleaseDevice: Returns OPOS_SUCCESS, OPOS_E_ILLEGAL, or OPOS_E_NOTCLAIMED. This call will deactivate the communication with the device. ResetStatistics: Returns OPOS_E_ILLEGAL DATALOGIC service objects do not support reset statistics.

RetrieveStatistics: Returns OPOS_SUCCESS OPOS_E_NOHARDWARE OPOS_E_DISABLED OPOS_E_NOTCLAIMED OPOS_E_ILLEGAL Results of the RetrieveStatistics call are written to the OPOS Log and returned as per the OPOS spec. Supported statistics are: • Device category • Manufacturer • Model number • Serial Number • Firmware revision • Interface type • Power on time • Number of label scans UpdateStatistics: Returns OPOS_E_ILLEGAL DATALOGIC OPOS Scanner service object does not support update statistics.

Device Specific Methods: None.

Quick Reference Guide

21

Page 26

Developers Guide

Scanner Events: Common Event: DataEvent: This event fires when a label is forwarded from scanner. DirectIOEvent: Not supported. ErrorEvent: Not used. StatusUpdateEvent: Not implemented. Device Specific Events: None.

Scale 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 FALSE. CapPowerReporting: Returns OPOS_PR_NONE. CapStatisticsReporting: Returns FALSE. CapUpdateStatistics: Returns FALSE. CapUpdateFirmware: Returns FALSE. CheckHealthText: Internal HCheck: not supported, will return OPOS_E_ILLEGAL.

22

Datalogic™ OPOS Service Object

Page 27

Developers Guide External HCheck: not supported. Interactive HCheck: not supported.

Claimed: Returns TRUE after Claim method has been called. FALSE otherwise. DATALOGIC devices are exclusive. It is recommended that the device be claimed and continue to be claimed thru-out a session. DataCount: Returns 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 extended result if the last operation produced an OPOS_E_EXTENDED. Otherwise this value is considered invalid. State: Returns OPOS_S_CLOSED OPOS_S_IDLE OPOS_S_ERROR DeviceServiceDescription: Returns a descriptive string depending on the interface and device type. Quick Reference Guide

23

Page 28

Developers Guide

DeviceServiceVersion: Returns 10120XXX where XXX 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.

Device Specific Properties: CapDisplay: Returns TRUE. TRUE is returned regardless of a remote display being connected to the scanner/scale or not. CapDisplayText: Returns FALSE. FALSE is returned regardless of a remote display being connected to the scanner/scale or not. CapPriceCalculating: Returns FALSE. CapStatusUpdate: Returns TRUE. CapTareWeight: Returns FALSE. CapZeroScale: Returns TRUE. AsyncMode: Returns TRUE or FALSE depending on the previous SetProperty call. MaxDisplayTextChars: Returns 0. MaximumWeight: Returns 15000 in metric mode. Returns 30000 in pound mode. ScaleLiveWeight: Updated if LiveWeight is enabled.

24

Datalogic™ OPOS Service Object

Page 29

Developers Guide

StatusNotify: If CapStatusUpdate is TRUE, the application can set StatusNotify to either SCAL_SN_DISABLED or SCAL_SN_ENABLED. SalesPrice: Returns 0 currency. TareWeight: Returns 0. UnitPrice: Returns 0 currency. WeightUnit: Returns SCAL_WU_KILOGRAM in metric mode. Returns SCAL_WU_POUND in pound mode.

Scale Methods: Common Methods: Open: Returns OPOS_SUCCESS OPOS_E_NOSERVICE 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 supported.

Quick Reference Guide

25

Page 30

Developers Guide OPOS_CH_INTERACTIVE is supported.

Returns OPOS_SUCCESS OPOS_E_NOTCLAIMED OPOS_E_DISABLED OPOS_E_ILLEGAL CheckHealthText property will hold the text result of this method call. ClearInput: Returns OPOS_SUCCESS OPOS_E_DISABLED OPOS_E_NOTCLAIMED DirectIO: Returns OPOS_E_NOTCLAIMED OPOS_E_OFFLINE OPOS_E_ILLEGAL Please refer to Appendix A for supported DirectIO functions.

ReleaseDevice: Returns OPOS_SUCCESS. OPOS_E_ILLEGAL if the device has not been claimed. This call will deactivate the communication with the device. It is recommended that a program keep the device Claimed until an application quits. ResetStatistics: Returns OPOS_E_ILLEGAL DATALOGIC OPOS Scale service objects do not support reset statistics.

RetrieveStatistics: Supported on all interfaces. Returns OPOS_SUCCESS or OPOS_E_ILLEGAL. UpdateStatistics: Returns OPOS_E_ILLEGAL. DATALOGIC OPOS Scale service objects do not support update statistics.

26

Datalogic™ OPOS Service Object

Page 31

Developers Guide

Device Specific Methods: GetSalesPrice: Returns 0 Not implemented GetUnitPrice: Returns 0 Not implemented SetUnitPrice: Returns OPOS_E_ILLEGAL Not implemented DisplayText: Returns OPOS_E_ILLEGAL ReadWeight: Returns OPOS_SUCCESS OPOS_E_EXTENDED OPOS_E_TIMEOUT CANCELLED OPOS_E_NOTCLAIMED OPOS_E_DISABLED OPOS_E_OFFLINE OPOS_E_ILLEGAL OPOS_E_FAILURE OPOS_E_BUSY OPOS_E_NOHARDWARE If the result is OPOS_SUCCESS valid weight is returned. If the result is OPOS_E_EXTENDED extended status will return either OPOS_ESCAL_OVERWEIGHT or OPOS_ESCAL_UNDER_ZERO in result code extended. If the result is OPOS_E_TIMEOUT there was not valid settled weight on the platter before the timeout. Weight and the ExtendedStatus values are invalid. The Weight Unit entry in the Settings.xml file must match the Scale configuration (Metric or English). See the XML File Description document installed in the Programs list under Datalogic Scanning for a complete description of the XML file settings.

Quick Reference Guide

27

Page 32

Developers Guide

ZeroScale: Returns OPOS_SUCCESS OPOS_E_NOHARDWARE OPOS_E_OFFLINE OPOS_E_DISABLED OPOS_E_NOTCLAIMED

Scale Events: Common Event: DataEvent: Used for asynchronous weight requests DirectIOEvent: Not supported ErrorEvent: Used if a cancel weight is called during an asynchronous weight request StatusUpdateEvent: Not supported

Device Specific Events: None

28

Datalogic™ OPOS Service Object