FB_CobotControllerFeedback - Disconnect (Method)

Overview

Type:

Method

Available as of:

V1.0.1.0

This chapter provides information on:

Task

The function block is used to disconnect an established connection from the TCP server of a Lexium Cobot controller.

Description

This method disconnects an established connection to the TCP server of a Lexium Cobot controller.

Interface

Output Data type Description

q_xError

BOOL

Value is TRUE if an error was detected. For details, refer to q_etResult and q_sResultMsg.

q_etResult

ET_Result

Provides diagnostic and status information as a numeric value.

If q_xError = FALSE, q_etResult provides status information. If q_xError = TRUE, q_etResult provides diagnostic/error information.

q_sResultMsg

STRING[80]

Provides additional diagnostic and status information as a text value.

Diagnostic Messages

q_xError

q_etResult

Enumeration value

Description

FALSE

Ok

0

The method was called successfully.

FALSE

Disabled

1

The function block is disabled.

FALSE

NotConnected

5

A connection to a Lexium Cobot controller is not established.

Disabled

Enumeration name:

Disabled

Enumeration value:

1

Description:

The function block is disabled.

The function block is disabled and not connected to the TCP server of a Lexium Cobot controller.

A disabled function block does not execute any actions and all outputs are set to the default value.

NotConnected

Enumeration name:

NotConnected

Enumeration value:

5

Description:

A connection to a Lexium Cobot controller is not established.

A connection to a Lexium Cobot controller is not established.

The property etConnectionState does not report the value ET_ConnectionState.Connected.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

The method was called successfully.