Method ITcIoCyclic:OutputUpdate
The OutputUpdate method is normally called by a TwinCAT task after the interface has been logged in.
Syntax
virtual HRESULT TCOMAPI OutputUpdate(ITcTask* ipTask, ITcUnknown* ipCaller,
PDWORD pdwStateOut = NULL, ULONG_PTR context = 0)=0;
Parameters
ipTask: (type: ITcTask) refers to the current task context.
ipCaller: (type: ITcUnknown) refers to the calling instance.
pdwStateOut: (type: DWORD) [out] reserved for future extensions, currently returned value is ignored.
context: (type: ULONG_PTR) context contains the value which has been passed to method ITcCyclicCaller::AddIoDriver()
Return value
If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.
Description
In a task cycle the method OutputUpdate() is called for all registered module instances. Therefore this method must be used for updating the data areas of the type Output-Destination of the module.