This OPC UA ObjectType represents an OCR reader device. It defines additional methods and properties required for managing OCR readers or to get additional information on the OCR scan events.

Figure 7 shows an overview for the OcrReaderDeviceType with its Object, Methods, Properties and related ObjectType. It is formally defined in Table 9.

image011.png

Figure 7 – OcrReaderDeviceType overview

The OcrReaderDeviceType is formally defined in Table 9.

Table 9 – OcrReaderDeviceTypeDefinition

Attribute

Value

BrowseName

OcrReaderDeviceType

IsAbstract

False

References

Node Class

BrowseName

DataType

TypeDefinition

Modelling Rule

Subtype of AutoIdDeviceType defined in 6.1.

HasComponent

Object

Images

FolderType

Optional

HasComponent

Method

Scan

Optional

GeneratesEvent

ObjectType

OcrScanEventType

Defined in 7.3.

The OcrReaderDeviceType ObjectType is a concrete type and can be used directly.

Table 10 – OcrReaderDeviceType Additional Subcomponents

Source Path

References

NodeClass

BrowseName

DataType

TypeDefinition

Others

RuntimeParameters

HasComponent

Variable

TemplateName

String

BaseDataVariableType

O

RuntimeParameters

HasComponent

Variable

MatchCode

String

BaseDataVariableType

O

Images

Organizes

Object

<ImageName>

0:FileType

OP

This FunctionalGroup is inherited from the AutoIdDeviceType and described in 6.1. Predefined runtime parameters for for this FunctionalGroup are defined in Table 10 and described below.

Parameter TemplateName is the activate template which defines a specific identification task. The templates have to be defined during configuration.

Parameter MatchCode defines the target value for 2D and OCR decoding.

For quality and testing purposes, the actual image taken by the OCR reader can be accessed with this object. E.g. the picture might be checked by engineers if the OCR decoding does not deliver the expected results.

The Images Object when available shall contain the list of FileType Objects (see Table 10) with the images taken by the OCR reader.

The MIME type of an image is provided through the MimeType Property of the FileType.

This method starts the scan process of the OCR reader device syncronous and returns the scan results. It overwrites the Scan method of the AutoIdDeviceType defined in 6.1.3.4.

Signature

Scan (

[in]ScanSettings Settings

[out]OcrScanResult [] Results

[out]AutoIdOperationStatusEnumerationStatus

);

Argument

Description

Settings

Configuration settings for the scan execution. The ScanSettings DataType is defined in 9.3.7.

Results

Results of the scan execution. The OcrScanResult DataType is defined in 9.3.9.

Status

Returns the status of the scan operation.

The AutoIdOperationStatusEnumeration DataType is defined in 9.2.1.

Method Result Codes

ResultCode

Description

Bad_InvalidState

There is already a scan active

Bad_InvalidArgument

The scan setting contained an invalid value like infinite duration.

Other OPC UA status codes defined for the Call Service in OPC 10000-4.