Interface ITcIoCyclic

This interface is implemented by TwinCAT modules that are called during the input update and output update within a task cycle.

Syntax


TCOM_DECL_INTERFACE("03000011-0000-0000-e000-000000000064", ITcIoCyclic)
struct __declspec(novtable) ITcIoCyclic : public ITcUnknown

Required include: TcIoInterfaces.h

Interface ITcIoCyclic 1: Methods

Name

Description

InputUpdate

Is called at the beginning of a task cycle if the interface is logged on to a cyclic I/O caller.

OutputUpdate

Is called at the end of a task cycle if the interface is logged on to a cyclic I/O caller.

ITcIoCyclic can be used to implement a TwinCAT module that acts as a fieldbus driver or I/O filter module.

This interface is passed to the method ITcIoCyclicCaller::AddIoDriver when a module logs on to a task, usually as the last initialization step in the transition from SafeOP to OP. After login, the InputUpdate() and OutputUpdate() methods of the module instance are each called once per task cycle.