The SensorFunctionType describes a single measuring function or quality sampling function and is formally defined in the following table.

Table 59– SensorFunctionType Definition

Attribute

Value

BrowseName

SensorFunctionType

IsAbstract

False

References

Node Class

BrowseName

DataType

TypeDefinition

Other

Subtype of the BaseObjectType defined in OPC 10000-5 - Part 5: Information Model, i.e. inheriting the Instance Declarations of that Node.

0:HasComponent

Object

<DefectReason>

DefectReasonType

OP

0:HasProperty

Variable

DetectionMode

0:Boolean

0:PropertyType

M, RW

0:HasComponent

Method

LoadReferenceFeatures

See below.

O

0:HasComponent

Variable

SensorValue

0:Number

0:AnalogUnitType

O, RO

0:HasComponent

Method

SetDetectionMode

See below.

O

0:HasComponent

Object

UIInfo

UIInformationType

O

0:GeneratesEvent

ObjectType

DetectionModeChangeLogType

Conformance Units

TMC Quality Assurance and Control

The components of the SensorFunctionTypeare further described below.

BrowseName

Description

<DefectReason>

The defect reasons triggered by the sensor function.

DetectionMode

When DetectionMode is True, the sensor function measures the sensor value and the inner defect reasons are enabled, meaning they can be active or not. When DetectionMode is False, the inner defect reasons are also not active.

SensorValue

The value measured for the sensor function.

UIInfo

The visualization resources to display the SensorFunctionType on the User Interface.

The Method LoadReferenceFeatures loads binary profiles to be used as references for defect detection.

The signature of this Methodis specified below. Table 60specifies the Argumentsrepresentation.

Signature

LoadReferenceFeatures (

[in] 0:ByteString[] Features,

[out] MethodExecutionFeedbackType ExecutionFeedback);

Table 60– LoadReferenceFeatures Method Arguments

Argument

Description

Features

The list of binary profiles used as references for a detection system.

ExecutionFeedback

The extended feedback returning a detailed message in case of execution failure.

The Method SetDetectionMode enables or disables the defect detection sensor.

The signature of this Methodis specified below. Table 61specifies the Argumentsrepresentation.

Signature

SetDetectionMode (

[in] 0:Boolean Enable,

[out] MethodExecutionFeedbackType ExecutionFeedback);

Table 61– SetDetectionMode Method Arguments

Argument

Description

Enable

Specifies if the method enables, when True, or disables, when False, the sensor function.

ExecutionFeedback

The extended feedback returning a detailed message in case of execution failure.

The Method SetDetectionModesets the DetectionModeof the sensor function and of its components, i.e. the defect reasons.