Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I'm trying to read the Serial number of the PLC using the SysTarget library function, "SysTargetGetSerialNumber" function.
I get a result of 12, when I'm expecting a value of 2341920805002900322006146049 for the Serial number.
What am I missing?
I have included the screenshot of the running program.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your reply. I'm trying this on a Festo PLC (CECC-LK).
Is there another way to read any unique ID of the PLC? Say Mac ID or Serial number as an example.
Edwin Schwellinger hat geschrieben:
Hi,
which plc are you using,
this does not work at the moment... will be implemented to the 3.5SP13 - (June) release.
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to read the Serial number of the PLC using the SysTarget library function, "SysTargetGetSerialNumber" function.
I get a result of 12, when I'm expecting a value of 2341920805002900322006146049 for the Serial number.
What am I missing?
I have included the screenshot of the running program.
Hi,
which plc are you using,
this does not work at the moment... will be implemented to the 3.5SP13 - (June) release.
BR
Edwin
Hi Edwin,
Thank you for your reply. I'm trying this on a Festo PLC (CECC-LK).
Is there another way to read any unique ID of the PLC? Say Mac ID or Serial number as an example.
Hi,
see attached Project...
```
getnumberofadapters(ADR(diNumber));
FOR iAdapter := 0 TO diNumber DO
getadapterinfo(
iAdapterNum := iAdapter,
pbName := ADR(stName),
pbDescrition := ADR(stDescription),
iBuffersize := SIZEOF(stName),
iMacLength := 6,
sMacAdress := ADR(aby_address));
END_FOR
```BR
Edwin
GetMacAdressSp12.project [64.39 KiB]