L_IF1P_DisconnectDevice

This FB can be used to decouple a function of the device tree (axis or encoder) from a connected ECAT slave or an I/O module.

The new behavior of the function can be defined via the eDisconnectMode input.

The execution can take several cycles.

 

 

 

L_IF1P_DisconnectDevice

 

 

 

BOOL

–

 

xExecute

xBusy

 

–

BOOL

L_IMHP_IModuleHandler

–

 

FunctionModuleHandler

xDone

 

–

BOOL

L_IF1P_DisconnectMode

–

 

eDisconnectMode

xError

 

–

BOOL

 

 

 

 

eErrorId

 

–

L_IE1P_Error

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Info/adjustment options

xExecute

BOOL

FALSE->TRUE Start execution of the FB and disconnect.

FunctionModuleHandler

L_IMHP_IModuleHandler

Module handler of the function.

eDisconnectMode

L_IF1P_DisconnectMode

Behavior of the function when the connection has been disconnected:

[1] Virtual:

  • The axis is still calculated as a virtual axis.

[2] Disable:

  • The axis is deactivated and no longer calculated.

Outputs

Name

Data type

Info/adjustment options

xBusy

BOOL

New connection is disconnected.

xDone

BOOL

Connection between the function and the specified HW device has been disconnected.

xError

BOOL

An error has occurred.

 

eErrorId

L_IE1P_Error

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