FTP server merges text file

Hi guys,

I have a question or better said problem with the FTP server of the PLC. If I delete a text file on the server and then copy a text file with the same name but a shorter length to the server, the content that was longer in the first file is copied into the second file on the server. It is merged, so to speak. This behavior is absolutely reproducible and occurs both with FileZilla and with our own tool (.NET). Has anyone ever observed this behavior?

PLC: X20EM0612
Automation Runtime: I4.93

Best regards
Philipp

Hi Philipp,
I attempted to reproduce this issue on a C80 with the same AR version and Filezilla, but could not see the behavior you were getting.

Could you go into a little more detail about the exact order of operations you performed to get to the result you did?

My own order of operations was as follows:

  • Put numbers 1-10 in a text file on my PC
  • Copy this file to the PLC FTP server with Filezilla
  • Delete the file from the FTP server
  • Edit the file on the PC to have numbers 1-5
  • Copy the file to the PLC FTP server
  • Delete the File on the PC and copy it back from the PLC
  • Open the file on the PC and observe that the numbers read 1-5

Let us know if your order of operations was different so we can more accurately replicate your issue.

Hello,

thank you for your time. I have done further tests today and can say that the error is not directly on the FTP server, but generally has something to do with the file read access of the PLC. With a Windows fileshare there has also a problem occurred during deleting the file after it was opened with the PLC. I currently use the functionblocks FileOpen, FileRead and FileClose. I am not sure what it is, but the PLC seems to block the file somehow, even though it should be closed via the FileClose functionblock.

1 Like