FB_SendVisionData - SetHeader (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

This chapter provides information on:

Task

Set the header data of the vision protocol.

Description

With the method SetHeader, the header data of the vision protocol can be set.

Interface

Input

Data type

Description

i_uiVisionId

UINT

Vision ID of the header.

i_udiProtocolIndex

UDINT

Protocol index of the header.

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

q_sMsg

STRING[80]

Event-triggered message that gives more detailed information on the diagnostic state.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value of q_etDiagExt

Description

Ok

Ok

0

Ok

ExecutionAborted

HeaderDataAlreadySet

30

Header data already set.

InputParameterInvalid

ProtocolIndexRange

26

Protocol index is out of range.

VisionIdRange

25

Vision ID is out of range.

HeaderDataAlreadySet

Enumeration name:

HeaderDataAlreadySet

Enumeration value:

30

Description:

Header data already set.

Issue

Cause

Solution

Header data already set.

The header data was already set.

Verify that the header data is not set twice.

Send the data before setting the header data again.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success

Status message: Setting the header data of the vision protocol was successful.

ProtocolIndexRange

Enumeration name:

ProtocolIndexRange

Enumeration value:

26

Description:

Protocol index is out of range.

Issue

Cause

Solution

Protocol index is out of range.

The protocol index is 0.

Verify that the protocol index is not 0.

VisionIdRange

Enumeration name:

VisionIdRange

Enumeration value:

25

Description:

Vision ID is out of range.

Issue

Cause

Solution

Vision ID is out of range.

The Vision ID is 0.

Verify that the Vision ID is not 0.