Scan Base for Modules
An alternative to manually configuring IO Modules into the Base in the CODESYS IDE, there is an option that allows a user to scan the Base for IO Modules present and then populate these into the Base Device in the Project Tree.
Operation
The image below shows a system with IO Modules plugged into the Bases slots, but not yet populated in the Base device in the project tree as below:
Right click on Base and select Scan for Devices.. .
Select the Show differences in project option in lower right corner.
Click on the Copy All icon. Click ok and all modules will be populated.