Import auto-generated code

robinm
2020-07-14
2020-07-23
  • robinm - 2020-07-14

    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
  • sgronchi - 2020-07-16

    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
  • robinm - 2020-07-23

    Hi sgronchi,

    that's exactly what I was looking for! Many thanks for the pointer

     
    πŸ‘
    1

Log in to post a comment.