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

提速啦 韩国服务器 E3 16G 3IP 450元/月 韩国站群服务器 E3 16G 253IP 1100元/月

提速啦(www.tisula.com)是赣州王成璟网络科技有限公司旗下云服务器品牌,目前拥有在籍员工40人左右,社保在籍员工30人+,是正规的国内拥有IDC ICP ISP CDN 云牌照资质商家,2018-2021年连续4年获得CTG机房顶级金牌代理商荣誉 2021年赣州市于都县创业大赛三等奖,2020年于都电子商务示范企业,2021年于都县电子商务融合推广大使。资源优势介绍:Ceranetwo...

特网云(198元/月),高质量云虚拟主机低至0.16元/天,裸金属服务器仅需10.5元/天

特网云为您提供高速、稳定、安全、弹性的云计算服务计算、存储、监控、安全,完善的云产品满足您的一切所需,深耕云计算领域10余年;我们拥有前沿的核心技术,始终致力于为政府机构、企业组织和个人开发者提供稳定、安全、可靠、高性价比的云计算产品与服务。官方网站:https://www.56dr.com/ 10年老品牌 值得信赖 有需要的请联系======================特网云推出多IP云主机...

Nocser:马来西亚独立服务器促销$60.00/月

Nocser刚刚在WHT发布了几款促销服务器,Intel Xeon X3430,8GB内存,1TB HDD,30M不限流量,月付$60.00。Nocser是一家注册于马来西亚的主机商,主要经营虚拟主机、VPS和马来西亚独立服务器业务,数据中心位于马来西亚AIMS机房,线路方面,AIMS到国内电信一般,绕日本NTT;联通和移动比较友好,联通走新加坡,移动走香港,延迟都在100左右。促销马来西亚服务器...

filezillaclient为你推荐
急救知识纳入考试100%的大学生有学习现场急救知识的欲望吗h连锁酒店连锁酒店有哪些阿丽克丝·布莱肯瑞吉行尸走肉第六季女演员冯媛甑冯媛甄详细资料百度关键词工具如何利用百度关键词推荐工具选取关键词haole018.comse.haole004.com为什么手机不能放?网站检测请问,对网站进行监控检测的工具有哪些?同一服务器网站一个服务器能运行多少个网站5xoy.com求个如月群真汉化版下载地址se95se.comwww.sea8.com这个网站是用什么做的 需要多少钱
sugarhosts warez 西安电信测速 pw域名 mach5 便宜建站 个人免费空间 炎黄盛世 129邮箱 免费高速空间 国外免费asp空间 metalink web服务器安全 电信网络测速器 lamp什么意思 网页加速 umax googlevoice server2008 更多