# Use CODESYS Edge Gateway

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

## Enable/disable Edge Gateway Maintenance Mode

1. Navigate to the IP address of your powerIO device: `http://<IP>:8080`
2. Click the "Password" field and press Enter to sign in 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\. Click the gear icon next to the application.

<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" %}
Enable:

* To enable Maintenance Mode, set the value to 1

Disable:

* To disable 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 that 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, enable it as described above. Otherwise, no configurations are possible.\
\
Active:\
![](/files/521ae5525a42d8fec18b1db793b80e23f937066c)

Inactive:\
![](/files/9aa2fbe7b571f8d2e90e38d837372d22be993b05)
{% endhint %}

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

<figure><img src="/files/018ae7d39817b32ac15abaae9b1e313a16ee683e" alt="" width="563"><figcaption></figcaption></figure>

6\. A new window will open. You must enter the login credentials here.&#x20;

<figure><img src="/files/7e875b3be10337a45fd74450d6a795b932e1cdc1" alt="" width="375"><figcaption></figcaption></figure>

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

7\. Now you can assign a name to the Edge Gateway. Clicking "Connect to Server" will establish the connection to the Automation Server.

<figure><img src="/files/e2f1b7553f6d94c7e3b221acae9a4ea6e1addccc" alt="" width="563"><figcaption></figcaption></figure>


---

# 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://support.powerio.com/hub/faq-and-news/en/hvac-codesys-faq/codesys-edge-gateway-verwenden.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.
