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
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.