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 Jan 28, 2020 11:43 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to Parse XML in IEC
PostPosted: Tue Oct 29, 2013 2:45 pm 

Joined: Fri Nov 23, 2012 11:42 am
Posts: 54
I wish to be able to parse an XML file from an IEC function block as an asynchronous activity. I have been looking in CmpXMLParser and the only interfaces exposed for this is CreateXMLParser2, _ and FreeXMLParser. _ is a blocking interface, and deals with the whole XML file in one go. I need to spread the load over multiple block updates.

When I look in the CmpXMLParseItf file there is another XML parsing interface declared that we have successfully used in a runtime component CreateXMLParser, _ and FreeXMLParser. This interface takes a buffer containing a portion of the xml file and parses just that chunk. If I combine this with the SysFileAsync library I should be able to achieve what I need.

The problem appears to be that the library does not offer access to the functions in this interface. How can I call these interface functions from IEC code.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 4 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