Import auto-generated code

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

    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.