▲ 1 r/Fanuc
FTP File Grab Ruby Script Help
I am using a 0iF Plus control with optional data server card.
I have a FTP server setup using FileZilla, info is set and I can ping it from the control.
We are creating a Fanuc Picture project where the operator can type in the file name and it will pull the file from the FTP server and dump it into the control. As part of that, I am wanting to create a Fanuc Picture script (MRuby) to go the ftp server, grab a file and dump it into //CNC_MEM/USER/PATH1/
Below is my ruby script so far, I am not getting any errors but it is not working.
ret = eth_open_ftp(1)
if ret[0] != EW_OK then
MsgBoxShow("ERROR",0)
end
ret = eth_get_ftp("TEST.txt",0,0,0)
if ret[0] != EW_OK then
MsgBoxShow("ERROR",0)
end
ret = eth_close_ftp()
if ret != EW_OK then
MsgBoxShow("ERROR",0)
end
u/Expensive-Bread3264 — 7 days ago