This OPC UA DefectDetectionSensorType ObjectType describes a sensor fitted to the machine module that detect product defects.

Figure 19 shows an overview for the DefectDetectionSensorType with related Objects. It is formally defined in Table 36.

image023.png

Figure 19 DefectDetectionSensorType overview

The DefectDetectionSensor is formally defined in Table 36.

Table 36 DefectDetectionSensorType Definition

Attribute

Value

BrowseName

DefectDetectionSensorType

IsAbstract

False

References

Node Class

BrowseName

DataType

TypeDefinition

Modelling Rule

Subtype of DeviceType defined in OPC 10000-100

HasProperty

Variable

Description

LocalizedText

PropertyType

Mandatory

HasComponent

Variable

DetectionCountMasterTotal

Int64

BaseDataVariableType

Mandatory

HasComponent

Variable

DetectionCountTotal

Int64

BaseDataVariableType

Mandatory

HasProperty

Variable

DetectionMode

Boolean

PropertyType

Mandatory

HasProperty

Variable

DisplayName

LocalizedText

PropertyType

Mandatory

HasComponent

Variable

SensorValue

Double

AnalogItemtype

Mandatory Placeholder

HasComponent

Object

UIInfo

UIInformation

Mandatory

HasComponent

Method

ResetDetectionCountTotal

Mandatory

HasComponent

Method

SetDetectionMode

Mandatory

HasComponent

Method

LoadReferenceImages

Optional

GeneratesEvent

ObjectType

DefectDetectedLogType

GeneratesEvent

ObjectType

DefectDetectionSensorDisabledType

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

The following properties are already included in the DeviceType.

The Manufacturer property provides the name of the manufacturer that supplied the part (e.g. "Siemens”).

The Model property provides the name of the part as identified by the manufacturer (e.g. "S7- CPU 1515-2 PN").

The RevisionCounter property provides the revision level of the part as identified by the manufacturer (e.g. "").

The Serial property provides the serial number of the part as identified uniquely by the manufacturer.

The following Objects are defined to extend the DeviceType.

The Property Description describes the defect detected and detection sensor.

The DetectionCountTotal Variable counts how many times a defect was detected by the sensor while the DetectionMode is true. Increments at every detection, never reset to zero.

The Value of the Variable DetectionCountTotal shall be persisted both in the OPC UA Server and in the underlying system so that if one fails and/or is replaced, the other will allow restoring the Value when the OPC UA Server and underlying system are on separate hardware infrastructure.

The DetectionCountMasterTotal Variable counts how many times a defect was detected by the sensor while the DetectionMode is true. The Value of theVariable DetectionCountMasterTotal is never reset.

The Value of the Variable DetectionCountMasterTotal shall be persisted both in the OPC UA Server and in the underlying system so that if one fails and/or is replaced, the other will allow restoring the Value when the OPC UA Server and underlying system are on separate hardware infrastructure.

The DetectionMode Variable indicates if the defection sensor is active (when the value is True) or not active (when the value is false).

The DisplayName Variable represents an identification to be used for the defect detection sensor in displays and HMI faceplates.

The Variable SensorValue is the value of the quantity sensed by the sensor.

A defect detection sensor device may measure multiple physical properties, e.g. net tobacco weight, moisture, foreign matters etc.. Each property measured shall be modelled as a separate SensorValue Variable, which is to this purpose a Mandatory Placeholder Variable.

The type of the Variable SensorValue is AnalogItemType and is defined in OPC 10000-8. Thus SensorValue inherits the Definition Property that shall be used to define the physical property measured. The Definition Property is used to identify the semantics of the measurement, e.g “Measurement of the cigarette diameter” or “Measurement of the cigarette circumference”.

The Object UIInfo contains information about the User Interface (UI) of the defect sensor. When an Object does not have own UIInfo, then the Object does not require visualisation.

The Method LoadReferenceImages loads to the underlying system images to be used as references for visual defect detection.

Signature

LoadReferenceImages (

[in] Image[] Images

[out] MethodExecutionFeedbackTypeExecutionFeedback

);

Argument

Description

Images

The list of images to be used as references for an image detection system.

ExecutionFeedback

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

Method Result Codes

The Method ResetDetectionCountTotal resets to zero the DetectionCountTotal.

Signature

ResetDetectionCountTotal (

[out]MethodExecutionFeedbackType ExecutionFeedback

);

ResultCode

Description

BadNodeIdUnknown

See table 173 in OPC 10000-4 for the description of these result codes.

BadTypeMismatch

BadOutOfRange

BadNotWritable

BadNotFound

Argument

Description

ExecutionFeedback

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

Method Result Codes

The Method SetDetectionMode enables or disables the defect detection sensor.

Signature

GetPage (

[in]Boolean Enable

[out]MethodExecutionFeedbackTypeExecutionFeedback

);

ResultCode

Description

BadNodeIdUnknown

See table 173 in OPC 10000-4 for the description of these result codes.

BadTypeMismatch

BadOutOfRange

BadNotWritable

BadNotFound

Argument

Description

Enable

Specifies if the method enables or disables the defect detection sensor

ExecutionFeedback

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

Method Result Codes

Please report errors or issues with the site to webmaster.

Copyright © 2024 - OPC Foundation

ResultCode

Description

BadNodeIdUnknown

See table 173 in OPC 10000-4 for the description of these result codes.

BadTypeMismatch

BadOutOfRange

BadNotWritable

BadNotFound