FTP Block Error: 503 Bad Sequence of commands.

FTP Block Error: 503 Bad Sequence of commands.

Hello everyone,
I am trying to send a local file to a FTP server using FTP block in Stratonng, Zenon EE 8.10.
All i could find on Help Manual is Inputs & Outputs of the block. Output Inst_FTP.STAT always shows 503. Acording to wikipedia page List_of_FTP_server_return_codes 503 means "Bad Sequence of Commands.

How i used is:
Inst_FTP('192.168.1.250','192.168.1.35','ftpkoztek ','******,'','','','','C:\Data_Rec\Arc\','First_Fi le.zip', '/Koztek/File_io_deneme/','','',3,enabled);

Manual says:
Inst_FTP2( IPSERVER(*STRING*), IPCLIENT(*STRING*), USER(*STRING*), PASSWORD(*STRING*), LIST_DIRECTORY(*STRING*), GET_REMOTEFILEPATH(*STRING*), GET_LOCALDIRECTORY(*STRING*), GET_REMOTEFILENAME(*STRING*), PUT_LOCALFILEPATH(*STRING*), PUT_LOCALFILENAME(*STRING*), PUT_REMOTEDIRECTORY(*STRING*), DEL_REMOTEFILEPATH(*STRING*), DEL_REMOTEFILENAME(*STRING*), OPERATION(*UINT*), ENABLED(*BOOL*) )

with the remark "Keep inputs which are not necessary empty."

I double checked IP addresses, username, password, path and file names. Even if I change them to some other form same return code shows up.

What am i doing wrong? Is there any working example of this code?

Thanks in Advance!


This is a migrated post! Originally posted on 03.07.2020 by user tugcan72. Please be aware that information can be outdated.