# Read PFC200 IP address, mask and gateway in Codesys 2.3 application

**URL:** <https://www.wago.community/t/read-pfc200-ip-address-mask-and-gateway-in-codesys-2-3-application/1070>\
**Category:** CODESYS\
**Tags:** pfc200, codesys\
**Created:** [July 2, 2024, 9:57am UTC](https://www.wago.community/t/read-pfc200-ip-address-mask-and-gateway-in-codesys-2-3-application/1070 "2024-07-02T09:57:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petrus](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@Petrus](https://www.wago.community/u/Petrus)\
**Post date:** [July 2, 2024, 9:57am UTC](https://www.wago.community/t/read-pfc200-ip-address-mask-and-gateway-in-codesys-2-3-application/1070/1 "2024-07-02T09:57:50Z")

</div>

Do you know if there is a library / other way to read the network configuration (IP, mask, gateway) in Codesys 2.3 application? And a method to read and write the network configuration to a file? I know that WAGO has a library for these needs in Codesys 3.5. However, the Codesys 2.3 will be the programming IDE here.

---

<div class="post-metadata">

**Author:** ![Petrus](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@Petrus](https://www.wago.community/u/Petrus)\
**Post date:** [July 3, 2024, 6:33am UTC](https://www.wago.community/t/read-pfc200-ip-address-mask-and-gateway-in-codesys-2-3-application/1070/2 "2024-07-03T06:33:46Z")

</div>

I found out that “ConfigToolFB” in WagoConfigToolLIB.lib should do the first work here. Just need to find out read/write a file.

---

<div class="post-metadata">

**Author:** ![RobPaq](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@RobPaq](https://www.wago.community/u/RobPaq)\
**Post date:** [July 3, 2024, 7:56am UTC](https://www.wago.community/t/read-pfc200-ip-address-mask-and-gateway-in-codesys-2-3-application/1070/3 "2024-07-03T07:56:48Z")

</div>

Hello,

The Ethernet.lib also has such functions. (in the targets 32 bits)  
To write a file, wagosysfile.lib can be useful.  
There are also some interesting functions for csv/text files in the Oscat Network Libraries. (Opensource libraries online)
