# Creating connection definition file

Use the following tool to dynamically create the connection definition of your PLC or SINUMERIK:&#x20;

{% file src="<https://1533098984-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lj6tqYfpNT_59dZ_Z3Z%2F-Lt4sMViaXSh0eB7WZrf%2F-Lt4tcfYKblHfXjxN1nX%2FSIEMENS%20PLC%20CONFIG%20TOOLS.zip?alt=media&token=f4c15953-c9a9-414d-beb9-f8d82626bcda>" %}
SIEMENS PLC CONNECTION CONFIG TOOL
{% endfile %}

Open AGLink40\_Config.exe and select the folder of your S7/SINUMERIK plugin as a settings folder.

![Settings directory](https://1533098984-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lj6tqYfpNT_59dZ_Z3Z%2F-Lt4uxoZ_OqB8GeLhPH7%2F-Lt4vLV8uw-yK1Io0jkV%2Fimage.png?alt=media\&token=a3ca400d-c8b4-4153-ae17-cfa84061cf80)

Add the PLC and optionally the NCK to the "Connections" tab as illustrated below.

For best results first, add the PLC with PLC no 0 and then the NCK with PLC no 1.&#x20;

![Connection configuration tool](https://1533098984-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lj6tqYfpNT_59dZ_Z3Z%2F-Lt4uxoZ_OqB8GeLhPH7%2F-Lt55FEo2myS-QX0lD1e%2Fimage.png?alt=media\&token=e35720f5-e4b7-44eb-a9a3-7d2e0573cf19)

Click "Apply" or "OK" to persist the changes to your configuration definition file (AGLink40CfgDev0000.xml).&#x20;
