Iβm encountering an issue when downloading CSV files via the WebVisu button input config -> file-transfer option:
β’ Custom directory: /plcdata/csv_logs/filename.csv
o Error: Error 4 β Error during file transfer
β’ Sandbox directory: /var/opt/codesys/PlcLogic/plcdata/csv_logs/filename.csv
o Result: Download succeeds without error.
Actions taken so far:
1. Added /plcdata/csv_logs to codesyscontrol.cfg (see attached).
2. Enabled file-transfer services in codesyscontrol_user.cfg (see attached).
3. Confirmed that the PLC writes CSV files correctly to /plcdata/csv_logs/.
Despite these settings, WebVisu still returns Error when accessing the custom path
1. Using the placeholder file path '$$CSVLOGS$$/filename.csv' and it returns Error 6.
2. Using the literal path /plcdata/csv_logs/filename.csv and it returns Error 4
Could someone please help me determine what additional configuration or troubleshooting steps are required to serve files from /plcdata/csv_logs/?
Please find screenshots attached for better understanding and I have also attached the config files
Iβm encountering an issue when downloading CSV files via the WebVisu button input config -> file-transfer option:
β’ Custom directory: /plcdata/csv_logs/filename.csv
o Error: Error 4 β Error during file transfer
β’ Sandbox directory: /var/opt/codesys/PlcLogic/plcdata/csv_logs/filename.csv
o Result: Download succeeds without error.
Actions taken so far:
1. Added /plcdata/csv_logs to codesyscontrol.cfg (see attached).
2. Enabled file-transfer services in codesyscontrol_user.cfg (see attached).
3. Confirmed that the PLC writes CSV files correctly to /plcdata/csv_logs/.
Despite these settings, WebVisu still returns Error when accessing the custom path
1. Using the placeholder file path '$$CSVLOGS$$/filename.csv' and it returns Error 6.
2. Using the literal path /plcdata/csv_logs/filename.csv and it returns Error 4
Could someone please help me determine what additional configuration or troubleshooting steps are required to serve files from /plcdata/csv_logs/?
Please find screenshots attached for better understanding and I have also attached the config files
Last edit: codesyslove 2025-06-13
Try without / at first, just 'plcdata/csv_logs/yourcsvfile.csv'