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

Import auto-generated code

  • robinm

    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

    sgronchi - 2020-07-16

    You can use the scripting engine: https://help.codesys.com/webapp/idx-scriptingengine;product=ScriptEngine;version=
    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.

  • robinm

    robinm - 2020-07-23

    Hi sgronchi,

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


Log in to post a comment.