Method ITcIoCyclic:InputUpdate
The InputUpdate method is normally called by a TwinCAT task after the interface has been logged in.
Syntax
virtual HRESULT TCOMAPI InputUpdate(ITcTask* ipTask,
ITcUnknown* ipCaller, DWORD dwStateIn, ULONG_PTR context = 0)=0;
Parameter
ipTask: (type: ITcTask*) refers to the current task context.
ipCaller: (type: ITcUnknown) refers to the calling instance.
dwStateIn: (type: DWORD) future extensions reserved; at present this value is always 0.
context: (type: ULONG_PTR) context contains the value that was transferred to the 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 InputUpdate() is first called for all registered module instances. Therefore this method must be used for updating the data areas of the type Input-Source of the module.