stembera Posted August 14, 2020 Report Share Posted August 14, 2020 Hello World, please does anyone have an experience with sending files from Vision to a FTP server? Our client asked for that function. I downloaded the FTP client example to my V700 but I am not able to send data. I am testing the communication with local FileZilla server. Login of user works properly. Switch to PASSV works, too. The last command is STOR, FileZilla responds correctly. Nevertheless, when Vision starts sending data (function block TCP_RAW SEND), server did not recognize data as a stream but rather as an unsupported command. At the end, the file with proper name appears on the server but without any content (zero length of file). What am I doing wrong? ======= FIleZilla output: (000029)14.8.2020 13:29:34 - (not logged in) (10.100.0.222)> USER shcontrol (000029)14.8.2020 13:29:34 - (not logged in) (10.100.0.222)> 331 Password required for shcontrol (000029)14.8.2020 13:29:35 - (not logged in) (10.100.0.222)> PASS ******** (000029)14.8.2020 13:29:35 - shcontrol (10.100.0.222)> 230 Logged on (000029)14.8.2020 13:29:37 - shcontrol (10.100.0.222)> PASV (000029)14.8.2020 13:29:37 - shcontrol (10.100.0.222)> 227 Entering Passive Mode (10,100,0,111,252,170) (000029)14.8.2020 13:29:37 - shcontrol (10.100.0.222)> STOR TEST.CSV (000029)14.8.2020 13:29:37 - shcontrol (10.100.0.222)> 150 Opening data channel for file upload to server of "/TEST.CSV" (000029)14.8.2020 13:29:37 - shcontrol (10.100.0.222)> 2020.08.12 15:54;79.812;76.457 (000029)14.8.2020 13:29:37 - shcontrol (10.100.0.222)> 500 Syntax error, command unrecognized. (000029)14.8.2020 13:29:37 - shcontrol (10.100.0.222)> 226 Successfully transferred "/TEST.CSV" ======== (I do not append source code because it is just slightly modified example V700_FTP_client.vlp from VisiLogic Help menu). Thank you, Michal Quote Link to comment Share on other sites More sharing options...
stembera Posted September 5, 2020 Author Report Share Posted September 5, 2020 Update: I have asked Unitronics support for help so they sent me a new example program which works perfectly. Probably there is a mistake in original example file under Help --> Examples. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.