Hi,
for a project, I need to program in CODESYS about 10 PLC based on Raspberry Pi.
The PLCs need a unique identification code and some other parameters so I thought to use a text file (like a configuration file) that carry on the whole set of configuration parameters for different PLCs.
I think of something like this:
I need to read this file and extract the parameters to be used in PLC application.
I can save the file via FTP directly into a directory but I need to read its content in CODESYS PLC application side.
Could someone help me?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
for a project, I need to program in CODESYS about 10 PLC based on Raspberry Pi.
The PLCs need a unique identification code and some other parameters so I thought to use a text file (like a configuration file) that carry on the whole set of configuration parameters for different PLCs.
I think of something like this:
[Configuration File]
ID=xxxxxx
PORT=yyyyyy
NAME=ssssssss
and so on...
I need to read this file and extract the parameters to be used in PLC application.
I can save the file via FTP directly into a directory but I need to read its content in CODESYS PLC application side.
Could someone help me?
Thanks
Hi,
there is a ready to use product in the CODESYS store:
https://store.codesys.com/ini-file-utility.html
Sure you could implement it by Sysfile library too.
BR
Edwin
Thank you.
But how I could extract that data by myself?