Home
Home
fixed in https://github.com/HAHermsen/co5e-XML-File-Handling
coše-XML-File-Handling https://github.com/HAHermsen/co5e-XML-File-Handling Also contains a good usage example
FB_WSTRINGBuffer
The user is encouraged to use the new improved String Library from CODESYS instead if they wish to use WSTRING / UTF8 or UTF16. The library has been moved under the www.co5e.org umbrella.
since CODESYS will roll out this feauture, this ticket is closed.
Create .yml pipeline and tuned manifest
move library source under co5e control
https://github.com/HAHermsen/co5e-XML-File-Handling
Home
Yes, probably quite soon actually
Will you change the name of the library to be inline with Co5e naming?
Home
Home
Home
Home
Home
Home
Add interfaces to FB's
Add interfaces to FB's
Home
Home
Home
move library source under co5e control
move library under co5e control
Create .yml pipeline and tuned manifest
Home
Home
Home
FB_WSTRINGBuffer
Home
deleted non-working doc-export command
Changed order
Home
Seek path variable changed from STRING to T_MaxString. Is required for deep nested xml file, or long tag names.
When the buffer is smaller than the filesize, it could happen that some data was not correctly parsed.
added (project embedded) xml file
Example project with small buffer and large file. creates a list of recipes with the memory location in the file. then details from this recipe can be parsed on request.
Added method to get current position where file is searched to be able to read the rest of the file.
Home
Home
Home
Home
Release [r66] as tag for download
Home
Home
Home
commit of trunk and tag example
example for trunk v0.4.0.0
commit of
binary commit of v0.4.0.0
Trunked v0.4.0.0 from Branch TimvH
Actually I think I know where I went wrong. Thanks for your help!
Oh! The file I downloaded was a compiled library though?
v0.4 is ready for tagging so expect it soon, it has a seperate example which both parses and composes. ps I suspect your composing code is missing the initialisation of the buffer; XML.SetBuffer(pString:= ADR(Buffer), iSizeOf:= SIZEOF(Buffer)); If initilised you should also itterate you xml tree. Anyway, all is laid out in the v0.4 example too
Thanks @aliazzz I don't purposely intend to prepend. Composing works well, nice work here! I have tried again using 0.3.3.0 and the example project provided. The Parse action from the example tries to call ReadFile & GetTagData on XML (FB_XmlControl) that are not valid. There is a Read method in FB_FileControl but changing ReadFile to Read still results in a not defined error.
Since the library is not compiled, you can open the library in CODESYS, delete the CFUnit reference from the library manager of the project and save. If you "Save Project and Save Into Library Repository" then your XMLPAC reference in your project will update automatically. https://help.codesys.com/api-content/2/codesys/3.5.13.0/en/_cds_cmd_save_project_and_save_into_library_repository/
Hi aliazzz! Could you walk me through how to remove the library reference? I don't see an option to delete the library
v0.4.0.0
Release [r66] as tag for download
Compose Example
Thank you for your kind feedback :-) Parsing is fixed in branch [r66] A library which parses correct is found here; https://forge.codesys.com/lib/xml-pac/code/HEAD/tree/branches/timvh/library/xml-pac.library?format=raw An an example included, I will publish this as a tag asap for public usage. PS Prepend is phased out in the newest version. If you wish to use prepend, you must add/write it yourself.
Thank you for your kind feedback :-) Parsing is fixed in branch [r66] A library which parses correct is found here; https://forge.codesys.com/lib/xml-pac/code/HEAD/tree/branches/timvh/library/xml-pac.library?format=raw An an example included, I will publish this as a tag asap for public usage.
fixed in branch [r66] A library which parses correct iws found here; https://forge.codesys.com/lib/xml-pac/code/HEAD/tree/branches/timvh/library/xml-pac.library?format=raw Ther is also an exampkle in cluded, will publish this as a tag asap.
At this time the parsing is still a bit buggy..
fixed in branch [r66]
Compose Example
FB_StringBuffer Issue
library including:
create library folder
example including reading tag value (lib 0.3.4.0)
example reading tag value
thanks, the library isn't compiled so this worked for me
CFUnit 0.9.1.0
I suggest you simply remove the library reference to cfunit from your version of xmlpac.
CFUnit 0.9.1.0
Ok. Firstly, I was made two instances of XmlControl.FB_XmlControl. Then in the code, the mistake was, the other instance was called two times. And the other was not called anytime. The outcome was that when pressing 'Login' button the Codesys opened the window named 'FB_StringBuffer.Prepend.Set[From XML parsing and composing library]'. That is what has been imagined on earlier in the ticket. The fix was, just calling the instances once, both of them. After that everything runs properly. PS Yes exactly,...
Thanks for the feedback. But for completeness, could you tell what your mistake is? This so that others can benefit from it. I hope to read your "mistake" and fix here soon ;-) PS without mistakes, there is nothing to be learned... how boring would that be? PS I can add you to the developers so you can add / debug new features if you wish. This is the power of open source. We all benefit this way.
Thanks for the feedback. But for completeness, could you tell what your mistake is? This so that others can benefit from it. I hope to read your "mistake" and fix here soon ;-) PS without mistakes, there is nothing to be learned... how boring would that be?
Thanks for the feedback, but completeness, could you tell what your mistake is? This so that others can benefit from it.
Hi Aliazzz, I got the issue totally solved. There was a bug due to mistake of mine. So this Issue can be closed. Thank about helping with the issue. PS I hope development of this Library will be continued in the future. This is good and useful library for CODESYS. Best regards, peve
Hi Aliazzz, I got the CfUnit library linked to XML parsing and composing library with success. But the original problem showed up again. Do you have some further instructions to this problem, how to solve the buffer problem? Best regards and thanks a lot beforehand, peve
Hi, Thank you Aliazzz about quickly answering. Yes I noticed that the version of CfUnit library is 0.9.1.0. I downloaded with success the CfUnit v1.1. But now the problem is that how to add this newer version in use under XML parsing and composing library? I tryed to link it to this library multiple times but not with success.
Hi, Thank you for your feedback and kind remarks. The version that is posted here is slightly older then the one found embedded within CfUnit v1.1. I suggest you download it and use that one. PS There is still a lot to be done on the parsing of XML so don't expect it to work properly. Regards Aliazzz
Hi, Thank you for your feedback and kind remarks. The version that is posted here is slightly older then the one found embedded in CfUnit v1.1. I suggest you download it and use that one. Regards Aliazzz
Hi, Thank your feedback. The version that is posted here is slightly older then the one found embedded in CfUnit v1.1. I suggest you download it and use that one. Regards Aliazzz
FB_StringBuffer Issue
and in addition a better picture of the issue