CB.CallFunctionByIndex (FUN)

 

This function of the CAA_Callback.Library serves to call an IEC function indirectly via its POU index. The following constraints have to be regarded:

Input:

pPOUFunc

CAA.PVOID

POU-Index of the function to be called

dwParam1

DWORD

first parameter of the function to be called

dwParam2

DWORD

second parameter of the function to be called

dwParam3

DWORD

third parameter of the function to be called

peError

POINTER TO CB.Error

pointer on error ID

Output:

dwValue

DWORD

Return of the called function