EIPStartConnection: Start a Connection

Function Block Description

This function block starts the specified connection by accessing the corresponding control bits and then returns done when the connection is started.

Graphical Representation

G-SE-0047925.1.gif-high.gif

 

 

Inputs

This table describes the input variable:

Input

Data type

Comment

i_xExecute

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

A rising edge of the input Execute starts the function block. The function block continues execution and the output Busy is set to TRUE.

oFALSE: If Enable is set to FALSE, the outputs Done, Error, or CommandAborted are set to TRUE for one cycle.

oTRUE: If Enable is set to FALSE, the outputs Done, Error, or CommandAborted remain set to TRUE.

i_uiConnId

UINT

Connection id.

Outputs

This table describes the output variable:

Output

Data type

Comment

q_xDone

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Execution has not been started, or an error has been detected.

oTRUE: Execution terminated without an error detected.

q_xBusy

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Function block is not being executed.

oTRUE: Function block is being executed.

q_xError

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Execution of the function block is running, no error has been detected.

oTRUE: An error has been detected in the execution of the function block.