My project stopped working after I ported it from eCockpit to Codesys. It’s using File Access library to open files from Linux system. For some reason that stopped working, I always get FILE_OPERATION_DENIED error when trying to open a file. Any solution for that? (I’m using PFC200 with FW28)
Hello this is not because of the port but because the newest FW setting are by default locked to where you can read/write with codesys file libraries.
Where is the file you want to edit / read ?
/etc/plcgw.d/plcgw.conf
Edit this file:
/etc/codesys3.d/RtsCore.cfg
and in the zone:
[SysFile]
FilePath=/home/codesys
FilePath.1=/usr/share/codesys3, 3S.dat
PlcLogicPrefix=1
PlaceholderFilePath.1=/tmp, $tmp$
PlaceholderFilePath.2=/media, $media$
Add :
FilePath.n=/etc/plcgw.d/plcgw.conf
Where n is the next number for the Filepath.
After a reboot you should be able to access this file in codesys