# Read device serial number from CC100/PFC200

**URL:** <https://www.wago.community/t/read-device-serial-number-from-cc100-pfc200/786>\
**Category:** Hardware and Linux\
**Tags:** pfc200, linux, cc100\
**Created:** [February 23, 2024, 1:01pm UTC](https://www.wago.community/t/read-device-serial-number-from-cc100-pfc200/786 "2024-02-23T13:01:10Z")\
**Posts on this page:** 6\
**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:** [February 23, 2024, 1:01pm UTC](https://www.wago.community/t/read-device-serial-number-from-cc100-pfc200/786/1 "2024-02-23T13:01:10Z")

</div>

Is there a known command to read out the device serial number “UN315640102…95+000000…” via command line?

![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/2a58f04f13a0a8a654e702a4f6ac0ae3fa665a78.png)

---

<div class="post-metadata">

**Author:** ![PatrickR](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/patrickr/32/262_2.png) [@PatrickR](https://www.wago.community/u/PatrickR)\
**Post date:** [February 23, 2024, 3:11pm UTC](https://www.wago.community/t/read-device-serial-number-from-cc100-pfc200/786/2 "2024-02-23T15:11:16Z")

</div>

Hi,  
/etc/config-tools/get\_coupler\_details serial-number

root@PFC200V3-43504C:~ /etc/config-tools/get\_coupler\_details serial-number  
12SUN12364010260371234+0000000000012348 root@PFC200V3-43504C:~

---

<div class="post-metadata">

**Author:** ![Alexander\_Landfried](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/alexander_landfried/32/306_2.png) [@Alexander\_Landfried](https://www.wago.community/u/Alexander_Landfried)\
**Post date:** [February 27, 2024, 7:21am UTC](https://www.wago.community/t/read-device-serial-number-from-cc100-pfc200/786/3 "2024-02-27T07:21:52Z")

</div>

Hi,

For Newer FW you can also use **/etc/config-tools/get\_typelabel\_value UII** to Print the UII Number of the Device.

---

<div class="post-metadata">

**Author:** ![MikePsaltis](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/mikepsaltis/32/47_2.png) [@MikePsaltis](https://www.wago.community/u/MikePsaltis)\
**Post date:** [March 5, 2024, 11:32pm UTC](https://www.wago.community/t/read-device-serial-number-from-cc100-pfc200/786/4 "2024-03-05T23:32:25Z")

</div>

Hi,

Is there a library that can read the serial number from CODESYS? I am guessing we could use the FuExecuteCommand fb to pass a command, but am looking to see if there is something already built.

Thank you,

---

<div class="post-metadata">

**Author:** ![MRegulski](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/mregulski/32/340_2.png) [@MRegulski](https://www.wago.community/u/MRegulski)\
**Post date:** [March 3, 2025, 11:43am UTC](https://www.wago.community/t/read-device-serial-number-from-cc100-pfc200/786/5 "2025-03-03T11:43:39Z")

</div>

Hi Mike,

I was exactly in the same situation as you and looking for a simple answer.  
It has started with customer’s enquiry to obtain serial number in CODESYS project.  
Unfortunately library “SysTarget”, even though equipped with function **SysTargetGetSerialNumber** , returns a MAC address instead of serial number.

One solution is to use library **WAGOAppConfigTool** :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/8/8f184edb62185e023f9e7eea5300f30746ef2fd8.png)

And add a fb call in your program:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/d/d0769cfe64c0c5bf91c82e3c13426d173b210f74.png)

@WagoDamRud has described it further in this post: [SSH command from CoDeSys - CODESYS - WAGO Open Source Community](https://www.wago.community/t/ssh-command-from-codesys/1048/3).

Hope this helps! 🙂

Marcin

---

<div class="post-metadata">

**Author:** ![Alexander\_Landfried](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/alexander_landfried/32/306_2.png) [@Alexander\_Landfried](https://www.wago.community/u/Alexander_Landfried)\
**Post date:** [March 3, 2025, 12:45pm UTC](https://www.wago.community/t/read-device-serial-number-from-cc100-pfc200/786/6 "2025-03-03T12:45:50Z")

</div>

Another way would be to use the Web Client SL with localhost communication and use the WDX Rest API. But this is more complicated then using the Config-Tool Script 😃

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/6/6290658ce91e455e5a9ecd37c4b04abdbc2bea92.png)

Hope they will add a Codesys Client Library for the WDX Component very soon!

Alex
