Menu

#37 Dynamic Text not working when XML-File is outside Projectfolder

now
closed
None
2018-02-26
2018-02-26
No

When using Dynamic Text with an XML-File from outside the Project-Folder (including path), CoDeSys copies this complete Path into the PLC-File. The Path is completely wrong from the perspective of the PLC, so the file could not be loaded:
e.g.
<dynamic-text-file>C:\USERS\FOO\DESKTOP\PROJ\TEXTFILES\DYNAMICTEXTS.XML</dynamic-text-file>
but the file on the PLC is named "dynamictexts_xml.zip".

Discussion

  • Frank Benkert

    Frank Benkert - 2018-02-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
     When using Dynamic Text with an XML-File from outside the Project-Folder (including path), CoDeSys copies this complete Path into the PLC-File. The Path is completely wrong from the perspective of the PLC, so the file could not be loaded:
     e.g.
    
    - <dynamic-text-file>C:\USERS\FOO\DESKTOP\PROJ\TEXTFILES\DYNAMICTEXTS.XML</dynamic-text-file>
    +     <dynamic-text-file>C:\USERS\FOO\DESKTOP\PROJ\TEXTFILES\DYNAMICTEXTS.XML</dynamic-text-file>
     but the file on the PLC is named  "dynamictexts_xml.zip".
    
     
  • Frank Benkert

    Frank Benkert - 2018-02-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,7 @@
     When using Dynamic Text with an XML-File from outside the Project-Folder (including path), CoDeSys copies this complete Path into the PLC-File. The Path is completely wrong from the perspective of the PLC, so the file could not be loaded:
     e.g.
    
    -     <dynamic-text-file>C:\USERS\FOO\DESKTOP\PROJ\TEXTFILES\DYNAMICTEXTS.XML</dynamic-text-file>
    +```
    +<dynamic-text-file>C:\USERS\FOO\DESKTOP\PROJ\TEXTFILES\DYNAMICTEXTS.XML</dynamic-text-file>
    +     ```
     but the file on the PLC is named  "dynamictexts_xml.zip".
    
     
  • Frank Benkert

    Frank Benkert - 2018-02-26

    With r78 only the filename part of the path is used and the ".xml" is replaced by "xml.zip" when the visu is packed.

     
  • Frank Benkert

    Frank Benkert - 2018-02-26
    • status: accepted --> closed
    • assigned_to: Frank Benkert
     

Log in to post a comment.

MongoDB Logo MongoDB