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:
The name of the function must have a prefix „Callback“.
The function must have a return value of a data type of 4 byte length.
The function must have exactly three parameters of a data type of 4 byte length.
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 |
dwValue |
DWORD |
Return of the called function |