We are still working on migrating to the new Bosch Connected Industry Online Portal. Stay tuned! Click here for the latest updates.
11-30-2023 08:16 AM - edited 11-30-2023 08:37 AM
Hello,
One issue I have is that I try to use FileSystemAccess Addon to read a .txt file from an remote PC with a same IP network segment,
at first I map the virtual drive into an Network drive Z:\ ,
and then input the path to the ParCmd.Name, command is as below:
FileSystemAccess.ParCmd.Name := 'Z:\test\Target\test3.txt';
but the FileSystemAccess Addon reply me an error: "ADS: File or target not found."
I want to know if there are some methods to read a file in drive of a remote PC(e.g. change some parameters or use another addon),
I need your Help, thanks!
Addon Version:1.0.6.0
Solved! Go to Solution.
11-30-2023 08:51 AM
It is impossible to access mapped network drives or volumes created by a subst command from the TwinCAT runtime. The reason is that TwinCAT operates on a system driver level. You will need to copy the file to the PLC target system before you can access it from TwinCAT.
11-30-2023 09:19 AM
Thanks! that's mean I have to use a RunProcess Addon to excute a batch file to copy the .txt file to PLC target system, then use the FileSystemAccess to read it? but for a batch file, it seens hard to get the error which the batch file returns, is there any solution?
11-30-2023 09:50 AM
The exit code of the batch file should be available in the RunProcessAddon. I haven't tested this though. Have you already tried if this works?
12-01-2023 07:55 AM
Not yet, but I will keep you informed about the test results when we conduct it in the future.
in your reply: It is impossible to access mapped network drives or volumes created by a subst command from the TwinCAT runtime.
Do you mean there is no twincat command, that can access the network drives?