Hi, I am trying to read .txt file with stored data to use it in my program. When I run it on robotstudio, the path I use is:
Open "HOME:" \file:= "example.txt", file \Read;
data: = ReadNum(file\Delim:="\0A");
Close file;
Till this point it works perfectly, but when I am trying to read this file from real controller I have some problems with the path. Basically, I do not know how to define this path.
PC and Controller are communicating via FTP: 147.83.107.32. When I acces manualy and store the file on the FTP server and try to debug from Teach Pendant I have an error.
Also i tried to acces with C:\path from local PC connected to the controller cia Ethernet and have the error.
Can someone help me with this issue please?
Open and read .txt file from IRC5 ABB Controller with RAPID
-
nazarinho_tfg -
May 26, 2018 at 1:27 PM -
Thread is marked as Resolved.
-
-
Here's a quick example from a robot I'm on today
Load "HOME:/programs/"\file:="Filename.MOD";
-
It is not clear what you want to do.
If you want to access the file on the ftp server you first have to transfer it to the controller. It is not possible to read a file direct from the ftp server. As the name ftp (file transfer protocol) says it is only possible to transfer complete files.