L_IF1P_ConnectDevice
This FB can be used to connect a function of the device tree (axis or encoder) to an ECAT slave or an I/O module.
The execution can take several cycles.
|
|
|
|
L_IF1P_ConnectDevice |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
BOOL |
– |
xExecute |
xBusy |
– |
BOOL |
||
|
L_IMHP_IModuleHandler |
– |
FunctionModuleHandler |
xDone |
– |
BOOL |
||
|
L_IMHP_IModuleHandler |
– |
DeviceModulehandler |
xError |
– |
BOOL |
||
|
UINT |
– |
uiSubDevice |
eErrorId |
– |
L_IE1P_Error |
||
|
BOOL |
– |
|
xDisconnectExistingConnection |
|
|
|
|
|
L_IF1P_DisconnectMode |
– |
|
eDisconnectMode |
|
|
|
|
|
|
|
|
|
|
|
|
|
Inputs
|
Name Data type |
Info/adjustment options |
|
|---|---|---|
|
xExecute BOOL |
FALSE->TRUE Start execution of the FB and establish connection. |
|
|
FunctionModuleHandler L_IMHP_IModuleHandler |
Module handler of the function that is to be connected. |
|
|
DeviceModulehandler L_IMHP_IModuleHandler |
Module handler of the device that is to be connected to the function. |
|
|
uiSubDevice UINT |
Submodule of a device with several submodules to be connected Default: uiSubdevice = 0 Example i700 double axis: Axis A: uiSubdevice = 1 Axis B: uiSubdevice = 2 |
|
|
xDisconnectExistingConnection BOOL
|
TRUE |
If a function is to be connected to a device that is already connected to another function, this connection is disconnected. |
|
FALSE |
If a function is to be connected to a device that is already connected to another function, an error is displayed. |
|
|
eDisconnectMode L_IF1P_DisconnectMode |
Behavior of the function when the connection has been disconnected: Virtual:
Disable:
|
|
Outputs
|
Name Data type |
Info/adjustment options |
|---|---|
|
xBusy BOOL |
New connection is configured.
|
|
xDone BOOL |
The connection between the function and the specified device (e.g. EtherCat slave) has been set. |
|
xError BOOL |
An error has occurred. |
|
eErrorId L_IE1P_Error |
If xError = TRUE: Error number of the error that has occurred. |