F_EcGetLinkedTaskOfSyncUnit

F_EcGetLinkedTaskOfSyncUnit 1:

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.

F_EcGetLinkedTaskOfSyncUnit 2: 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.

F_EcGetLinkedTaskOfSyncUnit 3: 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.

F_EcGetLinkedTaskOfSyncUnit 4: 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.

Requirements

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