replacedfilezillaclient

filezillaclient  时间:2021-04-03  阅读:()
AppendixAExtendedFileSystemEXTENDEDFILESYSTEMFORFMDANDNANO-10PLCBeforeyoubegin,pleasedownloadasampleI-TRiLOGIprogramthatwillbereferredtothroughoutthismanualfromourwebsite:http://www.
tri-plc.
com/trilogi/ExtendedFileSystem.
zipA.
1IntroductionFMDandNano-10PLCswithr77orlaterfirmwaremaybeusedwithanewmodule:FRAM-RTC-256,which,asidefromadding11KwordsofFRAMandabattery-backedRTCmodule(likesitspredecessor:FRAM-RTC),alsoadds256KbytesofextendedfilespacetothePLC.
WithouttheFRAM-RTC-256,theFMDPLConlyhas60KbytesoffilememorytobeusedforstoringcontrolwebpagesasdescribedinChapter2.
9intheNano-10andFMDPLC'sUserManual.
(NotethedefaultfilespaceonFMDandNano-10PLCbeforefirmwarer77was64Kbytes,butithasbeenreducedto60Ktomakespaceforthenewr77firmware).
FRAM-RTC-256addsanadditional256KbytesoffilespacetothePLC.
Youcanusetheextendedfilespaceforstoringadditionalwebpages.
Butmoreimportantly,aPLCwithanewr77firmwarecanopenalocaldatafileinthisfilespaceandwrite/appenddatatoit.
ThePLCcanthereforelogalargeamountofdataintooneormoredatafiles,whichcanberetrievedforanalysis.
TherearetwowaystoretrievethestoreddatafilesfromthePLC:1.
DownloadthefilefromthePLC'sbuilt-inwebserver:ThefilecreatedbythePLCcanbedownloadedfromthePLC'sbuilt-inwebserverusinganywebbrowser.
Thisallowstheusertoaccessthedatafileatanytimeoftheday.
2.
AutomaticFTPuploadfromthePLCtoanexternalweb-server:YoucanprogramtheFMDorNano-10PLCtomakeanFTPclientconnectiontoanywebserveronthelocalnetworkorontheInternet/Cloudanduploadthedatafileithascreatedtotheweb-serverusinganyfilename.
ImaginewhattheFMDPLCorNano-10PLCcandowiththisnewuploadingcapability!
TheabilitytologdatalocallyandautomaticallyuploadthedatatoawebservertransformstheFMDPLCintoapotentdata-logger!
ThePLCcanbeprogrammedtocapturedaily,weeklyormonthlydataandthenperiodicallyuploadthedatafiletoanInternetwebserverwithaunique,time-stampedfilename(E.
g.
"temperaturelog2012-01-01.
xls").
ThisallowsthePLCtologdatacompletelyunattended.
AppendixAExtendedFileSystemThedatauploadedbythePLCtotheexternalwebservercanthereforebeviewedordownloadedintoaPCusinganywebbrowser,anywhereintheworld.
ThisallowsyoutocarryoutanalysisofpastloggeddatafileforperformanceordiagnosticanalysisatanytimewithouthavingtophysicallyaccessthePLCtoretrievetheloggeddata.
AdvantageofDataUploadingAlthoughitispossibletodirectlyaccessthePLC'sinternalwebservertodownloadthedatafileithascreated,thisrequireactiveactionbytheuserandtoensurethatthedataareretrievedbeforethefileisfullandhastobedeletedbythePLCtocreatespacetolognewdata.
ByprogrammingthePLCtouploadthedataperiodicallythePLCcandeletethefileafterithassuccessfullyuploadedthedatafiletofreeupspacetoacceptnewdata.
InotherwordsthePLCwillneverrunoutofdataspacetologdatasinceitcanstoretheloggedfilesonanyserverincludingtheCloud!
TodirectlyaccessthefilestoredonthePLCfromoutsideoftheLAN,youwillneedtosetuptherouterorfirewallto"forward"thePLC'sserverport(e.
g.
9080)tothePLC.
IfyouhavemultiplePLCsloggingdata,theneachPLCwillneedtohaveadifferentportnumberinordertoproperlyforwardthedata.
Thisnotonlycomplicatesthesetup,butalsoisoftenfrownuponbySystemAdministratorandmaynotevenbepermittedbythecorporatenetworksecuritypolicy.
ThePLCisdesignedtouploaddatatoanywebserverviaFTPpassivemodebyprovidingtheloginusernameandpassword.
UsingFTPpassivemodeallowsthePLCtoopenanetworkconnectiontoanexternalweb-servertouploadafileandthenclosetheconnectionimmediately.
ItdoesnotrequireopeningaportonyourroutertopermitexternalaccesstothePLCfromtheInternet.
Hencethereisnocomplicatedroutersetupinvolvedasthereisnoportforwardingrequired.
ItalsoeliminatesthesecurityriskfromsomeonetryingtotakecontrolofthePLCfromoutsideofyourLANandisgenerallymuchmoreacceptabletotheSystemAdministrator.
IfyouhavemultiplePLCsinuse,youcanprogrameachPLCtouploaddatatoadifferentdirectoryorappendadifferentfilenameprefix,ortodifferentservers,andonceprogrammedallPLCswillhappilylogdataunattendedindefinitely!
A.
2FileStructureandFileNamingofTheExtendedFileSystemAlloftheinformationinchapters2.
9and2.
10oftheNano-10andFMDUser'sManualregardingthebuilt-in60Kbytesofwebserverspacewillapplytotheextended256KbytesofdatafilestorageontheFRAM-RTC-256,withexceptiononthenamingschemewhichwillbeexplainedbelow:AppendixAExtendedFileSystem1.
AllfilesintheExtendedFilespacecanonlyusethefilename"Zxxx.
yyy".
2.
Thexxxpartofthebeginningofthefilenameisa3digitdecimalnumberwhichcanbeanynumberfrom000to127.
3.
The'yyy'partofthefilenameisthe"extension",andonlythefollowingMIMEextensionareacceptedbythePLC:HTM,JPG,GIF,CSS,JS,BIN,TXT,JAR,ZIP,XLSAnyotherextensionnameswillbereplacedwith"".
TheMIMEextensionarerespectedbythewebbrowserwhenyoudownloadafilefromthebuilt-inwebserversoyoushouldalwaysonlystorefileswithoneoftheaboveextension.
4.
Thefilespaceisdividedinto128"slots"witheach"slot"occupying2Kbytes.
Thefile"Z000.
yyy"occupiesthefirstslot,"Z001.
yyy"occupiesthe2ndslot.
.
,andthefile"Z127.
yyy"thelast2Kslot.
5.
Anyfilemayoccupymorethan1slotsoyoucanspecify"Z000.
yyy"tooccupytheentire256Kbytesofthefilespace.
Oryoucanconfigure"Z000.
yyy"tooccupythefirst5slots(10Ktotal)andthenextvalidfileshouldstartfromZ005.
yyywhichcanoccupythenext10slots(20Kbytestotal).
i.
e.
Ifyouwanttoallocate10KbytesoffilespacetofileZ000.
yyyyoucannotnotusenameanyfileZ001,Z002,Z003andZ004,otherwisethesefilewillcorruptthefilespaceofZ000.
yyy6.
Thismeansthattheprogrammerwillhavetodesignthefilespacecarefullyanddeterminehowtobestusethefilestructuretoprovidetherightbalancebetweenthenumberofdatafilesandtheamountofdataspaceallocatedtoeachdatafile.
Note:ThefilenamerestrictiononlyappliestofilesstoredonthePLC'sinternalfilespace.
WhenyouusetheFTPuploadfunctiondescribedlater,youcanspecifyanydestinationfilenameaslongastheyareacceptabletotheexternalFTPserver.
A.
3TransferringFilesToThePLC'sWebServerIfyouareonlyusingtheextendedfilespaceforthepurposeofstoringadditionalwebpagesonthebuilt-inwebserver,thenyoucanusetheFTPclientsoftwaresuchasFileZillaclienttotransfertheprogramtothePLC.
Section2.
9ofthePLCUser'sManualdescribesindetailshowtoconfiguretheFileZillaclienttocommunicatewiththePLC.
Pleasetakenotethatfilesthatarename0.
yyy,1.
yyy……toT.
yyyareonlystoredonthePLC'sonchipflashmemory.
OnlyfilesthatarenamedZ000.
yyy,Z001.
yyy….
Z127.
yyyarestoredontheFRAM-RTC-256asexplainedinthelastsection.
AppendixAExtendedFileSystemA.
4AccessingTheExtendedDataFilesUsingTBASICFMDandNano-10PLCwithr77firmwarecanaccesstheextendeddatafilespace(i.
e.
onlyfilenamesfromZ000.
yyytoZ128.
yyy)fromwithinTBASIC.
ThePLCcanopenanewfileforwritingnewdata(essentiallydeletingtheoldfilecontent),oropenanexistingfileandappenddatatotheendofthefile.
ItcanalsoopenafileandreaddatafromthefileasASCIIstrings.
ItcanachievethisbyusingthePRINT#8andINPUT$(8)functions,whichwillbedescribedindetailsinthefollowingsections.
A.
4.
1OpenAFileForWritingNewDataSyntax:PRINT#8""where"Zxxx.
yyy"isthefilename.
Ifsuccessfullyexecuted,the""commandwillopenthefileandsetthefilepointertothebeginningofthefile.
ThereafterthePLCcanstartwritingASCIIdatatothefileusingthePRINT#8command.
[Note:thePRINT#8commandautomaticallyappendsacarriagereturntotheendofthestringdataunlessthestringdataisterminatedwithasemi-colon(';')].
WhenthePLChascompletedwritingdata,itmustclosethefilebyexecutingthecommand:PRINT#8"".
E.
g.
PRINT#8""PRINT#8"ThecurrentGreenwichMeanTimeis"PRINT#8STR$(TIME[1]);":";STR$(TIME[2]);":";"00"PRINT#8""TheCPUshouldusetheSTATUS(2)commandtocheckwhetherthehasbeensuccessfullyexecutedbeforebeginwritingdatatoit.
STATUS(2)commandreturnsa1if""operationissuccessfulandreturnsa'0'iftheoperationfailed.
Thefollowingaresomepossiblereasonsthatcouldcausethe""commandtofail:a)ApreviouslyopenedFilewasnotclosed.
TheCPUcanonlywritetoasinglefileatatimesoanyopenedfilemustbeclosedbythePRINT#8""commandbeforeanotherfilecanbeopenedforwriting.
b)TheFRAM-RTC-256isnotinstalled.
ThePLCcanonlywritedatatotheextendeddatafilespace(i.
e.
filenameZxxx.
yyy)whichareonlyavailableifanFRAM-RTC-256isinstalled.
AppendixAExtendedFileSystemA.
4.
2OpenAFileForAppendingDataToTheEndOfTheFileSyntax:PRINT#8""where"Zxxx.
yyy"isthefilename.
Ifsuccessfullyexecuted,the""commandwillopenthefileandsetthefilepointertotheendofthefile.
ThereafteranystringdatafollowingaPRINT#8commandwillbeapendedtotheendofthefile.
WhenthePLChascompletedappendingdata,itmustclosethefilebyexecutingthecommand:PRINT#8"".
Asperthe""command,theCPUshouldalsousetheSTATUS(2)commandtocheckwhetherthecommandhasbeensuccessfullyexecutedbeforebeginwritingdatatoit.
Sincethesamereasonsthatcouldcausea""commandtofailwouldalsocausethe""commandtofail,pleaserefertothelastsectiononalistofpossiblecausesoffailure.
ExamplePRINT#8""S=STATUS(2)'Status(2)returns1ifsuccessful.
IFS1RETURN:ENDIFFORI=1to100PRINT#8STR$(I,4)+":ThisistheAppendedfirstline"PRINT#8STR$(I,4)+":ThisistheAppendedsecondline"SETLCD1,1,"Append#"+STR$(I,4)NEXTPRINT#8""'closethefileA.
4.
3DeleteAFileSyntax:PRINT#8""where"Zxxx.
yyy"isthefilenameofthefiletobedeleted.
Thereisnoneedtocloseadeletedfile.
A.
4.
4OpenAFileForReadingSyntax:PRINT#8""where"Zxxx.
yyy"isthefilenameofthefiletobeopenedforreading.
IfthefilehasbeensuccessfullyopenedforreadingafterexecutionofthePRINT#8""command,thePLCcanstarttoretrieveASCIIdatafromthefileline-AppendixAExtendedFileSystemby-lineusingtheINPUT$(8)command.
AlineiseitherastringthatisterminatedwithaCarriageReturncharacter(ASCII13),orisa70-characterlongstring(whichisthemaximumlengthofanystringvariablesA$toZ$)withoutcarriagereturn.
IneithercasethereturnstringdoesnotcontaintheCRcharacteritself.
ThePLCcancheckifafilehasbeensuccessfullyopenedforreadingusingtheSTATUS(2)functionAFTERexecutingthePRINT#8""command.
STATUS(2)willonlyreturna1ifafilehasbeensuccessfullyopened.
ThePLCcandetermineiftheEnd-of-File(EOF)hasbeenreachedusingtheSTATUS(2)functionaftereveryINPUT$(8)commandhasbeenexecuted.
STATUS(2)returnsa255iftheEOFhasbeenreached.
ThePLCshouldthenclosethefilebyexecutingthe"PRINT#8""command.
A$=""S=STATUS(2)IFS0SETLCD1,1,"FailedtoOpenFile"GOTO@100ENDIFC=0PRINT#8A$SETLCD1,1,A$WHILE1A$=INPUT$(8)S=STATUS(2)IFS=255EXIT:ENDIF'S=255meansEOFSETLCD2,1,A$DELAY50'Sothatreadercanreadfromthescreen.
C=C+1ENDWHILESETLCD1,1,"Read"+STR$(C)+"lines"@100PRINT#8""'closetheopenedfileAppendixAExtendedFileSystemA.
5SettingUpTheFileZillaFTPServerOneimportantcapabilityofthenewPLCwithr77firmwareistheabilitytouploadfilecreatedbythePLCtoanexternalserveronalocalareanetworkorontheInternetviatheFTPprotocol.
IfyouhaveaccesstoanFTPusernameandpasswordonyourcompany'sserver(oriftheSysAdminisauthorizedtosetupanaccountforyou)youcancertainlyuseyourownaccountfortesting.
Ifnot,youcandownloadthefreeFilezillaFTPServerandsetitupfortesting.
The"ExtendedFileSystem.
PC6"hasanFTPuploaddemoanditwasconfiguredtoworkwithaFileZillaFTPserver.
UsingFilezillahastheadvantagethatyoucanseetheloginsequenceperformedbythePLCwhenitattemptstoconnecttotheFTPServersothatitiseasiertotroubleshootconnectionproblem.
(Forprofessionalgradetroubleshooting,onehandyprogramtohaveisthe"Wireshark"programwhichisaTCP/IPpacketsnifferthatallowsyoutolookattheactualTCP/IPpacketssentbetweenyourPCandthePLC).
However,itisimportanttosetuptheFilezillaserverprogramproperlytominimizeconnectiontrouble.
A.
5.
1DownloadandSetupFTPServer1.
FirstdownloadtheFileZillaserverinstallerfromthefollowingwebsite:http://filezilla-project.
org/download.
phptype=server2.
Runthe"FileZillaServerInterface"programwhichismeantformanagingtheFTPServersettings.
3.
IftheFileZillaServerisrunningonthesamePCthatyouarerunningtheFileZillaServerInterfaceprogramthenyoucanusethelocalhostIPaddresswhichis127.
0.
0.
1–thePortcanbeanythingsincethisisaclientportthattheInterfaceAppendixAExtendedFileSystemprogramisusingtointeractwiththeFTPServer(don'tbeconfusedwiththeFTPServerlisteningportwhichisbydefault=21).
4.
IfthisisthefirsttimeyouruntheprogramaftersettingupFilezillaFTPServertherewillbenoAdministrationpasswordsoyoucanleaveitblank.
ClickOKtoconnect.
5.
Click"Edit->Settings"andthen"GeneralSettings->Welcomemessage"–leaveonlyonelineofwelcomemessagesothatthePLChaslessworktodo.
ThenclickOKtoacceptthechange.
6.
Click"Edit–>Users"inordertosetupausernameandpasswordforyourtest.
The"ExtendedFileSystem.
PC6"programusesausername="PLC"andpassword="1234"soforaquicktestyoumayliketosetupthesameusernameandpassword:7.
Atthe"General"pageofthesetupscreen,click"Add"buttonatthe"Users"panetoaddausername"PLC".
Sincenogrouphasbeendefinedsimplyleavethedefaultas""inthesecondtextboxasshowninthefollowingdiagram.
AppendixAExtendedFileSystem8.
Nextclick"Sharedfolders"pageandyoumustsetupafolderthatistobeusedtoreceiveuploadedfile.
Click"Add"atthe"Directories"panetoaddthefolder.
YoucanchooseanyfolderonyourPCtobeusedfortheFTPuploadandyoujusthavetorememberthelocationsothatyoucanlookfortheuploadedfilelaterinthetest.
However,makesurethatyoucheckallthecheckboxesfor"Read","Write","Append"etcasshowninthediagram.
9.
Click"OK"tocompletethesetup.
TheFTPservershouldnowbewaitingforconnection.
A.
5.
2TestingConnectionToTheFTPServerUsingTelnetYoucannowtesttheFTPServerusingtheFileZillaclientasmentionedinChapter2.
9ofthePLCUser'sManual.
AppendixAExtendedFileSystemButabetterwaytotestistousethe"Telnet"programonyourPC(ifyouarerunningWindowsVistaorWindows7youmayneedtoenabletheTelnetprogramsinceitisdisabledbydefault–doaquickGooglesearchonhowtoenabletheTelnetclientsoftwareonyourPC).
AlsoyoumaywanttofindouttheIPaddressofyourPCthatisrunningtheFileZillaServer.
IfyouhaveTLServerrunningonyourPCyourIPaddressisreportedontheTLServer'sfrontpanel.
YoucanalsogettheIPaddressfromtheWindows"NetworkConnectionStatus"asshownbelow.
OurtestPChasanIPaddress=192.
168.
1.
168whichwillbeusedinthefollowingtestsaswellasusedinthePLCprogramtoconnecttotheFTPServer.
1.
Firstopenacommandpromptwindowandthentype"telnet192.
168.
1.
16821"-thiswillopenatelnetconnectiontotheFTPserveronourtestPCwithIPaddress192.
168.
1.
168andlisteningatport21.
PleasereplacetheIPaddresswiththeactualIPaddressofyourPC.
Thefollowingscreenshotcapturesthetestsequence.
Notethatthesamecommand/responsesequencewiththeserverisalsoshownontheFileZillaServerInterfaceprogramfrontpanel:AppendixAExtendedFileSystemUSERPLCPASS12342.
Onceyougetthe"230LoggedOn"messageyouknowthattheFTPsetupisdonecorrectly.
NotethatthewelcomemessagefromtheFTPServershowsonlyoneline"220FileZillaServerVersionx.
xx"whichiswhatwehavesetituptobe.
YoucannowdisconnectfromtheFTPserverbytyping"Quit"atthecommandprompt.
3.
ThereisonemorethingsyouneedtodobeforeyouproceedtotesttheFTPuploadfeaturesofthePLCtoavoidconnectionproblem–thatistotemporarilyTURNOFFtheWindowsFirewallandanysoftwarefirewallsetupbyanti-virussoftwareduringyourtest.
Youcanalwaysre-enableyoursoftwarefirewall(s)afterthetestifyouwish.
PCoperatingsystemaredesignedtorunclientprogramnormallyinsteadofactingasaserversoWindowsFirewallbydefaultistoblockallincomingconnectionstotheFTPServer.
ThusitcangiveyoualotofheadachewhenyouaretryingtoconnecttotheFTPserveroperatingbehindtheWindowsFirewall.
Notes:a)ThemainpurposeofWindowsFirewallistoprotectyourPCwhenyouareconnectedtosayapublicwi-finetwork.
ButifyourPCisconnectedtotheInternetviaarouteratworkorathome,therouterhardwareitselfwouldactasafirewalltoisolateyourPCsandasoftwareFirewallisactuallyredundant.
(IfahackertriedtoconnecttoaporttoyourpublicInternetIPaddresswhathereachedwouldbetheportontherouterandhewouldnotbeabletoreachyourPCunlessyouhavespecificallysetuptoforwardallTCP/IPmessagessenttothatporttoaspecificPC).
AppendixAExtendedFileSystemb)IfyoureallywanttousetheFilezillaFTPServerasapermanentserveronaPCtoreceivefiles,andstillwanttohavetheWindowsFirewallenabled,youcanrefertothelastsectioninthischapterwhichdescribeshowtodoit.
AppendixAExtendedFileSystemA.
6UploadingFileFromPLCtoFileZillaFTPServerDirectoryA.
6.
1OverviewofTheFTPProtocolTheFTPprotocolrequirestwosocket-connectionsbetweenthedevicesperformingthefiletransfer.
Oneconnectionisthe"command"channelwhereFTPcommandssuchasSTORorDELEandtheresponsesaresentasplainASCIItextstringsbetweentheFTPclientandtheFTPserver.
Thesecondconnectionisthe"data"channelwhereonlythefilecontentorthefiledirectorydataarebeingtransferred.
Therearetwotransfermodes:"Active"modeand"Passive"mode.
Activemoderequiresthattheserverestablishadataconnectionbacktotheclient.
Passivemodeontheotherhand,requiresthattheclientalsobetheonetoestablishthedataconnection.
i.
e.
Forpassivemode,boththecommandandthedataconnectionsareperformedbytheclient(thePLCinthiscase).
ThePLChasbeendesignedtouseonlypassivemodetotransferfiletotheFTPserver.
PassivemodeispreferredbecausethatistheonlywaytotransferfileiftheFTPServerislocatedontheInternet.
ThealternativeactivemodetransferrequirestheservertomakeadataconnectionbacktothePLCthatissittingbehindarouterfirewall,andthatcanbeproblematicunlesstherouterisspecificallyconfiguredtoforwardthedataporttothePLC.
A.
6.
2PLCFTPUploadProcedureInordertouploadfiletotheFTPServer,thePLCwouldusethePRINT#4""commandtagtoconnecttotheFTPserverport21toestablishthe"command"connectiontotheFTPServer.
ThePLCusesitsPRINT#4tosendandINPUT$(4)toreceiveASCIItextstringsfromtheFTPserverviathecommandchannel.
ThePLCwouldthensendthecommand"PASV"toinformtheFTPserverthatitwantstotransferafileinpassivemode.
AtthispointyoucanusethePRINT#4commandtosendanyvalidFTPcommandtotheserver,includingchangingdirectory(CWDcommand–makesurethedirectoryexist),deletingafile(DELEcommand–bewareofwhatyouaredeleting!
)etc.
WhenthePLCisreadytostartafiletransfertotheFTPserver,theserverwillinturnprovidethePLCwiththeportnumberthatithasopenedforthePLCtoconnecttoestablishadataconnection.
UponreceivingthisportnumberthePLCwillmakeasecondTCPconnectiontothegivenportandthentheactualfiletransferwillbegin.
Anew,networkservicecommandtagnamed"FTPUPLD"handlesthenegotiationbetweentheFTPServerandthePLCaswellashandlingofthedatatransferfromthePLCtotheFTPserver.
Thefollowingisthesyntax:PRINT#4""AppendixAExtendedFileSystemWhere:Zxxx.
yyyisthefilenameoftheextendedfilethatthePLChasaccessto.
The[destinationfilename]canbeanylegalnameacceptabletotheserversoyoucanattachadateortimestamptothefilenameforeasyidentifications.
Whentheabovecommandisrun,thePLCwillsendtheactual"STOR"commandinthebackgroundtotheFTPserverandthenobtaintheportnumberfromtheserveranditwillthenmakeadataconnectiontoit,andfiletransfercanthenbegin.
A.
6.
3MonitoringTheFTPUploadProgressOncethefiletransferbeginsthePLCfirmwarewillhandletherestofthefiletransferuntileitherthefilehasbeencompletelytransferredorthetransferisabortedduetoanetworkorservertrouble.
YoucanmonitortheprogressofthefiletransferusingeithertheSTATUS(4)orSTATUS(20)functions.
STATUS(4)=0:FTPclientwasidleorlastFTPfailed1:FTPdatatransferjuststarted2:1stFTPsegmenttransferred,nowtransferringtherest3:FTPdatatransfercompleted.
STATUS(20)>0:NumberofbytesuploadedtoFTPServer.
Transferisinprogress.
<0:Totalnumberofbytesuploaded.
Transfercompleted.
Forexample,If2,345byteshasbeenuploadedtotheserverandthetransferhasended,STATUS(20)willreturnthenumber=–2345.
Sincefiletransfercantakesubstantialamountoftimetocomplete,itisnotwisetorunalooptowaitforthefiletransfertocompletesincethiswillblockthePLCfromprocessinganyotherpartoftheprogram.
Thedemo"ExtendedFileSystem.
PC6"showsyouhowtosetupamonitoringfunctiontoperiodicallymonitortheprogressofthefiletransferandreportthetransferstatusontheLCDdisplay.
Pleaserefertothecommentsinthecustomfunction"fnConnFTP"and"fnMonFTP"ofthe"ExtendedFileSystem.
PC6"programformoredetaileddescriptionsofeachcommandinvolvedintheFTPfiletransfer.
AppendixAExtendedFileSystemA.
7SettingUpAFTPServerBehindaWindowsFirewall.
PleaserefertothefollowingMicrosoftdocumentdescribingissuesandsolutionsrelatedtoFTPserverbehindtheWindowsFirewall.
http://technet.
microsoft.
com/en-us/library/dd421710(WS.
10).
aspxMicrosoftfocusesmainlyontheFTPserverintheirIISserver(forobviousreasons)insteadofFilezilla.
IfyouaresettingFilezillaasapermanentFTPserverbehindasoftwarefirewallyoucantrytomakethefollowingconfigurationsetup:1)YoumustspecificallysetuparangeofportnumberforPassivemodeuse.
ThesearetheportnumberthatFilezillawillassigntothePLCtomakeadatachannelconnectionwhenitattemptstotransferafileusingpassivemode.
ThefollowingisanexamplewheretwoportnumbersareassignedsothattwoPLCsmayconnecttotheFilezillasimultaneously.
YoucanaddalargerportrangeifmorePLCsmayconnecttotheFTPServersimultaneously.
Next,openupWindowsFirewallandaddtotheExceptionlisttheport21(commandport)andports41000to41001(orwhateverrangelimityouhavesettointheFileZillaSetupscreen).
ThisshouldallowtheFTPServertoreceiveconnectionfromtheseportsthatthePLCwillbeusingtomakethecommandanddataconnections.
AppendixAExtendedFileSystem

DogYun春节优惠:动态云7折,经典云8折,独立服务器月省100元,充100送10元

传统农历新年将至,国人主机商DogYun(狗云)发来了虎年春节优惠活动,1月31日-2月6日活动期间使用优惠码新开动态云7折,经典云8折,新开独立服务器可立减100元/月;使用优惠码新开香港独立服务器优惠100元,并次月免费;活动期间单笔充值每满100元赠送10元,还可以参与幸运大转盘每日抽取5折码,流量,余额等奖品;商家限量推出一款年付特价套餐,共100台,每个用户限1台,香港VPS年付199元...

PacificRack(年付低至19美元),夏季促销PR-M系列和多IP站群VPS主机

这几天有几个网友询问到是否有Windows VPS主机便宜的VPS主机商。原本他们是在Linode、Vultr主机商挂载DD安装Windows系统的,有的商家支持自定义WIN镜像,但是这些操作起来特别效率低下,每次安装一个Windows系统需要一两个小时,所以如果能找到比较合适的自带Windows系统的服务器那最好不过。这不看到PacificRack商家有提供夏季促销活动,其中包括年付便宜套餐的P...

酷番云-618云上秒杀,香港1核2M 29/月,高防服务器20M 147/月 50M 450/月,续费同价!

官方网站:点击访问酷番云官网活动方案:优惠方案一(限时秒杀专场)有需要海外的可以看看,比较划算29月,建议年付划算,月付续费不同价,这个专区。国内节点可以看看,性能高IO为主, 比较少见。平常一般就100IO 左右。优惠方案二(高防专场)高防专区主要以高防为主,节点有宿迁,绍兴,成都,宁波等,节点挺多,都支持防火墙自助控制。续费同价以下专场。 优惠方案三(精选物理机)西南地区节点比较划算,赠送5...

filezillaclient为你推荐
梦之队官网史上最强的nba梦之队是哪一年同ip网站查询怎么查自己的服务器挂着哪些网站www.haole012.com012qq.com真的假的www.baitu.com谁有免费的动漫网站?haole10.com空人电影网改网址了?www.10yyy.cn是空人电影网么ww.66bobo.comfq55点com是什么网站朴容熙这个人男的女的,哪国人。叫什么。222cc.com有什么电影网站啊月风随笔关于春夏秋冬的散文铂金血痕仇家血痕是个成语吗?
域名服务dns的主要功能为 东莞电信局 美国主机推荐 国外私服 服务器cpu性能排行 发包服务器 hostloc 电信虚拟主机 搜索引擎提交入口 彩虹云 web服务器搭建 便宜空间 太原联通测速 主机返佣 xuni 免备案cdn加速 网络速度 cdn加速技术 linux服务器系统 此网页包含的内容将不使用安全的https 更多