since I upgraded from AS4.12 to AS6 and Runtime 6.2.1, the FileIO FB FileInfo can not find my files on C: and returns error 20708 - fiERR_FILE_NOT_FOUND.
If i run the same project on AS4.12, everything works just fine.
I have to mention that i run the project on ARSim and only use C: during simulation.
Can someone tell me what changed? I can not find anything in the RevFiles of B&R…
i am just encountering a very similar problem with a fresh updated project (AS4.11 → AS4.12 → AS6.2).
So i’am sorry for hijacking your thread Philip, but the title is absolutely fitting.
Thanks for the Help but i am still unable to read the FileInfo.
Now i understand, that if ARSim is active, the Temp\Simulation Path is used for the F:/ partition but i can copy the file directly into this folder and he still returns the same error when i want to read the file info.
I checked the file name many times… i am lost…
I dont think it is a code error because with AR4.xx it works but wrong configuration of my file devices or because of ARSim…
The folder which USER_PATH is pointing to with ArSim is :
For instance :
If you want other folders in this USER_PATH, you have to create these folders with DirCreate.
We have a HMI, with a backend wich has to save a files into the F:/ partition by using the FTP Server of the PLC. But we test many things with the ARSim. In case of the simulation we have to tell the HMI on wich Path it has to copy the file.
Now i know since AR4.xx I have to use the USER_PATH.
Right know the path depends on the PLC config. So I would have to tell the HMI over OPC UA the file path. If I would be able to have always the same USER_PATH during simulation the HMI could have an constant path setting.
So i have three options.
use the offline installation dialog every time with the custom path
somehow automatically a constant path independent from the config
or i have to read the USER_PATH out and tell it the HMI