Modules

Modules 1:
Expand Solution Explorer > TwinCAT Project > SYSTEM > TcCOM Objects > Object (ProcessingUnit)
Double-click on Object (AT2xxx-0xxx)
Modules 2:
In the project window click on the Context tab
Select the appropriate task from the Task drop-down menu
Modules 3:

The PositionIndex defines the position of the module in the XTS system. The first module has the hardware position 0, the other modules are counted in ascending order. The number of modules minus one gives the hardware position for the last module.

Modules 4:
Click the Parameter (Init) tab in the project window
Expand General
Enter a continuous value in the PositionIndex input field, starting with 0 for the first module
Modules 5:
Select the module used in the drop-down menu MotorTerminalOID
Modules 6:
Select sensor channel in the SensorTerminalOID drop-down menu