Hello rankhornjp,
The batch file created in Notepad and saved as a .bat would be something like the following:
:: set the user name used to log into the FTP server
echo user USER>> ftpcmd.dat
:: set the password used to log into the FTP server
echo USER>> ftpcmd.dat
:: do a binary download instead of ASCII
echo bin>> ftpcmd.dat
:: specify which file you desire from the the PLC and where it goes on computer
echo put C:\Users\USER\Desktop\LogData.log /usr/log/LogData.log>> ftpcmd.dat
:: quit the FTP script
echo quit>> ftpcmd.dat
:: execute the FTP command to run with the generated file above
ftp -n -s:ftpcmd.dat 192.168.0.2
:: delete the generated file
del ftpcmd.dat
I have done this with the Modicon SoMachine based controllers ( M241/M251) thus the file and directory names above.
Alter to .csv instead of .log and check the acctual directory path for the log files in the M340 controller/SD card and your computer. As far as I know, creating a .csv in the M340 is possible but I've never done it before. Accessing it via ftp seems to be possible per the following :
http://www.schneider-electric.co.uk...ang=en&id=FA198219&locale=en_US&redirect=true
Creating the .csv file in the M340 seems to be possible with the BMX NOR 0200H module for the M340.
http://www.guilleviniag.com/downloads/Products/Schneider/M340/Manuals/M340 NOR 0200H Manual.pdf