So I am using the text list as a lookup dictionary in a library. I am using the function DynamicTextGetDefaultText to get index value from the text list. Some things that I noticed so far:
1) DynamicTextGetDefaultText requires an additional scan cycle to be able to read out the text.
2) You must have a visu manager in your project in order to download the text list to reference it. Else, the return string will be empty.
My question is that if it is possible to somehow download this file into the controller and be referenced if the project does not use VisuManager?
Thanks,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
loraul10, I decided to place the array into a global variable lists and called that instead. This way, we can guarantee that the data is always available. I was really bummed out when I noticed this was not available. Hopefully, SP17 can address this and allow you to download text list from library without using Visu Manager
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I am using the text list as a lookup dictionary in a library. I am using the function
DynamicTextGetDefaultText
to get index value from the text list. Some things that I noticed so far:1) DynamicTextGetDefaultText requires an additional scan cycle to be able to read out the text.
2) You must have a visu manager in your project in order to download the text list to reference it. Else, the return string will be empty.
My question is that if it is possible to somehow download this file into the controller and be referenced if the project does not use VisuManager?
Thanks,
Another possibility is to use CSV file reader. You can convert a TextList to CSV file and then use this file inside your project.
There is a project in CODESYS Forge to write and read CSV files https://forge.codesys.com/prj/csv-write-read/home/Home/
Inside IIoT Libraries there is another CSV reader https://store.codesys.com/iiot-libraries-sl.html
BR
loraul10, I decided to place the array into a global variable lists and called that instead. This way, we can guarantee that the data is always available. I was really bummed out when I noticed this was not available. Hopefully, SP17 can address this and allow you to download text list from library without using Visu Manager