The Process Image
After adding the I/O tasks, the process image of each task must be configured. Please see the TwinCAT System Manager. documentation for details on configuring the I/O tasks.
To be sure, that the used data types of the task variables in the System Manager configuration is the appropriate one for the C++ application, the System Manager can generate a header file for each task. definition.
An example of such a header file is shown below:
The header file contains the ADS Port number of the task, the size of the input and output process image (in bytes) and the variables of the process image as structure members.