> For the complete documentation index, see [llms.txt](https://help.tillit.cloud/tillit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/edge/tillit-sensors/configure-fen-20-pnp-sensor.md).

# Configure FEN-20 PNP Sensor

### SOFTWARE LINKS:

Download and install Turck Service Tool

<https://www.turck.com.au/attachment/SW_Turck_Service_Tool.zip>

Download and install ARGEE programming environment

<https://www.turck.com.au/attachment/SW_ARGEE_Environment_v3.zip>

Download the Project File for AGREE

{% file src="/files/LRTl5kMvbpPap5b8hqVI" %}

## Turck Service Tool

The Turck Service Tool is used to find the IP Address of the FEN-20 device on the wired network. With the device connected via ethernet, click search to discover all FEN-20 devices on the network. Record down the IP Address and the machine/asset the FEN-20 is on for later reference.

<figure><img src="/files/NXCXJy32orTc0PO8Jbwq" alt=""><figcaption></figcaption></figure>

## AGREE Programming Environment

The AGREE programming environment is used to program the FEN-20. For our use-case, we use it to turn the input signal into a counter and make this available via Modbus TCP in its registers. All that needs to be done is to import the project file at the top of this page by performing the following steps.

* Open the AGREE Programming Environment in the extracted folder

<figure><img src="/files/3gzxYuD0lATGrfG9sX1F" alt=""><figcaption></figcaption></figure>

* Enter in the IP Address you found from the Turck Service Tool

<figure><img src="/files/CcjkjfEwE1j5KQxvTkrZ" alt=""><figcaption></figcaption></figure>

* Click Project in the title bar

<figure><img src="/files/4ehwu0sqwWDBS10KjtVA" alt=""><figcaption></figcaption></figure>

* Open a Project and select the FEN-20-Count-Signal.arg file

<figure><img src="/files/Z1faVOrLkkAzzz3tdHUj" alt=""><figcaption></figcaption></figure>

* You’ll now see the program. Click Run to send the project to the device

<figure><img src="/files/klPDQ3X5ElP4ulwNzxU5" alt=""><figcaption></figcaption></figure>

* Now the program is running on the device, we can see count signal input on AGREE\_TO\_PLC Register 0

<figure><img src="/files/KHRnpY3RGB5l54IAya0y" alt=""><figcaption></figcaption></figure>

* You can now safely exit the window, this can be either closing the tab or closing the browser window.
* Lastly, you can connect TilliT to read this count by configuring a Modbus TCP datasource and an edge data tag for register 16384


---

# 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 dynamically by asking a question.

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

```
GET https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/edge/tillit-sensors/configure-fen-20-pnp-sensor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
