> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/faq/faq-en/hvac-codesys-faq/codesys-edge-gateway-verwenden.md).

# Using the CODESYS Edge Gateway

To pair the CODESYS Edge Gateway with the powerIO systems and the CODESYS Automation Server, it is necessary to first put the gateway into maintenance mode. The article below explains which steps are required for this.

## Activate/deactivate Edge-Gateway Maintenance Mode

1. Navigate to the IP address of your powerIO device: `http://<IP>:8080`
2. Click the "Password" field and sign in with Enter or click "LOGIN".

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/aff3671b-439a-4182-8a0c-9126eebd7182/ascreenshot.jpeg?tl_px=767,393&#x26;br_px=2487,1354&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=524,276" alt="" width="563">

3\. Navigate to "Applications"

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/7e21fbaa-a574-4497-8a16-ef0305fea30f/ascreenshot.jpeg?tl_px=0,277&#x26;br_px=1719,1238&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=105,277" alt="" width="563">

4\. The gear icon next to the application must be clicked.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/4d6b0d06-55c4-4487-b298-034cea8f8020/ascreenshot.jpeg?tl_px=1454,0&#x26;br_px=3174,961&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=869,255" alt="" width="563">

**5. Select the "Gateway" configuration**

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/1a6bb083-c022-4fd3-860a-592b4de1f3d5/ascreenshot.jpeg?tl_px=0,263&#x26;br_px=1719,1224&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=448,277" alt="" width="563">

6\. Now adjust the settings in the "Gateway" configuration file.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/19d0f310-1ae3-4813-a0fb-9a6f74a79d52/ascreenshot.jpeg?tl_px=544,203&#x26;br_px=2264,1164&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=524,277" alt="" width="563">

{% hint style="warning" %}
Activate:

* To activate Maintenance Mode, set the value to 1

Deactivate:

* To deactivate Maintenance Mode, set the value to 0
  {% endhint %}

7\. Apply the setting by clicking "SAVE"

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/754e0fc3-d2b4-4c59-acb6-006740010ce9/ascreenshot.jpeg?tl_px=1454,1607&#x26;br_px=3174,2568&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=774,276" alt="" width="563">

8\. Restart the application so the configuration is applied.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/3740523e-8c2a-4fa5-a51e-44f8c23723ad/ascreenshot.jpeg?tl_px=1454,0&#x26;br_px=3174,961&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=994,257" alt="" width="563">

{% hint style="danger" %}
Please note that this also restarts the CODESYS Runtime. Without a restart, the setting will not be applied.
{% endhint %}

## Connect Edge-Gateway

1\. Navigate to "Tools"

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/270b1970-4d63-41ab-be07-d031a7b10bc3/ascreenshot.jpeg?tl_px=0,0&#x26;br_px=1719,961&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=425,5" alt="" width="560">

2\. Select "Edge Gateway" and then "Connect Edge Gateway"

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/9531674f-318d-4523-b7f7-e4a2d37798b5/ascreenshot.jpeg?tl_px=472,299&#x26;br_px=2192,1260&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=524,277" alt="" width="560">

3. Connect to the device

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/486a8087-a238-47c6-b5a4-a4b016459d55/ascreenshot.jpeg?tl_px=753,0&#x26;br_px=2473,961&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=523,159" alt="" width="560">

4\. Check the status of the Edge Gateway

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-05/5f61379c-abaa-4f91-bcf4-bd5c4fe61950/ascreenshot.jpeg?tl_px=767,0&#x26;br_px=2487,961&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/77328A_standard.png&#x26;wat_pad=524,217" alt="" width="560">

{% hint style="info" %}
In "configuration mode", it is shown whether maintenance mode is active. If it is inactive, activate it as described above. Otherwise, no configurations are possible.\
\
Active:\
![](https://content.gitbook.com/content/TYBzFv70TPLPkr2VWWUS/blobs/L68jHvG563e3MnNe2E1S/Screenshot%202024-08-06%20at%2012.00.18.png)

Inactive:\
![](https://content.gitbook.com/content/TYBzFv70TPLPkr2VWWUS/blobs/W3qcMoswzB5c3Lx9Zfef/Screenshot%202024-08-06%20at%2012.02.00.png)
{% endhint %}

5\. Enter the server URL and click "Check /Refresh"

<figure><img src="https://content.gitbook.com/content/TYBzFv70TPLPkr2VWWUS/blobs/59gTfVhSRQS0aMbfAXHm/Codesys%20development%20system%20Workflow%20-%20Step%204.png" alt="" width="563"><figcaption></figcaption></figure>

6\. Another window will open. The login data must be entered here.

<figure><img src="https://content.gitbook.com/content/TYBzFv70TPLPkr2VWWUS/blobs/92dpFifeb23fXMrrFaUk/Codesys%20development%20system%20Workflow%20-%20Step%208%20(1).png" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
If you do not yet have an Automation Server account, please follow the CODESYS instructions.- [Getting started with the CODESYS Automation Server](https://content.helpme-codesys.com/de/CODESYS%20Automation%20Server/_cas_first_steps.html)
{% endhint %}

7\. A name can now be assigned to the Edge Gateway. By clicking "Connect to Server", the connection to the Automation Server is established.

<figure><img src="https://content.gitbook.com/content/TYBzFv70TPLPkr2VWWUS/blobs/fJIfjdPxTL45mWzvhWfG/Codesys%20development%20system%20Workflow%20-%20Step%2019.png" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.powerio.com/hub/faq/faq-en/hvac-codesys-faq/codesys-edge-gateway-verwenden.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
