FTP File transfer

I am looking for the best way to transfer files between the user path of the PLC and a printer via FTP. I have not done this before so any setup would be appreciated.

Hi,

the PLC can be FTP server or client, so in general it depends on the printers capabilities how to go on.

I assume you have to transfer the files to the printer because they contain print jobs or similar, am I right?
If yes, in that case I think the printer is a FTP server, and you could use the FileIO library to transfer the files:

  • create a FTP client file device using DevLink function block
  • use the FileXXX function blocks, for example FileCopy, to transfer a file to the file device created with DevLink
  • after transfer, use DevUnlink to disconnect from the FTP server.

Best regards!

1 Like