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

Convert V2.3 to V3

2011-06-07
2012-04-23
  • Frank Jepsen - 2011-06-07

    Hi,

    Is there a command to open and convert V2.3 binary libraries from the script engine?

    I have tried to run 'projects.open("c:\oldlib.lib")', but I get:

    [INFORMATION] convert.py(2): Begin of script
    [INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")
    [INFORMATION] convert.py(2): exception (<type 'exceptions.exception'="">, Exception('not a zip file',), None)
    [INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")
    [INFORMATION] convert.py(2): exception (<type 'exceptions.exception'="">, Exception('not a zip file',), None)
    [INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")
    [INFORMATION] convert.py(2): Return from script
    [INFORMATION] convert.py(2): proj = projects.open("c:\oldlib.lib")</type></type>

    I know this was a long shot because the documentation says nothing about converting... Only opening:
    IExtendedObject<iscriptproject> open(
    string path,
    string password,
    bool primary
    )</iscriptproject>

    I am using CoDeSys V3.4 SP3 Patch 1.

    Best regards,
    Frank Jepsen
    kk-electronic a/s

     
  • Anonymous - 2011-06-07

    Originally created by: M.Schaber

    Hi,

    Currently, there is no such command.

    This feature is already on our TODO list, but we do not have any planned release date yet.

    Markus

     
  • Frank Jepsen - 2011-06-07

    Hi Markus,

    Thanks for the quick answer. Not the answer I hoped for, but glad that the feature is on your TODO.

    // Frank

     
  • Frank Jepsen - 2012-04-23

    Hi,

    Just to help other people who are looking for it. In V3.5 Patch 3 the following command will do the conversion from V2.3 to V3 library for you:

    proj = projects.convert("c:\myfunction.lib", "c:\myfunction.library", "{941937BF-9A12-4174-814E-63D1523C94CC}")
    

    Regards,
    Frank

     

Log in to post a comment.