Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Working code: ~~~
OpenFile := SysFileOpen(szFile:=BMS_GVLconstants.SystemFilePath, am:=.Sysfile.AM_READ, pResult:=ADR(udiOpenError));
~~~
Doesnt work anymore the OpenFile has the value 16#FFFFFFFF and pResult = 39
In desperation I also tried the CAA_FILE lib to read the file and that returns the error FILE_OPERATION_DENIED.
As everything worked before, the files are present and the permissions are the same I blame codesys..
I even tried to change the file permissions to 777 and change the user and group to no avail.
Hopefully someone can point me in the correct direction.
Earlier I used Codesys 3.5.16.30 for enginnering and 4.0.0.0 as runtime
Now I use Codesys 3.5.19.0 for engineering and 4.8.0.0 as runtime and all devices and librarys updated to latest versions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After much digging I found the following (Attachement)
So can i change it in the user.cfg file ? And what should the section in that case in the cfg file be named?
I also had noticed the same problem.Infact the file access with SysFileOpen was working till CODESYS Control for Raspberry Pi MC SL V 4.6.0.0
Manual editing of user.cfg file wouldnt be a desirable method especially for Codesys IO libary packages which need some specific file access in some working directory in linux.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Working code: ~~~
OpenFile := SysFileOpen(szFile:=BMS_GVLconstants.SystemFilePath, am:=.Sysfile.AM_READ, pResult:=ADR(udiOpenError));
~~~
Doesnt work anymore the OpenFile has the value 16#FFFFFFFF and pResult = 39
In desperation I also tried the CAA_FILE lib to read the file and that returns the error FILE_OPERATION_DENIED.
As everything worked before, the files are present and the permissions are the same I blame codesys..
I even tried to change the file permissions to 777 and change the user and group to no avail.
Hopefully someone can point me in the correct direction.
Earlier I used Codesys 3.5.16.30 for enginnering and 4.0.0.0 as runtime
Now I use Codesys 3.5.19.0 for engineering and 4.8.0.0 as runtime and all devices and librarys updated to latest versions.
Checked the log and nothing there regarding reading my file but the following messages were availible.. Something about sysfile... Maybe helps...?
After much digging I found the following (Attachement)
So can i change it in the user.cfg file ? And what should the section in that case in the cfg file be named?
I also had noticed the same problem.Infact the file access with SysFileOpen was working till CODESYS Control for Raspberry Pi MC SL V 4.6.0.0
Manual editing of user.cfg file wouldnt be a desirable method especially for Codesys IO libary packages which need some specific file access in some working directory in linux.