F_EcGetLinkedTaskOfSyncUnit

The name and object ID of the linked task of an EtherCAT Sync Unit can be read with this function. The return value of the function signals whether the call was successful and outputs the corresponding error code in case of an error.
Return value
METHOD F_EcGetLinkedTaskOfSyncUnit : HRESULT
Name | Type | Description |
---|---|---|
F_EcGetLinkedTaskOfSyncUnit | HRESULT | Signals whether the call was successful and outputs the corresponding error code in the event of an error. |
Inputs
VAR_INPUT
oidSyncUnit : OTCID; // object ID of sync unit
END_VAR
Name | Type | Description |
---|---|---|
oidSyncUnit | OTCID | The object ID of the Sync Unit is specified at this input. This can be found in the process image of the EtherCAT master. |
Outputs
VAR_OUTPUT
sLinkedTask : STRING;
oidLinkedTask : OTCID; // object ID of linked task
END_VAR
Name | Type | Description |
---|---|---|
sLinkedTask | STRING | Returns the name of the linked task. |
oidLinkedTask | OTCID | Returns the object ID of the linked task. |
Prerequisites
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.22 | PC or CX (x86, x64, Arm®) | Tc2_EtherCAT >= 3.3.17.0 |