IEC 61158-6-4-2023.docx
IEC61158-6-4Edition4.02023-03INTERNATIONA1.STANDARDNORMEINTERNATIONA1.EImunicationnetworks-Fie1.dbusspecifications-Part6-4:App1.ication1.ayerprotoco1.specification-Type4e1.ementsReseauxdecommunicationindustrie1.s-Specificationsdesbusdeterrain-Partie6-4:Specificationduprotoco1.edeIacoucheapp1.ication-E1.ementsdetype4THISPUB1.ICATIONISCOPYRIGHTPROTECTEDCoPyright©2023IEC1Geneva,Switzer1.andAJ1.rightsreserved.UnteesO1.herWigespecified,nopartofthisPUb1.iCaIkinmaybereproducedoruti1.izedinanyformOfAanymeans,e1.ectronicor11>eca11ca1.,inc1.udingpoxx>opyingandmcro1.m,WnhoSprmiss4ninwntmgfromeitherIECofIECmemberNationa1.CommieinIhecountryoftherequester.IfyouhaveanyquestionsaboutIECcopyrighthaveanenquiryaboutOb1.aningancona1.rightstothsPUbtCagn.pte-ascontacttheaddressbe1.oworyour1.oca1.IECmc11crNatKX1.a1.Conwf<xfurtherinformation.Droitsdereproductionr6sfv6s.Saufirxic1.ioncontraire.aucunepartiedece1.tepub1.icationnePeU1.!rereprodi1.eni*seesousqueuetof(11equecesoi1.etparaucuPrOC3.61ctron*queomecankjue,ycompe1.sIapotocopiee1.Iesm*croms.sansaccorde1.tde1.,IECOUduCOmCQnabona1.de11ECdupaysdudman6eur.SiVoUSavezCfeSquestionssufIecopyrightde11ECOd&VOUS<J6s1.fezObtenrdsdrotssup1.ementafessurcedePUbICar1.On.UbMSeZtescocxxnesCaPmSouco11taezIeCcmitd11atiade11CdevoirepaysderesidenceCSeaetanatTd.:“1229W02113.ruedoVarcmbcir<iecchCH-1211Geneva20w"w.1.ec.cSwitZerIancIAbouttheIECTheIntornationa1.E1.cctrotcchnica1.Commisskxi(IEC)isthe1.eadingg1.oba1.organizationthatproparcsandpub1.ishesIntefnabonaJStandardstora1.1.e1.ectrics,e<ectroncandrentedtechno1.ogies.AboutIECpub1.icationsTetechnica1.contentaIECpub1.icationsiskep(UndefconstantreviewbyIbeIEC.P1.easemakesurethatyouhavethe1.atesteddion.a<xxredmoranamendmentmighthavebeenPUbhSedIECpub1.icationssearch-WebstorejecxhadvsearchformTheadvancedsearchenab1.estofindIECpub1.icationsbyavarietyo1c11tenaIreterencerximbertext.technica1.oommi!tee.Rateogivesinformationonprojects,rep1.acedandwWdra*pub1.icationsIECJustPub1.ishedwcbstorc.icc.ch,justpub1.ishcdStayuptoda1.eona1.1.newIECpuMcat>or.JustPub1.sddtasa1.1.newpubcat>o5reteasedAvai1.ab1.eon1.ineandOnC8amonthWefnai1.IECCustomerServiceCentre-webstore,ec.ch-escHyouwishtogrv©USyourIeedoeckonthispuWicabo11(xneedfurther35ststanco.p1.ease<ntacttheCus11orServiceCentre:sates»ec.ch.IECProducts&ServicesPorta1.-products.iec.chDiscoverourPowerIU1.earcengineandreadfree1.ya1.1.thepub1.>catkxspgv*wsWrthasut>scnpbonyou*i1.1.a*ayshaveaccessSOUPtOda1.econtenttai1.oredtoyourneeds.E1.ectropedia-www.e1.ectrope<fia.orgThewod(fsIeadngon1.ined1.conaryone<ecttech11o1.ogy.containingmorethan22300tormi11ok>gcaientriesinEngBshandFrench.Wtthequrvatette<msinWaddf1.kxiaitankages.A1.soknownastheIntornationa1.Etearotcchnica1.VccabUary(IEV)o111.ne.Aproposde11EC1.aCOmfnISsonEJectrotechniqueIntefnaDonaIe(ICes1.IaPfgrnIEeorganisationmodiaequ1.ahoreetPubI哈desNormesIngrnagna1.eSpourtoutcequatra<!aMectricitdar*ctronquetau×Wchntfog»esapparents.Apropodespub1.icationsIEC1.eConIenUtechniquedespub1.icationsIECestCons1.anWTien1.revu.Veu1.1.tezvousassureruevouspossdezIedttionap1.usr6cenie.uncorrigendumouamendementPeU1.avoir66PUb1.i6.Recherchedepub1.icationsIEC-wet>store.iec.chadVsearchform1.ar<hcrctcva11coPefEmdeIrouvcrdc$PUbfCatIonSIECnUHisantdiffre11tsCfiteresInUmfOdereference,1.itod,<udcs.E11cdo1111caussdcsinformationssurk»Pfoje1.Sa1.esPUbICaconsre<np1.acesourM33.IECJustPub1.ished-wet>s1.or.ec.ch,justpubhsedRostczinformdsurcs11ouvccspub1.icationsIECJustPub1.isheddwaIeSouve5puWica1.o11sparuesDisponibtecnIigncCtu11ck>isParmotsparCmaJ1.ServiceC1.ientswebsore.*ec.ch<ccSivous66reznousdonner<fescommenaressurce!½pub1.icationouSiVouSavzdesQJeSHonS11taez11ous:sa1.esPibc.c.IECProducts&ServicesPorta1.-products.1.ec.chOdcouvwznoir©putssa11(11x>wurderecherche1.sUwzgratui1.ementIousIeeaerusdesPUbHeaHcm.Avecunat×>n11ement.vousaureztoujoursaccesaunco11teuajourcp1.6avo5bcsoi11s.E1.ectropedmwww.e1.ctrope<>taorg1.epremierdictionaifecf61.ecrocnoioeenIigneaumonde,avecp1.usde22300a11ctesIBEnO<ogqusenang1.ais1.efranais.nsiqe1.esefmes6quiva1.ensdans19Ianguesaddibo11e*s9a1.11n1.appe<Vocatxi1.areEtectfotechniqueInjefnaionaJ(IEVenigne.IEC61158-6-4Edition4.02023-03INTERNATIONA1.STANDARDNORMEINTERNATIONA1.EImunicationnetworks-Fie1.dbusspecifications一Part6-4:App1.ication1.ayerprotoco1.specification-Type4e1.ementsR6seauxdecommunicationindustrie1.s-Specificationsdesbusdeterrain-Partie6-4:Specificationduprotoco1.edeIacoucheapp1.ication-E1.ementsdetype4INTERNATIONA1.E1.ECTROTECHNICA1.MMISSIONCOMMISSIONE1.ECTROTECHNIQUEINTERNATIONA1.EICS2580.40,3510070,35.110ISBN9782-322-75-5Warning!F4akesurethatyouobtainedthispub1.icationfromanauthorizeddistributor.Attention!Veui1.1.ezvousassurerquevousavezobtenucettepub1.icationviaundistributeuragree.tfR*qcAr3o1.3>的fu!bEht*S9gvCsiescrUg8debCoFBc©CnE1.Mh:4E2<c<njrionaCONTENTSFOREWORD5INTRODUCTION71 Scope81.1 Genera1.81.2 Specifications81.3 Conformance92 Normativereferences93 Terms,definitions,symbo1.s,abbreviatedtermsandnve11t>o11s103.1 Referencedtermsanddefinitions103.1.1 ISOrtEC7498ItermS103.1.2 ISOIEC822terms103.1.3 ISQIEC9545terms103.1.4 ISO.1EC8824-1terms103.1.5 Fie1.dtxjsdata-ink1.ayerterms113.2 Abbreviationsandsymbo1.s113.3 Conventions123.3.1 Genera1.11cep<123.3.2 ConventionsforstatemachinesforType4124 FA1.syntaxdescription134.1 FA1.-ARPDUabstractsyntax134.1.1 Genera1.134.1.2 AbstractsyntaxofAPDUheader134.1.3 AbstractsyntaxofAPDUbo<ty1542Datatypes165 Transfersyntaxes165.1 APDUoncodng165.1.1 APDUHeaderencoding165.1.2 APDUbodyending185.2 Variabteobjectencodingandpacking205.2.1 Encodingofsimp1.evariab1.es205.2.2 c<x*gofconstructedvariab1.es215.2.3 A1.ignment225.2.4 Variab1.eObjeCtattributes245.3 Errorcodes256 FA1.protoco1.statemachines267 AP-Contex1.statemachine278 FA1.serviceprotoco1.machine(FSPM)278.1 PrimitivesexchangedbetweenFA1.UserandFSPM2782FSPMstates278.2 .Genera1.27822FSPMproxyobjectstates27823FSPMrea1.objectstatemacinedoscrt)tion329 App1.icationre1.ationshipprotoco1.machine(ARPM>349.1 PfimitfvesexchangedbetweenARPMandFSPM3492ARPMStates359.1.1 Genera1.359.1.2 Senderstatetransitions359.1.3 2.3Receiverstatetransitions3610 D1.1.mappingprotoco1.machme(DMPM3710.1 Dataiok1.ayorservicese1.ection3710.1.1 1.11.10.1.2 D1.-UNITDATArequest3710.1.3 D1.-UNITDATAi11datio3710.1.4 D1.-UNITDATAresponse3710.1.5 D1.M-Setpnmitiveandparameters3710.1.6 D1.M-Getprimitiveandparameters3710.2 PrimitivesexchangedbetweenARPMandD1.PM3710.3 PrimitivesexchangedbetweenD1.PManddata>nk1.ayer3810.4 D1.PMstates3810.4.1 States.3810.4.2 Senderstatetransitions3810.4.3 Receiverstatetransitions3911 Proto1.options40Bib1.iography41Figure 1 -Statetransitiondagram12Figure 2 -APDUbeaderstructure16Figure 3 -Subfie4dsGContro1.StatusforRequest17FigWe4-Subficidso<ControIStatusforResponsewithOrr(X17Figure 5 -SubfieWsofControIStatusforResponseWi1.hnoerror18Figure 6 -DataReIdFormatencoding18Figure 7 -StructureofrequestAPDUbody19Figure 8 -StructureofresponseAPDUbody19Figure 9 -Variab1.eidentifier19Figure 10 -CodesuWiedotvariab1.eidentifier19Figure 11 -SequenceofdataintheAPDUbodysub1iW21Figure 12 MSGconsistsofAPDUheaderandAPDUbody22Figure 13 -SummaryofFA1.architecture26Figure 14 -FSPMproxyobjectsta1.emachine28Figure 15 -FSPMrea1.objectstatemachine33Figure 16 -ARPMstatemachine35Figure17-D1.PMstatemachine38TaWc1-Statemachinedescription(HenWntS12Tabte2-APDUheader13TaWe3-APDUbody15TaWe4-TransfersyntaxforArray23Tab4e5-TransfersyntaxforStructure23Tabte6-Commonvariab1.eobjectattributes24Tabte7-Variab1.etypeidentifiers24Tab4e8-FIFOvariabteobjectattributes25TaHe9-Errorcodes25TabAe10-PnmdivesexchangedbeueenFA1.-UserandFSPM27TaWe11-REOUESTreqFSPMconstraints28Tabte12-REQUESTreqFSPMactions29Tabte13-RESPONSEcnfFSPMconstraints31TaW14-RESPONSEcnfFSPMactions31TaWe15-ARSe11d.indproxyFSPMconstraints32Tab4e16-ARSed.indproxyFSPMactions32TabAe17-ARSendindrea1.FSPMconstraints33Tab1.e18-ARSondindrea1.FSPMActions.34TaWe19-PrimitivesissuedbyFSPMtoARPM34TaW20-PrimitivesissuedbyARPMtoFSPM34Tab1.e21-PrimitivesissuedbyARPMtoARPM35TaWe22-ARSendreqARPMconstraints35Taae23-ARSendreqARPMact>os35TaWe24-ARAcknowiedgereqARPMconstraints36TabAe25-ARAcknowiedge.reqARPMactions36TaW26-ARS11d.indARPMconstraints36Tab1.e27-ARSe11d.reqARPMactions36TaWe28-PnrmiivesissuedbyARPMtoD1.PM37TaWe29-PnmetivesissuedbyD1.PMtoARPM37Tab*e30-PrimitivesissuedbyD1.PMtoda1.a1.1.nk1.ayer38Tabte31-Primi1.ivesissuedbydata1.ink1.ayertoD1.PM38TaWe32-ARSed.reqD1.PMconstraints38Tab4e33-ARSe11d.reqD1.PMacbons39TaWe34-ARAcknovrtedgereqD1.PMconstraints39TaWeM-ARAckrwrtedge.reqO1.PMactions39Tab1.e36-D1.UN1.TDATAindD1.PMconstraints40Tab4e37-D1.UNITDATAindD1.PMactions40ImissionINDUSTRIA1.COMMUNICATIONNETWORKS-FIE1.DBUSSPECIFICATIONS-Part6-4:App1.ication1.ayerprotoco1.specification-Type4e1.ementsFOREWORD11TheIrrtefnationaiEeciroiechnica1.Convnison(IEC)芭aWoddWkfeorganizationforstandardisationCOfrpcisingaM11abo11a1.rotch11ca1.mmrttes(CNationa1.CommitteesiTbeob)c!ofECstopromoteinuema!>ocooperationona1.1.questionsconcerningstandardizationintheCicetnCa1.anddoc1.ro11ic潮ds.ToIhjSendandinaddontooterac!cvrtis.IECPUaISheSInternationa1.Standards.Technica1.Speci1.kjatkxis.Tecn½tfRepons.PUbIiCbfAvai1.ab1.eSpecifications(PAS)andGuides(hereafterreferredtoas1ECPuWica1.io11<s)").Thcrrearatkx)mittees;anyIECNationa1.CommitteeinterestedSthesubjectdea1.twthmayPamoPa衿nth<sprj>araxxyworkInternationa1.,aovemmenta1.andnon-Qvernm111.aorganizations1.iaisingwtthteIECa1.sop>a11icipateinthisp<epa(aon.IECCdIabOfatesCtoee1.ywttheIniemationaJOrgaruzaiMforStandardization(ISO)inaccordancewthoondnxsdtrminedbyagreementCetweentheMoorQaniZaIkX1.S2)Thekxma1.dedionsoragreementso!IEContechnica1.mattersexpress,asnear1.yasPgMiW*animanabona!consensuso1.opinionontmitteehasrepresentationfroma1.i11xc5todIECNatkxia1.Convmttoes3IECPub1.icationshaveIhekxmofrecommendationsf<xinernatia1.useandareacce½dbyIECNaiionaJCommt1.8Srthatsense.Witea1.1.reasonab1.e8focsaremadetoensuretatthetechnica1.n1.e11tECPub1.icationsisaccurate.IECcannotbehe(dresponsib1.efortheWayinwN5theyareusedorforany(T)JsinierpfetaDonbyanyenduser.4Inordertopromotei111.matona1.UnHOmWjECNatonaJCommitteesud11aketoappIECPub1.icationstransparent1.yk>themaximumextentposab1.einIheirnationa1.andregtona1.PUb1.CatiOns.AnydvetgencebetweenanyIECPub1.cabonandtheCorrespondngnationa1.<xregiona1.pub1.½atkx)sa1.beCieafbindicatedMthe1.atter.5IECitse1.fdocsnotp11>v崛anyattcsta!on<Mco11kmityIndependentCCrtibCMkxibodiesPrQVidCconformityassessmentservicesand.Insomeareas,accesstoIECmarksOrconformity.IECisnotrsonsWforanysrvcescarriedoutbyincSependentcertrf>caixbodies.61AJIUSorSshou1.densurethattheyhavethe1.atest0dik1ofthspub1.ication.7NoIiabi1.tysha1.1.attachtoIECoritsdireckxs.emp1.oyees,servantsOfagentsindSngindividua1.e*pensandmembersmitteesandIECNabona1.Committeesforanypersona1.11ury.propertydamageort>!herdamageofanynatureMaisoever.whetherdree!orindirect,orfarcosts(idudng1.ega1.feesandexpensesarisingoutorIheputfcaton.usecA.orre1.anceupon,thisIECPub1.icationoranyotherIECPubtcabons.8Attentionisdrawnk)theNocmaiwereferencescednthispuMication.UseOI1.here4ererx½dpub1.icationsIndispensaWeforth©correctapp*caboofthisPUMcatjon9)AbonisdrawnK>Ihopossibi1.itythatsomeofthec*cmc11tsofthisIECPuWicabonmaybetheSUbjcaofpa1.entrights.IECshnotbebe<dfespor½to1.etorKfentify1.nganyora1.1.suchpatentrights.Attentionisdrawntothefactthattheuseoftheassociatedprotoco1.typeisrestrictedbyitsinte1.tectua1.-propertyrighthoidrs.Ina1.cases,thecommitmentto1.imitedre1.easeofinte1.1.ectua1.-property-rightsmadebytheho1.dersofthoserightspermitsa1.ayerprotoco1.typetobeusedwithother1.ayerprotoco1.softhesametype.OfinothertypeCOmbinationSexp1.icit1.yauthorizedbyitsinte1.ctua1.proprty11ghtho1.ders.NOTECombinationsofprotoco1.t>pesarespecifiedinIbeIEC61784-1seriesandtheIEC61784-2secies.IEC61158-6-4hasbeenpreparedbysubcommittee65C:Iworks,ofIECtechnica1.committee65:1.ndustria-rccessmeasurement,contro1.andautomaton.ItisanInternationa1.Standard.ThisfourthMionCanCeISandrep1.acestheIhIrdeditionpub1.ished2019.Thisedition11sMu1satechnica1.revision.Thiseditioninc1.udesthefo1.1.owingsign1.icanttcchncachangewithrespecttothePrCVX)USedition:a)Useo1.c1.ndcddataszeinanAPDUbody.ThisextensionisrestrictedtonodesoperatingonaP-NETIPnetwork.ThetextofthisInternationa1.Standardisbasedonthefo1.1.owingdocuments:DraftRepoaonvoting6501204件D1.S65G'1245.RVOFu1.1.informationonthevotingforitsapprova1.canbefoundinth©reportonvotingindktedintheabovetab1.e.The1.anguageusedforthedeve4opmetofthisInternationa1.StandardisEng1.ish.Thisdocumentwasdraftedinaccordancev/ithISO,IECDirectives.Part2.anddeve1.opedinaccordancewithISO.1ECDirectives,Pan1andISOIECDreciives,IECSupp1.ement,avai1.ab1.eatvw.jec.ch'members-e×perts.,retdocs.ThemaindocumenttypesWeIOPedbyIECaredescribedingreaterdetai1.atrw.iec.ch.,pub1.>cations.A1.isto<a1.1.thepansoftheIEC61158seres,underthegenera1.tit1.eI(Xk)StriaIcommunicationnetworks-Fieidbusspecifications,canbeIoundontheIECwebsite.Thecommitteehasd6ddthatthenttsofthisdocumentwi1.1.remainunchangedunti1.tbstabi1.itydateindicatedontheIECWebSiteunderWebS1.ofeec.chthedatare1.atedtothespecificdocument.Atthisdate.IhedocumentW1.I1.be reconfirmed. withdrawn. rep1.acedbyarevisededition,or amended.IntroductionThisdocumentisoneofaseriesproducedtoIaaMaICtheinterconnectionofautomationsystemcomponents.Itisre1.atedtootherstandardsinthesetasdefinedbythe,three-1.ayer-fieWbusreferencemode1.describedinIEC61158-1.Theapp1.icationprotoco1.ProVadeStheapp1.icationservicebymakinguseoftheservicesavai1.ab1.efromthedata1.inkorotherimmediate1.y1.owr1.ayer.Theprimaryamcthsdocumentistoprovideaseto1ru1.es1(xcommunicationexpressedntermsoftheprocedurestobecarriedovtbypeerapp1.icationentities(AEs)atthetimeofcommunicationTheseres(orcommunicationareintendedtoprovideasoundbasisfordeve1.opmentordertoserveavarietyO1.purposes: asaguideforimp1.ementorsanddesigners; toruseinthetestingandprocurementofequ<>met; aspartofanagreementfortheadmittanceofsy