Technical Introduction and Overview of EtherCAT.docx

上传人:b****5 文档编号:7333697 上传时间:2023-05-11 格式:DOCX 页数:50 大小:403.11KB
下载 相关 举报
Technical Introduction and Overview of EtherCAT.docx_第1页
第1页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第2页
第2页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第3页
第3页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第4页
第4页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第5页
第5页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第6页
第6页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第7页
第7页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第8页
第8页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第9页
第9页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第10页
第10页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第11页
第11页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第12页
第12页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第13页
第13页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第14页
第14页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第15页
第15页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第16页
第16页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第17页
第17页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第18页
第18页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第19页
第19页 / 共50页
Technical Introduction and Overview of EtherCAT.docx_第20页
第20页 / 共50页
亲,该文档总共50页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

Technical Introduction and Overview of EtherCAT.docx

《Technical Introduction and Overview of EtherCAT.docx》由会员分享,可在线阅读,更多相关《Technical Introduction and Overview of EtherCAT.docx(50页珍藏版)》请在冰点文库上搜索。

Technical Introduction and Overview of EtherCAT.docx

TechnicalIntroductionandOverviewofEtherCAT

TechnicalIntroductionandOverview

EtherCAT—EthernetControlAutomationTechnology

Thissectionprovidesanin-depthintroductionintoEtherCAT,theEthernet-basedfieldbussystem.

EtherCATsetsnewperformancestandards.Handlingisstraightforwardandsimilartoafieldbus,thankstoflexibletopologyandsimpleconfiguration.Moreover,sinceEtherCATcanbeimplementedverycost-effectively,thesystemenablesfieldbussestobeusedinapplicationswherefieldbusnetworkingwasnotanoptioninthepast.

1. 

Introduction

1.1 

Ethernetandreal-timecapability

2.

EtherCAToperatingprinciple

3.

EtherCATfeatures

3.1 

Protocol

3.2 

Topology

3.3. 

Distributedclocks

3.4 

Performance

3.5 

Diagnosis

3.6 

Highavailability

3.7 

Safety-over-EtherCAT

3.8 

EtherCATinsteadofPCI

3.9

Deviceprofiles

3.9.1 

CANopenoverEtherCAT(CoE)

3.9.2 

Servodrive-ProfilaccordingtoIEC61491overEtherCAT(SoE)

3.10 

EthernetoverEtherCAT(EoE)

3.11 

FileAccessoverEtherCAT(FoE)

4. 

Infrastructurecosts

5. 

Summary

6. 

Literature

7. 

ImplementationAspects

7.1 

Master

7.1.1 

Masterimplementationservices

7.1.1 

MasterSampleCode

7.2 

Slave

7.3. 

SlaveEvaluationKit

 

1.Introduction

Fieldbusseshavebecomeanintegratedcomponentofautomationtechnology.Theyhavebeentriedandtestedandarenowwidelyestablished.Itwasfieldbustechnologythatenabledthewide-scaleapplicationofPC-basedcontrolsystems.WhiletheperformanceofcontrollerCPUs-particularlyforIPCs-isincreasingrapidly,conventionalfieldbussystemstendtorepresent"bottlenecks"thatlimittheperformancecontrolsystemscanachieve.Anadditionalfactoristhelayeredcontrolarchitectureconsistingofseveralsubordinate(usuallycyclic)systems:

theactualcontroltask,thefieldbussystemandperhapslocalexpansionbusseswithintheI/Osystemorsimplythelocalfirmwarecycleintheperipheraldevice.Reactiontimesaretypically3-5timeshigherthanthecontrollercycletime-anunsatisfactorysolution(seeFig.1).

Figure1:

 Responsetimesofconventionalfieldbussystems

Abovethefieldbussystemlevel,i.e.fornetworkingcontrollers,Ethernethasalreadybeenthestateoftheartforsometime.WhatisrelativelynewisitsapplicationatthedriveorI/Olevel,i.e.inareasthatweredominatedbyfieldbussystemsinthepast.Themainrequirementsforthistypeofapplicationarehighreal-timecapability,suitabilityforsmalldataquantities,andnaturallycost-effectiveness.EtherCATmeetstheserequirementsandatthesametimemakesinternettechnologiesavailableattheI/Olevel.

 

1.1Ethernetandreal-timecapability

Therearemanydifferentapproachesthattryandprovidereal-timecapabilityforEthernet:

forexample,theCSMA/CDmediaaccessprocedureisdisabledviahigherlevelprotocollayersandreplacedbythetimesliceprocedureorpolling;otherpropositionsusespecialswitchesthatdistributeEthernetpacketsinapreciselycontrolledtimelymanner.WhilstthesesolutionsmaybeabletotransportdatapacketsmoreorlessquicklyandaccuratelytotheconnectedEthernetnodes,thetimesrequiredfortheredirectiontotheoutputsordrivecontrollersandforreadingtheinputdatastronglydependontheimplementation.

IfindividualEthernetframesareusedforeachdevice,theusabledatarateisverylowinprinciple:

TheshortestEthernetframeis84byteslong(incl.inter-packetgapIPG).If,forexample,adrivecyclicallysends4bytesofactualvalueandstatusinformationandaccordinglyreceives4bytesofcommandvalueandcontrolwordinformation,at100%busload(i.e.withinfinitelyshortresponsetimeofthedrive)ausabledatarateofonly4/84=4.8%isachieved.Atanaverageresponsetimeof10µs,theratedropsto1.9%.Theselimitationsapplytoallreal-timeEthernetapproachesthatsendanEthernetframetoeachdevice(orexpectaframefromeachdevice),irrespectiveoftheprotocolsusedwithintheEthernetframe.

 

2.EtherCAToperatingprinciple

EtherCATtechnologyovercomestheseinherentlimitationsofotherEthernetsolutions:

theEthernetpacketisnolongerreceived,theninterpretedandprocessdatathencopiedateverydevice.TheEtherCATslavedevicesreadthedataaddressedtothemwhiletheframepassesthroughthenode.Similarly,inputdataisinsertedwhilethetelegrampassesthrough(seeFig.2).Theframesareonlydelayedbyafewnanoseconds.

Figure2:

 Processdataisinsertedintelegrams

SinceanEthernetframecomprisesthedataofmanydevicesbothinsendandreceivedirection,theusabledatarateincreasestoover90%.Thefull-duplexfeaturesof100BaseTXarefullyutilized,sothateffectivedataratesof>100Mb/s(>90%of2x100Mb/s)canbeachieved(seeFig.3).

Figure3:

 ComparisonofBandwidthUtilisation

TheEthernetprotocolaccordingtoIEEE802.3remainsintactrightuptotheindividualdevice;nosub-busisrequired.Inordertomeettherequirementsofamodulardevicelikeanelectronicterminalblock,thephysicallayerinthecouplingdevicecanbeconvertedfromtwistedpairoropticalfibretoLVDS(alternativeEthernetphysicallayer,standardizedin[4,5]).Amodulardevicecanthusbeextendedverycost-efficiently.SubsequentconversionfromthebackplanephysicallayerLVDStothe100BASE-TXphysicallayerispossibleatanytime-asusualwithEthernet.

 

3.EtherCATfeatures

3.1Protocol

TheEtherCATprotocolisoptimizedforprocessdataandistransporteddirectlywithintheEthernetframethankstoaspecialEthertype.ItmayconsistofseveralEtherCATtelegrams,eachservingaparticularmemoryareaofthelogicalprocessimagesthatcanbeupto4gigabytesinsize.ThedatasequenceisindependentofthephysicalorderoftheEthernetterminalsinthenetwork;addressingcanbeinanyorder.Broadcast,Multicastandcommunicationbetweenslavesarepossible.DirectEthernetframetransferisusedincaseswheremaximumperformanceisrequiredandtheEtherCATcomponentsareoperatedinthesamesubnetasthecontroller.

However,EtherCATapplicationsarenotlimitedtosingleasubnet:

EtherCATUDPpackagestheEtherCATprotocolintoUDP/IPdatagrams(seeFig.4).ThisenablesanycontrolwithEthernetprotocolstacktoaddressEtherCATsystems.Evencommunicationacrossroutersintoothersubnetsispossible.Inthisvariant,systemperformanceobviouslydependsonthereal-timecharacteristicsofthecontrolanditsEthernetprotocolimplementation.TheresponsetimesoftheEtherCATnetworkitselfarehardlyrestrictedatall:

theUDPdatagramonlyhastobeunpackedinthefirststation.

Figure4:

 EtherCAT:

StandardFramesaccordingtoIEEE802.3[3]

Inadditiontodataexchangeaccordingtothemaster/slaveprinciple,EtherCATisalsoverysuitableforcommunicationbetweencontrollers(master/master).Freelyaddressablenetworkvariablesforprocessdataandavarietyofservicesforparameterization,diagnosis,programmingandremotecontrolcoverawiderangeofrequirements.Thedatainterfacesformaster/slaveandmaster/mastercommunicationareidentical.

Forslavetoslavecommunication,twomechanismsareavailable.Upstreamdevicescancommunicatetodownstreamdeviceswithinthesamecycle,andthusextremelyfast.Sincethismethodistopologydependent,itisparticularlysuitableforslavetoslavecommunicationrelationshipsgivenbymachinedesign-e.g.inprintingorpackagingapplications.Forfreelyconfigurableslavetoslavecommunication,thesecondmechanismapplies:

thedataisrelayedbythemaster.Heretwocyclesareneeded,butduetotheextraordinaryperformanceofEtherCATthisisstillfasterthananyotherapproach.

EtherCATonlyusesstandardframesaccordingto[3]-theframesarenotshortened.EtherCATframescanthusbesentfromanyEthernetMAC,andstandardtools(e.g.monitor)canbeused.

 

3.2Topology

Line,treeorstar:

EtherCATsupportsalmostanytopology(seeFig.5).ThebusorlinestructureknownfromthefieldbussesthusalsobecomesavailableforEthernet,withoutthequantitylimitationsimpliedbycascadedswitchesorhubs.

Figure5:

 FlexibleTopology:

Line,TreeorStar

Particularlyusefulforsystemwiringisthecombinationoflineandbranchesorstubs:

therequiredinterfacesexistonmanydevices(e.g.onI/Omodules);noadditionalswitchesarerequired.Naturally,theclassicswitch-basedEthernetstartopologycanalsobeused.

Wiringflexibilityisfurthermaximisedthroughthechoiceofdifferentcables.FlexibleandinexpensivestandardEthernetpatchcablestransferthesignalsin100BASE-TXmode.Plasticopticalfibres(POF)complementthesystemforspecialapplications.ThecompletechoiceofEthernetwiring-suchasdifferentopticalfibresandcoppercables-canbeusedincombinationwithswitchesormediaconverters.

TheFastEthernetphysics(100BASE-TX)enablesacablelengthof100mbetweentwodevices.Sinceupto65535devicescanbeconnected,thesizeofthenetworkisalmostunlimited.

 

3.3.Distributedclocks

Accuratesynchronizationisparticularlyimportantincaseswherespatiallydistributedprocessesrequiresimultaneousactions.Thismaybethecase,forexample,inapplicationswhereseveralservoaxescarryoutcoordinatedmovementssimultaneously.

Themostpowerfulapproachforsynchronizationistheaccuratealignmentofdistributedclocks,asdescribedintheIEEE1588standard[6].Incontrasttofullysynchronouscommunication,wheresynchronizationqualitysuffersimmediatelyintheeventofacommunica

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2