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/
Compose Example
thanks, the library isn't compiled so this worked for me
CFUnit 0.9.1.0
Thanks so much for sharing this.
I can easily do the following: VAR arrIndicatorColor : ARRAY[1..5] OF STRING; END_VAR arrIndicatorColor[1] := 'Red'; arrIndicatorColor[2] := 'Yellow'; . . . arrIndicatorColor[5] := 'White'; I'd prefer to set all the values of the array with a single line. ex: arrIndicatorColor := ['Red','Yellow','Green','Blue','White']; However this line of ST gives me an error "Unexpected array initialization". Is there a proper syntax? I can copy and paste, in my example it's only 5 array elements but if this was...
I can easily do the following: VAR arrIndicatorColor : ARRAY[1..5] OF STRING; END_VAR arrIndicatorColor[1] := 'Red'; arrIndicatorColor[2] := 'Yellow'; . . . arrIndicatorColor[5] := 'White'; I'd prefer to set all the values of the array with a single line. ex: arrIndicatorColor := ['Red','Yellow','Green','Blue','White']; However this line of ST gives me an error "Unexpected array initialization". Is there a proper syntax? I can copy and paste, in my example it's only 5 array elements but if this was...