# Creating connection definition file

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

{% file src="/files/-Lt4tcfYKblHfXjxN1nX" %}
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](/files/-Lt4vLV8uw-yK1Io0jkV)

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](/files/-Lt55FEo2myS-QX0lD1e)

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.senseforce.io/manual/senseforce-edge/edge-configuration/input-plugins/siemens-sinumerik-plugin/creating-connection-definition-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
