Method ITcCyclic:CyclicUpdate
The CyclicUpdate method is normally called by a TwinCAT Task after the interface has been logged in.
Syntax
HRESULT TCOMAPI CycleUpdate(ITcTask* ipTask, ITcUnknown* ipCaller, ULONG_PTR context)
Parameters
ipTask: (type: ITcTask) refers to the current task context.
ipCaller: (type: ITcUnknown) refers to the calling instance.
Context: (type: ULONG_PTR) context contains the value which has been passed to method ITcCyclicCaller::AddModule()
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.
At present, the return value is ignored by the TwinCAT tasks.
Description
Within a task cycle the method CycleUpdate() is called after InputUpdate() has been for all registered module instances. Therefore, this method should be used to implement cyclic processing.