Read device serial number from CC100/PFC200

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

image

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:~

1 Like

Hi,

For Newer FW you can also use /etc/config-tools/get_typelabel_value UII to Print the UII Number of the Device.

1 Like

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,

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:

And add a fb call in your program:

@WagoDamRud has described it further in this post: SSH command from CoDeSys - CODESYS - WAGO Open Source Community.

Hope this helps! :slightly_smiling_face:

Marcin

4 Likes

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 :smiley:

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

Alex

3 Likes