L_IF1P_GetConnectDevice

This FB is used to determine whether a function is connected to a device. It also shows which device the function is connected to.

 

 

 

L_IF1P_GetConnectDevice

 

 

 

BOOL

–

 

xExecute

xBusy

 

–

BOOL

L_IMHP_IModuleHandler

–

 

FunctionModuleHandler

xDone

 

–

BOOL

 

 

 

 

xError

 

–

BOOL

 

 

 

 

eErrorId

 

–

L_IE1P_Error

 

 

 

 

eConnectionState

 

–

L_IF1P_ConnectionState

 

 

 

 

DeviceModulehandler

 

–

L_IMHP_IModuleHandler

 

 

 

 

uiSubDevice

 

–

UINT

 

 

 

 

sDeviceName

 

–

STRING

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Info/adjustment options

xExecute

BOOL

FALSE->TRUE Start execution of the FB.

FunctionModuleHandler

L_IMHP_IModuleHandler

Module handler of the function.

Outputs

Name

Data type

Info/adjustment options

xBusy

BOOL

FB is executed.

xDone

BOOL

The data of the created function is output at the FB outputs.

xError

BOOL

An error has occurred.

eErrorId

L_IE1P_Error

If xError=TRUE: Error number of the error that has occurred.

eConnectionState

L_IF1P_ConnectionState

 

1

NotConnected

4

Connected

DeviceModulehandler

L_IMHP_IModuleHandler

Module handler of the connected device.

uiSubDevice

UINT

SubDevice of the device to be connected

Default: uiSubdevice = 0

Required for devices that provide several submodules, e.g. i700 double axis:

Axis A: uiSubdevice = 1

Axis B: uiSubdevice = 2

sDeviceName

STRING

Name of the connected device.