1、BRITISH STANDARDBS EN 61158-4-7:2008Industrial communication networks Fieldbus specifications Part 4-7: Data-link layer protocol specification Type 7 elementsICS 25.040.40; 35.100.20 BS EN 61158-4-7:2008Incorporating corrigendum January 2014BS EN 61158-4-7:2008ISBN 978 0 580 85821 5Amendments/corrig
2、enda issued since publicationDate Comments31 May 2014 Implementation of IEC corrigendum January 2014: Annex C updatedThis British Standard was published under the authority of the Standards Policy and Strategy Committee on 30 May 2008 The British Standards Institution 2014. Published by BSI Standard
3、s Limited 2014National forewordThis British Standard is the UK implementation of EN 61158-4-7:2008. It is identical to IEC 61158-4-7:2007, incorporating corrigendum January 2014. Together with all of the other sections of BS EN 61158-4, it supersedes BS EN 61158-4:2004 which is withdrawn.The UK part
4、icipation in its preparation was entrusted to Technical Committee AMT/7, Industrial communications: process measurement and control, including fieldbus.A list of organizations represented on this committee can be obtained on request to its secretary.The publication does not purport to include all th
5、e necessary provisions of a contract. Users are responsible for its correct application.Compliance with a British Standard cannot confer immunity from legal obligations.EUROPEAN STANDARD EN 61158-4-7NORME EUROPENNE EUROPISCHE NORMFebruary 2008CENELEC European Committee forElectrotechnicalStandardiza
6、tion Comit Europen de Normalisation ElectrotechniqueEuropisches Komitee fr Elektrotechnische NormungCentral Secretariat:rue de Stassart35, B - 1050 Brussels 2008 CENELEC - All rights of exploitation in any form and by any means reserved worldwide for CENELECmembers.Ref. No. EN 61158-4-7:2008 EICS 35
7、.100.20; 25.040.40 Partially supersedes EN 61158-4:2004English versionIndustrialcommunication networks - Fieldbus specifications - Part 4-7: Data-link layer protocol specification - Type 7 elements(IEC 61158-4-7:2007)Rseaux de communication industriels -Spcifications des bus de terrain -Partie 4-7:
8、Spcification des protocoles des couches de liaison de donnes -Elments de type 7(CEI 61158-4-7:2007)Industrielle Kommunikationsnetze -Feldbusse - Teil 4-7: Protokollspezifikation des Data Link Layer (Sicherungsschicht) - Typ 7-Elemente(IEC 61158-4-7:2007)This European Standard was approved by CENELEC
9、 on 2008-02-01. CENELEC members are bound to complywith the CEN/CENELEC Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration. Up-to-date lists and bibliographical references concerning such national standards m
10、ay be obtained onapplication to the Central Secretariat or to any CENELEC member. This European Standard exists in three official versions (English, French, German). A version in any otherlanguage made by translation under the responsibility of a CENELEC member into its own language and notifiedto t
11、he Central Secretariat has the same status as the official versions.CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Cyprus, theCzech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia,Lithuania, Luxembour
12、g, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland and the United Kingdom.Foreword The text of document 65C/474/FDIS, future edition 1 of IEC 61158-4-7, prepared by SC 65C, Industrialnetworks, of IEC TC 65, Industrial-processmeasurement, cont
13、rol and automation, was submitted to the IEC-CENELEC parallel vote and was approved by CENELEC asEN 61158-4-7 on 2008-02-01.This and the other parts of the EN 61158-4 series supersede EN 61158-4:2004.With respect to EN 61158-4:2004 the following changes were made: deletion of Type 6 fieldbus, and th
14、e placeholder for a Type 5 fieldbus data-link layer, forlack of market relevance; addition of new fieldbus types; partition into multiple parts numbered 4-1, 4-2, , 4-19.The following dates were fixed: latest date by which the EN has to be implemented at national level by publication of an identical
15、national standard or by endorsement (dop) 2008-11-01 latest date by which the national standards conflictingwith the EN have to be withdrawn (dow) 2011-02-01NOTE Use of some of the associated protocol types is restricted by their intellectual-property-right holders. In all cases, the commitment to l
16、imited release of intellectual-property-rightsmade by the holders ofthose rights permits a particular data-link layerprotocol type to be used with physical layer and application layer protocols in type combinations as specified explicitly in the EN 61784 series. Use ofthe various protocol types in o
17、ther combinations may require permission from their respectiveintellectual-property-right holders.Annex ZA has been added by CENELEC._Endorsement notice The text of the International Standard IEC 61158-4-7:2007 was approved by CENELEC as a European Standard without any modification._BS EN 61158-4-7:
18、2008 2 CONTENTSINTRODUCTION.71Scope.81.1General.81.2Specifications81.3Procedures81.4Applicability.81.5Conformance.82Normative references.93Terms, definitions, symbolsand abbreviations93.1Reference model terms and definitions93.2Service convention terms and definitions.103.3Other terms and definition
19、s.113.4Symbols and abbreviations154Overview of the DL-protocol.174.1Overall description of medium allocation.174.2Types ofentities194.3Addressing224.4Flow control.284.5Graphical representation.305General structure and encoding of PhIDUs and DLPDUsand related elements ofprocedure.315.1DLPDU formats a
20、nd components.315.2Description ofeach DLPDUcomponent.315.3PhIDU structure and encoding.355.4Common DLPDU structure, encoding and elements of procedure365.5Valid DLPDU types365.6DLL timers.386DLPDU-specific structure, encoding and element ofprocedure.426.1General.426.2Buffer read426.3Buffer write436.
21、4Buffer transfer.436.5Specified explicit request.446.6Free explicit request496.7Messaging.526.8Acknowledged messaging.576.9Numbering of acknowledged messages.616.10 Behavior with mismatched parameters637DL-service elements of procedure,interfacesand conformance.657.1General.657.2Producer/consumer en
22、tity667.3Protocol elements byservice.697.4Bus arbitrator operation.767.5Bridges847.6Interfaces91BS EN 61158-4-7:2008 3 7.7 Conformance.93Annex A(informative) Exemplary FCS implementation96AnnexB (informative) Object modeling.98B.1Modeling ofthe IDENTIFIER object.98B.2Description ofthe IDENTIFIER obj
23、ect attributes98B.3Modeling ofthe QUEUE object102B.4Description ofthe QUEUE object attributes.102B.5Modeling ofthe BUFFER object.103B.6Description ofthe BUFFER objectattributes103Annex C (informative)Topology of multi-segment DL-subnetwork.105C.1Introduction.105C.2Global specification.105C.3Local sp
24、ecification.106C.4Properties.106C.5Methods106Annex D (informative) Managementof transmission errors .110D.1Transmission of RP_DAT_XX110D.2Transmissionof a free RP_RQ(1/2).110D.3Transmissionof the specified RP_RQ1 .111D.4Transmission of RP_MSG_NOACK112D.5Transmission of RP_MSG_ACK.114Bibliography117F
25、igure 1 Relationships ofDLSAPs, DLSAP-addresses and groupDL-addresses12Figure 2 General description of medium allocation.18Figure 3 Internal structure of a producer/consumer entity.19Figure 4 Associated buffers and queues21Figure 5 Internal structure of a bus arbitrator.22Figure 6 Polling BA Table22
26、Figure 7 Addressing scheme23Figure 8 Addresspartitioning.25Figure 9 Structureof an individual physicaladdress 26Figure 10 Structure of an individual logical address.26Figure 11 Structure of restricted physical group address26Figure 12 Structure of a restricted logicalgroup address .27Figure 13 Struc
27、ture of a generalized groupaddress.27Figure 14 Summary of address structure28Figure 15 Exampleof an evaluation net.30Figure 16 Basic DLPDU structure.31Figure 17 DLPDU transmission / reception order31Figure 18 Identifier DLPDU37Figure 19 Variable response DLPDU37Figure 20 Request response DLPDU37Anne
28、x ZA (normative) Normative references to international publications with their corresponding European publications 119BS EN 61158-4-7:2008 4 7.7 Conformance. 3Annex A(informative) Exemplary FCS implementation 6AnnexB (informative) Object modeling.B.1Modeling ofthe IDENTIFIER object.98B.2Description
29、ofthe IDENTIFIER object attributes98B.3Modeling ofthe QUEUE object102B.4Description ofthe QUEUE object attributes.102B.5Modeling ofthe BUFFER object.103B.6Description ofthe BUFFER objectattributes 3Annex C (informative)Topology of multi-segment DL-subnetwork.C.1Introduction.105C.2Global specificatio
30、n.105C.3Local specification.106C.4Properties.106C.5Methods106Annex D (informative) Managementof transmission errors .D.1Transmission of RP_DAT_XX110D.2Transmissionof a free RP_RQ(1/2).110D.3Transmissionof the specified RP_RQ1 .111D.4Transmission of RP_MSG_NOACK112D.5Transmission of RP_MSG_ACK.114Bib
31、liography117i 1 Relationships ofDLSAPs, DLSAP-addresses and groupDL-addresses12Fi 2 General description of medium allocation.18i 3 I t t t producer/consumer entity.19Figu 4 Associated buffers and queues 1i 5 Internal structure of a bus arbitrator.22Figu 6 Polling BA Table 2Fi 7 Addressing scheme 3Fi
32、 8 Addresspartitioning. 59 Structureof an individual physicaladdress 10 Structu f n individual logical address. 611 Str f restricted physical group address 6Fi 12 Structure f restricted logicalgroup address . 7Fi 13 Structure of a generalized groupaddress.27i 14 Summary of address structure28i 15 Ex
33、ampleof an evaluation net. 0i 6 Basic DLPDU structure. 1i 7 DLPDU transmission / reception order 1i 18 Identifier DLPDUFigure 19 Variable response DLPDU37Figure 20 Request response DLPDU37Annex ZA (normative) Normative references to international publications with their corresponding European public
34、ations 119BS EN 61158-4-7:2008 4 C.5.1 Minimum load matrix .107C.5.2 Calculation of the transfer matrices 1081077.7 Conformance.93Annex A(informative) Exemplary FCS implementation96AnnexB (informative) Object modeling.98B.1Modeling ofthe IDENTIFIER object.98B.2Description ofthe IDENTIFIER object att
35、ributes98B.3Modeling ofthe QUEUE object102B.4Description ofthe QUEUE object attributes.102B.5Modeling ofthe BUFFER object.103B.6Description ofthe BUFFER objectattributes103Annex C (informative)Topology of multi-segment DL-subnetwork.105C.1Introduction.105C.2Global specification.105C.3Local specifica
36、tion.106C.4Properties.106C.5Methods106Annex D (informative) Managementof transmission errors .110D.1Transmission of RP_DAT_XX110D.2Transmissionof a free RP_RQ(1/2).110D.3Transmissionof the specified RP_RQ1 .111D.4Transmission of RP_MSG_NOACK112D.5Transmission of RP_MSG_ACK.114Bibliography117Figure 1
37、 Relationships ofDLSAPs, DLSAP-addresses and groupDL-addresses12Figure 2 General description of medium allocation.18Figure 3 Internal structure of a producer/consumer entity.19Figure 4 Associated buffers and queues21Figure 5 Internal structure of a bus arbitrator.22Figure 6 Polling BA Table22Figure
38、7 Addressing scheme23Figure 8 Addresspartitioning.25Figure 9 Structureof an individual physicaladdress 26Figure 10 Structure of an individual logical address.26Figure 11 Structure of restricted physical group address26Figure 12 Structure of a restricted logicalgroup address .27Figure 13 Structure of
39、 a generalized groupaddress.27Figure 14 Summary of address structure28Figure 15 Exampleof an evaluation net.30Figure 16 Basic DLPDU structure.31Figure 17 DLPDU transmission / reception order31Figure 18 Identifier DLPDU37Figure 19 Variable response DLPDU37Figure 20 Request response DLPDU37Annex ZA (n
40、ormative) Normative references to international publications with their corresponding European publications 119BS EN 61158-4-7:2008 4 Figure 23 End of message transaction response DLPDU.38Figure 24 Buffer reading service interactions.43Figure 25 Bufferwriting service interactions.43Figure 26 Buffer
41、transfer service interactions.43Figure 27 Buffer transfer DLPDU sequence.44Figure 28 Interactionswithin the specified explicit request forbuffer transfer service in the aperiodic window.45Figure 29 Interactionswithin the specified explicit request forbuffer transfer service in the periodic window.46
42、Figure 30 DLPDU sequence foran explicit request for a transfer .47Figure 31 Evaluation network for a buffertransfer specified explicit request with (RQ_INHIBITED = False)48Figure 32 Evaluation network for a buffertransfer specified explicit request with (RQ_INHIBITED = True)48Figure 33 Diagram of in
43、teractions within the free explicit request for buffertransferservice50Figure 34 Evaluation network for a free explicit request.51Figure 35 Diagram ofinteractions within the unacknowledged message transferrequest servicefor an aperiodic transfer.54Figure 36 Diagram ofinteractions within the unacknow
44、ledged message transferrequest service for a cyclical transfer55Figure 37 DLPDU sequence foranaperiodic message transfer56Figure 38 DLPDU sequence fora cyclical message transfer 57Figure 39 Diagram ofinteractions within the acknowledged message transfer request service for an aperiodictransfer58Figu
45、re 40 Diagram ofinteractions within the acknowledged message transfer request service for a cyclical transfer.59Figure 41 DLPDU sequence foranaperiodic message transfer60Figure 42 DLPDU sequence fora cyclical message transfer 61Figure 43 Evaluation network for message aperiodic transfer.64Figure 44
46、Evaluation network for message cyclic transfer65Figure 45 Simplified states machine for a producer/consumerentity66Figure 46 Active busarbitrators simplified state machine82Figure 47 Typical bridge usage84Figure 48 Architectural placement of bridges in OSI Basic Reference Model (ISO/IEC7498)84Figure
47、 49 Representation of anextended link communication85Figure 50 Evaluation network for reception of anRP_MSG_ACK DLPDU.90Figure 51 Evaluation network for reception of anRP_MSG_NOACKDLPDU91Figure A.1 Example of FCS generation96Figure A.2 Example of FCS syndrome checking on reception.96Figure D.1 Evalu
48、ation DL-subnetworkfor transmission ofRP_DAT_XX110Figure D.2 Evaluation DL-subnetworkfor transmission of a freeRP_RQ(1/2).111Figure 21 Message response DLPDU.38Figure 22 Acknowledgement responseDLPDU38BS EN 61158-4-7:2008 5 Figure 23 End of message transaction response DLPDU.38Figure 24 Buffer reading service interactions.43Figure 25 Bufferwriting service interactions.43Figure 26 Buffer transfer service interactions.43Figure 27 Buffer transfer DLPDU sequence.44Figure 28 Interactionswithin the specified explicit request forbuffer transfer servic