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 Sat Feb 16, 2019 10:55 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Mar 11, 2015 1:23 pm 
Offline

Joined: Tue Feb 17, 2015 3:07 pm
Posts: 20
Hello,

does anyone know the exact differences (regarding the content) between IScriptObjekt.export_xml and IScriptObjekt.export_native ?

I want to recursively export all objects
- with export_native it works
- with export_xml there it always says that the set and get accessors are not exportable

I want to search for unique code numbers in the exported code
- with export_native it works
- with export_xml the programm alsways finds the unique numbers several times in different files

So the question is, what objects do I have to export with export_xml to get all the written code from the Project ?

Best regards
Florian


Top
   
PostPosted: Wed Mar 11, 2015 3:23 pm 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 233
Hi Infusion.

Infusion wrote:
does anyone know the exact differences (regarding the content) between IScriptObjekt.export_xml and IScriptObjekt.export_native ?

One method uses the PLCopen XML format and the other the CODESYS native XML format.

Infusion wrote:
- with export_xml there it always says that the set and get accessors are not exportable

Maybe they are not part of the PLCopenXML specification. I haven't read the specification.

Infusion wrote:
- with export_xml the programm alsways finds the unique numbers several times in different files

I think some objects can't be exported without their parent object. Have you tried to export the whole project in one file?

Infusion wrote:
So the question is, what objects do I have to export with export_xml to get all the written code from the Project ?

If you use CODESYS version V3.5 SP6 or newer and the relevant code is only in ST you could use the interface IScriptTextualObjectMarker to find the relevant objects and with the interface IScriptTextDocument of these objects you could manipulate the ST code directly.

BR
Martin

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

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


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


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