FB_SendVisionData - Send (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

This chapter provides information on:

Task

Send the protocol of vision data.

Description

With the method Send, the protocol of vision data, set by SetHeader(...), SetNextProduct(...), and SetAdditionalString(...), can be sent.

If the method Send(...) is called, the header data, product data, and additional string are automatically removed. It is not necessary to call the method ClearVisionData(...) before setting new header data.

Interface

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

NotConnected

29

Not connected to server.

LimitReached

ProtocolLengthExceeded

15

The length of the protocol has been exceeded.

NotConnected

Enumeration name:

NotConnected

Enumeration value:

29

Description:

Not connected.

Issue

Cause

Solution

Not connected to server.

Trying to send data, but not connected to server.

Verify that there is a connection to the server before sending data. (Output q_xConnectedToServer.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success

Status message: Sending the protocol of vision data was successful.

ProtocolLengthExceeded

Enumeration name:

ProtocolLengthExceeded

Enumeration value:

15

Description:

The length of the protocol has been exceeded.

Issue

Cause

Solution

The length of the protocol has been exceeded.

The length of the protocol to send to the server exceeds the value of Gc_uiMaxLengthOfProtocol.

Adapt the parameter Gc_uiMaxLengthOfProtocol.

Split the content of the protocol and send it in several protocols.