CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Jun 25, 2019 4:43 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Convert V2.3 to V3
PostPosted: Tue Jun 07, 2011 8:39 am 
Offline
User avatar

Joined: Mon Jun 06, 2011 8:42 am
Posts: 47
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")

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
)

I am using CoDeSys V3.4 SP3 Patch 1.

Best regards,
Frank Jepsen
kk-electronic a/s


Top
   
 Post subject: Re: Convert V2.3 to V3
PostPosted: Tue Jun 07, 2011 8:59 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
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

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
 Post subject: Re: Convert V2.3 to V3
PostPosted: Tue Jun 07, 2011 9:03 am 
Offline
User avatar

Joined: Mon Jun 06, 2011 8:42 am
Posts: 47
Hi Markus,

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

// Frank


Top
   
 Post subject: Re: Convert V2.3 to V3
PostPosted: Mon Apr 23, 2012 1:19 pm 
Offline
User avatar

Joined: Mon Jun 06, 2011 8:42 am
Posts: 47
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:

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


Regards,
Frank


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited