I am dealing with a big dashboard project and I would import autogenerated data for the communication protocol in my project. The autogenerated data can be in structured text or any other language or format. Is it possible ? How ?
Otherwise, is it possible to create a library with the autogenerated code to import it after ?
Thanks for the help
Last edit: robinm 2020-07-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can use the scripting engine: https://help.codesys.com/webapp/idx-scriptingengine;product=ScriptEngine;version=3.5.16.0
IecLanguageObjectContainer enable creation of POU, DUT, GVL, interfaces and so on.
You can add devices, but IIRC you cannot change their mappings (however you can import automatically a CSV).
Or you can go the XML (PLCopen or native) route.
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Codesys community,
I am dealing with a big dashboard project and I would import autogenerated data for the communication protocol in my project. The autogenerated data can be in structured text or any other language or format. Is it possible ? How ?
Otherwise, is it possible to create a library with the autogenerated code to import it after ?
Thanks for the help
Last edit: robinm 2020-07-14
You can use the scripting engine: https://help.codesys.com/webapp/idx-scriptingengine;product=ScriptEngine;version=3.5.16.0
IecLanguageObjectContainer enable creation of POU, DUT, GVL, interfaces and so on.
You can add devices, but IIRC you cannot change their mappings (however you can import automatically a CSV).
Or you can go the XML (PLCopen or native) route.
Hi sgronchi,
that's exactly what I was looking for! Many thanks for the pointer